From 6e6c39148555c36002edbf09ac19d9d5da35d81d Mon Sep 17 00:00:00 2001 From: Theo Buehler Date: Wed, 12 Jun 2024 12:36:21 +0200 Subject: [PATCH] Require sizeof(time_t) >= 8 --- configure.ac | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configure.ac b/configure.ac index a5f96cd..6107713 100644 --- a/configure.ac +++ b/configure.ac @@ -156,6 +156,11 @@ AM_LDFLAGS="$LDFLAGS $CLANG_FLAGS" AC_SUBST(AM_CFLAGS) AC_SUBST(AM_LDFLAGS) +AC_CHECK_SIZEOF([time_t], [time.h]) +if test "$ac_cv_sizeof_time_t" -lt "8"; then + AC_MSG_ERROR([rpki-client doesn't support broken OS with small time_t]) +fi + AC_ARG_WITH([openssl], AS_HELP_STRING([--with-openssl=pkg-name], [Use pkg-config(1) pkg-name to find OpenSSL files]),