* m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
[gnulib.git] / modules / netinet_in
1 Description:
2 A <netinet/in.h> for systems lacking it.
3
4 Files:
5 lib/netinet_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 BUILT_SOURCES += $(NETINET_IN_H)
18
19 # We need the following in order to create <netinet/in.h> when the system
20 # doesn't have one.
21 netinet/in.h:
22         @MKDIR_P@ netinet
23         rm -f $@-t $@
24         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
25           sed -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \
26               -e 's|@''NEXT_NETINET_IN_H''@|$(NEXT_NETINET_IN_H)|g' \
27               -e 's|@''HAVE_NETINET_IN_H''@|$(HAVE_NETINET_IN_H)|g' \
28               < $(srcdir)/netinet_in_.h; \
29         } > $@-t
30         mv $@-t $@
31 MOSTLYCLEANFILES += netinet/in.h netinet/in.h-t
32 MOSTLYCLEANDIRS += netinet
33
34 Include:
35 #include <netinet/in.h>
36
37 License:
38 LGPL
39
40 Maintainer:
41 Simon Josefsson