libposix: Add _HEADERS primaries to posix modules.
[gnulib.git] / modules / link-warning
1 Description:
2 A C macro for emitting link time warnings.
3
4 Applicability:
5 all
6
7 Files:
8 build-aux/link-warning.h
9
10 Depends-on:
11
12 configure.ac:
13 AC_REQUIRE([gl_FEATURES_H])
14
15 Makefile.am:
16 nodist_pkginclude_HEADERS += link-warning.h
17
18 # The BUILT_SOURCES created by this Makefile snippet are not used via #include
19 # statements but through direct file reference. Therefore this snippet must be
20 # present in all Makefile.am that need it. This is ensured by the applicability
21 # 'all' defined above.
22
23 BUILT_SOURCES += link-warning.h
24 # The link-warning.h that gets inserted into generated .h files is the same as
25 # build-aux/link-warning.h, except that it has the copyright header cut off.
26 link-warning.h: $(top_srcdir)/build-aux/link-warning.h
27         $(AM_V_GEN)rm -f $@-t $@ && \
28         sed -n -e '/HAVE_FEATURES_H/,$$p' \
29           < $(top_srcdir)/build-aux/link-warning.h \
30         | sed -e 's|@''HAVE_FEATURES_H''@|$(HAVE_FEATURES_H)|g' \
31           > $@-t && \
32         mv $@-t $@
33 MOSTLYCLEANFILES += link-warning.h link-warning.h-t
34
35 LINK_WARNING_H=link-warning.h
36
37 Include:
38
39 License:
40 LGPLv2+
41
42 Maintainer:
43 Bruno Haible
44