summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorMorten Johan Sørvig <morten.sorvig@nokia.com>2010-01-06 12:18:44 (GMT)
committerMorten Johan Sørvig <morten.sorvig@nokia.com>2010-01-06 12:18:44 (GMT)
commit6f173f9686bb3be19b26215342699705765937d3 (patch)
tree127d8406c94c4cfadc4d961abf1a95687ec7a8cc /configure
parente7274672bfddc6896dc7edbf57b555189e06ed55 (diff)
downloadQt-6f173f9686bb3be19b26215342699705765937d3.zip
Qt-6f173f9686bb3be19b26215342699705765937d3.tar.gz
Qt-6f173f9686bb3be19b26215342699705765937d3.tar.bz2
Select Carbon when building on 10.4 Tiger.
Only perform the architecture check when "-carbon" has been specified on the configure line, as this is the only case where cocoa might have to be enabled on an arch by arch basis.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure31
1 files changed, 20 insertions, 11 deletions
diff --git a/configure b/configure
index 7744d51..0030c6c 100755
--- a/configure
+++ b/configure
@@ -5968,25 +5968,34 @@ if [ "$PLATFORM_MAC" = "yes" ] && [ "$CFG_MAC_ARCHS" = "" ]; then
[ "$OPT_VERBOSE" = "yes" ] && echo "Setting Mac architechture to$CFG_MAC_ARCHS."
fi
-# enable cocoa and/or carbon on Mac
+# enable Cocoa and/or Carbon on Mac
+# -carbon on the command line disables Cocoa, except for 64-bit archs
if [ "$CFG_MAC_CARBON" = "yes" ]; then
-# -carbon on the command line disables Cocoa, except for 64b-bit archs
CFG_MAC_CARBON="YES"
CFG_MAC_COCOA="NO"
-fi
-# check which archs are in use, enable cocoa if we find a 64-bit one
-if echo "$CFG_MAC_ARCHS" | grep 64 > /dev/null 2>&1; then
- CFG_MAC_COCOA="yes";
- CFG_MAC_CARBON="no";
- if echo "$CFG_MAC_ARCHS" | grep -w ppc > /dev/null 2>&1; then
- CFG_MAC_CARBON="yes";
+
+# check which archs are in use, enable cocoa if we find a 64-bit one
+ if echo "$CFG_MAC_ARCHS" | grep 64 > /dev/null 2>&1; then
+ CFG_MAC_COCOA="yes";
+ CFG_MAC_CARBON="no";
+ if echo "$CFG_MAC_ARCHS" | grep -w ppc > /dev/null 2>&1; then
+ CFG_MAC_CARBON="yes";
+ fi
+ if echo "$CFG_MAC_ARCHS" | grep -w x86 > /dev/null 2>&1; then
+ CFG_MAC_CARBON="yes";
+ fi
fi
- if echo "$CFG_MAC_ARCHS" | grep -w x86 > /dev/null 2>&1; then
+fi
+
+# select Carbon on 10.4 Tiger.
+if [ "$PLATFORM_MAC" = "yes" ]; then
+ VERSION=`uname -r | tr '.' ' ' | awk '{print $1}'`
+ if [ "$VERSION" == 8 ]; then
+ CFG_MAC_COCOA="no";
CFG_MAC_CARBON="yes";
fi
fi
-
# set the global Mac deployment target. This is overridden on an arch-by-arch basis
# in some cases, see code further down
case "$PLATFORM,$CFG_MAC_COCOA" in