]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Improve AC_SYS_YEAR2038_RECOMMENDED diagnostic
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 13 May 2023 16:56:33 +0000 (09:56 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 13 May 2023 16:57:44 +0000 (09:57 -0700)
* lib/autoconf/specific.m4 (AC_SYS_YEAR2038_RECOMMENDED):
Do not recommend gcc -m64, as that likely will not work.
Problem reported by Bruno Haible in:
https://lists.gnu.org/r/bug-gnulib/2023-05/msg00060.html
Instead, mention that 32-bit time_t is not recommended
for this package, before telling the builder how
to configure with 32-bit time_t anyway.

lib/autoconf/specific.m4

index 88e0479e89529a8845ad82f5e800a5928aaf5306..91f20bf0d42f3ea7c73088e129a811290159313e 100644 (file)
@@ -228,8 +228,9 @@ AC_DEFUN([AC_SYS_YEAR2038_RECOMMENDED],
 AS_IF([test "$enable_year2038,$ac_have_year2038" = yes,no],
    [AC_MSG_FAILURE(m4_text_wrap(
       [could not enable timestamps after mid-January 2038.
-       Did you mean to build a 64-bit binary? (E.g., 'CC="${CC} -m64"'.)
-       To proceed with 32-bit time_t, configure with '--disable-year2038'.],
+       This package recommends support for these later timestamps.
+       However, to proceed with signed 32-bit time_t even though it
+       will fail then, configure with '--disable-year2038'.],
       [], [], [55]))])])
 
 # _AC_SYS_LARGEFILE_TEST_CODE