summaryrefslogtreecommitdiffstats
path: root/rfc822/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'rfc822/configure.ac')
-rw-r--r--rfc822/configure.ac9
1 files changed, 6 insertions, 3 deletions
diff --git a/rfc822/configure.ac b/rfc822/configure.ac
index 82dbdfa..a8d7efd 100644
--- a/rfc822/configure.ac
+++ b/rfc822/configure.ac
@@ -64,22 +64,25 @@ AC_CACHE_CHECK([how to calculate alternate timezone],librfc822_cv_SYS_TIMEZONE,
AC_TRY_COMPILE([
#include <time.h>
+time_t t;
],[
-time_t t=altzone;
+t=altzone;
], librfc822_cv_SYS_TIMEZONE=altzone,
AC_TRY_COMPILE([
#include <time.h>
+int n;
],[
-int n=daylight;
+ n=daylight;
], librfc822_cv_SYS_TIMEZONE=daylight,
AC_TRY_COMPILE([
#include <time.h>
extern struct tm dummy;
+long n;
],[
-long n=dummy.tm_gmtoff;
+ n=dummy.tm_gmtoff;
] ,librfc822_cv_SYS_TIMEZONE=tm_gmtoff,
librfc822_cv_SYS_TIMEZONE=unknown
)