rmdir: Respect rules for use of AC_LIBOBJ.
authorBruno Haible <bruno@clisp.org>
Sat, 21 May 2011 18:54:55 +0000 (20:54 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:06:44 +0000 (00:06 +0200)
* m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
* modules/rmdir (configure.ac): ... to here.

ChangeLog
m4/rmdir.m4
modules/rmdir

index 24caa76..4b21cf3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2011-05-21  Bruno Haible  <bruno@clisp.org>
 
+       rmdir: Respect rules for use of AC_LIBOBJ.
+       * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
+       * modules/rmdir (configure.ac): ... to here.
+
+2011-05-21  Bruno Haible  <bruno@clisp.org>
+
        renameat: Move AC_LIBOBJ invocations to module description.
        * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
        here...
index 41705a1..5284c7e 100644 (file)
@@ -1,4 +1,4 @@
-# rmdir.m4 serial 10
+# rmdir.m4 serial 11
 dnl Copyright (C) 2002, 2005, 2009-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,
@@ -30,6 +30,5 @@ AC_DEFUN([gl_FUNC_RMDIR],
      rm -rf conftest.dir conftest.file])
   if test x"$gl_cv_func_rmdir_works" != xyes; then
     REPLACE_RMDIR=1
-    AC_LIBOBJ([rmdir])
   fi
 ])
index 95e7b1d..59a9dba 100644 (file)
@@ -12,6 +12,9 @@ sys_stat        [test $REPLACE_RMDIR = 1]
 
 configure.ac:
 gl_FUNC_RMDIR
+if test $REPLACE_RMDIR = 1; then
+  AC_LIBOBJ([rmdir])
+fi
 gl_UNISTD_MODULE_INDICATOR([rmdir])
 
 Makefile.am: