summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorHarald Fernengel <harald.fernengel@nokia.com>2009-12-17 10:23:19 (GMT)
committerHarald Fernengel <harald.fernengel@nokia.com>2009-12-17 10:23:19 (GMT)
commit7dcf7e6f2593a2d2e3ee5768e27cdf17500c90c9 (patch)
tree6d1a2a81629b60c30cd36ef5ad4ec933b5748e89 /configure
parent8fdf9f14c662b8d92cd232e09baf526476fcb297 (diff)
downloadQt-7dcf7e6f2593a2d2e3ee5768e27cdf17500c90c9.zip
Qt-7dcf7e6f2593a2d2e3ee5768e27cdf17500c90c9.tar.gz
Qt-7dcf7e6f2593a2d2e3ee5768e27cdf17500c90c9.tar.bz2
Stop the configuration if the test compiler cannot be found.
Author: Adrian Constantin <adrian.constantin@nokia.com> Reviewed-by: Thiago Macieira
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure b/configure
index 8d9d371..04f17bd 100755
--- a/configure
+++ b/configure
@@ -2922,6 +2922,10 @@ fi
QMAKE_CONF_COMPILER=`getQMakeConf "$XQMAKESPEC" | grep "^QMAKE_CXX[^_A-Z0-9]" | sed "s,.* *= *\(.*\)$,\1," | tail -1`
TEST_COMPILER="$CC"
[ -z "$TEST_COMPILER" ] && TEST_COMPILER=$QMAKE_CONF_COMPILER
+if [ -z "$TEST_COMPILER" ]; then
+ echo "ERROR: Cannot set the compiler for the configuration tests"
+ exit 1
+fi
# auto-detect precompiled header support
if [ "$CFG_PRECOMPILE" = "auto" ]; then