bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: recommending AC_SYS_YEAR2038_REQUIRED ?


From: Paul Eggert
Subject: Re: recommending AC_SYS_YEAR2038_REQUIRED ?
Date: Mon, 10 Apr 2023 15:00:08 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0

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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]