fcntl: Move AC_LIBOBJ invocation to module description.
authorBruno Haible <bruno@clisp.org>
Mon, 25 Jul 2011 22:39:35 +0000 (00:39 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 25 Jul 2011 22:39:35 +0000 (00:39 +0200)
* m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
* modules/fcntl (configure.ac): Invoke AC_LIBOBJ.

ChangeLog
m4/fcntl.m4
modules/fcntl

index f776929..3ba89e5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2011-07-25  Bruno Haible  <bruno@clisp.org>
 
+       fcntl: Move AC_LIBOBJ invocation to module description.
+       * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
+       * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
+
        fcntl: Remove call-in from fchdir.m4.
        * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
        * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
index 1970446..a92e51c 100644 (file)
@@ -92,5 +92,4 @@ AC_DEFUN([gl_REPLACE_FCNTL],
   else
     REPLACE_FCNTL=1
   fi
-  AC_LIBOBJ([fcntl])
 ])
index 855ee9f..4c30e9e 100644 (file)
@@ -13,6 +13,9 @@ getdtablesize   [test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1]
 
 configure.ac:
 gl_FUNC_FCNTL
+if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then
+  AC_LIBOBJ([fcntl])
+fi
 gl_FCNTL_MODULE_INDICATOR([fcntl])
 
 Makefile.am: