If a C23 compiler is detected, try asking for C17. REL9_5_STABLE github/REL9_5_STABLE
authorThomas Munro <[email protected]>
Wed, 27 Nov 2024 02:43:18 +0000 (15:43 +1300)
committerThomas Munro <[email protected]>
Wed, 27 Nov 2024 03:17:20 +0000 (16:17 +1300)
commit5b40ce749c6fed49772458fca0fda633ae390b08
tree06fb4108311b007eddb17f0d179036766d1d48a3
parent0536f8e2cca21aad53eb11b39513e96e5f0f0830
If a C23 compiler is detected, try asking for C17.

Branches before 16 can't be compiled with a C23 compiler (see
deprecation warnings silenced by commit f9a56e72, and non-back-patchable
changes made in 16 by commit 1c27d16e).  Test __STDC_VERSION__, and if
it's above C17 then try appending -std=gnu17.  The test is done with the
user's CFLAGS, so an acceptable language version can also be configured
manually that way.

This is done in branches 15 and older, back to 9.2, per policy of
keeping them buildable with modern tools.

Discussion: https://postgr.es/m/87o72eo9iu.fsf%40gentoo.org
configure
configure.in