2 A <sys/time.h> that conforms better to POSIX.
16 BUILT_SOURCES += $(SYS_TIME_H)
18 # We need the following in order to create <sys/time.h> when the system
19 # doesn't have one that works with the given compiler.
20 sys/time.h: sys_time.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/@''HAVE_SYS_TIME_H''@/$(HAVE_SYS_TIME_H)/g' \
25 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
26 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
27 -e 's|@''NEXT_SYS_TIME_H''@|$(NEXT_SYS_TIME_H)|g' \
28 -e 's/@''REPLACE_GETTIMEOFDAY''@/$(REPLACE_GETTIMEOFDAY)/g' \
29 -e 's/@''HAVE_STRUCT_TIMEVAL''@/$(HAVE_STRUCT_TIMEVAL)/g' \
30 < $(srcdir)/sys_time.in.h; \
33 MOSTLYCLEANFILES += sys/time.h sys/time.h-t