diff options
author | Bruno Haible <bruno@clisp.org> | 2022-01-03 16:17:18 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2022-01-03 16:17:18 +0100 |
commit | a690f1be8debcbe5d5265915233d533a7f9dcbaf (patch) | |
tree | d95f02000227834221e0a0eeec51039e1adb62e8 /modules/fopen-gnu | |
parent | 918e06951df709672d744e7600cc808b065a8e9e (diff) | |
download | gnulib-a690f1be8debcbe5d5265915233d533a7f9dcbaf.tar.gz |
fopen-gnu: Allow use as dependency from test modules.
* m4/fopen.m4 (gl_FUNC_FOPEN_GNU): Set REPLACE_FOPEN_FOR_FOPEN_GNU
instead of REPLACE_FOPEN.
* m4/stdio_h.m4 (gl_STDIO_H_REQUIRE_DEFAULTS): Initialize the fopen-gnu
module indicator.
(gl_STDIO_H_DEFAULTS): Initialize REPLACE_FOPEN_FOR_FOPEN_GNU.
* modules/stdio (Makefile.am): Substitute GNULIB_FOPEN_GNU,
REPLACE_FOPEN_FOR_FOPEN_GNU.
* modules/fopen-gnu (Depends-on): Add more dependencies.
(configure.ac): Test REPLACE_FOPEN_FOR_FOPEN_GNU instead of
REPLACE_FOPEN.
* lib/stdio.in.h (fopen): Test REPLACE_FOPEN,
REPLACE_FOPEN_FOR_FOPEN_GNU, and the respective module indicators
instead of just REPLACE_FOPEN.
Diffstat (limited to 'modules/fopen-gnu')
-rw-r--r-- | modules/fopen-gnu | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/modules/fopen-gnu b/modules/fopen-gnu index 9252c749b3..86635a140b 100644 --- a/modules/fopen-gnu +++ b/modules/fopen-gnu @@ -6,11 +6,16 @@ lib/fopen.c Depends-on: fopen -open [test $REPLACE_FOPEN = 1] +open [test $REPLACE_FOPEN_FOR_FOPEN_GNU = 1] +fcntl-h [test $REPLACE_FOPEN_FOR_FOPEN_GNU = 1] +stdbool [test $REPLACE_FOPEN_FOR_FOPEN_GNU = 1] +unistd [test $REPLACE_FOPEN_FOR_FOPEN_GNU = 1] +close [test $REPLACE_FOPEN_FOR_FOPEN_GNU = 1] +fstat [test $REPLACE_FOPEN_FOR_FOPEN_GNU = 1] configure.ac: gl_FUNC_FOPEN_GNU -if test $REPLACE_FOPEN = 1; then +if test $REPLACE_FOPEN_FOR_FOPEN_GNU = 1; then AC_LIBOBJ([fopen]) gl_PREREQ_FOPEN fi |