2 A C macro for emitting link time warnings.
8 build-aux/snippet/link-warning.h
13 AC_REQUIRE([gl_FEATURES_H])
16 # The BUILT_SOURCES created by this Makefile snippet are not used via #include
17 # statements but through direct file reference. Therefore this snippet must be
18 # present in all Makefiles that need it. This is ensured by the applicability
19 # 'all' defined above.
21 # FIXME: The link-warning.h rule probably does not work if
22 # gnulib-tool's --gnu-make option is used, when the build is an
23 # out-of-source build that relies on VPATH.
25 BUILT_SOURCES += link-warning.h
26 link-warning.h: $(top_srcdir)/build-aux/snippet/link-warning.h
27 $(AM_V_GEN)rm -f $@-t $@ && \
28 sed -n -e '/HAVE_FEATURES_H/,$$p' \
29 < $(top_srcdir)/build-aux/snippet/link-warning.h \
30 | sed -e 's|@''HAVE_FEATURES_H''@|$(HAVE_FEATURES_H)|g' \
33 MOSTLYCLEANFILES += link-warning.h link-warning.h-t
35 LINK_WARNING_H=link-warning.h