2 A <fnmatch.h> that conforms to POSIX.
19 BUILT_SOURCES += $(FNMATCH_H)
21 # We need the following in order to create <fnmatch.h>.
22 if GL_GENERATE_FNMATCH_H
23 fnmatch.h: fnmatch.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_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_FNMATCH_H''@|$(HAVE_FNMATCH_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_FNMATCH_H''@|$(NEXT_FNMATCH_H)|g' \
32 -e 's/@''GNULIB_FNMATCH''@/$(GNULIB_FNMATCH)/g' \
33 -e 's|@''HAVE_FNMATCH''@|$(HAVE_FNMATCH)|g' \
34 -e 's|@''REPLACE_FNMATCH''@|$(REPLACE_FNMATCH)|g' \
35 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
36 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
37 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
38 < $(srcdir)/fnmatch.in.h; \
42 fnmatch.h: $(top_builddir)/config.status
45 MOSTLYCLEANFILES += fnmatch.h fnmatch.h-t