obstack-printf*: Move AC_LIBOBJ invocations to module description.
authorBruno Haible <bruno@clisp.org>
Sat, 21 May 2011 14:33:49 +0000 (16:33 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:06:35 +0000 (00:06 +0200)
* m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
invocation from here...
* modules/obstack-printf (configure.ac): ... to here.
* modules/obstack-printf-posix (configure.ac): ... and here.

ChangeLog
m4/obstack-printf.m4
modules/obstack-printf
modules/obstack-printf-posix

index 8bda197..77ea926 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
 2011-05-21  Bruno Haible  <bruno@clisp.org>
 
+       obstack-printf*: Move AC_LIBOBJ invocations to module description.
+       * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
+       invocation from here...
+       * modules/obstack-printf (configure.ac): ... to here.
+       * modules/obstack-printf-posix (configure.ac): ... and here.
+
+2011-05-21  Bruno Haible  <bruno@clisp.org>
+
        nl_langinfo: Move AC_LIBOBJ invocations to module description.
        * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
        from here...
index d07af21..20880af 100644 (file)
@@ -1,4 +1,4 @@
-# obstack-printf.m4 serial 3
+# obstack-printf.m4 serial 4
 dnl Copyright (C) 2008-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,
@@ -25,7 +25,6 @@ AC_DEFUN([gl_FUNC_OBSTACK_PRINTF],
 AC_DEFUN([gl_REPLACE_OBSTACK_PRINTF],
 [
   AC_REQUIRE([gl_STDIO_H_DEFAULTS])
-  AC_LIBOBJ([obstack_printf])
   if test $ac_cv_func_obstack_printf = yes; then
     REPLACE_OBSTACK_PRINTF=1
   fi
index 3604ce2..324dde6 100644 (file)
@@ -13,6 +13,9 @@ extensions
 
 configure.ac:
 gl_FUNC_OBSTACK_PRINTF
+if test $ac_cv_func_obstack_printf = no || test $REPLACE_OBSTACK_PRINTF = 1; then
+  AC_LIBOBJ([obstack_printf])
+fi
 gl_STDIO_MODULE_INDICATOR([obstack-printf])
 
 Makefile.am:
index 306a3df..df56087 100644 (file)
@@ -20,6 +20,9 @@ extensions
 
 configure.ac:
 gl_FUNC_OBSTACK_PRINTF_POSIX
+if test $ac_cv_func_obstack_printf = no || test $REPLACE_OBSTACK_PRINTF = 1; then
+  AC_LIBOBJ([obstack_printf])
+fi
 gl_STDIO_MODULE_INDICATOR([obstack-printf-posix])
 
 Makefile.am: