vc-list-files tests: convert to use init.sh
[gnulib.git] / modules / langinfo
index f9b0a2f..c7f545e 100644 (file)
@@ -6,18 +6,20 @@ lib/langinfo.in.h
 m4/langinfo_h.m4
 
 Depends-on:
-include_next
 extensions
+include_next
+c++defs
+warn-on-use
 
 configure.ac:
 gl_LANGINFO_H
 
 Makefile.am:
-BUILT_SOURCES += $(LANGINFO_H)
+BUILT_SOURCES += langinfo.h
 
 # We need the following in order to create an empty placeholder for
 # <langinfo.h> when the system doesn't have one.
-langinfo.h: langinfo.in.h
+langinfo.h: langinfo.in.h $(CXXDEFS_H) $(WARN_ON_USE_H)
        $(AM_V_GEN)rm -f $@-t $@ && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          sed -e 's|@''HAVE_LANGINFO_H''@|$(HAVE_LANGINFO_H)|g' \
@@ -29,6 +31,8 @@ langinfo.h: langinfo.in.h
              -e 's|@''HAVE_LANGINFO_ERA''@|$(HAVE_LANGINFO_ERA)|g' \
              -e 's|@''HAVE_NL_LANGINFO''@|$(HAVE_NL_LANGINFO)|g' \
              -e 's|@''REPLACE_NL_LANGINFO''@|$(REPLACE_NL_LANGINFO)|g' \
+             -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
+             -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
              < $(srcdir)/langinfo.in.h; \
        } > $@-t && \
        mv $@-t $@
@@ -38,7 +42,7 @@ Include:
 <langinfo.h>
 
 License:
-LGPL
+LGPLv2+
 
 Maintainer:
 Bruno Haible