patch-configure_ac 1.4 KB

123456789101112131415161718192021222324252627282930313233
  1. --- cifs-utils-6.3.orig/configure.ac 2014-01-09 17:19:53.000000000 +0100
  2. +++ cifs-utils-6.3/configure.ac 2014-05-06 13:52:11.790306753 +0200
  3. @@ -87,13 +87,25 @@ AC_CHECK_TYPES([ptrdiff_t, ssize_t, uint
  4. # Checks for library functions.
  5. AC_FUNC_GETMNTENT
  6. -AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
  7. -AC_FUNC_MALLOC
  8. -AC_FUNC_REALLOC
  9. -AC_FUNC_STRNLEN
  10. # check for required functions
  11. -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])])
  12. +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])])
  13. +
  14. +AC_CHECK_FUNCS([getopt_long], , [AC_MSG_ERROR([getopt_long function not found])])
  15. +AC_MSG_CHECKING([if getopt_long is GNU specific])
  16. +AC_PREPROC_IFELSE([AC_LANG_PROGRAM([[
  17. +#include <features.h>
  18. +#ifndef __GLIBC__
  19. +#error No GNU extension
  20. +#endif
  21. + ]],[[;]])
  22. + ],[
  23. + AC_DEFINE(HAVE_GNU_GETOPT_LONG, 1, [Whether getopt_long has GNU extensions])
  24. + AC_MSG_RESULT([yes])
  25. + ],[
  26. + AC_LIBOBJ([gnu_getopt])
  27. + AC_MSG_RESULT([no])
  28. +])
  29. AC_CHECK_FUNCS(clock_gettime, [], [
  30. AC_CHECK_LIB(rt, clock_gettime, [