wcschr: Move AC_LIBOBJ invocations to module description.
authorBruno Haible <bruno@clisp.org>
Sun, 22 May 2011 16:09:19 +0000 (18:09 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:07:06 +0000 (00:07 +0200)
* m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
* modules/wcschr (configure.ac): ... to here.

ChangeLog
m4/wcschr.m4
modules/wcschr

index 1d87fb1..9d721c7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2011-05-22  Bruno Haible  <bruno@clisp.org>
 
+       wcschr: Move AC_LIBOBJ invocations to module description.
+       * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
+       * modules/wcschr (configure.ac): ... to here.
+
+2011-05-22  Bruno Haible  <bruno@clisp.org>
+
        wcscat: Move AC_LIBOBJ invocations to module description.
        * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
        * modules/wcscat (configure.ac): ... to here.
index 1813a06..7f5301a 100644 (file)
@@ -1,4 +1,4 @@
-# wcschr.m4 serial 1
+# wcschr.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,
@@ -10,6 +10,5 @@ AC_DEFUN([gl_FUNC_WCSCHR],
   AC_CHECK_FUNCS_ONCE([wcschr])
   if test $ac_cv_func_wcschr = no; then
     HAVE_WCSCHR=0
-    AC_LIBOBJ([wcschr])
   fi
 ])
index a84a91a..756d057 100644 (file)
@@ -17,6 +17,9 @@ wchar
 
 configure.ac:
 gl_FUNC_WCSCHR
+if test $HAVE_WCSCHR = 0; then
+  AC_LIBOBJ([wcschr])
+fi
 gl_WCHAR_MODULE_INDICATOR([wcschr])
 
 Makefile.am: