X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=modules%2Fsys_socket;h=a1785aaa9b129b74bf5da17f629a443b0abb74b4;hb=402c474488000ea5ad3c8bd64442938dbe4f61ce;hp=9c4959da0701d662905c6c0c62d413c509bf2bde;hpb=b258683f73569d6d7ca77431fa4f3506d0b3a21e;p=gnulib.git diff --git a/modules/sys_socket b/modules/sys_socket index 9c4959da0..a1785aaa9 100644 --- a/modules/sys_socket +++ b/modules/sys_socket @@ -4,22 +4,25 @@ A for systems lacking it. Files: lib/socket_.h m4/sys_socket_h.m4 +m4/sockpfaf.m4 Depends-on: configure.ac: gl_HEADER_SYS_SOCKET +AC_PROG_MKDIR_P Makefile.am: BUILT_SOURCES += $(SYS_SOCKET_H) -EXTRA_DIST += socket_.h # We need the following in order to create when the system # doesn't have one that works with the given compiler. sys/socket.h: socket_.h - test -d sys || mkdir sys - cp $(srcdir)/socket_.h $@-t - mv $@-t $@ + @MKDIR_P@ sys + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + cat $(srcdir)/socket_.h; \ + } > $@-t + mv -f $@-t $@ MOSTLYCLEANFILES += sys/socket.h sys/socket.h-t MOSTLYCLEANDIRS += sys