changeset 15153:eb8992dfd014

wcsncpy: Move AC_LIBOBJ invocations to module description. * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from here... * modules/wcsncpy (configure.ac): ... to here.
author Bruno Haible <bruno@clisp.org>
date Sun, 22 May 2011 18:26:24 +0200
parents ad61696b6087
children 4b3d49c7a7dd
files ChangeLog m4/wcsncpy.m4 modules/wcsncpy
diffstat 3 files changed, 11 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-05-22  Bruno Haible  <bruno@clisp.org>
+
+	wcsncpy: Move AC_LIBOBJ invocations to module description.
+	* m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
+	here...
+	* modules/wcsncpy (configure.ac): ... to here.
+
 2011-05-22  Bruno Haible  <bruno@clisp.org>
 
 	wcsncmp: Move AC_LIBOBJ invocations to module description.
--- a/m4/wcsncpy.m4
+++ b/m4/wcsncpy.m4
@@ -1,4 +1,4 @@
-# wcsncpy.m4 serial 1
+# wcsncpy.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_CHECK_FUNCS_ONCE([wcsncpy])
   if test $ac_cv_func_wcsncpy = no; then
     HAVE_WCSNCPY=0
-    AC_LIBOBJ([wcsncpy])
   fi
 ])
--- a/modules/wcsncpy
+++ b/modules/wcsncpy
@@ -17,6 +17,9 @@
 
 configure.ac:
 gl_FUNC_WCSNCPY
+if test $HAVE_WCSNCPY = 0; then
+  AC_LIBOBJ([wcsncpy])
+fi
 gl_WCHAR_MODULE_INDICATOR([wcsncpy])
 
 Makefile.am: