contrib: Fallback to gcc if cc is not available.

Some systems do not ship a cc executable.

Change-Id: Idb8ee8a5da0433bd96fb75dfcf1bd2d0aa6355e1
This commit is contained in:
Maxim Cournoyer
2021-02-10 09:17:07 -05:00
committed by Adrien Béraud
parent 905b95cd2c
commit 9d566c576c

View File

@ -86,7 +86,7 @@ done
if test -z "$BUILD"
then
echo -n "Guessing build system... "
BUILD="`${CC:-cc} -dumpmachine`"
BUILD="`${CC:-$(command -v cc || command -v gcc)} -dumpmachine`"
if test -z "$BUILD"; then
echo "FAIL!"
exit 1