From cd2ce138398d624b9fe301f7dc7b245208a98352 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 22 May 2011 13:26:26 +0200 Subject: [PATCH] strncat: Move AC_LIBOBJ invocations to module description. * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT invocations from here... * modules/strncat (configure.ac): ... to here. --- ChangeLog | 7 +++++++ m4/strncat.m4 | 8 ++------ modules/strncat | 4 ++++ 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index a40b96ec6..6e338a673 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2011-05-22 Bruno Haible + strncat: Move AC_LIBOBJ invocations to module description. + * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT + invocations from here... + * modules/strncat (configure.ac): ... to here. + +2011-05-22 Bruno Haible + strdup, strdup-posix: Move AC_LIBOBJ invocations to module description. * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP invocations from here... diff --git a/m4/strncat.m4 b/m4/strncat.m4 index 621ab0d3f..ff34b4890 100644 --- a/m4/strncat.m4 +++ b/m4/strncat.m4 @@ -1,4 +1,4 @@ -# strncat.m4 serial 1 +# strncat.m4 serial 2 dnl Copyright (C) 2002-2004, 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, @@ -92,11 +92,7 @@ AC_DEFUN_ONCE([gl_FUNC_STRNCAT], ]) case "$gl_cv_func_strncat_works" in *yes) ;; - *) - REPLACE_STRNCAT=1 - AC_LIBOBJ([strncat]) - gl_PREREQ_STRNCAT - ;; + *) REPLACE_STRNCAT=1 ;; esac ]) diff --git a/modules/strncat b/modules/strncat index 81b885085..516a2223f 100644 --- a/modules/strncat +++ b/modules/strncat @@ -11,6 +11,10 @@ string configure.ac: gl_FUNC_STRNCAT +if test $REPLACE_STRNCAT = 1; then + AC_LIBOBJ([strncat]) + gl_PREREQ_STRNCAT +fi gl_STRING_MODULE_INDICATOR([strncat]) Makefile.am: -- 2.11.0