* 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-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.
-# 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,
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
])
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: