Tiny tweaks.
[gnulib.git] / modules / sys_socket
1 Description:
2 A POSIX-like <sys/socket.h>.
3
4 Files:
5 lib/sys_socket.in.h
6 lib/winsock.c
7 m4/sys_socket_h.m4
8 m4/sockpfaf.m4
9
10 Depends-on:
11 include_next
12 errno
13
14 configure.ac:
15 gl_HEADER_SYS_SOCKET
16 AC_PROG_MKDIR_P
17
18 Makefile.am:
19 BUILT_SOURCES += $(SYS_SOCKET_H)
20
21 # We need the following in order to create <sys/socket.h> when the system
22 # doesn't have one that works with the given compiler.
23 sys/socket.h: sys_socket.in.h
24         @MKDIR_P@ sys
25         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
26           sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
27               -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
28               -e 's|@''NEXT_SYS_SOCKET_H''@|$(NEXT_SYS_SOCKET_H)|g' \
29               -e 's|@''HAVE_SYS_SOCKET_H''@|$(HAVE_SYS_SOCKET_H)|g' \
30               -e 's|@''HAVE_WINSOCK2_H''@|$(HAVE_WINSOCK2_H)|g' \
31               -e 's|@''HAVE_WS2TCPIP_H''@|$(HAVE_WS2TCPIP_H)|g' \
32               < $(srcdir)/sys_socket.in.h; \
33         } > $@-t
34         mv -f $@-t $@
35 MOSTLYCLEANFILES += sys/socket.h sys/socket.h-t
36 MOSTLYCLEANDIRS += sys
37
38 Include:
39 #include <sys/socket.h>
40
41 License:
42 LGPLv2+
43
44 Maintainer:
45 Simon Josefsson