$NetBSD: patch-qt_configure,v 1.3 2020/05/24 23:06:47 joerg Exp $

Fix == operator in shell script
Allow building with recent GCC

--- qt/configure.orig	2016-08-23 06:13:28.000000000 +0000
+++ qt/configure
@@ -3571,7 +3573,7 @@ fi
 if [ "$PLATFORM_MAC" = "yes" ] && [ '!' -z "$CFG_SDK" ]; then
     # get the darwin version. 10.0.0 and up means snow leopard.
     VERSION=`uname -r | tr '.' ' ' | awk '{print $1}'`
-    if [ "$VERSION" -gt 9 ] && [ `basename "$CFG_SDK"` == "MacOSX10.4u.sdk" ] && [ "$PLATFORM" == "macx-g++" ]; then
+    if [ "$VERSION" -gt 9 ] && [ `basename "$CFG_SDK"` = "MacOSX10.4u.sdk" ] && [ "$PLATFORM" = "macx-g++" ]; then
         echo
         echo "WARNING: The 10.4u SDK does not support gcc 4.2. Configure with -platform macx-g++40. "
         echo
@@ -7203,7 +7205,7 @@ fi
 # select Carbon on 10.4 Tiger.
 if [ "$PLATFORM_MAC" = "yes" ]; then
     VERSION=`uname -r | tr '.' ' ' | awk '{print $1}'`
-    if [ "$VERSION" == 8 ]; then
+    if [ "$VERSION" = 8 ]; then
         CFG_MAC_COCOA="no";
         CFG_MAC_CARBON="yes";
     fi
@@ -7211,7 +7213,7 @@ fi
 
 # select Carbon when using the 10.4u SDK
 if [ "$PLATFORM_MAC" = "yes" ] && [ -n "$CFG_SDK" ]; then
-    if [ `basename "$CFG_SDK"` == "MacOSX10.4u.sdk" ]; then
+    if [ `basename "$CFG_SDK"` = "MacOSX10.4u.sdk" ]; then
         echo "Carbon on";
         CFG_MAC_COCOA="no";
         CFG_MAC_CARBON="yes";
@@ -7732,18 +7734,6 @@ case "$XPLATFORM" in
 	canBuildQtXmlPatterns="no"
 	;;
     *-g++*)
-	# Check gcc's version
-	case "$(${QMAKE_CONF_COMPILER} -dumpversion)" in
-	    5*|4*|3.4*)
-		;;
-            3.3*)
-                canBuildWebKit="no"
-                ;;
-	    *)
-		canBuildWebKit="no"
-		canBuildQtXmlPatterns="no"
-		;;
-	esac
 	;;
     solaris-cc*)
         # Check the compiler version
