From: Brent Putman Date: Thu, 17 Aug 2006 16:10:42 +0000 (+0000) Subject: Simplify autoconf timegm function check. X-Git-Tag: 1.0-alpha1~196 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-xmltooling.git;a=commitdiff_plain;h=c48ba8ecc539e1ebeb378b6ee350fd520c78c1f0 Simplify autoconf timegm function check. --- diff --git a/configure.ac b/configure.ac index 31b2d1c..7b773ed 100644 --- a/configure.ac +++ b/configure.ac @@ -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=""