From: Bruno Haible Date: Sat, 21 May 2011 16:10:27 +0000 (+0200) Subject: realloc-*: Move AC_LIBOBJ invocations to module description. X-Git-Tag: v0.1~2449 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=86e2d81da06878e9aace64867dd3f09d63e9f39e;p=gnulib.git realloc-*: Move AC_LIBOBJ invocations to module description. * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro. (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move AC_LIBOBJ invocations from here... * modules/realloc-gnu (configure.ac): ... to here. * modules/realloc-posix (configure.ac): ... and here. --- diff --git a/ChangeLog b/ChangeLog index b894ce1b4..d9d2715fb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,14 @@ 2011-05-21 Bruno Haible + realloc-*: Move AC_LIBOBJ invocations to module description. + * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro. + (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move + AC_LIBOBJ invocations from here... + * modules/realloc-gnu (configure.ac): ... to here. + * modules/realloc-posix (configure.ac): ... and here. + +2011-05-21 Bruno Haible + readutmp: Move AC_LIBOBJ invocations to module description. * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here... * modules/readutmp (configure.ac): ... to here. diff --git a/m4/realloc.m4 b/m4/realloc.m4 index a403d9fb3..5cc1340d1 100644 --- a/m4/realloc.m4 +++ b/m4/realloc.m4 @@ -1,4 +1,4 @@ -# realloc.m4 serial 11 +# realloc.m4 serial 12 dnl Copyright (C) 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, @@ -17,7 +17,7 @@ AC_DEFUN([gl_FUNC_REALLOC_GNU], [Define to 1 if your system has a GNU libc compatible 'realloc' function, and to 0 otherwise.])], [AC_DEFINE([HAVE_REALLOC_GNU], [0]) - gl_REPLACE_REALLOC + REPLACE_REALLOC=1 ]) ])# gl_FUNC_REALLOC_GNU @@ -33,12 +33,6 @@ AC_DEFUN([gl_FUNC_REALLOC_POSIX], AC_DEFINE([HAVE_REALLOC_POSIX], [1], [Define if the 'realloc' function is POSIX compliant.]) else - gl_REPLACE_REALLOC + REPLACE_REALLOC=1 fi ]) - -AC_DEFUN([gl_REPLACE_REALLOC], -[ - AC_LIBOBJ([realloc]) - REPLACE_REALLOC=1 -]) diff --git a/modules/realloc-gnu b/modules/realloc-gnu index f05997634..760edcda1 100644 --- a/modules/realloc-gnu +++ b/modules/realloc-gnu @@ -14,6 +14,9 @@ realloc-posix configure.ac: gl_FUNC_REALLOC_GNU +if test $REPLACE_REALLOC = 1; then + AC_LIBOBJ([realloc]) +fi gl_MODULE_INDICATOR([realloc-gnu]) Makefile.am: diff --git a/modules/realloc-posix b/modules/realloc-posix index 5876584ee..20270e619 100644 --- a/modules/realloc-posix +++ b/modules/realloc-posix @@ -11,6 +11,9 @@ stdlib configure.ac: gl_FUNC_REALLOC_POSIX +if test $REPLACE_REALLOC = 1; then + AC_LIBOBJ([realloc]) +fi gl_STDLIB_MODULE_INDICATOR([realloc-posix]) Makefile.am: