stpncpy: Move AC_LIBOBJ invocations to module description.
authorBruno Haible <bruno@clisp.org>
Sun, 22 May 2011 10:51:13 +0000 (12:51 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:06:48 +0000 (00:06 +0200)
* m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
here...
* modules/stpncpy (configure.ac): ... to here.

ChangeLog
m4/stpncpy.m4
modules/stpncpy

index 93b2ddf411397ba3ffc86b367a01c085b8d445a9..ed3e21f564b849e9145ebb51465a673ad7935e4d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-05-22  Bruno Haible  <bruno@clisp.org>
+
+       stpncpy: Move AC_LIBOBJ invocations to module description.
+       * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
+       here...
+       * modules/stpncpy (configure.ac): ... to here.
+
 2011-05-22  Bruno Haible  <bruno@clisp.org>
 
        stpcpy: Move AC_LIBOBJ invocations to module description.
index cc7796a5590a11465ee317143efec7f38cd643ee..9c9b77be492b27195135136257bac628e1af28e4 100644 (file)
@@ -1,4 +1,4 @@
-# stpncpy.m4 serial 13
+# stpncpy.m4 serial 14
 dnl Copyright (C) 2002-2003, 2005-2007, 2009-2011 Free Software Foundation,
 dnl Inc.
 dnl This file is free software; the Free Software Foundation
@@ -78,13 +78,9 @@ int main ()
         [Define if you have the stpncpy() function and it works.])
     else
       REPLACE_STPNCPY=1
-      AC_LIBOBJ([stpncpy])
-      gl_PREREQ_STPNCPY
     fi
   else
     HAVE_STPNCPY=0
-    AC_LIBOBJ([stpncpy])
-    gl_PREREQ_STPNCPY
   fi
 ])
 
index ccbd2537070d2f2ca8ab8c4c21e8c8622bf08495..cfad9aabc9936dafb16cfcd6250a6d8544bab32f 100644 (file)
@@ -11,6 +11,10 @@ string
 
 configure.ac:
 gl_FUNC_STPNCPY
+if test $HAVE_STPNCPY = 0 || test $REPLACE_STPNCPY = 1; then
+  AC_LIBOBJ([stpncpy])
+  gl_PREREQ_STPNCPY
+fi
 gl_STRING_MODULE_INDICATOR([stpncpy])
 
 Makefile.am: