]> arthur.barton.de Git - netatalk.git/commitdiff
Make at-funcs detection more robust
authorFrank Lahm <franklahm@googlemail.com>
Mon, 21 Mar 2011 11:29:20 +0000 (12:29 +0100)
committerFrank Lahm <franklahm@googlemail.com>
Mon, 21 Mar 2011 11:29:20 +0000 (12:29 +0100)
configure.in

index 5bce2794280061f2070215b0edb1e872fce6a0b6..96dbfbb39594f1914c9ec84106ecf422d87b6cf0 100644 (file)
@@ -73,7 +73,14 @@ AC_FUNC_WAIT3
 AC_CHECK_FUNCS(getcwd gethostname gettimeofday getusershell mkdir rmdir select socket strdup strcasestr strstr strtoul strchr memcpy)
 AC_CHECK_FUNCS(backtrace_symbols setlocale nl_langinfo strlcpy strlcat setlinebuf dirfd pselect access pread pwrite)
 AC_CHECK_FUNCS(waitpid getcwd strdup strndup strnlen strtoul strerror chown fchown chmod fchmod chroot link mknod mknod64)
-AC_CHECK_FUNC(renameat, AC_DEFINE([_ATFILE_SOURCE], 1, AT file source)) 
+#ac_neta_haveatfuncs=yes
+#AC_CHECK_FUNCS(openat renameat fstatat unlinkat, ,ac_neta_haveatfuncs=no)
+#if test x"$ac_neta_haveatfuncs" = x"yes" ; then
+#   AC_DEFINE([_ATFILE_SOURCE], 1, AT file source)
+#fi
+AC_DEFINE([_ATFILE_SOURCE], 1, AT file source)
+AC_CHECK_FUNCS(openat renameat fstatat unlinkat, ,AC_DEFINE([_ATFILE_SOURCE], 0, AT file source))
+
 AC_CHECK_MEMBERS(struct tm.tm_gmtoff,,, [#include <time.h>])
 
 AC_CHECK_FUNC(gethostbyname,,[AC_CHECK_LIB(nsl,gethostbyname)])