2 A <sys/time.h> that conforms better to POSIX.
18 BUILT_SOURCES += sys/time.h
20 # We need the following in order to create <sys/time.h> when the system
21 # doesn't have one that works with the given compiler.
22 sys/time.h: sys_time.in.h $(WARN_ON_USE_H) $(ARG_NONNULL_H)
23 $(AM_V_at)$(MKDIR_P) sys
24 $(AM_V_GEN)rm -f $@-t $@ && \
25 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
26 sed -e 's/@''HAVE_SYS_TIME_H''@/$(HAVE_SYS_TIME_H)/g' \
27 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
28 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
29 -e 's|@''NEXT_SYS_TIME_H''@|$(NEXT_SYS_TIME_H)|g' \
30 -e 's/@''GNULIB_GETTIMEOFDAY''@/$(GNULIB_GETTIMEOFDAY)/g' \
31 -e 's/@''HAVE_STRUCT_TIMEVAL''@/$(HAVE_STRUCT_TIMEVAL)/g' \
32 -e 's/@''REPLACE_GETTIMEOFDAY''@/$(REPLACE_GETTIMEOFDAY)/g' \
33 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
34 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
35 < $(srcdir)/sys_time.in.h; \
38 MOSTLYCLEANFILES += sys/time.h sys/time.h-t