+2022-01-09 Bruno Haible <bruno@clisp.org>
+
+ stdio: Move AC_LIBOBJ invocations to the module description.
+ * m4/stdio_h.m4 (gl_STDIO_H): Don't invoke AC_LIBOBJ.
+ * modules/stdio (configure.ac): Invoke AC_LIBOBJ here.
+
2022-01-09 Bruno Haible <bruno@clisp.org>
fchdir: Move AC_LIBOBJ invocation to the module description.
-# stdio_h.m4 serial 57
+# stdio_h.m4 serial 58
dnl Copyright (C) 2007-2022 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
gl_NONBLOCKING_IO
if test $gl_cv_have_nonblocking != yes; then
REPLACE_STDIO_READ_FUNCS=1
- AC_LIBOBJ([stdio-read])
fi
])
gl_SIGNAL_SIGPIPE
if test $gl_cv_header_signal_h_SIGPIPE != yes; then
REPLACE_STDIO_WRITE_FUNCS=1
- AC_LIBOBJ([stdio-write])
fi
])
dnl This ifdef is necessary to avoid an error "missing file lib/stdio-write.c"
gl_NONBLOCKING_IO
if test $gl_cv_have_nonblocking != yes; then
REPLACE_STDIO_WRITE_FUNCS=1
- AC_LIBOBJ([stdio-write])
fi
])
gl_STDIO_H
gl_STDIO_H_REQUIRE_DEFAULTS
AC_PROG_MKDIR_P
+if test $REPLACE_STDIO_READ_FUNCS = 1; then
+ AC_LIBOBJ([stdio-read])
+fi
+if test $REPLACE_STDIO_WRITE_FUNCS = 1; then
+ AC_LIBOBJ([stdio-write])
+fi
dnl No need to create extra modules for these functions. Everyone who uses
dnl <stdio.h> likely needs them.