remove: Move AC_LIBOBJ invocations to module description.
authorBruno Haible <bruno@clisp.org>
Sat, 21 May 2011 16:28:15 +0000 (18:28 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:06:43 +0000 (00:06 +0200)
* m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
here...
* modules/remove (configure.ac): ... to here.

ChangeLog
m4/remove.m4
modules/remove

index 49a1c9ff3e0f968576905d5124d2c064cd9dd138..c1d64b89399c6a141c068c5677031440a5255c0f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-05-21  Bruno Haible  <bruno@clisp.org>
+
+       remove: Move AC_LIBOBJ invocations to module description.
+       * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
+       here...
+       * modules/remove (configure.ac): ... to here.
+
 2011-05-21  Bruno Haible  <bruno@clisp.org>
 
        relocatable-lib: Move AC_LIBOBJ invocations to module description.
index 1c314ea75fd4789967add6bd05503767fc490d6d..bc8f678935dff7ce7191cd562059ba881ef25e1a 100644 (file)
@@ -1,4 +1,4 @@
-# remove.m4 serial 2
+# remove.m4 serial 3
 dnl Copyright (C) 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,
@@ -14,7 +14,6 @@ AC_DEFUN([gl_FUNC_REMOVE],
     dnl If either underlying syscall is broken, then remove likely has
     dnl the same bug; blindly use our replacement.
     REPLACE_REMOVE=1
-    AC_LIBOBJ([remove])
   else
     dnl C89 requires remove(), but only POSIX requires it to handle
     dnl directories.  On mingw, directories fails with EPERM.
@@ -32,8 +31,7 @@ AC_DEFUN([gl_FUNC_REMOVE],
           esac])
        rm -rf conftest.dir])
     case $gl_cv_func_remove_dir_works in
-      *no*) REPLACE_REMOVE=1
-        AC_LIBOBJ([remove]);;
+      *no*) REPLACE_REMOVE=1;;
     esac
   fi
 ])
index 472380189345f7a55b8cf309ab0219755fc4c30c..0caf48a7ff3584e1266b134e8c69388d35e4e254 100644 (file)
@@ -12,6 +12,9 @@ unlink          [test $REPLACE_REMOVE = 1]
 
 configure.ac:
 gl_FUNC_REMOVE
+if test $REPLACE_REMOVE = 1; then
+  AC_LIBOBJ([remove])
+fi
 gl_STDIO_MODULE_INDICATOR([remove])
 
 Makefile.am: