summaryrefslogtreecommitdiff
path: root/package/cifs-utils/patches/patch-configure_ac
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2013-10-28 16:33:41 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2013-10-28 16:33:41 +0100
commit444176e8aa3a958f147f15542793678b619be262 (patch)
tree3bae8dc0b3fd98ebffc239c6f4d0bb2e7604d957 /package/cifs-utils/patches/patch-configure_ac
parent05abc676e9272fdf933e0ea376bb12d8ec497467 (diff)
fix host build stuff and update-patches, convert cifs-utils and libaudiofile to new autotool infrastructure
Diffstat (limited to 'package/cifs-utils/patches/patch-configure_ac')
-rw-r--r--package/cifs-utils/patches/patch-configure_ac33
1 files changed, 33 insertions, 0 deletions
diff --git a/package/cifs-utils/patches/patch-configure_ac b/package/cifs-utils/patches/patch-configure_ac
new file mode 100644
index 000000000..ac5835776
--- /dev/null
+++ b/package/cifs-utils/patches/patch-configure_ac
@@ -0,0 +1,33 @@
+--- cifs-utils-6.1.orig/configure.ac 2013-07-02 21:13:33.000000000 +0200
++++ cifs-utils-6.1/configure.ac 2013-10-28 07:33:27.000000000 +0100
+@@ -90,13 +90,25 @@ AC_CHECK_TYPES([ptrdiff_t, ssize_t, uint
+
+ # Checks for library functions.
+ AC_FUNC_GETMNTENT
+-AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
+-AC_FUNC_MALLOC
+-AC_FUNC_REALLOC
+-AC_FUNC_STRNLEN
+
+ # check for required functions
+-AC_CHECK_FUNCS([alarm atexit endpwent getmntent getpass gettimeofday inet_ntop memset realpath setenv strchr strcmp strdup strerror strncasecmp strndup strpbrk strrchr strstr strtol strtoul tolower uname], , [AC_MSG_ERROR([necessary functions(s) not found])])
++AC_CHECK_FUNCS([alarm atexit endpwent getmntent getpass gettimeofday inet_ntop malloc memset realloc realpath setenv strchr strcmp strdup strerror strncasecmp strndup strnlen strpbrk strrchr strstr strtol strtoul tolower uname], , [AC_MSG_ERROR([necessary functions(s) not found])])
++
++AC_CHECK_FUNCS([getopt_long], , [AC_MSG_ERROR([getopt_long function not found])])
++AC_MSG_CHECKING([if getopt_long is GNU specific])
++AC_PREPROC_IFELSE([AC_LANG_PROGRAM([[
++#include <features.h>
++#ifndef __GLIBC__
++#error No GNU extension
++#endif
++ ]],[[;]])
++ ],[
++ AC_DEFINE(HAVE_GNU_GETOPT_LONG, 1, [Whether getopt_long has GNU extensions])
++ AC_MSG_RESULT([yes])
++ ],[
++ AC_LIBOBJ([gnu_getopt])
++ AC_MSG_RESULT([no])
++])
+
+ AC_CHECK_FUNCS(clock_gettime, [], [
+ AC_CHECK_LIB(rt, clock_gettime, [