* modules/getopt-posix (configure.ac): Arrange to generate
getopt-cdefs.h.
(Makefile.am): Separate the rules for getopt.h and getopt-cdefs.h.
+2021-12-17 Bruno Haible <bruno@clisp.org>
+
+ getopt-posix: Fix build on AIX (regression 2021-12-15).
+ * modules/getopt-posix (configure.ac): Arrange to generate
+ getopt-cdefs.h.
+ (Makefile.am): Separate the rules for getopt.h and getopt-cdefs.h.
+
2021-12-16 Paul Eggert <eggert@cs.ucla.edu>
getopt-posix: omit unnessary building of getopt.h
configure.ac:
gl_FUNC_GETOPT_POSIX
gl_CONDITIONAL_HEADER([getopt.h])
+gl_CONDITIONAL_HEADER([getopt-cdefs.h])
AC_PROG_MKDIR_P
if test $REPLACE_GETOPT = 1; then
AC_LIBOBJ([getopt])
< $(srcdir)/getopt.in.h; \
} > $@-t && \
mv -f $@-t $@
+else
+getopt.h: $(top_builddir)/config.status
+ rm -f $@
+endif
+if GL_GENERATE_GETOPT_CDEFS_H
getopt-cdefs.h: getopt-cdefs.in.h $(top_builddir)/config.status
$(AM_V_GEN)rm -f $@-t $@ && \
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
} > $@-t && \
mv -f $@-t $@
else
-getopt.h getopt-cdefs.h: $(top_builddir)/config.status
+getopt-cdefs.h: $(top_builddir)/config.status
rm -f $@
endif