changeset 15110:990d9ce9c393

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.
author Bruno Haible <bruno@clisp.org>
date Sun, 22 May 2011 13:44:17 +0200
parents 0d681ec553c1
children 1dc188c0c5c5
files ChangeLog m4/strsep.m4 modules/strsep
diffstat 3 files changed, 14 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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.
--- a/m4/strsep.m4
+++ b/m4/strsep.m4
@@ -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_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
 ])
 
--- a/modules/strsep
+++ b/modules/strsep
@@ -12,6 +12,10 @@
 
 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: