From 29a365e642a80174ee5ccb226d01d6bb6fa16359 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 22 May 2011 13:44:17 +0200 Subject: [PATCH] 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. --- ChangeLog | 8 ++++++++ m4/strsep.m4 | 5 ++--- modules/strsep | 4 ++++ 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index f51c13206a..aa32356140 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2011-05-22 Bruno Haible + + 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 strptime: Move AC_LIBOBJ invocations to module description. diff --git a/m4/strsep.m4 b/m4/strsep.m4 index 4ea187c5f0..24e229d626 100644 --- 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_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 ]) diff --git a/modules/strsep b/modules/strsep index eaa30329de..825cd197a6 100644 --- a/modules/strsep +++ b/modules/strsep @@ -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: -- 2.30.2