Add autoconf test for timegm to set HAVE_TIMEGM appropriately. This resolves build...
authorBrent Putman <putmanb@georgetown.edu>
Wed, 16 Aug 2006 23:59:22 +0000 (23:59 +0000)
committerBrent Putman <putmanb@georgetown.edu>
Wed, 16 Aug 2006 23:59:22 +0000 (23:59 +0000)
configure.ac

index 8fdc692..31b2d1c 100644 (file)
@@ -205,6 +205,9 @@ AC_TRY_LINK(
             [Define if you have an STL implementation that supports useful string specialization.])],
         )
 
             [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=""
 # Check for unit test support
 CXXTEST="/usr/bin/cxxtestgen.pl"
 CXXTESTFLAGS=""