]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
And the actual checks...
authorOtto <otto.moerbeek@open-xchange.com>
Tue, 26 Jan 2021 10:39:26 +0000 (11:39 +0100)
committerOtto <otto.moerbeek@open-xchange.com>
Tue, 26 Jan 2021 10:39:26 +0000 (11:39 +0100)
configure.ac
pdns/dnsdistdist/configure.ac
pdns/recursordist/configure.ac

index 2853015a03b6618b49fce1fd4ecd7a4287882cba..3922e858310b095e7c83d0b1fc0e6c3be68428da 100644 (file)
@@ -25,6 +25,10 @@ AC_PROG_CC
 # AM_PROG_CC_C_O
 AC_PROG_CXX
 AC_LANG([C++])
+
+AX_COMPILE_CHECK_SIZEOF(time_t)
+AS_IF([test $ac_size -lt 8], [AC_MSG_ERROR([size of time_t is $ac_size, which is not large enough to fix the y2k38 bug])])
+
 PDNS_CHECK_BISON
 PDNS_CHECK_FLEX
 
index 2aad28d84374840fc7b8aa0136f0a764a41bb044..cd8b4c8b4031691e474b7ae258d8617129dbbb83 100644 (file)
@@ -9,6 +9,9 @@ AC_PROG_CC
 AC_PROG_CXX
 AC_LANG([C++])
 
+AX_COMPILE_CHECK_SIZEOF(time_t)
+AS_IF([test $ac_size -lt 8], [AC_MSG_ERROR([size of time_t is $ac_size, which is not large enough to fix the y2k38 bug])])
+
 AC_DEFINE([DNSDIST], [1],
   [This is dnsdist]
 )
index dff81378caba286035e557262b6c0d836806401f..0e835daeda321c37f6013f157740257c9dcd6e64 100644 (file)
@@ -25,6 +25,9 @@ AC_PROG_CC
 AC_PROG_CXX
 AC_LANG([C++])
 
+AX_COMPILE_CHECK_SIZEOF(time_t)
+AS_IF([test $ac_size -lt 8], [AC_MSG_ERROR([size of time_t is $ac_size, which is not large enough to fix the y2k38 bug])])
+
 AC_DEFINE([RECURSOR], [1],
   [This is the PowerDNS Recursor]
 )