diff --git a/configure b/configure index 2031396895..39e436d57c 100755 --- a/configure +++ b/configure @@ -3724,6 +3724,20 @@ else DEVICE_VARS_FILE="$DEVICE_VARS_OUTFILE" fi +#------------------------------------------------------------------------------- +# Verify makespec +#------------------------------------------------------------------------------- +QMAKE_OUTPUT=`$outpath/bin/qmake -E -nocache -spec "$XQMAKESPEC" "QT=" /dev/null 2>&1 >/dev/null` +if [ $? != "0" ]; then + echo "Failed to process makespec for platform '$XPLATFORM'" + if [ "$OPT_VERBOSE" = "yes" ]; then + echo "$QMAKE_OUTPUT" + else + echo "Turn on verbose messaging (-v) to see the final report." + fi + exit 101 +fi + #------------------------------------------------------------------------------- # Detect pkg-config #-------------------------------------------------------------------------------