2 A <sys/select.h> for systems lacking it.
17 AC_REQUIRE([gl_HEADER_SYS_SELECT])
21 BUILT_SOURCES += sys/select.h
23 # We need the following in order to create <sys/select.h> when the system
24 # doesn't have one that works with the given compiler.
25 sys/select.h: sys_select.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H)
26 $(AM_V_at)$(MKDIR_P) sys
27 $(AM_V_GEN)rm -f $@-t $@ && \
28 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
29 sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
30 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
31 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
32 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
33 -e 's|@''NEXT_SYS_SELECT_H''@|$(NEXT_SYS_SELECT_H)|g' \
34 -e 's|@''HAVE_SYS_SELECT_H''@|$(HAVE_SYS_SELECT_H)|g' \
35 -e 's/@''GNULIB_PSELECT''@/$(GNULIB_PSELECT)/g' \
36 -e 's/@''GNULIB_SELECT''@/$(GNULIB_SELECT)/g' \
37 -e 's|@''HAVE_WINSOCK2_H''@|$(HAVE_WINSOCK2_H)|g' \
38 -e 's|@''HAVE_PSELECT''@|$(HAVE_PSELECT)|g' \
39 -e 's|@''REPLACE_PSELECT''@|$(REPLACE_PSELECT)|g' \
40 -e 's|@''REPLACE_SELECT''@|$(REPLACE_SELECT)|g' \
41 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
42 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
43 < $(srcdir)/sys_select.in.h; \
46 MOSTLYCLEANFILES += sys/select.h sys/select.h-t
47 MOSTLYCLEANDIRS += sys