X-Git-Url: https://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=modules%2Fsys_select;h=68f79185bd76f4d3f4ed2d9b9deccae486417203;hb=060ad6de5ed9d89902ebe99c2c39c982dcedc5b9;hp=efe3f889971fadada09298bc8902517f57d8a227;hpb=7e5eb8ffca4761e3074bf800612e095a6e7d9a6f;p=gnulib.git diff --git a/modules/sys_select b/modules/sys_select index efe3f8899..68f79185b 100644 --- a/modules/sys_select +++ b/modules/sys_select @@ -1,14 +1,17 @@ Description: -A for systems lacking it (e.g., Mingw). +A for systems lacking it. Files: +lib/sys_select_.h m4/sys_select_h.m4 Depends-on: +absolute-header sys_socket configure.ac: gl_HEADER_SYS_SELECT +AC_PROG_MKDIR_P Makefile.am: BUILT_SOURCES += $(SYS_SELECT_H) @@ -16,8 +19,14 @@ 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 - echo '#include ' >$@-t + @MKDIR_P@ sys + rm -f $@-t $@ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + sed -e 's|@''ABSOLUTE_SYS_SELECT_H''@|$(ABSOLUTE_SYS_SELECT_H)|g' \ + -e 's/@''HAVE_INCLUDE_NEXT''@/$(HAVE_INCLUDE_NEXT)/g' \ + -e 's|@''HAVE_SYS_SELECT_H''@|$(HAVE_SYS_SELECT_H)|g' \ + < $(srcdir)/sys_select_.h; \ + } > $@-t mv $@-t $@ MOSTLYCLEANFILES += sys/select.h sys/select.h-t MOSTLYCLEANDIRS += sys