Merge branch 'upstream' into stable
[gnulib.git] / modules / sys_times
1 Description:
2 A <sys/times.h> for systems lacking it.
3
4 Files:
5 lib/sys_times.in.h
6 m4/sys_times_h.m4
7
8 Depends-on:
9 link-warning
10 arg-nonnull
11
12 configure.ac:
13 gl_SYS_TIMES_H
14 AC_PROG_MKDIR_P
15
16 Makefile.am:
17 BUILT_SOURCES += $(SYS_TIMES_H)
18
19 # We need the following in order to create <sys/times.h> when the system
20 # doesn't have one that works with the given compiler.
21 sys/times.h: sys_times.in.h $(LINK_WARNING_H) $(ARG_NONNULL_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|@''GNULIB_TIMES''@|$(GNULIB_TIMES)|g' \
26               -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
27               -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
28               < $(srcdir)/sys_times.in.h; \
29         } > $@-t && \
30         mv $@-t $@
31 MOSTLYCLEANFILES += sys/times.h sys/times.h-t
32 MOSTLYCLEANDIRS += sys
33
34 Include:
35 <sys/times.h>
36
37 License:
38 LGPLv2+
39
40 Maintainer:
41 Simon Josefsson