summaryrefslogtreecommitdiff
path: root/modules/getopt-posix
diff options
context:
space:
mode:
authorEric Blake <ebb9@byu.net>2009-12-24 07:19:23 -0700
committerEric Blake <ebb9@byu.net>2009-12-29 22:06:57 -0700
commite0bf16819c83c3ef1d11bf373f5f90a1f09c534c (patch)
tree551a624e7371382c9c3f0d5e11a1441c2725c8bb /modules/getopt-posix
parent7bfa0dd93fb4adf45f062ae29aa06a3d95655f45 (diff)
downloadgnulib-e0bf16819c83c3ef1d11bf373f5f90a1f09c534c.tar.gz
link-warning: make usage consistent
Ensure GL_LINK_WARNING is defined before use. * modules/ctype (Depends-on): Add link-warning. (Makefile.am): Update rules accordingly. * modules/langinfo (Depends-on, Makefile.am): Likewise. * modules/locale (Depends-on, Makefile.am): Likewise. * modules/sys_file (Makefile.am): Likewise. * modules/getopt-posix (Makefile.am): Delete unused link warning efforts. * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use. * lib/langinfo.in.h (GL_LINK_WARNING): Likewise. * lib/locale.in.h (GL_LINK_WARNING): Likewise. * lib/sys_file.in.h (GL_LINK_WARNING): Likewise. Signed-off-by: Eric Blake <ebb9@byu.net>
Diffstat (limited to 'modules/getopt-posix')
-rw-r--r--modules/getopt-posix3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/getopt-posix b/modules/getopt-posix
index 63bc6c4e25..a3ae9f132a 100644
--- a/modules/getopt-posix
+++ b/modules/getopt-posix
@@ -23,14 +23,13 @@ BUILT_SOURCES += $(GETOPT_H)
# We need the following in order to create <getopt.h> when the system
# doesn't have one that works with the given compiler.
-getopt.h: getopt.in.h $(LINK_WARNING_H) $(ARG_NONNULL_H)
+getopt.h: getopt.in.h $(ARG_NONNULL_H)
$(AM_V_GEN)rm -f $@-t $@ && \
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
sed -e 's|@''HAVE_GETOPT_H''@|$(HAVE_GETOPT_H)|g' \
-e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
-e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
-e 's|@''NEXT_GETOPT_H''@|$(NEXT_GETOPT_H)|g' \
- -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
-e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
< $(srcdir)/getopt.in.h; \
} > $@-t && \