wcpcpy: Move AC_LIBOBJ invocations to module description.
authorBruno Haible <bruno@clisp.org>
Sun, 22 May 2011 15:57:36 +0000 (17:57 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:07:04 +0000 (00:07 +0200)
* m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
* modules/wcpcpy (configure.ac): ... to here.

ChangeLog
m4/wcpcpy.m4
modules/wcpcpy

index 773cd340011d509560e3e37ebba3565ac714e244..9a336c6d1056cb10f4195c5eacb1472c2d9fe375 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2011-05-22  Bruno Haible  <bruno@clisp.org>
+
+       wcpcpy: Move AC_LIBOBJ invocations to module description.
+       * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
+       * modules/wcpcpy (configure.ac): ... to here.
+
 2011-05-22  Bruno Haible  <bruno@clisp.org>
 
        waitpid: Move AC_LIBOBJ invocations to module description.
index b23c0ef9ba01725abe9853b58316f891e53e6977..0d84e84f86389c6d462535a178754e46333d2280 100644 (file)
@@ -1,4 +1,4 @@
-# wcpcpy.m4 serial 2
+# wcpcpy.m4 serial 3
 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,
@@ -14,6 +14,5 @@ AC_DEFUN([gl_FUNC_WCPCPY],
   AC_CHECK_FUNCS_ONCE([wcpcpy])
   if test $ac_cv_func_wcpcpy = no; then
     HAVE_WCPCPY=0
-    AC_LIBOBJ([wcpcpy])
   fi
 ])
index 90f6e849d6da989edb150445e7069984ac91327b..ef3c769708c00f1a032b0c6202395ed68d07d0ea 100644 (file)
@@ -18,6 +18,9 @@ wchar
 
 configure.ac:
 gl_FUNC_WCPCPY
+if test $HAVE_WCPCPY = 0; then
+  AC_LIBOBJ([wcpcpy])
+fi
 gl_WCHAR_MODULE_INDICATOR([wcpcpy])
 
 Makefile.am: