]> Savannah Git Hosting - gnulib.git/commitdiff
faccessat: speed up 'configure' on mainstream hosts
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 15 Oct 2012 05:24:48 +0000 (22:24 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 15 Oct 2012 05:54:01 +0000 (22:54 -0700)
* m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
since it's only on unusual platforms that we need to check for
'access', and it's better not to slow 'configure' down on all
platforms.

ChangeLog
m4/faccessat.m4

index e301fb0a25118b48301b454ad198d5883b2ee1dd..e340e84a50755fb49fb89356b673dfc60cce3ce1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
 
+       faccessat: speed up 'configure' on mainstream hosts
+       * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
+       Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
+       since it's only on unusual platforms that we need to check for
+       'access', and it's better not to slow 'configure' down on all
+       platforms.
+
        faccessat: port to Solaris 10
        * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
        Needed on Solaris 10, which doesn't have AT_EACCESS,
index 274eededeb41d086b986815c403c054e88ce2fd0..82f3b1f8dde32a9ff5438b51ac7a8fd180a1bba1 100644 (file)
@@ -1,4 +1,4 @@
-# serial 5
+# serial 6
 # See if we need to provide faccessat replacement.
 
 dnl Copyright (C) 2009-2012 Free Software Foundation, Inc.
@@ -24,5 +24,5 @@ AC_DEFUN([gl_FUNC_FACCESSAT],
 # Prerequisites of lib/faccessat.m4.
 AC_DEFUN([gl_PREREQ_FACCESSAT],
 [
-  AC_CHECK_FUNCS_ONCE([access])
+  AC_CHECK_FUNCS([access])
 ])