mbtowc: Move AC_LIBOBJ invocations to module description.
authorBruno Haible <bruno@clisp.org>
Sat, 21 May 2011 12:27:19 +0000 (14:27 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:06:28 +0000 (00:06 +0200)
* m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
invocations from here...
* modules/mbtowc (configure.ac): ... to here.

ChangeLog
m4/mbtowc.m4
modules/mbtowc

index b017548c5f3e75d856ec10ace756ba9639080143..af0d43ea8a3342252b1a7d690857ffec4d639908 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-05-21  Bruno Haible  <bruno@clisp.org>
+
+       mbtowc: Move AC_LIBOBJ invocations to module description.
+       * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
+       invocations from here...
+       * modules/mbtowc (configure.ac): ... to here.
+
 2011-05-21  Bruno Haible  <bruno@clisp.org>
 
        mbsrtowcs: Move AC_LIBOBJ invocations to module description.
index 9215892f6fc87a5cd019898afaa28b65ca20a592..7793a0071113d6e43e98bebe15ed0e7cedd020b0 100644 (file)
@@ -1,4 +1,4 @@
-# mbtowc.m4 serial 1
+# mbtowc.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_MBTOWC],
   if false; then
     REPLACE_MBTOWC=1
   fi
-  if test $REPLACE_MBTOWC = 1; then
-    AC_LIBOBJ([mbtowc])
-    gl_PREREQ_MBTOWC
-  fi
 ])
 
 # Prerequisites of lib/mbtowc.c.
index 02b0c88dcf489843b26e3ff5de6e57d58e15de2f..c23323b3e8d108b64d1ceb6a5d975265426f3a19 100644 (file)
@@ -13,6 +13,10 @@ wchar           [test $REPLACE_MBTOWC = 1]
 
 configure.ac:
 gl_FUNC_MBTOWC
+if test $REPLACE_MBTOWC = 1; then
+  AC_LIBOBJ([mbtowc])
+  gl_PREREQ_MBTOWC
+fi
 gl_STDLIB_MODULE_INDICATOR([mbtowc])
 
 Makefile.am: