summaryrefslogtreecommitdiff
path: root/modules/sys_socket
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2007-01-18 16:19:13 +0000
committerJim Meyering <jim@meyering.net>2007-01-18 16:19:13 +0000
commitaeb8c436374844c89da703fa45374f4c653ed3bd (patch)
treeaf4eee23637c95e4711b320c7c4ad8582bb7d3d0 /modules/sys_socket
parent546c6b957bd6974e35822fbddcec7a5cc978b7ef (diff)
downloadgnulib-aeb8c436374844c89da703fa45374f4c653ed3bd.tar.gz
Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
* modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather than the race-prone "test -d sys || mkdir sys". (configure.ac): Use AC_PROG_MKDIR_P. * modules/sys_select: Likewise. * modules/sys_socket: Likewise. * modules/sys_time: Likewise.
Diffstat (limited to 'modules/sys_socket')
-rw-r--r--modules/sys_socket3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/sys_socket b/modules/sys_socket
index 47d113cdf0..6b75a4e938 100644
--- a/modules/sys_socket
+++ b/modules/sys_socket
@@ -10,6 +10,7 @@ Depends-on:
configure.ac:
gl_HEADER_SYS_SOCKET
+AC_PROG_MKDIR_P
Makefile.am:
BUILT_SOURCES += $(SYS_SOCKET_H)
@@ -17,7 +18,7 @@ BUILT_SOURCES += $(SYS_SOCKET_H)
# We need the following in order to create <sys/socket.h> when the system
# doesn't have one that works with the given compiler.
sys/socket.h: socket_.h
- test -d sys || mkdir sys
+ $(MKDIR_P) sys
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
cat $(srcdir)/socket_.h; \
} > $@-t