diff options
author | Morten Sørvig <msorvig@trolltech.com> | 2009-04-14 07:30:15 (GMT) |
---|---|---|
committer | Morten Sørvig <msorvig@trolltech.com> | 2009-04-14 07:30:15 (GMT) |
commit | 1c4f8069dea405cc80e87548e1e3609611a7bab4 (patch) | |
tree | 0a0f10385007084b72115c5ef93ed59abc2e79e4 /configure | |
parent | 02f4f244f585868dc1cca208f0caa6f02d734d65 (diff) | |
download | Qt-1c4f8069dea405cc80e87548e1e3609611a7bab4.zip Qt-1c4f8069dea405cc80e87548e1e3609611a7bab4.tar.gz Qt-1c4f8069dea405cc80e87548e1e3609611a7bab4.tar.bz2 |
Allow "i386" as an alias for x86 for Mac universal builds
GCC uses i386, but configure has always used x86, which can lead to confusion.
Reviewed-by: nrc
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -2694,14 +2694,17 @@ fi # check -arch arguments for validity. if [ "$PLATFORM_MAC" = "yes" ]; then - ALLOWED="x86 ppc x86_64 ppc64" + ALLOWED="x86 ppc x86_64 ppc64 i386" for i in $CFG_MAC_ARCHS do if echo "$ALLOWED" | grep -w -v "$i" > /dev/null 2>&1; then - echo "Unknown architecture: \"$i\". Supported architectures: x86 ppc x86_64 ppc64"; + echo "Unknown architecture: \"$i\". Supported architectures: x86[i386] ppc x86_64 ppc64"; exit 2; fi done + +# replace "i386" with "x86" to support configuring with -arch i386 as an alias for x86. + CFG_MAC_ARCHS="${CFG_MAC_ARCHS/i386/x86}" fi # find the default framework value |