2 A substitute <monetary.h>.
18 BUILT_SOURCES += $(MONETARY_H)
20 # We need the following in order to create <monetary.h> when the system
21 # doesn't have one that works with the given compiler.
22 if GL_GENERATE_MONETARY_H
23 monetary.h: monetary.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H) $(ARG_NONNULL_H)
24 $(AM_V_GEN)rm -f $@-t $@ && \
25 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
26 sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
27 -e 's|@''HAVE_MONETARY_H''@|$(HAVE_MONETARY_H)|g' \
28 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
29 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
30 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
31 -e 's|@''NEXT_MONETARY_H''@|$(NEXT_MONETARY_H)|g' \
32 -e 's|@''HAVE_XLOCALE_H''@|$(HAVE_XLOCALE_H)|g' \
33 -e 's/@''GNULIB_STRFMON_L''@/$(GNULIB_STRFMON_L)/g' \
34 -e 's|@''HAVE_STRFMON_L''@|$(HAVE_STRFMON_L)|g' \
35 -e 's|@''REPLACE_STRFMON_L''@|$(REPLACE_STRFMON_L)|g' \
36 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
37 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
38 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
39 < $(srcdir)/monetary.in.h; \
43 monetary.h: $(top_builddir)/config.status
46 MOSTLYCLEANFILES += monetary.h monetary.h-t