mirror of
https://git.savannah.gnu.org/git/gnulib.git
synced 2025-08-08 17:22:05 +03:00
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.
This commit is contained in:
@@ -1,3 +1,12 @@
|
||||
2011-05-21 Bruno Haible <bruno@clisp.org>
|
||||
|
||||
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 <bruno@clisp.org>
|
||||
|
||||
readutmp: Move AC_LIBOBJ invocations to module description.
|
||||
|
@@ -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
|
||||
])
|
||||
|
@@ -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:
|
||||
|
@@ -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:
|
||||
|
Reference in New Issue
Block a user