maint: make Include sections of modules consistent
[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
8 Depends-on:
9 include_next
10 link-warning
11 sys_socket
12 sys_time
13
14 configure.ac:
15 gl_HEADER_SYS_SELECT
16 AC_PROG_MKDIR_P
17
18 Makefile.am:
19 BUILT_SOURCES += $(SYS_SELECT_H)
20
21 # We need the following in order to create <sys/select.h> when the system
22 # doesn't have one that works with the given compiler.
23 sys/select.h: sys_select.in.h
24         $(AM_V_at)$(MKDIR_P) sys
25         $(AM_V_GEN)rm -f $@-t $@ && \
26         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
27           sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
28               -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
29               -e 's|@''NEXT_SYS_SELECT_H''@|$(NEXT_SYS_SELECT_H)|g' \
30               -e 's|@''HAVE_SYS_SELECT_H''@|$(HAVE_SYS_SELECT_H)|g' \
31               -e 's|@''GNULIB_SELECT''@|$(GNULIB_SELECT)|g' \
32               -e 's|@''HAVE_WINSOCK2_H''@|$(HAVE_WINSOCK2_H)|g' \
33               -e 's|@''REPLACE_SELECT''@|$(REPLACE_SELECT)|g' \
34               -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
35               < $(srcdir)/sys_select.in.h; \
36         } > $@-t && \
37         mv $@-t $@
38 MOSTLYCLEANFILES += sys/select.h sys/select.h-t
39 MOSTLYCLEANDIRS += sys
40
41 Include:
42 <sys/select.h>
43
44 License:
45 LGPLv2+
46
47 Maintainer:
48 Simon Josefsson