Mercurial > gnulib
annotate modules/sys_select @ 14700:6758fa38915e topic/libposix
manual merge
author | Bruce Korb <bkorb@gnu.org> |
---|---|
date | Fri, 06 May 2011 08:15:59 -0700 |
parents | 8636d98120a9 049942251f65 |
children |
rev | line source |
---|---|
6874 | 1 Description: |
8378
0413e343def8
Make <sys/select.h> self-contained, i.e. make it possible to include it
Bruno Haible <bruno@clisp.org>
parents:
7925
diff
changeset
|
2 A <sys/select.h> for systems lacking it. |
6874 | 3 |
4 Files: | |
9265
6c8579ddc19d
Rename sys_select_.h to sys_select.in.h.
Bruno Haible <bruno@clisp.org>
parents:
9102
diff
changeset
|
5 lib/sys_select.in.h |
6874 | 6 m4/sys_select_h.m4 |
7 | |
8 Depends-on: | |
8998
442682a45bcd
* m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
Paul Eggert <eggert@cs.ucla.edu>
parents:
8825
diff
changeset
|
9 include_next |
12944
e105c6e52c5d
sys_select: Avoid #define replacements in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
12766
diff
changeset
|
10 c++defs |
6874 | 11 sys_socket |
10541
142140ec3db8
strengthen self-containedness check for sys/select.h
Paolo Bonzini <bonzini@gnu.org>
parents:
10474
diff
changeset
|
12 sys_time |
12766
2c14f1e449e5
warn-on-use: use instead of link-warning
Eric Blake <ebb9@byu.net>
parents:
12536
diff
changeset
|
13 warn-on-use |
6874 | 14 |
15 configure.ac: | |
16 gl_HEADER_SYS_SELECT | |
7900
2843623a4ec4
Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
Jim Meyering <jim@meyering.net>
parents:
7421
diff
changeset
|
17 AC_PROG_MKDIR_P |
6874 | 18 |
19 Makefile.am: | |
14108
873a3371d1d2
spell the pkginclude directory correctly.
Bruce Korb <bkorb@gnu.org>
parents:
14107
diff
changeset
|
20 nobase_nodist_pkginclude_HEADERS += sys/select.h |
14102
f49fe7e6d028
add _HEADERS primaries to Makefile.am snippets for installable headers
Gary V. Vaughan <gary@gnu.org>
parents:
13761
diff
changeset
|
21 |
12536
cd64e80f94e4
link-warning: always build headers with link warnings
Eric Blake <ebb9@byu.net>
parents:
12410
diff
changeset
|
22 BUILT_SOURCES += sys/select.h |
6874 | 23 |
24 # We need the following in order to create <sys/select.h> when the system | |
25 # doesn't have one that works with the given compiler. | |
14527
049942251f65
Ensure to rebuild generated .h files when config.status has changed.
Bruno Haible <bruno@clisp.org>
parents:
14273
diff
changeset
|
26 sys/select.h: sys_select.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H) |
11926
79c91e5cce7a
Use $(MKDIR_P) instead of @MKDIR_P@.
Simon Josefsson <simon@josefsson.org>
parents:
11868
diff
changeset
|
27 $(AM_V_at)$(MKDIR_P) sys |
11868
67c2b22aff08
annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
Jim Meyering <meyering@redhat.com>
parents:
11398
diff
changeset
|
28 $(AM_V_GEN)rm -f $@-t $@ && \ |
7421
8bace4b08db5
Mark generated files as "DO NOT EDIT".
Bruno Haible <bruno@clisp.org>
parents:
7274
diff
changeset
|
29 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ |
10375
f96e845fc36d
Avoid some "gcc -pedantic" warnings.
Bruno Haible <bruno@clisp.org>
parents:
9265
diff
changeset
|
30 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ |
f96e845fc36d
Avoid some "gcc -pedantic" warnings.
Bruno Haible <bruno@clisp.org>
parents:
9265
diff
changeset
|
31 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ |
13761
a19ace3ba849
Avoid line length limitation from HP NonStop system header files.
Bruno Haible <bruno@clisp.org>
parents:
12944
diff
changeset
|
32 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ |
8998
442682a45bcd
* m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
Paul Eggert <eggert@cs.ucla.edu>
parents:
8825
diff
changeset
|
33 -e 's|@''NEXT_SYS_SELECT_H''@|$(NEXT_SYS_SELECT_H)|g' \ |
8378
0413e343def8
Make <sys/select.h> self-contained, i.e. make it possible to include it
Bruno Haible <bruno@clisp.org>
parents:
7925
diff
changeset
|
34 -e 's|@''HAVE_SYS_SELECT_H''@|$(HAVE_SYS_SELECT_H)|g' \ |
10586 | 35 -e 's|@''GNULIB_SELECT''@|$(GNULIB_SELECT)|g' \ |
10474
5fc74f43b3d6
implement full-blown select(2) for winsock
Paolo Bonzini <bonzini@gnu.org>
parents:
10375
diff
changeset
|
36 -e 's|@''HAVE_WINSOCK2_H''@|$(HAVE_WINSOCK2_H)|g' \ |
11398
2de4c4d41f01
Work around select() bug on Interix 3.5.
Bruno Haible <bruno@clisp.org>
parents:
10591
diff
changeset
|
37 -e 's|@''REPLACE_SELECT''@|$(REPLACE_SELECT)|g' \ |
12944
e105c6e52c5d
sys_select: Avoid #define replacements in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
12766
diff
changeset
|
38 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ |
12766
2c14f1e449e5
warn-on-use: use instead of link-warning
Eric Blake <ebb9@byu.net>
parents:
12536
diff
changeset
|
39 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ |
9265
6c8579ddc19d
Rename sys_select_.h to sys_select.in.h.
Bruno Haible <bruno@clisp.org>
parents:
9102
diff
changeset
|
40 < $(srcdir)/sys_select.in.h; \ |
11868
67c2b22aff08
annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
Jim Meyering <meyering@redhat.com>
parents:
11398
diff
changeset
|
41 } > $@-t && \ |
6874 | 42 mv $@-t $@ |
43 MOSTLYCLEANFILES += sys/select.h sys/select.h-t | |
44 MOSTLYCLEANDIRS += sys | |
45 | |
46 Include: | |
12008
18ea6ab4e81d
maint: make Include sections of modules consistent
Eric Blake <ebb9@byu.net>
parents:
11926
diff
changeset
|
47 <sys/select.h> |
6874 | 48 |
49 License: | |
9102
404dc8725caf
Use the synonymous term LGPLv2.
Bruno Haible <bruno@clisp.org>
parents:
8998
diff
changeset
|
50 LGPLv2+ |
6874 | 51 |
52 Maintainer: | |
53 Simon Josefsson |