pselect: new module
[gnulib.git] / modules / sys_select
1 Description:
2 A <sys/select.h> for systems lacking it.
3
4 Files:
5 lib/sys_select.in.h
6 m4/sys_select_h.m4
7 m4/sys_socket_h.m4
8
9 Depends-on:
10 include_next
11 c++defs
12 sys_time
13 warn-on-use
14
15 configure.ac:
16 gl_HEADER_SYS_SELECT
17 AC_PROG_MKDIR_P
18
19 Makefile.am:
20 BUILT_SOURCES += sys/select.h
21
22 # We need the following in order to create <sys/select.h> when the system
23 # doesn't have one that works with the given compiler.
24 sys/select.h: sys_select.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H)
25         $(AM_V_at)$(MKDIR_P) sys
26         $(AM_V_GEN)rm -f $@-t $@ && \
27         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
28           sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
29               -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
30               -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
31               -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
32               -e 's|@''NEXT_SYS_SELECT_H''@|$(NEXT_SYS_SELECT_H)|g' \
33               -e 's|@''HAVE_SYS_SELECT_H''@|$(HAVE_SYS_SELECT_H)|g' \
34               -e 's/@''GNULIB_PSELECT''@/$(GNULIB_PSELECT)/g' \
35               -e 's/@''GNULIB_SELECT''@/$(GNULIB_SELECT)/g' \
36               -e 's|@''HAVE_WINSOCK2_H''@|$(HAVE_WINSOCK2_H)|g' \
37               -e 's|@''HAVE_PSELECT''@|$(HAVE_PSELECT)|g' \
38               -e 's|@''REPLACE_PSELECT''@|$(REPLACE_PSELECT)|g' \
39               -e 's|@''REPLACE_SELECT''@|$(REPLACE_SELECT)|g' \
40               -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
41               -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
42               < $(srcdir)/sys_select.in.h; \
43         } > $@-t && \
44         mv $@-t $@
45 MOSTLYCLEANFILES += sys/select.h sys/select.h-t
46 MOSTLYCLEANDIRS += sys
47
48 Include:
49 <sys/select.h>
50
51 License:
52 LGPLv2+
53
54 Maintainer:
55 Simon Josefsson