From: Bruno Haible Date: Sun, 22 May 2011 11:07:33 +0000 (+0200) Subject: strchrnul: Move AC_LIBOBJ invocations to module description. X-Git-Tag: v0.1~2424 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=450feafa6c1b982e6b08bd35df9bbeb08c332e74;p=gnulib.git strchrnul: Move AC_LIBOBJ invocations to module description. * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and gl_PREREQ_STRCHRNUL invocations from here... * modules/strchrnul (configure.ac): ... to here. --- diff --git a/ChangeLog b/ChangeLog index 0a89001a4..8d781339a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2011-05-22 Bruno Haible + strchrnul: Move AC_LIBOBJ invocations to module description. + * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and + gl_PREREQ_STRCHRNUL invocations from here... + * modules/strchrnul (configure.ac): ... to here. + +2011-05-22 Bruno Haible + strcasestr*: Move AC_LIBOBJ invocations to module description. * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR): Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here... diff --git a/m4/strchrnul.m4 b/m4/strchrnul.m4 index fbfd5aebd..d89a06246 100644 --- a/m4/strchrnul.m4 +++ b/m4/strchrnul.m4 @@ -1,4 +1,4 @@ -# strchrnul.m4 serial 8 +# strchrnul.m4 serial 9 dnl Copyright (C) 2003, 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, @@ -44,10 +44,6 @@ AC_DEFUN([gl_FUNC_STRCHRNUL], *) REPLACE_STRCHRNUL=1 ;; esac fi - if test $HAVE_STRCHRNUL = 0 || test $REPLACE_STRCHRNUL = 1; then - AC_LIBOBJ([strchrnul]) - gl_PREREQ_STRCHRNUL - fi ]) # Prerequisites of lib/strchrnul.c. diff --git a/modules/strchrnul b/modules/strchrnul index 59c4cc68a..98a3d8c58 100644 --- a/modules/strchrnul +++ b/modules/strchrnul @@ -14,6 +14,10 @@ rawmemchr [test $HAVE_STRCHRNUL = 0 || test $REPLACE_STRCHRNUL = 1] configure.ac: gl_FUNC_STRCHRNUL +if test $HAVE_STRCHRNUL = 0 || test $REPLACE_STRCHRNUL = 1; then + AC_LIBOBJ([strchrnul]) + gl_PREREQ_STRCHRNUL +fi gl_STRING_MODULE_INDICATOR([strchrnul]) Makefile.am: