From d9728ee23196d66633a62a1353d1c46ff14e8835 Mon Sep 17 00:00:00 2001 From: Jacob Bachmeyer Date: Mon, 24 May 2021 23:05:16 -0500 Subject: [PATCH] config.guess: introduce intermediate variable with uname results This will allow quoting to be significantly simplified in another pass through the file. * config.guess: Introduce GUESS variable to hold results of uname analysis. --- config.guess | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/config.guess b/config.guess index dc0a6b2..ab968fe 100755 --- a/config.guess +++ b/config.guess @@ -84,6 +84,9 @@ if test $# != 0; then exit 1 fi +# Just in case it came from the environment. +GUESS= + # CC_FOR_BUILD -- compiler used by this script. Note that the use of a # compiler to aid in system detection is discouraged as it requires # temporary files to be created and, as you can see below, it is a @@ -1498,6 +1501,12 @@ EOF exit ;; esac +# Do we have a guess based on uname results? +if test "x$GUESS" != x; then + echo "$GUESS" + exit +fi + # No uname command or uname output not recognized. set_cc_for_build cat > "$dummy.c" <