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

ChangeLog
m4/strsep.m4
modules/strsep

index f51c13206a3c33d0b5431fd5132ee0be90fc70e6..aa32356140a4429b28f6833bef14ec8093ffc3a9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2011-05-22  Bruno Haible  <bruno@clisp.org>
+
+       strsep: Move AC_LIBOBJ invocations to module description.
+       * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
+       AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
+       here...
+       * modules/strsep (configure.ac): ... to here.
+
 2011-05-22  Bruno Haible  <bruno@clisp.org>
 
        strptime: Move AC_LIBOBJ invocations to module description.
index 4ea187c5f0a2898af787aa51c49a2249aa757d2c..24e229d6268477ddfbad4d1da38ebde8150904ed 100644 (file)
@@ -1,4 +1,4 @@
-# strsep.m4 serial 9
+# strsep.m4 serial 10
 dnl Copyright (C) 2002-2004, 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,
@@ -13,10 +13,9 @@ AC_DEFUN([gl_FUNC_STRSEP],
   AC_REQUIRE([AC_C_RESTRICT])
 
   AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS])
-  AC_REPLACE_FUNCS([strsep])
+  AC_CHECK_FUNCS([strsep])
   if test $ac_cv_func_strsep = no; then
     HAVE_STRSEP=0
-    gl_PREREQ_STRSEP
   fi
 ])
 
index eaa30329de89ce1800e4b652171e67967c97a2c2..825cd197a62cb92a5461e2e2af38940e92d0c6dc 100644 (file)
@@ -12,6 +12,10 @@ strpbrk         [test $HAVE_STRSEP = 0]
 
 configure.ac:
 gl_FUNC_STRSEP
+if test $HAVE_STRSEP = 0; then
+  AC_LIBOBJ([strsep])
+  gl_PREREQ_STRSEP
+fi
 gl_STRING_MODULE_INDICATOR([strsep])
 
 Makefile.am: