diff -u -r1.3 configutils.cpp
--- src/qsa/configure2/configutils.cpp  12 Apr 2007 14:29:20 -0000      1.3
+++ src/qsa/configure2/configutils.cpp  18 Apr 2007 18:54:00 -0000
@@ -116,13 +116,13 @@
         args.append(target);
     }

-    if (configs.size() > 0 || antiConfigs.size() > 0) {
-        args.append("-after");
-        if (!configs.isEmpty())
-            args.append( "CONFIG+=" + configs.join( " " ) );
-        if (!antiConfigs.isEmpty())
-            args << "CONFIG-=" + antiConfigs.join(" ");
-    }
+    args.append("-after");
+    if (!configs.isEmpty())
+        args.append( "CONFIG+=" + configs.join( " " ) );
+    if (!antiConfigs.isEmpty())
+        args << "CONFIG-=" + antiConfigs.join(" ");
+    //Need to pass QMAKE to qmake subprocesses
+    args.append( "QMAKE=" + qmake );

     if( !execute( args ) )
        warnings++;
