mbrtowc: Respect rules for use of AC_LIBOBJ.
authorBruno Haible <bruno@clisp.org>
Sat, 21 May 2011 12:15:13 +0000 (14:15 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:06:26 +0000 (00:06 +0200)
* m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
invocations from here...
* modules/mbrtowc (configure.ac): ... to here.

ChangeLog
m4/mbrtowc.m4
modules/mbrtowc

index 11a1b8b8eda54b1dce47709727913736d9df2ae7..791f4a49e4c6c3a20b967eb5035955b72923d65e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-05-21  Bruno Haible  <bruno@clisp.org>
+
+       mbrtowc: Respect rules for use of AC_LIBOBJ.
+       * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
+       invocations from here...
+       * modules/mbrtowc (configure.ac): ... to here.
+
 2011-05-21  Bruno Haible  <bruno@clisp.org>
 
        malloc-*: Move AC_LIBOBJ invocations to module description.
index b5b6aaa03102a099446a4dbc9b0050f23e4391e0..b9e01e7a0e95d43f7fe865c41e5de8ba4fd70711 100644 (file)
@@ -1,4 +1,4 @@
-# mbrtowc.m4 serial 23
+# mbrtowc.m4 serial 24
 dnl Copyright (C) 2001-2002, 2004-2005, 2008-2011 Free Software Foundation,
 dnl Inc.
 dnl This file is free software; the Free Software Foundation
@@ -53,10 +53,6 @@ AC_DEFUN([gl_FUNC_MBRTOWC],
       esac
     fi
   fi
-  if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
-    AC_LIBOBJ([mbrtowc])
-    gl_PREREQ_MBRTOWC
-  fi
 ])
 
 dnl Test whether mbsinit() and mbrtowc() need to be overridden in a way that
index 85cde1e394ede5d3d9f7c29c5d699aa38534e3bb..42e8de4d9b5b9e03a2e4e7be380441dc0e92940f 100644 (file)
@@ -20,6 +20,10 @@ verify          [test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1]
 
 configure.ac:
 gl_FUNC_MBRTOWC
+if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
+  AC_LIBOBJ([mbrtowc])
+  gl_PREREQ_MBRTOWC
+fi
 gl_WCHAR_MODULE_INDICATOR([mbrtowc])
 
 Makefile.am: