lchown: Move AC_LIBOBJ invocations to module description.
authorBruno Haible <bruno@clisp.org>
Sat, 21 May 2011 10:59:37 +0000 (12:59 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:06:24 +0000 (00:06 +0200)
* m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
* modules/lchown (configure.ac): ... to here.

ChangeLog
m4/lchown.m4
modules/lchown

index ffaa7cb0ad70a02ae002da561ebf89f2f0c4fdb1..263c496c510f0181a15f883c2c447e62df9a17ab 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-05-21  Bruno Haible  <bruno@clisp.org>
+
+       lchown: Move AC_LIBOBJ invocations to module description.
+       * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
+       AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
+       * modules/lchown (configure.ac): ... to here.
+
 2011-05-21  Bruno Haible  <bruno@clisp.org>
 
        iswctype: Move AC_LIBOBJ invocations to module description.
index b567d81b43b23d6cba645530d8733db41e5e8655..21ac47f185f887bebdfd2653088f0a757ef723b6 100644 (file)
@@ -1,4 +1,4 @@
-# serial 15
+# serial 16
 # Determine whether we need the lchown wrapper.
 
 dnl Copyright (C) 1998, 2001, 2003-2007, 2009-2011 Free Software Foundation,
@@ -17,13 +17,12 @@ AC_DEFUN([gl_FUNC_LCHOWN],
   AC_REQUIRE([gl_UNISTD_H_DEFAULTS])
   AC_REQUIRE([gl_FUNC_CHOWN])
   AC_CHECK_FUNCS_ONCE([lchmod])
-  AC_REPLACE_FUNCS([lchown])
+  AC_CHECK_FUNCS([lchown])
   if test $ac_cv_func_lchown = no; then
     HAVE_LCHOWN=0
   elif test "$gl_cv_func_chown_slash_works" != yes \
       || test "$gl_cv_func_chown_ctime_works" != yes; then
     dnl Trailing slash and ctime bugs in chown also occur in lchown.
-    AC_LIBOBJ([lchown])
     REPLACE_LCHOWN=1
   fi
 ])
index d9d140e3c49f362635e4884f0e56e607ca4fa94b..1ddecca4c79e279fc3c47197188fa7524535b4be 100644 (file)
@@ -15,6 +15,9 @@ sys_stat        [test $HAVE_LCHOWN = 0 || test $REPLACE_LCHOWN = 1]
 
 configure.ac:
 gl_FUNC_LCHOWN
+if test $HAVE_LCHOWN = 0 || test $REPLACE_LCHOWN = 1; then
+  AC_LIBOBJ([lchown])
+fi
 gl_UNISTD_MODULE_INDICATOR([lchown])
 
 Makefile.am: