From: Paul Eggert Date: Thu, 16 Dec 2021 21:13:27 +0000 (-0800) Subject: getopt-posix, X-Git-Tag: v1.0~2515 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=adcaaa85ea3aafe56e0a5e539d787e11585e3b01;p=gnulib.git getopt-posix, * modules/getopt-posix (getopt.h, getopt-cdefs.h): Build only if GL_GENERATE_GETOPT_H. --- diff --git a/ChangeLog b/ChangeLog index e1be947a37..b83d2508fd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2021-12-16 Paul Eggert + getopt-posix, + * modules/getopt-posix (getopt.h, getopt-cdefs.h): + Build only if GL_GENERATE_GETOPT_H. + stdint: omit duplicate gl_CONFIGURE_HEADER calls * modules/stdint (configure.ac): Omit ‘gl_CONDITIONAL_HEADER([limits.h])’, since stdint depends on diff --git a/modules/getopt-posix b/modules/getopt-posix index bac9dc57c9..b9caa6a471 100644 --- a/modules/getopt-posix +++ b/modules/getopt-posix @@ -38,6 +38,7 @@ BUILT_SOURCES += $(GETOPT_H) $(GETOPT_CDEFS_H) # We need the following in order to create when the system # doesn't have one that works with the given compiler. +if GL_GENERATE_GETOPT_H getopt.h: getopt.in.h $(top_builddir)/config.status $(ARG_NONNULL_H) $(AM_V_GEN)rm -f $@-t $@ && \ $(MKDIR_P) '%reldir%' && \ @@ -60,6 +61,10 @@ getopt-cdefs.h: getopt-cdefs.in.h $(top_builddir)/config.status < $(srcdir)/getopt-cdefs.in.h; \ } > $@-t && \ mv -f $@-t $@ +else +getopt.h getopt-cdefs.h: $(top_builddir)/config.status + rm -f $@ +endif MOSTLYCLEANFILES += getopt.h getopt.h-t getopt-cdefs.h getopt-cdefs.h-t