2 A GNU-like <arpa/inet.h>.
22 gl_ARPA_INET_H_REQUIRE_DEFAULTS
26 BUILT_SOURCES += arpa/inet.h
27 lib_SOURCES += arpa_inet.c
29 # We need the following in order to create <arpa/inet.h> when the system
31 arpa/inet.h: arpa_inet.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H) $(ARG_NONNULL_H)
32 $(AM_V_GEN)$(MKDIR_P) '%reldir%/arpa'
33 $(AM_V_at)$(SED_HEADER_STDOUT) \
34 -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
35 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
36 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
37 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
38 -e 's|@''HAVE_FEATURES_H''@|$(HAVE_FEATURES_H)|g' \
39 -e 's|@''NEXT_ARPA_INET_H''@|$(NEXT_ARPA_INET_H)|g' \
40 -e 's|@''HAVE_ARPA_INET_H''@|$(HAVE_ARPA_INET_H)|g' \
41 -e 's/@''GNULIB_INET_NTOP''@/$(GNULIB_INET_NTOP)/g' \
42 -e 's/@''GNULIB_INET_PTON''@/$(GNULIB_INET_PTON)/g' \
43 -e 's|@''HAVE_WS2TCPIP_H''@|$(HAVE_WS2TCPIP_H)|g' \
44 -e 's|@''HAVE_DECL_HTONL''@|$(HAVE_DECL_HTONL)|g' \
45 -e 's|@''HAVE_DECL_HTONS''@|$(HAVE_DECL_HTONS)|g' \
46 -e 's|@''HAVE_DECL_INET_NTOP''@|$(HAVE_DECL_INET_NTOP)|g' \
47 -e 's|@''HAVE_DECL_INET_PTON''@|$(HAVE_DECL_INET_PTON)|g' \
48 -e 's|@''HAVE_DECL_NTOHL''@|$(HAVE_DECL_NTOHL)|g' \
49 -e 's|@''HAVE_DECL_NTOHS''@|$(HAVE_DECL_NTOHS)|g' \
50 -e 's|@''REPLACE_INET_NTOP''@|$(REPLACE_INET_NTOP)|g' \
51 -e 's|@''REPLACE_INET_PTON''@|$(REPLACE_INET_PTON)|g' \
52 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
53 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
54 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
55 $(srcdir)/arpa_inet.in.h > $@-t
57 MOSTLYCLEANFILES += arpa/inet.h arpa/inet.h-t
58 MOSTLYCLEANDIRS += arpa