Logic does not match error message.
authorLincoln Ramsay <lincoln.ramsay@nokia.com>
Thu, 6 Oct 2011 04:04:57 +0000 (14:04 +1000)
committerQt by Nokia <qt-info@nokia.com>
Thu, 6 Oct 2011 05:35:40 +0000 (07:35 +0200)
Passing -no-xcb or -no-wayland was enough to get a build with neither
but the error message says you need to pass both. Fix the logic.

Change-Id: I2d554d371b603e7df7bc07e1b4d5271ba31243f0
Reviewed-on: http://codereview.qt-project.org/6099
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
configure

index 2bb15c3..b100198 100755 (executable)
--- a/configure
+++ b/configure
@@ -6347,7 +6347,7 @@ if [ "$PLATFORM_QPA" = "yes" ]; then
 
     if [ "$PLATFORM_QPA" = "yes" ] && [ "$BUILD_ON_MAC" = "no" ]; then
         if [ "$CFG_XCB" = "no" ] && [ "$CFG_WAYLAND" = "no" ]; then
-            if [ "$ORIG_CFG_XCB" = "auto" ] && [ "$ORIG_CFG_WAYLAND" = "auto" ]; then
+            if [ "$ORIG_CFG_XCB" = "auto" ] || [ "$ORIG_CFG_WAYLAND" = "auto" ]; then
                 echo "No QPA platform plugin enabled!"
                 echo " If you really want to build without a QPA platform plugin you must pass"
                 echo " -no-xcb and -no-wayland to configure. Doing this will produce a Qt that"