From: Bruno Haible Date: Sat, 21 May 2011 10:40:54 +0000 (+0200) Subject: euidaccess: Respect rules for use of AC_LIBOBJ. X-Git-Tag: v0.1~2591 X-Git-Url: http://erislabs.net/gitweb/?a=commitdiff_plain;h=fdaaba379e9cba9378b72d601d8660911b2e08bd;p=gnulib.git 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. --- diff --git a/ChangeLog b/ChangeLog index 3aa87cffa..af32cd358 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2011-05-21 Bruno Haible + + 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 error: Move AC_LIBOBJ invocations to module description. diff --git a/m4/euidaccess.m4 b/m4/euidaccess.m4 index 5d0d68d28..5066e62e0 100644 --- a/m4/euidaccess.m4 +++ b/m4/euidaccess.m4 @@ -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 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 ]) diff --git a/modules/euidaccess b/modules/euidaccess index 56bcf28f1..a339e457d 100644 --- a/modules/euidaccess +++ b/modules/euidaccess @@ -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: