From 026db9217d89c7cc7069d663ec4ec1860c15fc39 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 8 Dec 2013 19:25:46 +0000 Subject: -test for tm_gmtoff and use it instead of 'timezone' as suggested by GNU libc manual --- configure.ac | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 4ae54482d..d901efc4a 100644 --- a/configure.ac +++ b/configure.ac @@ -203,6 +203,13 @@ AC_CHECK_LIB(socket, socket) AC_CHECK_LIB(m, log) AC_CHECK_LIB(c, getloadavg, AC_DEFINE(HAVE_GETLOADAVG,1,[getloadavg supported])) + +AC_CHECK_MEMBER(struct tm.tm_gmtoff, + [AC_DEFINE(HAVE_TM_GMTOFF, 1, + [Define if struct tm has the tm_gmtoff member.])], + , + [#include ]) + # 'save' libs; only those libs found so far will be # linked against _everywhere_. For the others, we # will be more selective! -- cgit v1.2.3