2 A <sys/times.h> for systems lacking it.
18 BUILT_SOURCES += sys/times.h
20 # We need the following in order to create <sys/times.h> when the system
21 # doesn't have one that works with the given compiler.
22 sys/times.h: sys_times.in.h $(top_builddir)/config.status $(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|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
27 -e 's/@''HAVE_SYS_TIMES_H''@/$(HAVE_SYS_TIMES_H)/g' \
28 -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_TIMES_H''@|$(NEXT_SYS_TIMES_H)|g' \
32 -e 's/@''GNULIB_TIMES''@/$(GNULIB_TIMES)/g' \
33 -e 's|@''HAVE_STRUCT_TMS''@|$(HAVE_STRUCT_TMS)|g' \
34 -e 's|@''HAVE_TIMES''@|$(HAVE_TIMES)|g' \
35 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
36 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
37 < $(srcdir)/sys_times.in.h; \
40 MOSTLYCLEANFILES += sys/times.h sys/times.h-t
41 MOSTLYCLEANDIRS += sys