On 2023-04-10 14:42, Bruno Haible wrote:
How about a middle ground between the two macros? A macro, say
AC_SYS_YEAR2038_UNLESS_OPT_OUT (*), that
- like AC_SYS_YEAR2038, has the option --disable-year2038,
- like AC_SYS_YEAR2038_REQUIRED, fails if a large 'time_t' is
unavailable and --disable-year2038 was not specified.
Even simpler, let's have just one new macro instead of two. I.e., let's
change Autoconf to remove AC_SYS_YEAR2038_REQUIRED and to define instead
a macro AC_SYS_YEAR2038_OPT_OUT that acts like AC_SYS_YEAR2038 except it
errors out if wide time_t and --disable-year2038 are both missing.
Then let's propagate this change into Gnulib, and rename Gnulib's
year2030-required module to year2038-opt-out.
Similarly for AC_SYS_LARGEFILE_REQUIRED.
Since this is a change to Autoconf I'd like to hear Zack's opinion.