libposix: Add _HEADERS primaries to posix modules.
[gnulib.git] / modules / sys_wait
1 Description:
2 A <sys/wait.h> for systems with missing declarations.
3
4 Files:
5 lib/sys_wait.in.h
6 m4/sys_wait_h.m4
7
8 Depends-on:
9 c++defs
10 include_next
11 warn-on-use
12
13 configure.ac:
14 gl_SYS_WAIT_H
15 AC_PROG_MKDIR_P
16
17 Makefile.am:
18 nobase_nodist_pkginclude_HEADERS += sys/wait.h
19
20 BUILT_SOURCES += sys/wait.h
21
22 # We need the following in order to create <sys/wait.h> when the system
23 # has one that is incomplete.
24 sys/wait.h: sys_wait.in.h $(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|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
29               -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
30               -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
31               -e 's|@''NEXT_SYS_WAIT_H''@|$(NEXT_SYS_WAIT_H)|g' \
32               -e 's|@''GNULIB_WAITPID''@|$(GNULIB_WAITPID)|g' \
33               -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
34               -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
35               < $(srcdir)/sys_wait.in.h; \
36         } > $@-t && \
37         mv $@-t $@
38 MOSTLYCLEANFILES += sys/wait.h sys/wait.h-t
39 MOSTLYCLEANDIRS += sys
40
41 Include:
42 <sys/wait.h>
43
44 License:
45 LGPLv2+
46
47 Maintainer:
48 Bruno Haible