openat: Ensure autoconf macro ordering.
authorBruno Haible <bruno@clisp.org>
Sat, 13 Nov 2010 14:22:05 +0000 (15:22 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 13 Nov 2010 14:22:05 +0000 (15:22 +0100)
* m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
gl_USE_SYSTEM_EXTENSIONS.
(gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.

ChangeLog
m4/openat.m4

index f3955b5..fa9642a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2010-11-13  Bruno Haible  <bruno@clisp.org>
 
+       openat: Ensure autoconf macro ordering.
+       * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
+       gl_USE_SYSTEM_EXTENSIONS.
+       (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
+
+2010-11-13  Bruno Haible  <bruno@clisp.org>
+
        Update comments.
        * lib/unistr/u8-check.c: Update file name in comments.
        * lib/unistr/u8-mblen.c: Likewise.
index eec426a..89fc8ca 100644 (file)
@@ -1,4 +1,4 @@
-# serial 30
+# serial 31
 # See if we need to use our replacement for Solaris' openat et al functions.
 
 dnl Copyright (C) 2004-2010 Free Software Foundation, Inc.
@@ -63,6 +63,9 @@ AC_DEFUN([gl_FUNC_OPENAT],
 # gl_FUNC_FCHOWNAT_DEREF_BUG([ACTION-IF-BUGGY[, ACTION-IF-NOT_BUGGY]])
 AC_DEFUN([gl_FUNC_FCHOWNAT_DEREF_BUG],
 [
+  dnl Persuade glibc's <unistd.h> to declare fchownat().
+  AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
+
   AC_CACHE_CHECK([whether fchownat works with AT_SYMLINK_NOFOLLOW],
     gl_cv_func_fchownat_nofollow_works,
     [
@@ -104,6 +107,7 @@ main ()
 # Also use the replacement function if fchownat is simply not available.
 AC_DEFUN([gl_FUNC_FCHOWNAT],
 [
+  AC_REQUIRE([gl_UNISTD_H_DEFAULTS])
   AC_REQUIRE([gl_FUNC_CHOWN])
   AC_CHECK_FUNC([fchownat],
     [gl_FUNC_FCHOWNAT_DEREF_BUG(