From 00b15927496058d23e6258a28d8996f87cf1f191 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sat, 27 Jul 2024 22:41:28 -0700 Subject: [PATCH] Port config.guess to strict POSIX.1-2024 c17 * config.guess (set_cc_for_build): Try the c17 compiler, standardized in POSIX.1-2024. See: https://pubs.opengroup.org/onlinepubs/9799919799/utilities/c17.html While we're at it, prefer c99 to c89. Signed-off-by: Dmitry V. Levin --- config.guess | 4 ++-- doc/config.guess.1 | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config.guess b/config.guess index b7f5e24..48a6846 100755 --- a/config.guess +++ b/config.guess @@ -4,7 +4,7 @@ # shellcheck disable=SC2006,SC2268 # see below for rationale -timestamp='2024-04-03' +timestamp='2024-07-27' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by @@ -123,7 +123,7 @@ set_cc_for_build() { dummy=$tmp/dummy case ${CC_FOR_BUILD-},${HOST_CC-},${CC-} in ,,) echo "int x;" > "$dummy.c" - for driver in cc gcc c89 c99 ; do + for driver in cc gcc c17 c99 c89 ; do if ($driver -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then CC_FOR_BUILD=$driver break diff --git a/doc/config.guess.1 b/doc/config.guess.1 index e776868..46e6aae 100644 --- a/doc/config.guess.1 +++ b/doc/config.guess.1 @@ -1,5 +1,5 @@ .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.48.5. -.TH CONFIG.GUESS "1" "May 2024" "GNU config.guess (2024-04-03)" "User Commands" +.TH CONFIG.GUESS "1" "July 2024" "GNU config.guess (2024-07-27)" "User Commands" .SH NAME config.guess \- guess the build system triplet .SH SYNOPSIS