libposix: Add _HEADERS primaries to posix modules.
[pspp] / modules / netinet_in
1 Description:
2 A <netinet/in.h> for systems lacking it.
3
4 Files:
5 lib/netinet_in.in.h
6 m4/netinet_in_h.m4
7
8 Depends-on:
9 include_next
10 sys_socket
11
12 configure.ac:
13 gl_HEADER_NETINET_IN
14 AC_PROG_MKDIR_P
15
16 Makefile.am:
17 nobase_nodist_pkginclude_HEADERS += $(NETINET_IN_H)
18 EXTRA_HEADERS += netinet/in.h
19
20 BUILT_SOURCES += $(NETINET_IN_H)
21
22 # We need the following in order to create <netinet/in.h> when the system
23 # doesn't have one.
24 netinet/in.h: netinet_in.in.h
25         $(AM_V_at)$(MKDIR_P) netinet
26         $(AM_V_GEN)rm -f $@-t $@ && \
27         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
28           sed -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_NETINET_IN_H''@|$(NEXT_NETINET_IN_H)|g' \
32               -e 's|@''HAVE_NETINET_IN_H''@|$(HAVE_NETINET_IN_H)|g' \
33               < $(srcdir)/netinet_in.in.h; \
34         } > $@-t && \
35         mv $@-t $@
36 MOSTLYCLEANFILES += netinet/in.h netinet/in.h-t
37 MOSTLYCLEANDIRS += netinet
38
39 Include:
40 <netinet/in.h>
41
42 License:
43 LGPLv2+
44
45 Maintainer:
46 Simon Josefsson