Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
[gnulib.git] / modules / sys_socket
1 Description:
2 A <sys/socket.h> for systems lacking it.
3
4 Files:
5 lib/socket_.h
6 m4/sys_socket_h.m4
7 m4/sockpfaf.m4
8
9 Depends-on:
10
11 configure.ac:
12 gl_HEADER_SYS_SOCKET
13 AC_PROG_MKDIR_P
14
15 Makefile.am:
16 BUILT_SOURCES += $(SYS_SOCKET_H)
17
18 # We need the following in order to create <sys/socket.h> when the system
19 # doesn't have one that works with the given compiler.
20 sys/socket.h: socket_.h
21         $(MKDIR_P) sys
22         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
23           cat $(srcdir)/socket_.h; \
24         } > $@-t
25         mv -f $@-t $@
26 MOSTLYCLEANFILES += sys/socket.h sys/socket.h-t
27 MOSTLYCLEANDIRS += sys
28
29 Include:
30 #include <sys/types.h>
31 #include <sys/socket.h>
32
33 License:
34 LGPL
35
36 Maintainer:
37 Simon Josefsson