From 140ea7f150ca4282dfed27df05e087da48f69fd2 Mon Sep 17 00:00:00 2001 From: Brent Putman Date: Wed, 16 Aug 2006 23:59:22 +0000 Subject: [PATCH] Add autoconf test for timegm to set HAVE_TIMEGM appropriately. This resolves build errors for util/DateTime.cpp on Mac OS X. --- configure.ac | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configure.ac b/configure.ac index 8fdc692..31b2d1c 100644 --- a/configure.ac +++ b/configure.ac @@ -205,6 +205,9 @@ AC_TRY_LINK( [Define if you have an STL implementation that supports useful string specialization.])], ) +# check for timegm() support +AC_CHECK_FUNC(timegm, AC_DEFINE(HAVE_TIMEGM,1,[Define to 1 if timegm is available])) + # Check for unit test support CXXTEST="/usr/bin/cxxtestgen.pl" CXXTESTFLAGS="" -- 2.1.4