verify: new macro 'assume'
[gnulib.git] / modules / arpa_inet
1 Description:
2 A GNU-like <arpa/inet.h>.
3
4 Files:
5 lib/arpa_inet.in.h
6 m4/arpa_inet_h.m4
7
8 Depends-on:
9 include_next
10 snippet/arg-nonnull
11 snippet/c++defs
12 snippet/warn-on-use
13 sys_socket
14
15 configure.ac:
16 gl_HEADER_ARPA_INET
17 AC_PROG_MKDIR_P
18
19 Makefile.am:
20 BUILT_SOURCES += arpa/inet.h
21
22 # We need the following in order to create <arpa/inet.h> when the system
23 # doesn't have one.
24 arpa/inet.h: arpa_inet.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H) $(ARG_NONNULL_H)
25         $(AM_V_at)$(MKDIR_P) arpa
26         $(AM_V_GEN)rm -f $@-t $@ && \
27         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
28           sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
29               -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
30               -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
31               -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
32               -e 's|@''HAVE_FEATURES_H''@|$(HAVE_FEATURES_H)|g' \
33               -e 's|@''NEXT_ARPA_INET_H''@|$(NEXT_ARPA_INET_H)|g' \
34               -e 's|@''HAVE_ARPA_INET_H''@|$(HAVE_ARPA_INET_H)|g' \
35               -e 's/@''GNULIB_INET_NTOP''@/$(GNULIB_INET_NTOP)/g' \
36               -e 's/@''GNULIB_INET_PTON''@/$(GNULIB_INET_PTON)/g' \
37               -e 's|@''HAVE_DECL_INET_NTOP''@|$(HAVE_DECL_INET_NTOP)|g' \
38               -e 's|@''HAVE_DECL_INET_PTON''@|$(HAVE_DECL_INET_PTON)|g' \
39               -e 's|@''REPLACE_INET_NTOP''@|$(REPLACE_INET_NTOP)|g' \
40               -e 's|@''REPLACE_INET_PTON''@|$(REPLACE_INET_PTON)|g' \
41               -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
42               -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
43               -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
44               < $(srcdir)/arpa_inet.in.h; \
45         } > $@-t && \
46         mv $@-t $@
47 MOSTLYCLEANFILES += arpa/inet.h arpa/inet.h-t
48 MOSTLYCLEANDIRS += arpa
49
50 Include:
51 <arpa/inet.h>
52
53 License:
54 LGPLv2+
55
56 Maintainer:
57 Simon Josefsson