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 773cd34..9a336c6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 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.
        * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
        invocation from here...
index b23c0ef..0d84e84 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 90f6e84..ef3c769 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: