@@ -31,6 +31,18 @@ AC_C_BIGENDIAN(little_endian=no, little_endian=yes, little_endian=no)
LT_PREREQ(2.2)
LT_INIT([disable-static])
+AC_CHECK_SIZEOF([time_t])
+SIZEOF_TIME_T=$($AWK '/SIZEOF_TIME_T/{print $3}' confdefs.h)
+if (test "${SIZEOF_TIME_T}" -lt "8"); then
+ AC_MSG_WARN([sizeof(time_t) is less than 8 bytes on your
+ platform. Hence, dates after 2038-01-19 cannot be
+ represented in a time_t. This might lead to overflow
+ errors in time processing functions such as timegm,
+ which can manifest themselves e.g. by TLS certificates
+ with an expiration date after 2038 not being accepted
+ by ell. Proceed with caution.])
+fi
+
AC_ARG_ENABLE(optimization, AS_HELP_STRING([--disable-optimization],
[disable code optimization through compiler]), [
if (test "${enableval}" = "no"); then