aboutsummaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorBrent Cook <bcook@openbsd.org>2015-10-14 23:53:52 -0500
committerBrent Cook <bcook@openbsd.org>2015-10-15 09:16:38 -0500
commit4298ac9305d89cadf90ebb01f0e85bb74fea2c1e (patch)
treee58171fce41da919e0005b167fab19185c4d002d /m4
parent1dd79f5d8f617afdb0f5d51ac0278d7b4f84b82f (diff)
downloadportable-4298ac9305d89cadf90ebb01f0e85bb74fea2c1e.tar.gz
portable-4298ac9305d89cadf90ebb01f0e85bb74fea2c1e.tar.bz2
portable-4298ac9305d89cadf90ebb01f0e85bb74fea2c1e.zip
include timegm fallback
Diffstat (limited to 'm4')
-rw-r--r--m4/check-libc.m43
1 files changed, 3 insertions, 0 deletions
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])
4# Check for general libc functions 4# Check for general libc functions
5AC_CHECK_FUNCS([asprintf inet_pton memmem readpassphrase reallocarray]) 5AC_CHECK_FUNCS([asprintf inet_pton memmem readpassphrase reallocarray])
6AC_CHECK_FUNCS([strlcat strlcpy strndup strnlen strsep strtonum]) 6AC_CHECK_FUNCS([strlcat strlcpy strndup strnlen strsep strtonum])
7AC_CHECK_FUNCS([timegm _mkgmtime])
7AM_CONDITIONAL([HAVE_ASPRINTF], [test "x$ac_cv_func_asprintf" = xyes]) 8AM_CONDITIONAL([HAVE_ASPRINTF], [test "x$ac_cv_func_asprintf" = xyes])
8AM_CONDITIONAL([HAVE_INET_PTON], [test "x$ac_cv_func_inet_pton" = xyes]) 9AM_CONDITIONAL([HAVE_INET_PTON], [test "x$ac_cv_func_inet_pton" = xyes])
9AM_CONDITIONAL([HAVE_MEMMEM], [test "x$ac_cv_func_memmem" = xyes]) 10AM_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])
15AM_CONDITIONAL([HAVE_STRNLEN], [test "x$ac_cv_func_strnlen" = xyes]) 16AM_CONDITIONAL([HAVE_STRNLEN], [test "x$ac_cv_func_strnlen" = xyes])
16AM_CONDITIONAL([HAVE_STRSEP], [test "x$ac_cv_func_strsep" = xyes]) 17AM_CONDITIONAL([HAVE_STRSEP], [test "x$ac_cv_func_strsep" = xyes])
17AM_CONDITIONAL([HAVE_STRTONUM], [test "x$ac_cv_func_strtonum" = xyes]) 18AM_CONDITIONAL([HAVE_STRTONUM], [test "x$ac_cv_func_strtonum" = xyes])
19AM_CONDITIONAL([HAVE_TIMEGM], [test "x$ac_cv_func_timegm" = xyes])
20AM_CONDITIONAL([HAVE__MKGMTIME], [test "x$ac_cv_func__mkgmtime" = xyes])
18]) 21])
19 22
20AC_DEFUN([CHECK_SYSCALL_COMPAT], [ 23AC_DEFUN([CHECK_SYSCALL_COMPAT], [