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

ChangeLog
m4/wcstok.m4
modules/wcstok

index d1335646f70ebf5843177f01a32145432d4617cd..5a838af00cc020d354d09845c54f24b7f1f19114 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2011-05-22  Bruno Haible  <bruno@clisp.org>
+
+       wcstok: Move AC_LIBOBJ invocations to module description.
+       * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
+       * modules/wcstok (configure.ac): ... to here.
+
 2011-05-22  Bruno Haible  <bruno@clisp.org>
 
        wcsstr: Move AC_LIBOBJ invocations to module description.
index 4c91c4f6fab5995ceaffd332c5a07f3dc4a1a9e5..01b030c34fd4ad6961021e65539b5fc85b99a790 100644 (file)
@@ -1,4 +1,4 @@
-# wcstok.m4 serial 1
+# wcstok.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_WCSTOK],
   AC_CHECK_FUNCS_ONCE([wcstok])
   if test $ac_cv_func_wcstok = no; then
     HAVE_WCSTOK=0
-    AC_LIBOBJ([wcstok])
   fi
 ])
index dc78e135bc4f86570175785105dbd14dab5d6074..f7b1ed67359b2459b66dfb8e06250d64d837298c 100644 (file)
@@ -13,6 +13,9 @@ wcspbrk         [test $HAVE_WCSTOK = 0]
 
 configure.ac:
 gl_FUNC_WCSTOK
+if test $HAVE_WCSTOK = 0; then
+  AC_LIBOBJ([wcstok])
+fi
 gl_WCHAR_MODULE_INDICATOR([wcstok])
 
 Makefile.am: