memchr: Respect rules for use of AC_LIBOBJ.
authorBruno Haible <bruno@clisp.org>
Sat, 21 May 2011 12:46:30 +0000 (14:46 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:06:28 +0000 (00:06 +0200)
* m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
invocations from here...
* modules/memchr (configure.ac): ... to here.

ChangeLog
m4/memchr.m4
modules/memchr

index af0d43e..c7398b5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2011-05-21  Bruno Haible  <bruno@clisp.org>
 
+       memchr: Respect rules for use of AC_LIBOBJ.
+       * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
+       invocations from here...
+       * modules/memchr (configure.ac): ... to here.
+
+2011-05-21  Bruno Haible  <bruno@clisp.org>
+
        mbtowc: Move AC_LIBOBJ invocations to module description.
        * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
        invocations from here...
index a544e2b..f6dc3e7 100644 (file)
@@ -1,4 +1,4 @@
-# memchr.m4 serial 11
+# memchr.m4 serial 12
 dnl Copyright (C) 2002-2004, 2009-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,
@@ -80,10 +80,6 @@ AC_DEFUN_ONCE([gl_FUNC_MEMCHR],
       REPLACE_MEMCHR=1
     fi
   fi
-  if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
-    AC_LIBOBJ([memchr])
-    gl_PREREQ_MEMCHR
-  fi
 ])
 
 # Prerequisites of lib/memchr.c.
index 229b3a5..ed80e0c 100644 (file)
@@ -14,6 +14,10 @@ memchr-obsolete
 
 configure.ac:
 gl_FUNC_MEMCHR
+if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
+  AC_LIBOBJ([memchr])
+  gl_PREREQ_MEMCHR
+fi
 gl_STRING_MODULE_INDICATOR([memchr])
 
 Makefile.am: