Do the Windows oldnames workaround through the C++ GNULIB_NAMESPACE.
[gnulib.git] / modules / net_if
blob9e30f01512b94eec0b5c25d9617022cade624901
1 Description:
2 A <net/if.h> for systems lacking it.
4 Files:
5 lib/net_if.in.h
6 m4/net_if_h.m4
8 Depends-on:
9 include_next
10 sys_socket
12 configure.ac:
13 gl_HEADER_NET_IF
14 AC_PROG_MKDIR_P
16 Makefile.am:
17 BUILT_SOURCES += $(NET_IF_H)
19 # We need the following in order to create <net/if.h> when the system
20 # doesn't have one.
21 if GL_GENERATE_NET_IF_H
22 net/if.h: net_if.in.h $(top_builddir)/config.status
23         $(AM_V_at)$(MKDIR_P) net
24         $(AM_V_GEN)rm -f $@-t $@ && \
25         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
26           sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
27               -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
28               -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
29               -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
30               -e 's|@''NEXT_NET_IF_H''@|$(NEXT_NET_IF_H)|g' \
31               -e 's|@''HAVE_NET_IF_H''@|$(HAVE_NET_IF_H)|g' \
32               < $(srcdir)/net_if.in.h; \
33         } > $@-t && \
34         mv $@-t $@
35 else
36 net/if.h: $(top_builddir)/config.status
37         rm -f $@
38 endif
39 MOSTLYCLEANFILES += net/if.h net/if.h-t
40 MOSTLYCLEANDIRS += net
42 Include:
43 <net/if.h>
45 License:
46 LGPLv2+
48 Maintainer:
49 Eric Blake