euidaccess: Respect rules for use of AC_LIBOBJ.
authorBruno Haible <bruno@clisp.org>
Sat, 21 May 2011 10:40:54 +0000 (12:40 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:05:56 +0000 (00:05 +0200)
* m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
from here...
* modules/euidaccess (configure.ac): ... to here.

ChangeLog
m4/euidaccess.m4
modules/euidaccess

index 3aa87cf..af32cd3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2011-05-21  Bruno Haible  <bruno@clisp.org>
+
+       euidaccess: Respect rules for use of AC_LIBOBJ.
+       * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
+       AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
+       from here...
+       * modules/euidaccess (configure.ac): ... to here.
+
 2011-05-06  Bruno Haible  <bruno@clisp.org>
 
        error: Move AC_LIBOBJ invocations to module description.
index 5d0d68d..5066e62 100644 (file)
@@ -1,4 +1,4 @@
-# euidaccess.m4 serial 12
+# euidaccess.m4 serial 13
 dnl Copyright (C) 2002-2011 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -22,10 +22,9 @@ AC_DEFUN([gl_FUNC_EUIDACCESS],
   dnl Persuade glibc <unistd.h> to declare euidaccess().
   AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
 
-  AC_REPLACE_FUNCS([euidaccess])
+  AC_CHECK_FUNCS([euidaccess])
   if test $ac_cv_func_euidaccess = no; then
     HAVE_EUIDACCESS=0
-    gl_PREREQ_EUIDACCESS
   fi
 ])
 
index 56bcf28..a339e45 100644 (file)
@@ -14,6 +14,10 @@ sys_stat        [test $HAVE_EUIDACCESS = 0]
 
 configure.ac:
 gl_FUNC_EUIDACCESS
+if test $HAVE_EUIDACCESS = 0; then
+  AC_LIBOBJ([euidaccess])
+  gl_PREREQ_EUIDACCESS
+fi
 gl_UNISTD_MODULE_INDICATOR([euidaccess])
 
 Makefile.am: