From bf7eb978597ba07906f0a7490e626c071af1987f Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Thu, 1 Sep 2016 09:48:39 +0200 Subject: Check the size of the time_t. * configure.ac (AC_HEADER_TIME): New. (AC_CHECK_SIZEOF): Check size of time_t. Signed-off-by: Werner Koch --- configure.ac | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/configure.ac b/configure.ac index 61b3b47..1caf655 100644 --- a/configure.ac +++ b/configure.ac @@ -184,6 +184,20 @@ AC_C_CONST AC_CHECK_SIZEOF(int) AC_CHECK_SIZEOF(long) AC_CHECK_SIZEOF(long long) +AC_HEADER_TIME +AC_CHECK_SIZEOF(time_t,,[[ +#include +#if TIME_WITH_SYS_TIME +# include +# include +#else +# if HAVE_SYS_TIME_H +# include +# else +# include +# endif +#endif +]]) # Find a 64 bit integer type to be used instead of off_t. We prefer # the standard integer types over int64_t and finally try long long. -- cgit v1.2.1