From 4298ac9305d89cadf90ebb01f0e85bb74fea2c1e Mon Sep 17 00:00:00 2001 From: Brent Cook Date: Wed, 14 Oct 2015 23:53:52 -0500 Subject: include timegm fallback --- m4/check-libc.m4 | 3 +++ 1 file changed, 3 insertions(+) (limited to 'm4') diff --git a/m4/check-libc.m4 b/m4/check-libc.m4 index c0df011..3efc686 100644 --- a/m4/check-libc.m4 +++ b/m4/check-libc.m4 @@ -4,6 +4,7 @@ AC_CHECK_HEADERS([err.h readpassphrase.h]) # Check for general libc functions AC_CHECK_FUNCS([asprintf inet_pton memmem readpassphrase reallocarray]) AC_CHECK_FUNCS([strlcat strlcpy strndup strnlen strsep strtonum]) +AC_CHECK_FUNCS([timegm _mkgmtime]) AM_CONDITIONAL([HAVE_ASPRINTF], [test "x$ac_cv_func_asprintf" = xyes]) AM_CONDITIONAL([HAVE_INET_PTON], [test "x$ac_cv_func_inet_pton" = xyes]) AM_CONDITIONAL([HAVE_MEMMEM], [test "x$ac_cv_func_memmem" = xyes]) @@ -15,6 +16,8 @@ AM_CONDITIONAL([HAVE_STRNDUP], [test "x$ac_cv_func_strndup" = xyes]) AM_CONDITIONAL([HAVE_STRNLEN], [test "x$ac_cv_func_strnlen" = xyes]) AM_CONDITIONAL([HAVE_STRSEP], [test "x$ac_cv_func_strsep" = xyes]) AM_CONDITIONAL([HAVE_STRTONUM], [test "x$ac_cv_func_strtonum" = xyes]) +AM_CONDITIONAL([HAVE_TIMEGM], [test "x$ac_cv_func_timegm" = xyes]) +AM_CONDITIONAL([HAVE__MKGMTIME], [test "x$ac_cv_func__mkgmtime" = xyes]) ]) AC_DEFUN([CHECK_SYSCALL_COMPAT], [ -- cgit v1.2.3-55-g6feb