diff options
author | Eric Blake <ebb9@byu.net> | 2009-12-24 07:19:23 -0700 |
---|---|---|
committer | Eric Blake <ebb9@byu.net> | 2009-12-29 22:06:57 -0700 |
commit | e0bf16819c83c3ef1d11bf373f5f90a1f09c534c (patch) | |
tree | 551a624e7371382c9c3f0d5e11a1441c2725c8bb /modules/ctype | |
parent | 7bfa0dd93fb4adf45f062ae29aa06a3d95655f45 (diff) | |
download | gnulib-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/ctype')
-rw-r--r-- | modules/ctype | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/ctype b/modules/ctype index b0ebf1b376..e89681400e 100644 --- a/modules/ctype +++ b/modules/ctype @@ -7,6 +7,7 @@ m4/ctype.m4 Depends-on: include_next +link-warning configure.ac: gl_CTYPE_H @@ -16,7 +17,7 @@ BUILT_SOURCES += $(CTYPE_H) # We need the following in order to create <ctype.h> when the system # doesn't have one that works with the given compiler. -ctype.h: ctype.in.h +ctype.h: ctype.in.h $(LINK_WARNING_H) $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ @@ -24,6 +25,7 @@ ctype.h: ctype.in.h -e 's|@''NEXT_CTYPE_H''@|$(NEXT_CTYPE_H)|g' \ -e 's/@''GNULIB_ISBLANK''@/$(GNULIB_ISBLANK)/g' \ -e 's/@''HAVE_ISBLANK''@/$(HAVE_ISBLANK)/g' \ + -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \ < $(srcdir)/ctype.in.h; \ } > $@-t && \ mv $@-t $@ |