2 A <sys/wait.h> for systems with missing declarations.
17 BUILT_SOURCES += $(SYS_WAIT_H)
19 # We need the following in order to create <sys/wait.h> when the system
20 # has one that is incomplete.
21 sys/wait.h: sys_wait.in.h
22 $(AM_V_at)$(MKDIR_P) sys
23 $(AM_V_GEN)rm -f $@-t $@ && \
24 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
25 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
26 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
27 -e 's|@''NEXT_SYS_WAIT_H''@|$(NEXT_SYS_WAIT_H)|g' \
28 -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
29 < $(srcdir)/sys_wait.in.h; \
32 MOSTLYCLEANFILES += sys/wait.h sys/wait.h-t
33 MOSTLYCLEANDIRS += sys