summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2019-07-19 12:35:02 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2019-07-19 12:35:02 +0000
commitff7a54609beb929d70c3243d03b15eb29b6fb5cb (patch)
treed255d05c1697cfb6b4ded9db658dc337da4015ce /configure
parent34f0e76ca0135b2b302e2b079482a4038149b079 (diff)
downloadskalibs-ff7a54609beb929d70c3243d03b15eb29b6fb5cb.tar.xz
Accept raw external $CC for cross-compiling
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure7
1 files changed, 7 insertions, 0 deletions
diff --git a/configure b/configure
index b9dc50e..c0042bb 100755
--- a/configure
+++ b/configure
@@ -358,6 +358,13 @@ else
cross=
fi
echo "Checking for C compiler..."
+trycc ${CC}
+if test -n "$cross" && test -n "$CC_AUTO" ; then
+ b=`basename "$CC"`
+ if test "${b}" = "${b##$cross}" ; then
+ echo "Warning: compiler $CC is declared as a cross-compiler for target $target but does not start with prefix $cross" 1>&2
+ fi
+fi
trycc ${cross}${CC}
trycc ${cross}gcc
trycc ${cross}clang