strpbrk: Move AC_LIBOBJ invocations to module description.
authorBruno Haible <bruno@clisp.org>
Sun, 22 May 2011 11:39:57 +0000 (13:39 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:06:51 +0000 (00:06 +0200)
* m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
here...
* modules/strpbrk (configure.ac): ... to here.

ChangeLog
m4/strpbrk.m4
modules/strpbrk

index d2bf73d..5ab6346 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
 2011-05-22  Bruno Haible  <bruno@clisp.org>
 
+       strpbrk: Move AC_LIBOBJ invocations to module description.
+       * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
+       AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
+       here...
+       * modules/strpbrk (configure.ac): ... to here.
+
+2011-05-22  Bruno Haible  <bruno@clisp.org>
+
        strnlen: Move AC_LIBOBJ invocations to module description.
        * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
        invocations from here...
index 2d2f041..40537ca 100644 (file)
@@ -1,4 +1,4 @@
-# strpbrk.m4 serial 5
+# strpbrk.m4 serial 6
 dnl Copyright (C) 2002-2003, 2007, 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,
@@ -7,10 +7,9 @@ dnl with or without modifications, as long as this notice is preserved.
 AC_DEFUN([gl_FUNC_STRPBRK],
 [
   AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS])
-  AC_REPLACE_FUNCS([strpbrk])
+  AC_CHECK_FUNCS([strpbrk])
   if test $ac_cv_func_strpbrk = no; then
     HAVE_STRPBRK=0
-    gl_PREREQ_STRPBRK
   fi
 ])
 
index f0f1a85..3433e57 100644 (file)
@@ -16,6 +16,10 @@ string
 
 configure.ac:
 gl_FUNC_STRPBRK
+if test $HAVE_STRPBRK = 0; then
+  AC_LIBOBJ([strpbrk])
+  gl_PREREQ_STRPBRK
+fi
 gl_STRING_MODULE_INDICATOR([strpbrk])
 
 Makefile.am: