changeset 13862:b23553933bb1

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.
author Bruno Haible <bruno@clisp.org>
date Sat, 13 Nov 2010 15:22:05 +0100
parents 2014d680b5c4
children 4cf55d581e23
files ChangeLog m4/openat.m4
diffstat 2 files changed, 12 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+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.
--- a/m4/openat.m4
+++ b/m4/openat.m4
@@ -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 @@
 # 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 @@
 # 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(