[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 2/3] faccessat: speed up 'configure' on mainstream hosts
From: |
Paul Eggert |
Subject: |
[PATCH 2/3] faccessat: speed up 'configure' on mainstream hosts |
Date: |
Sun, 14 Oct 2012 22:56:08 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:16.0) Gecko/20121011 Thunderbird/16.0.1 |
* 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 | 7 +++++++
m4/faccessat.m4 | 4 ++--
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index e301fb0..e340e84 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2012-10-14 Paul Eggert <address@hidden>
+ 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,
diff --git a/m4/faccessat.m4 b/m4/faccessat.m4
index 274eede..82f3b1f 100644
--- a/m4/faccessat.m4
+++ b/m4/faccessat.m4
@@ -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])
])
--
1.7.11.7
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH 2/3] faccessat: speed up 'configure' on mainstream hosts,
Paul Eggert <=