* MODULES.html.sh (Support for systems lacking POSIX:2001): New
[gnulib.git] / modules / sys_time
1 Description:
2 A <sys/time.h> that conforms better to POSIX.
3
4 Files:
5 lib/sys_time_.h
6 m4/sys_time_h.m4
7
8 Depends-on:
9 absolute-header
10
11 configure.ac:
12 gl_HEADER_SYS_TIME_H
13
14 Makefile.am:
15 BUILT_SOURCES += sys/time.h
16
17 # We need the following in order to create <sys/time.h> when the system
18 # doesn't have one that works with the given compiler.
19 sys/time.h: sys_time_.h
20         test -d sys || mkdir sys
21         rm -f $@-t $@
22         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
23           sed -e 's/@''HAVE_SYS_TIME_H''@/$(HAVE_SYS_TIME_H)/g' \
24               -e 's|@''ABSOLUTE_SYS_TIME_H''@|$(ABSOLUTE_SYS_TIME_H)|g' \
25               -e 's/@''GETTIMEOFDAY_CLOBBERS_LOCALTIME''@/$(GETTIMEOFDAY_CLOBBERS_LOCALTIME)/g' \
26               -e 's/@''HAVE_GETTIMEOFDAY_POSIX_SIGNATURE''@/$(HAVE_GETTIMEOFDAY_POSIX_SIGNATURE)/g' \
27               -e 's/@''HAVE_STRUCT_TIMEVAL''@/$(HAVE_STRUCT_TIMEVAL)/g' \
28               < $(srcdir)/sys_time_.h; \
29         } > $@-t
30         mv $@-t $@
31 MOSTLYCLEANFILES += sys/time.h sys/time.h-t
32
33 Include:
34 #include <sys/time.h>
35
36 License:
37 LGPL
38
39 Maintainer:
40 all