Simplify autoconf timegm function check.
authorBrent Putman <putmanb@georgetown.edu>
Thu, 17 Aug 2006 16:10:42 +0000 (16:10 +0000)
committerBrent Putman <putmanb@georgetown.edu>
Thu, 17 Aug 2006 16:10:42 +0000 (16:10 +0000)
configure.ac

index 31b2d1c..7b773ed 100644 (file)
@@ -53,7 +53,7 @@ AC_C_CONST
 AC_TYPE_SIZE_T
 
 # Checks for library functions.
-AC_CHECK_FUNCS([strchr strdup strstr])
+AC_CHECK_FUNCS([strchr strdup strstr timegm])
 AC_CHECK_HEADERS([dlfcn.h])
 AC_CHECK_FUNC(dlclose, , [ AC_CHECK_LIB(dl, dlopen) ])
 
@@ -205,9 +205,6 @@ 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=""