X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=modules%2Fsys_select;h=be92f4b557b8014e2da368cdcec6e229e53f862a;hb=04cd5487c7cb479142c1a5f2b5c542ec75373dd2;hp=5a34721340946d6808228a830cd2d35863c479d2;hpb=d1aadab21bf8755e0fb75a838dc650e73f6ee78d;p=gnulib.git diff --git a/modules/sys_select b/modules/sys_select index 5a3472134..be92f4b55 100644 --- a/modules/sys_select +++ b/modules/sys_select @@ -9,6 +9,7 @@ sys_socket configure.ac: gl_HEADER_SYS_SELECT +AC_PROG_MKDIR_P Makefile.am: BUILT_SOURCES += $(SYS_SELECT_H) @@ -16,10 +17,11 @@ BUILT_SOURCES += $(SYS_SELECT_H) # We need the following in order to create when the system # doesn't have one that works with the given compiler. sys/select.h: - test -d sys || mkdir sys + @MKDIR_P@ sys rm -f $@-t $@ - echo '#include ' >$@-t - chmod a-x $@-t + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + echo '#include '; \ + } > $@-t mv $@-t $@ MOSTLYCLEANFILES += sys/select.h sys/select.h-t MOSTLYCLEANDIRS += sys