summaryrefslogtreecommitdiff
path: root/modules/sys_time
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2007-01-28 18:55:01 +0000
committerJim Meyering <jim@meyering.net>2007-01-28 18:55:01 +0000
commit1d4024b4187e22048a33e5baf953183fc2dedeb3 (patch)
tree8a516e462af4c077671a68f2faea5f3dc92008a4 /modules/sys_time
parent8e2cdb066af972ddb93eb27bb1f7cdb51193c5e5 (diff)
downloadgnulib-1d4024b4187e22048a33e5baf953183fc2dedeb3.tar.gz
* modules/sys_time (Makefile.am): Build sys/time.h only when it's the
value of $(SYS_TIME_H). [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed, remove it conditionally, too. * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H. * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting GETTIMEOFDAY_REPLACEMENT to 1. 2007-01-28 Bruno Haible <bruno@clisp.org>
Diffstat (limited to 'modules/sys_time')
-rw-r--r--modules/sys_time4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/sys_time b/modules/sys_time
index 80be27d0f4..006b7afe7f 100644
--- a/modules/sys_time
+++ b/modules/sys_time
@@ -13,7 +13,7 @@ gl_HEADER_SYS_TIME_H
AC_PROG_MKDIR_P
Makefile.am:
-BUILT_SOURCES += sys/time.h
+BUILT_SOURCES += $(SYS_TIME_H)
# We need the following in order to create <sys/time.h> when the system
# doesn't have one that works with the given compiler.
@@ -28,7 +28,7 @@ sys/time.h: sys_time_.h
< $(srcdir)/sys_time_.h; \
} > $@-t
mv $@-t $@
-MOSTLYCLEANFILES += sys/time.h sys/time.h-t
+MOSTLYCLEANFILES += $(SYS_TIME_H) sys/time.h-t
Include:
#include <sys/time.h>