wctomb: Move AC_LIBOBJ invocations to module description.
authorBruno Haible <bruno@clisp.org>
Sun, 22 May 2011 16:48:57 +0000 (18:48 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:07:13 +0000 (00:07 +0200)
* m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
invocations from here...
* modules/wctomb (configure.ac): ... to here.

ChangeLog
m4/wctomb.m4
modules/wctomb

index 4e1d228..d4590ac 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2011-05-22  Bruno Haible  <bruno@clisp.org>
 
+       wctomb: Move AC_LIBOBJ invocations to module description.
+       * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
+       invocations from here...
+       * modules/wctomb (configure.ac): ... to here.
+
+2011-05-22  Bruno Haible  <bruno@clisp.org>
+
        wctob: Move AC_LIBOBJ invocations to module description.
        * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
        gl_PREREQ_WCTOB invocations from here...
index bc21b5b..ee16a7e 100644 (file)
@@ -1,4 +1,4 @@
-# wctomb.m4 serial 1
+# wctomb.m4 serial 2
 dnl Copyright (C) 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,
@@ -11,10 +11,6 @@ AC_DEFUN([gl_FUNC_WCTOMB],
   if false; then
     REPLACE_WCTOMB=1
   fi
-  if test $REPLACE_WCTOMB = 1; then
-    AC_LIBOBJ([wctomb])
-    gl_PREREQ_WCTOMB
-  fi
 ])
 
 # Prerequisites of lib/wctomb.c.
index 5077005..00d59bf 100644 (file)
@@ -13,6 +13,10 @@ wchar           [test $REPLACE_WCTOMB = 1]
 
 configure.ac:
 gl_FUNC_WCTOMB
+if test $REPLACE_WCTOMB = 1; then
+  AC_LIBOBJ([wctomb])
+  gl_PREREQ_WCTOMB
+fi
 gl_STDLIB_MODULE_INDICATOR([wctomb])
 
 Makefile.am: