mirror of
https://git.savannah.gnu.org/git/gnulib.git
synced 2025-08-08 17:22:05 +03:00
realloc-gnu: Allow use as dependency from test modules.
* m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Set REPLACE_REALLOC_FOR_REALLOC_GNU instead of REPLACE_REALLOC. (gl_FUNC_REALLOC_POSIX): Set REPLACE_REALLOC_FOR_REALLOC_POSIX instead of REPLACE_REALLOC. * m4/stdlib_h.m4 (gl_STDLIB_H_REQUIRE_DEFAULTS): Initialize the realloc-gnu module indicator. (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC_FOR_REALLOC_GNU, REPLACE_REALLOC_FOR_REALLOC_POSIX, not REPLACE_REALLOC. * modules/stdlib (Makefile.am): Substitute GNULIB_REALLOC_GNU, REPLACE_REALLOC_FOR_REALLOC_GNU, REPLACE_REALLOC_FOR_REALLOC_POSIX, not REPLACE_REALLOC. * modules/realloc-posix (Depends-on, configure.ac): Test REPLACE_REALLOC_FOR_REALLOC_POSIX instead of REPLACE_REALLOC. * modules/realloc-gnu (Comment): Remove section. (Depends-on): Add free-posix, malloc-gnu, xalloc-oversized. (configure.ac): Test REPLACE_REALLOC_FOR_REALLOC_GNU instead of REPLACE_REALLOC. Set a module indicator. * lib/stdlib.in.h (realloc): Test REPLACE_REALLOC_FOR_REALLOC_POSIX, REPLACE_REALLOC_FOR_REALLOC_GNU, and the respective module indicators instead of just REPLACE_REALLOC.
This commit is contained in:
@@ -1,22 +1,21 @@
|
||||
Description:
|
||||
realloc() function that is glibc compatible.
|
||||
|
||||
Comment:
|
||||
This module should not be used as a dependency from a test module,
|
||||
otherwise when this module occurs as a tests-related module, it will
|
||||
have side effects on the compilation of the main modules in lib/.
|
||||
|
||||
Files:
|
||||
lib/realloc.c
|
||||
|
||||
Depends-on:
|
||||
realloc-posix
|
||||
free-posix [test $REPLACE_REALLOC_FOR_REALLOC_GNU = 1]
|
||||
malloc-gnu [test $REPLACE_REALLOC_FOR_REALLOC_GNU = 1]
|
||||
xalloc-oversized [test $REPLACE_REALLOC_FOR_REALLOC_GNU = 1]
|
||||
|
||||
configure.ac:
|
||||
gl_FUNC_REALLOC_GNU
|
||||
if test $REPLACE_REALLOC = 1; then
|
||||
if test $REPLACE_REALLOC_FOR_REALLOC_GNU = 1; then
|
||||
AC_LIBOBJ([realloc])
|
||||
fi
|
||||
gl_STDLIB_MODULE_INDICATOR([realloc-gnu])
|
||||
|
||||
Makefile.am:
|
||||
|
||||
|
Reference in New Issue
Block a user