]> granicus.if.org Git - python/commitdiff
Merged revisions 72081 via svnmerge from
authorThomas Heller <theller@ctypes.org>
Tue, 28 Apr 2009 20:01:18 +0000 (20:01 +0000)
committerThomas Heller <theller@ctypes.org>
Tue, 28 Apr 2009 20:01:18 +0000 (20:01 +0000)
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r72081 | thomas.heller | 2009-04-28 21:23:41 +0200 (Di, 28 Apr 2009) | 3 lines

  Issue #4305: ctypes fails to build on mipsel-linux-gnu (detects mips
  instead of mipsel)
........

Misc/NEWS
Modules/_ctypes/libffi/configure
Modules/_ctypes/libffi/configure.ac

index d5a6a16462a81c56fd02c8c4172658a8cf3f1f20..96fcc3cbff85a211b3ed2dff5e16b8f9d19f5946 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -27,6 +27,8 @@ Core and Builtins
 Library
 -------
 
+- Issue #4305: ctypes should now build again on mipsel-linux-gnu
+
 - Issue #5853: calling a function of the mimetypes module from several threads
   at once could hit the recursion limit if the mimetypes database hadn't been
   initialized before.
index aaa79141902ced72d4338d9fe7f7b68be5719c98..2034a1af36f0ae7739d049b1a97a5821abb7b8cd 100755 (executable)
@@ -20426,10 +20426,10 @@ case "$host" in
        ;;
 
   mips-sgi-irix5.* | mips-sgi-irix6.*)
-       TARGET=MIPS; TARGETDIR=mips
+       TARGET=MIPS_IRIX; TARGETDIR=mips
        ;;
   mips*-*-linux*)
-       TARGET=MIPS; TARGETDIR=mips
+       TARGET=MIPS_LINUX; TARGETDIR=mips
        ;;
 
   powerpc*-*-linux* | powerpc-*-sysv*)
@@ -20484,7 +20484,7 @@ echo "$as_me: error: \"libffi has not been ported to $host.\"" >&2;}
    { (exit 1); exit 1; }; }
 fi
 
- if test x$TARGET = xMIPS; then
+ if expr x$TARGET : 'xMIPS' > /dev/null; then
   MIPS_TRUE=
   MIPS_FALSE='#'
 else
index 57c161befe16b6ae065ebc4e2693f7f6f8400b4c..947053690e54dc13c968bcd751953dfd61578f2e 100644 (file)
@@ -106,10 +106,10 @@ case "$host" in
        ;;
 
   mips-sgi-irix5.* | mips-sgi-irix6.*)
-       TARGET=MIPS; TARGETDIR=mips
+       TARGET=MIPS_IRIX; TARGETDIR=mips
        ;;
   mips*-*-linux*)
-       TARGET=MIPS; TARGETDIR=mips
+       TARGET=MIPS_LINUX; TARGETDIR=mips
        ;;
 
   powerpc*-*-linux* | powerpc-*-sysv*)
@@ -162,7 +162,7 @@ if test $TARGETDIR = unknown; then
   AC_MSG_ERROR(["libffi has not been ported to $host."])
 fi
 
-AM_CONDITIONAL(MIPS, test x$TARGET = xMIPS)
+AM_CONDITIONAL(MIPS,[expr x$TARGET : 'xMIPS' > /dev/null])
 AM_CONDITIONAL(SPARC, test x$TARGET = xSPARC)
 AM_CONDITIONAL(X86, test x$TARGET = xX86)
 AM_CONDITIONAL(X86_FREEBSD, test x$TARGET = xX86_FREEBSD)