diff options
author | Thomas Heller <theller@ctypes.org> | 2009-04-28 19:23:41 +0000 |
---|---|---|
committer | Thomas Heller <theller@ctypes.org> | 2009-04-28 19:23:41 +0000 |
commit | 90c61a2e09c8c6aa8b1251b27fe38b55fa139274 (patch) | |
tree | 2760245d00b63cece39e470d7fb68b9611553ac3 | |
parent | 3b23c9c516991ce55ca23f202872575354c16447 (diff) | |
download | cpython-git-90c61a2e09c8c6aa8b1251b27fe38b55fa139274.tar.gz |
Issue #4305: ctypes fails to build on mipsel-linux-gnu (detects mips
instead of mipsel)
-rw-r--r-- | Misc/NEWS | 2 | ||||
-rwxr-xr-x | Modules/_ctypes/libffi/configure | 6 | ||||
-rw-r--r-- | Modules/_ctypes/libffi/configure.ac | 6 |
3 files changed, 8 insertions, 6 deletions
@@ -255,6 +255,8 @@ Core and Builtins Library ------- +- Issue #4305: ctypes should now build again on mipsel-linux-gnu + - Issue #1734234: Massively speedup ``unicodedata.normalize()`` when the string is already in normalized form, by performing a quick check beforehand. Original patch by Rauli Ruohonen. diff --git a/Modules/_ctypes/libffi/configure b/Modules/_ctypes/libffi/configure index de0b9aca13..6984fc67fb 100755 --- a/Modules/_ctypes/libffi/configure +++ b/Modules/_ctypes/libffi/configure @@ -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 diff --git a/Modules/_ctypes/libffi/configure.ac b/Modules/_ctypes/libffi/configure.ac index 57c161befe..947053690e 100644 --- a/Modules/_ctypes/libffi/configure.ac +++ b/Modules/_ctypes/libffi/configure.ac @@ -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) |