]> granicus.if.org Git - python/commitdiff
Explicitly call '/usr/bin/arch' instead of just 'arch' to avoid using
authorRonald Oussoren <ronaldoussoren@mac.com>
Thu, 11 Feb 2010 13:22:03 +0000 (13:22 +0000)
committerRonald Oussoren <ronaldoussoren@mac.com>
Thu, 11 Feb 2010 13:22:03 +0000 (13:22 +0000)
a user-installed version of arch instead of the intended version. This is
needed because the interface of GNU arch is not quite compatible with what
the build machinery expects.

Fixes issue #7715 (backport from the trunk)

configure
configure.in

index b92c79d532835c686451c80b6a473cd6c5429343..0f7bbe299636ae9f1ecdbc23d65a51f231917755 100755 (executable)
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
 #! /bin/sh
-# From configure.in Revision: 78065 .
+# From configure.in Revision: 78069 .
 # Guess values for system-dependent variables and create Makefiles.
 # Generated by GNU Autoconf 2.61 for python 2.6.
 #
@@ -4699,15 +4699,15 @@ echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; }
 
                 elif test "$UNIVERSAL_ARCHS" = "all" ; then
                   UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
-                  ARCH_RUN_32BIT="arch -i386 -ppc"
+                  ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc"
 
                 elif test "$UNIVERSAL_ARCHS" = "intel" ; then
                   UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64"
-                  ARCH_RUN_32BIT="arch -i386"
+                  ARCH_RUN_32BIT="/usr/bin/arch -i386"
 
                 elif test "$UNIVERSAL_ARCHS" = "3-way" ; then
                   UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64"
-                  ARCH_RUN_32BIT="arch -i386 -ppc"
+                  ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc"
 
                 else
                   { { echo "$as_me:$LINENO: error: proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" >&5
index 01d1b6fa76af4fcb3d3be9bc2fb5a6a55be530c3..aa9f45dc8900c582b873b365f9c752f0518b1bf0 100644 (file)
@@ -950,15 +950,15 @@ yes)
 
                 elif test "$UNIVERSAL_ARCHS" = "all" ; then
                   UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
-                  ARCH_RUN_32BIT="arch -i386 -ppc"
+                  ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc"
 
                 elif test "$UNIVERSAL_ARCHS" = "intel" ; then
                   UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64"
-                  ARCH_RUN_32BIT="arch -i386"
+                  ARCH_RUN_32BIT="/usr/bin/arch -i386"
 
                 elif test "$UNIVERSAL_ARCHS" = "3-way" ; then
                   UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64"
-                  ARCH_RUN_32BIT="arch -i386 -ppc"
+                  ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc"
 
                 else
                   AC_MSG_ERROR([proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way])