changeset 15158:72916c2ab9a1

wcsrtombs: Move AC_LIBOBJ invocations to module description. * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and gl_PREREQ_WCSRTOMBS invocations from here... * modules/wcsrtombs (configure.ac): ... to here.
author Bruno Haible <bruno@clisp.org>
date Sun, 22 May 2011 18:35:00 +0200
parents 6105cf25da6c
children 1e0e6481a452
files ChangeLog m4/wcsrtombs.m4 modules/wcsrtombs
diffstat 3 files changed, 13 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-05-22  Bruno Haible  <bruno@clisp.org>
+
+	wcsrtombs: Move AC_LIBOBJ invocations to module description.
+	* m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
+	gl_PREREQ_WCSRTOMBS invocations from here...
+	* modules/wcsrtombs (configure.ac): ... to here.
+
 2011-05-22  Bruno Haible  <bruno@clisp.org>
 
 	wcsrchr: Move AC_LIBOBJ invocations to module description.
--- a/m4/wcsrtombs.m4
+++ b/m4/wcsrtombs.m4
@@ -1,4 +1,4 @@
-# wcsrtombs.m4 serial 9
+# wcsrtombs.m4 serial 10
 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,
@@ -34,11 +34,6 @@
       esac
     fi
   fi
-  if test $HAVE_WCSRTOMBS = 0 || test $REPLACE_WCSRTOMBS = 1; then
-    AC_LIBOBJ([wcsrtombs])
-    AC_LIBOBJ([wcsrtombs-state])
-    gl_PREREQ_WCSRTOMBS
-  fi
 ])
 
 dnl Test whether the wcsrtombs implementation stores a non-NULL source pointer
--- a/modules/wcsrtombs
+++ b/modules/wcsrtombs
@@ -20,6 +20,11 @@
 
 configure.ac:
 gl_FUNC_WCSRTOMBS
+if test $HAVE_WCSRTOMBS = 0 || test $REPLACE_WCSRTOMBS = 1; then
+  AC_LIBOBJ([wcsrtombs])
+  AC_LIBOBJ([wcsrtombs-state])
+  gl_PREREQ_WCSRTOMBS
+fi
 gl_WCHAR_MODULE_INDICATOR([wcsrtombs])
 
 Makefile.am: