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