If -xcb is passed and we can't enable xcb, die

Needed to resolve issue QTBUG-21486

Change-Id: I5493cfa73f0433fda60fb0dd850380021e13b928
Reviewed-on: http://codereview.qt-project.org/5944
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
bb10
Lincoln Ramsay 2011-10-04 13:20:42 +10:00 committed by Qt by Nokia
parent c7f61b8bf5
commit a67022723b
1 changed files with 6 additions and 0 deletions

6
configure vendored
View File

@ -6293,6 +6293,12 @@ if [ "$PLATFORM_QPA" = "yes" ]; then
QT_CONFIG="$QT_CONFIG xcb-xlib"
fi
else
if [ "$CFG_XCB" = "yes" ]; then
echo "The XCB test failed!"
echo " You might need to install dependency packages."
echo " See src/plugins/platforms/xcb/README."
exit 1
fi
CFG_XCB=no
fi
fi