* modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
authorEric Blake <ebb9@byu.net>
Fri, 2 Feb 2007 13:06:22 +0000 (13:06 +0000)
committerEric Blake <ebb9@byu.net>
Fri, 2 Feb 2007 13:06:22 +0000 (13:06 +0000)
* modules/netinet_in (Makefile.am): Likewise.

ChangeLog
modules/arpa_inet
modules/netinet_in

index 519bd573845f699c173d2290fbe3ed149ee4b4c0..75b6eb4cafa9d0c3ea5a0051d1b6ec3f1b0eb610 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-02-02  Eric Blake  <ebb9@byu.net>
+
+       * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
+       * modules/netinet_in (Makefile.am): Likewise.
+
 2007-02-01  Bruno Haible  <bruno@clisp.org>
 
        * lib/string_.h (GL_LINK_WARNING): New macro.
index 250c15b0ff23124fcb0333187e08956ca06b26b0..9e456214ba2f22486570c2928533e91ed54b8713 100644 (file)
@@ -12,11 +12,12 @@ gl_HEADER_ARPA_INET
 
 Makefile.am:
 BUILT_SOURCES += $(ARPA_INET_H)
+AC_PROG_MKDIR_P
 
 # We need the following in order to create <arpa/inet.h> when the system
 # doesn't have one.
 arpa/inet.h:
-       test -d arpa || mkdir arpa
+       @MKDIR_P@ arpa
        rm -f $@-t $@
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          echo '#include <sys/socket.h>'; \
index 2aac90e1cbf214938c52b6de5f2c223df610e091..6e6665903d5ed7d2f97021c184eefca94a436cbe 100644 (file)
@@ -9,6 +9,7 @@ sys_socket
 
 configure.ac:
 gl_HEADER_NETINET_IN
+AC_PROG_MKDIR_P
 
 Makefile.am:
 BUILT_SOURCES += $(NETINET_IN_H)
@@ -16,7 +17,7 @@ BUILT_SOURCES += $(NETINET_IN_H)
 # We need the following in order to create <netinet/in.h> when the system
 # doesn't have one.
 netinet/in.h:
-       test -d netinet || mkdir netinet
+       @MKDIR_P@ netinet
        rm -f $@-t $@
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          echo '#include <sys/socket.h>'; \