configure: Fix x86_64 detection
authorBradley T. Hughes <bradley.hughes@nokia.com>
Fri, 23 Mar 2012 06:02:47 +0000 (07:02 +0100)
committerQt by Nokia <qt-info@nokia.com>
Fri, 23 Mar 2012 06:50:57 +0000 (07:50 +0100)
The regular expression should look for underscores in addition to
alphanumeric characters.

Change-Id: Idc3dbd67291ec1420f818d74fba8413b1e7cbcf1
Reviewed-by: Girish Ramakrishnan <girish.1.ramakrishnan@nokia.com>
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
configure
tools/configure/configureapp.cpp

index 6b2cca4..b24787a 100755 (executable)
--- a/configure
+++ b/configure
@@ -3933,7 +3933,7 @@ fi # Build qmake
 #-------------------------------------------------------------------------------
 
 # Use config.tests/arch/arch.pro to has the compiler tell us what the target architecture is
-CFG_ARCH=`"$outpath/bin/qmake" -spec "$XQMAKESPEC" -o /dev/null "$relpath/config.tests/arch/arch.pro" 2>&1 | sed -n -e 's,^Project MESSAGE:.*Architecture: \([a-zA-Z0-9]*\).*,\1,p'`
+CFG_ARCH=`"$outpath/bin/qmake" -spec "$XQMAKESPEC" -o /dev/null "$relpath/config.tests/arch/arch.pro" 2>&1 | sed -n -e 's,^Project MESSAGE:.*Architecture: \([a-zA-Z0-9_]*\).*,\1,p'`
 
 [ -z "$CFG_ARCH" ] && CFG_ARCH="unknown"
 if [ "$QMAKESPEC" != "$XQMAKESPEC" ]; then
index 58ffd28..f47cff6 100644 (file)
@@ -2584,7 +2584,7 @@ void Configure::detectArch()
         if (output.isEmpty())
             continue;
 
-        QRegExp re("Project MESSAGE:.*Architecture: ([a-zA-Z0-9]*)");
+        QRegExp re("Project MESSAGE:.*Architecture: ([a-zA-Z0-9_]*)");
         if (re.indexIn(output) != -1)
             dictionary[key] = re.cap(1);
     }