free: Move AC_LIBOBJ invocations to module description.
authorBruno Haible <bruno@clisp.org>
Sat, 7 May 2011 10:46:04 +0000 (12:46 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:06:00 +0000 (00:06 +0200)
* m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
invocations from here...
* modules/free (configure.ac): ... to here.

ChangeLog
m4/free.m4
modules/free

index 3d4ac35..30a32c8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2011-05-07  Bruno Haible  <bruno@clisp.org>
 
+       free: Move AC_LIBOBJ invocations to module description.
+       * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
+       invocations from here...
+       * modules/free (configure.ac): ... to here.
+
+2011-05-07  Bruno Haible  <bruno@clisp.org>
+
        freadable: Move AC_LIBOBJ invocations to module description.
        * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
        here...
index 702e805..24bbbb1 100644 (file)
@@ -30,7 +30,6 @@ AC_DEFUN([gl_FUNC_FREE],
        [gl_cv_func_free=no])])
 
   if test $gl_cv_func_free = no; then
-    AC_LIBOBJ([free])
     AC_DEFINE([free], [rpl_free],
       [Define to rpl_free if the replacement function should be used.])
   fi
index 26ef70b..ec91f88 100644 (file)
@@ -12,6 +12,10 @@ Depends-on:
 
 configure.ac:
 gl_FUNC_FREE
+if test $gl_cv_func_free = no; then
+  AC_LIBOBJ([free])
+  gl_PREREQ_FREE
+fi
 
 Makefile.am: