aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorBrent Cook <bcook@openbsd.org>2015-10-17 23:32:21 -0500
committerBrent Cook <bcook@openbsd.org>2015-10-17 23:32:21 -0500
commitc8918dd0be1bbadfcebfc6631bd63f3b3e83befd (patch)
tree86c209e6160b32fe04ea919c49134823b461f351 /configure.ac
parenta45e38e962a30307dd2034c2c032bd76333ebd2c (diff)
downloadportable-c8918dd0be1bbadfcebfc6631bd63f3b3e83befd.tar.gz
portable-c8918dd0be1bbadfcebfc6631bd63f3b3e83befd.tar.bz2
portable-c8918dd0be1bbadfcebfc6631bd63f3b3e83befd.zip
include warnings about small time_t
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac12
1 files changed, 9 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index e97991d..148ca64 100644
--- a/configure.ac
+++ b/configure.ac
@@ -48,9 +48,6 @@ AM_CONDITIONAL([BUILD_CERTHASH], [test "x$ac_cv_func_symlink" = xyes])
48# Check if funopen exists 48# Check if funopen exists
49AC_CHECK_FUNC([funopen]) 49AC_CHECK_FUNC([funopen])
50 50
51# Check if time_t is sized correctly
52AC_CHECK_SIZEOF([time_t], [time.h])
53
54CHECK_LIBC_COMPAT 51CHECK_LIBC_COMPAT
55CHECK_SYSCALL_COMPAT 52CHECK_SYSCALL_COMPAT
56CHECK_CRYPTO_COMPAT 53CHECK_CRYPTO_COMPAT
@@ -117,6 +114,9 @@ AM_CONDITIONAL([HOST_ASM_ELF_X86_64],
117AM_CONDITIONAL([HOST_ASM_MACOSX_X86_64], 114AM_CONDITIONAL([HOST_ASM_MACOSX_X86_64],
118 [test "x$HOST_ABI" = "xmacosx" -a "$host_cpu" = "x86_64" -a "x$enable_asm" != "xno"]) 115 [test "x$HOST_ABI" = "xmacosx" -a "$host_cpu" = "x86_64" -a "x$enable_asm" != "xno"])
119 116
117# Check if time_t is sized correctly
118AC_CHECK_SIZEOF([time_t], [time.h])
119
120AC_CONFIG_FILES([ 120AC_CONFIG_FILES([
121 Makefile 121 Makefile
122 include/Makefile 122 include/Makefile
@@ -135,4 +135,10 @@ AC_CONFIG_FILES([
135 openssl.pc 135 openssl.pc
136]) 136])
137 137
138AM_CONDITIONAL([SMALL_TIME_T], [test "$ac_cv_sizeof_time_t" = "4"])
139if test "$ac_cv_sizeof_time_t" = "4"; then
140 echo " ** Warning, this system is unable to represent times past 2038"
141 echo " ** It will behave incorrectly when handling valid RFC5280 dates"
142fi
143
138AC_OUTPUT 144AC_OUTPUT