]> git.ipfire.org Git - thirdparty/autoconf.git/commit
Skip test of AC_SYS_YEAR2038_RECOMMENDED if system doesn’t support 64-bit time_t.
authorZack Weinberg <zack@owlfolio.org>
Tue, 19 Dec 2023 14:50:30 +0000 (09:50 -0500)
committerZack Weinberg <zack@owlfolio.org>
Tue, 19 Dec 2023 18:53:24 +0000 (13:53 -0500)
commit226f37bdbaf76ab3e6ee0546909f08eb2acfb43f
tree3d3670d78288d5fbbdfa26e0aa0090404939f964
parent2d36f11a5266c22a4d40e8bea2fec7fdd5c42297
Skip test of AC_SYS_YEAR2038_RECOMMENDED if system doesn’t support 64-bit time_t.

AC_SYS_YEAR2038_RECOMMENDED causes configure to fail if we can’t find
a way to activate support for 64-bit time_t.  This makes its
mktests.pl test fail on systems that don’t support 64-bit time_t.
Switch to a hand-written test that’s skipped on those systems.
While I was in there I added slightly more testing of the closely
related macros AC_SYS_LARGEFILE and AC_SYS_YEAR2038.

While testing this change I noticed that AC_SYS_LARGEFILE and
AC_SYS_YEAR2038 malfunction if AC_LANG([C++]) is in effect.
The cause is too hairy to fix before the release; add a mention
to NEWS instead.  (Bug <https://savannah.gnu.org/support/index.php?110983>.)

* tests/mktests.pl: Exclude AC_SYS_LARGEFILE, AC_SYS_YEAR2038, and
  AC_SYS_YEAR2038_RECOMMENDED from automatic test generation.
* tests/semantics.at: Add manual tests of those macros.
NEWS
tests/mktests.pl
tests/semantics.at