compute ASN.1 to UTC time without time functions

This commit is contained in:
Andreas Steffen
2009-05-14 13:55:55 +02:00
parent 3783980edb
commit 30a896173b
2 changed files with 41 additions and 72 deletions
-16
View File
@@ -819,22 +819,6 @@ AC_TRY_COMPILE(
AC_CHECK_FUNCS(backtrace)
AC_CHECK_FUNCS(prctl)
AC_CHECK_FUNCS(gethostbyname_r)
AC_CHECK_FUNCS(timegm)
AC_MSG_CHECKING(for timezone variable)
AC_TRY_LINK(
[#include <time.h>],
[/* check for timezone function (e.g. FreeBSD) */
return (int)timezone(0, 0);],
[AC_MSG_RESULT([no])],
[AC_TRY_LINK(
[#include <time.h>],
[/* check for global variable */
return (int)timezone;],
[AC_MSG_RESULT([yes]); AC_DEFINE([HAVE_VAR_TIMEZONE])],
[AC_MSG_RESULT([no])]
)]
)
AC_CHECK_HEADERS(net/pfkeyv2.h netipsec/ipsec.h)