changeset 15103:c169efecd827

strcspn: Move AC_LIBOBJ invocations to module description. * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from here... * modules/strcspn (configure.ac): ... to here.
author Bruno Haible <bruno@clisp.org>
date Sun, 22 May 2011 13:10:05 +0200
parents 941b55762d4d
children 037e4c930d72
files ChangeLog m4/strcspn.m4 modules/strcspn
diffstat 3 files changed, 14 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2011-05-22  Bruno Haible  <bruno@clisp.org>
+
+	strcspn: Move AC_LIBOBJ invocations to module description.
+	* m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
+	AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
+	here...
+	* modules/strcspn (configure.ac): ... to here.
+
 2011-05-22  Bruno Haible  <bruno@clisp.org>
 
 	strchrnul: Move AC_LIBOBJ invocations to module description.
--- a/m4/strcspn.m4
+++ b/m4/strcspn.m4
@@ -1,4 +1,4 @@
-# strcspn.m4 serial 3
+# strcspn.m4 serial 4
 dnl Copyright (C) 2002-2003, 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,
@@ -6,10 +6,7 @@
 
 AC_DEFUN([gl_FUNC_STRCSPN],
 [
-  AC_REPLACE_FUNCS([strcspn])
-  if test $ac_cv_func_strcspn = no; then
-    gl_PREREQ_STRCSPN
-  fi
+  AC_CHECK_FUNCS([strcspn])
 ])
 
 # Prerequisites of lib/strcspn.c.
--- a/modules/strcspn
+++ b/modules/strcspn
@@ -15,6 +15,10 @@
 
 configure.ac:
 gl_FUNC_STRCSPN
+if test $ac_cv_func_strcspn = no; then
+  AC_LIBOBJ([strcspn])
+  gl_PREREQ_STRCSPN
+fi
 
 Makefile.am: