Blame SOURCES/aspell-0.60.6.1-aarch64.patch

b29c49
diff -urN aspell-0.60.6.1/config.guess aspell-0.60.6.1-aarch64/config.guess
b29c49
--- aspell-0.60.6.1/config.guess	2011-07-02 16:53:17.000000000 -0500
b29c49
+++ aspell-0.60.6.1-aarch64/config.guess	2013-03-07 19:06:06.613457060 -0600
b29c49
@@ -1,10 +1,10 @@
b29c49
 #! /bin/sh
b29c49
 # Attempt to guess a canonical system name.
b29c49
 #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
b29c49
-#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
b29c49
-#   Free Software Foundation, Inc.
b29c49
+#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
b29c49
+#   2011, 2012 Free Software Foundation, Inc.
b29c49
 
b29c49
-timestamp='2009-11-20'
b29c49
+timestamp='2012-09-25'
b29c49
 
b29c49
 # This file is free software; you can redistribute it and/or modify it
b29c49
 # under the terms of the GNU General Public License as published by
b29c49
@@ -17,9 +17,7 @@
b29c49
 # General Public License for more details.
b29c49
 #
b29c49
 # You should have received a copy of the GNU General Public License
b29c49
-# along with this program; if not, write to the Free Software
b29c49
-# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
b29c49
-# 02110-1301, USA.
b29c49
+# along with this program; if not, see <http://www.gnu.org/licenses/>.
b29c49
 #
b29c49
 # As a special exception to the GNU General Public License, if you
b29c49
 # distribute this file as part of a program that contains a
b29c49
@@ -56,8 +54,9 @@
b29c49
 GNU config.guess ($timestamp)
b29c49
 
b29c49
 Originally written by Per Bothner.
b29c49
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
b29c49
-2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
b29c49
+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
b29c49
+2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
b29c49
+Free Software Foundation, Inc.
b29c49
 
b29c49
 This is free software; see the source for copying conditions.  There is NO
b29c49
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
b29c49
@@ -144,7 +143,7 @@
b29c49
 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
b29c49
     *:NetBSD:*:*)
b29c49
 	# NetBSD (nbsd) targets should (where applicable) match one or
b29c49
-	# more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
b29c49
+	# more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
b29c49
 	# *-*-netbsdecoff* and *-*-netbsd*.  For targets that recently
b29c49
 	# switched to ELF, *-*-netbsd* would select the old
b29c49
 	# object file format.  This provides both forward
b29c49
@@ -180,7 +179,7 @@
b29c49
 		fi
b29c49
 		;;
b29c49
 	    *)
b29c49
-	        os=netbsd
b29c49
+		os=netbsd
b29c49
 		;;
b29c49
 	esac
b29c49
 	# The OS release
b29c49
@@ -201,6 +200,10 @@
b29c49
 	# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
b29c49
 	echo "${machine}-${os}${release}"
b29c49
 	exit ;;
b29c49
+    *:Bitrig:*:*)
b29c49
+	UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
b29c49
+	echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
b29c49
+	exit ;;
b29c49
     *:OpenBSD:*:*)
b29c49
 	UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
b29c49
 	echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
b29c49
@@ -223,7 +226,7 @@
b29c49
 		UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
b29c49
 		;;
b29c49
 	*5.*)
b29c49
-	        UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
b29c49
+		UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
b29c49
 		;;
b29c49
 	esac
b29c49
 	# According to Compaq, /usr/sbin/psrinfo has been available on
b29c49
@@ -269,7 +272,10 @@
b29c49
 	# A Xn.n version is an unreleased experimental baselevel.
b29c49
 	# 1.2 uses "1.2" for uname -r.
b29c49
 	echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
b29c49
-	exit ;;
b29c49
+	# Reset EXIT trap before exiting to avoid spurious non-zero exit code.
b29c49
+	exitcode=$?
b29c49
+	trap '' 0
b29c49
+	exit $exitcode ;;
b29c49
     Alpha\ *:Windows_NT*:*)
b29c49
 	# How do we know it's Interix rather than the generic POSIX subsystem?
b29c49
 	# Should we change UNAME_MACHINE based on the output of uname instead
b29c49
@@ -295,12 +301,12 @@
b29c49
 	echo s390-ibm-zvmoe
b29c49
 	exit ;;
b29c49
     *:OS400:*:*)
b29c49
-        echo powerpc-ibm-os400
b29c49
+	echo powerpc-ibm-os400
b29c49
 	exit ;;
b29c49
     arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
b29c49
 	echo arm-acorn-riscix${UNAME_RELEASE}
b29c49
 	exit ;;
b29c49
-    arm:riscos:*:*|arm:RISCOS:*:*)
b29c49
+    arm*:riscos:*:*|arm*:RISCOS:*:*)
b29c49
 	echo arm-unknown-riscos
b29c49
 	exit ;;
b29c49
     SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
b29c49
@@ -394,23 +400,23 @@
b29c49
     # MiNT.  But MiNT is downward compatible to TOS, so this should
b29c49
     # be no problem.
b29c49
     atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
b29c49
-        echo m68k-atari-mint${UNAME_RELEASE}
b29c49
+	echo m68k-atari-mint${UNAME_RELEASE}
b29c49
 	exit ;;
b29c49
     atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
b29c49
 	echo m68k-atari-mint${UNAME_RELEASE}
b29c49
-        exit ;;
b29c49
+	exit ;;
b29c49
     *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
b29c49
-        echo m68k-atari-mint${UNAME_RELEASE}
b29c49
+	echo m68k-atari-mint${UNAME_RELEASE}
b29c49
 	exit ;;
b29c49
     milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
b29c49
-        echo m68k-milan-mint${UNAME_RELEASE}
b29c49
-        exit ;;
b29c49
+	echo m68k-milan-mint${UNAME_RELEASE}
b29c49
+	exit ;;
b29c49
     hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
b29c49
-        echo m68k-hades-mint${UNAME_RELEASE}
b29c49
-        exit ;;
b29c49
+	echo m68k-hades-mint${UNAME_RELEASE}
b29c49
+	exit ;;
b29c49
     *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
b29c49
-        echo m68k-unknown-mint${UNAME_RELEASE}
b29c49
-        exit ;;
b29c49
+	echo m68k-unknown-mint${UNAME_RELEASE}
b29c49
+	exit ;;
b29c49
     m68k:machten:*:*)
b29c49
 	echo m68k-apple-machten${UNAME_RELEASE}
b29c49
 	exit ;;
b29c49
@@ -480,8 +486,8 @@
b29c49
 	echo m88k-motorola-sysv3
b29c49
 	exit ;;
b29c49
     AViiON:dgux:*:*)
b29c49
-        # DG/UX returns AViiON for all architectures
b29c49
-        UNAME_PROCESSOR=`/usr/bin/uname -p`
b29c49
+	# DG/UX returns AViiON for all architectures
b29c49
+	UNAME_PROCESSOR=`/usr/bin/uname -p`
b29c49
 	if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
b29c49
 	then
b29c49
 	    if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
b29c49
@@ -494,7 +500,7 @@
b29c49
 	else
b29c49
 	    echo i586-dg-dgux${UNAME_RELEASE}
b29c49
 	fi
b29c49
- 	exit ;;
b29c49
+	exit ;;
b29c49
     M88*:DolphinOS:*:*)	# DolphinOS (SVR3)
b29c49
 	echo m88k-dolphin-sysv3
b29c49
 	exit ;;
b29c49
@@ -551,7 +557,7 @@
b29c49
 		echo rs6000-ibm-aix3.2
b29c49
 	fi
b29c49
 	exit ;;
b29c49
-    *:AIX:*:[456])
b29c49
+    *:AIX:*:[4567])
b29c49
 	IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
b29c49
 	if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
b29c49
 		IBM_ARCH=rs6000
b29c49
@@ -594,52 +600,52 @@
b29c49
 	    9000/[678][0-9][0-9])
b29c49
 		if [ -x /usr/bin/getconf ]; then
b29c49
 		    sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
b29c49
-                    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
b29c49
-                    case "${sc_cpu_version}" in
b29c49
-                      523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
b29c49
-                      528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
b29c49
-                      532)                      # CPU_PA_RISC2_0
b29c49
-                        case "${sc_kernel_bits}" in
b29c49
-                          32) HP_ARCH="hppa2.0n" ;;
b29c49
-                          64) HP_ARCH="hppa2.0w" ;;
b29c49
+		    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
b29c49
+		    case "${sc_cpu_version}" in
b29c49
+		      523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
b29c49
+		      528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
b29c49
+		      532)                      # CPU_PA_RISC2_0
b29c49
+			case "${sc_kernel_bits}" in
b29c49
+			  32) HP_ARCH="hppa2.0n" ;;
b29c49
+			  64) HP_ARCH="hppa2.0w" ;;
b29c49
 			  '') HP_ARCH="hppa2.0" ;;   # HP-UX 10.20
b29c49
-                        esac ;;
b29c49
-                    esac
b29c49
+			esac ;;
b29c49
+		    esac
b29c49
 		fi
b29c49
 		if [ "${HP_ARCH}" = "" ]; then
b29c49
 		    eval $set_cc_for_build
b29c49
-		    sed 's/^              //' << EOF >$dummy.c
b29c49
+		    sed 's/^		//' << EOF >$dummy.c
b29c49
+
b29c49
+		#define _HPUX_SOURCE
b29c49
+		#include <stdlib.h>
b29c49
+		#include <unistd.h>
b29c49
 
b29c49
-              #define _HPUX_SOURCE
b29c49
-              #include <stdlib.h>
b29c49
-              #include <unistd.h>
b29c49
-
b29c49
-              int main ()
b29c49
-              {
b29c49
-              #if defined(_SC_KERNEL_BITS)
b29c49
-                  long bits = sysconf(_SC_KERNEL_BITS);
b29c49
-              #endif
b29c49
-                  long cpu  = sysconf (_SC_CPU_VERSION);
b29c49
-
b29c49
-                  switch (cpu)
b29c49
-              	{
b29c49
-              	case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
b29c49
-              	case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
b29c49
-              	case CPU_PA_RISC2_0:
b29c49
-              #if defined(_SC_KERNEL_BITS)
b29c49
-              	    switch (bits)
b29c49
-              		{
b29c49
-              		case 64: puts ("hppa2.0w"); break;
b29c49
-              		case 32: puts ("hppa2.0n"); break;
b29c49
-              		default: puts ("hppa2.0"); break;
b29c49
-              		} break;
b29c49
-              #else  /* !defined(_SC_KERNEL_BITS) */
b29c49
-              	    puts ("hppa2.0"); break;
b29c49
-              #endif
b29c49
-              	default: puts ("hppa1.0"); break;
b29c49
-              	}
b29c49
-                  exit (0);
b29c49
-              }
b29c49
+		int main ()
b29c49
+		{
b29c49
+		#if defined(_SC_KERNEL_BITS)
b29c49
+		    long bits = sysconf(_SC_KERNEL_BITS);
b29c49
+		#endif
b29c49
+		    long cpu  = sysconf (_SC_CPU_VERSION);
b29c49
+
b29c49
+		    switch (cpu)
b29c49
+			{
b29c49
+			case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
b29c49
+			case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
b29c49
+			case CPU_PA_RISC2_0:
b29c49
+		#if defined(_SC_KERNEL_BITS)
b29c49
+			    switch (bits)
b29c49
+				{
b29c49
+				case 64: puts ("hppa2.0w"); break;
b29c49
+				case 32: puts ("hppa2.0n"); break;
b29c49
+				default: puts ("hppa2.0"); break;
b29c49
+				} break;
b29c49
+		#else  /* !defined(_SC_KERNEL_BITS) */
b29c49
+			    puts ("hppa2.0"); break;
b29c49
+		#endif
b29c49
+			default: puts ("hppa1.0"); break;
b29c49
+			}
b29c49
+		    exit (0);
b29c49
+		}
b29c49
 EOF
b29c49
 		    (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
b29c49
 		    test -z "$HP_ARCH" && HP_ARCH=hppa
b29c49
@@ -730,22 +736,22 @@
b29c49
 	exit ;;
b29c49
     C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
b29c49
 	echo c1-convex-bsd
b29c49
-        exit ;;
b29c49
+	exit ;;
b29c49
     C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
b29c49
 	if getsysinfo -f scalar_acc
b29c49
 	then echo c32-convex-bsd
b29c49
 	else echo c2-convex-bsd
b29c49
 	fi
b29c49
-        exit ;;
b29c49
+	exit ;;
b29c49
     C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
b29c49
 	echo c34-convex-bsd
b29c49
-        exit ;;
b29c49
+	exit ;;
b29c49
     C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
b29c49
 	echo c38-convex-bsd
b29c49
-        exit ;;
b29c49
+	exit ;;
b29c49
     C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
b29c49
 	echo c4-convex-bsd
b29c49
-        exit ;;
b29c49
+	exit ;;
b29c49
     CRAY*Y-MP:*:*:*)
b29c49
 	echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
b29c49
 	exit ;;
b29c49
@@ -769,14 +775,14 @@
b29c49
 	exit ;;
b29c49
     F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
b29c49
 	FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
b29c49
-        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
b29c49
-        FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
b29c49
-        echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
b29c49
-        exit ;;
b29c49
+	FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
b29c49
+	FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
b29c49
+	echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
b29c49
+	exit ;;
b29c49
     5000:UNIX_System_V:4.*:*)
b29c49
-        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
b29c49
-        FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
b29c49
-        echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
b29c49
+	FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
b29c49
+	FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
b29c49
+	echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
b29c49
 	exit ;;
b29c49
     i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
b29c49
 	echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
b29c49
@@ -788,30 +794,35 @@
b29c49
 	echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
b29c49
 	exit ;;
b29c49
     *:FreeBSD:*:*)
b29c49
-	case ${UNAME_MACHINE} in
b29c49
-	    pc98)
b29c49
-		echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
b29c49
+	UNAME_PROCESSOR=`/usr/bin/uname -p`
b29c49
+	case ${UNAME_PROCESSOR} in
b29c49
 	    amd64)
b29c49
 		echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
b29c49
 	    *)
b29c49
-		echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
b29c49
+		echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
b29c49
 	esac
b29c49
 	exit ;;
b29c49
     i*:CYGWIN*:*)
b29c49
 	echo ${UNAME_MACHINE}-pc-cygwin
b29c49
 	exit ;;
b29c49
+    *:MINGW64*:*)
b29c49
+	echo ${UNAME_MACHINE}-pc-mingw64
b29c49
+	exit ;;
b29c49
     *:MINGW*:*)
b29c49
 	echo ${UNAME_MACHINE}-pc-mingw32
b29c49
 	exit ;;
b29c49
+    i*:MSYS*:*)
b29c49
+	echo ${UNAME_MACHINE}-pc-msys
b29c49
+	exit ;;
b29c49
     i*:windows32*:*)
b29c49
-    	# uname -m includes "-pc" on this system.
b29c49
-    	echo ${UNAME_MACHINE}-mingw32
b29c49
+	# uname -m includes "-pc" on this system.
b29c49
+	echo ${UNAME_MACHINE}-mingw32
b29c49
 	exit ;;
b29c49
     i*:PW*:*)
b29c49
 	echo ${UNAME_MACHINE}-pc-pw32
b29c49
 	exit ;;
b29c49
     *:Interix*:*)
b29c49
-    	case ${UNAME_MACHINE} in
b29c49
+	case ${UNAME_MACHINE} in
b29c49
 	    x86)
b29c49
 		echo i586-pc-interix${UNAME_RELEASE}
b29c49
 		exit ;;
b29c49
@@ -857,6 +868,13 @@
b29c49
     i*86:Minix:*:*)
b29c49
 	echo ${UNAME_MACHINE}-pc-minix
b29c49
 	exit ;;
b29c49
+    aarch64:Linux:*:*)
b29c49
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
b29c49
+	exit ;;
b29c49
+    aarch64_be:Linux:*:*)
b29c49
+	UNAME_MACHINE=aarch64_be
b29c49
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
b29c49
+	exit ;;
b29c49
     alpha:Linux:*:*)
b29c49
 	case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
b29c49
 	  EV5)   UNAME_MACHINE=alphaev5 ;;
b29c49
@@ -866,7 +884,7 @@
b29c49
 	  EV6)   UNAME_MACHINE=alphaev6 ;;
b29c49
 	  EV67)  UNAME_MACHINE=alphaev67 ;;
b29c49
 	  EV68*) UNAME_MACHINE=alphaev68 ;;
b29c49
-        esac
b29c49
+	esac
b29c49
 	objdump --private-headers /bin/sh | grep -q ld.so.1
b29c49
 	if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
b29c49
 	echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
b29c49
@@ -878,20 +896,29 @@
b29c49
 	then
b29c49
 	    echo ${UNAME_MACHINE}-unknown-linux-gnu
b29c49
 	else
b29c49
-	    echo ${UNAME_MACHINE}-unknown-linux-gnueabi
b29c49
+	    if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
b29c49
+		| grep -q __ARM_PCS_VFP
b29c49
+	    then
b29c49
+		echo ${UNAME_MACHINE}-unknown-linux-gnueabi
b29c49
+	    else
b29c49
+		echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
b29c49
+	    fi
b29c49
 	fi
b29c49
 	exit ;;
b29c49
     avr32*:Linux:*:*)
b29c49
 	echo ${UNAME_MACHINE}-unknown-linux-gnu
b29c49
 	exit ;;
b29c49
     cris:Linux:*:*)
b29c49
-	echo cris-axis-linux-gnu
b29c49
+	echo ${UNAME_MACHINE}-axis-linux-gnu
b29c49
 	exit ;;
b29c49
     crisv32:Linux:*:*)
b29c49
-	echo crisv32-axis-linux-gnu
b29c49
+	echo ${UNAME_MACHINE}-axis-linux-gnu
b29c49
 	exit ;;
b29c49
     frv:Linux:*:*)
b29c49
-    	echo frv-unknown-linux-gnu
b29c49
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
b29c49
+	exit ;;
b29c49
+    hexagon:Linux:*:*)
b29c49
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
b29c49
 	exit ;;
b29c49
     i*86:Linux:*:*)
b29c49
 	LIBC=gnu
b29c49
@@ -933,7 +960,7 @@
b29c49
 	test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
b29c49
 	;;
b29c49
     or32:Linux:*:*)
b29c49
-	echo or32-unknown-linux-gnu
b29c49
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
b29c49
 	exit ;;
b29c49
     padre:Linux:*:*)
b29c49
 	echo sparc-unknown-linux-gnu
b29c49
@@ -959,7 +986,7 @@
b29c49
 	echo ${UNAME_MACHINE}-ibm-linux
b29c49
 	exit ;;
b29c49
     sh64*:Linux:*:*)
b29c49
-    	echo ${UNAME_MACHINE}-unknown-linux-gnu
b29c49
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
b29c49
 	exit ;;
b29c49
     sh*:Linux:*:*)
b29c49
 	echo ${UNAME_MACHINE}-unknown-linux-gnu
b29c49
@@ -967,14 +994,17 @@
b29c49
     sparc:Linux:*:* | sparc64:Linux:*:*)
b29c49
 	echo ${UNAME_MACHINE}-unknown-linux-gnu
b29c49
 	exit ;;
b29c49
+    tile*:Linux:*:*)
b29c49
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
b29c49
+	exit ;;
b29c49
     vax:Linux:*:*)
b29c49
 	echo ${UNAME_MACHINE}-dec-linux-gnu
b29c49
 	exit ;;
b29c49
     x86_64:Linux:*:*)
b29c49
-	echo x86_64-unknown-linux-gnu
b29c49
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
b29c49
 	exit ;;
b29c49
     xtensa*:Linux:*:*)
b29c49
-    	echo ${UNAME_MACHINE}-unknown-linux-gnu
b29c49
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
b29c49
 	exit ;;
b29c49
     i*86:DYNIX/ptx:4*:*)
b29c49
 	# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
b29c49
@@ -983,11 +1013,11 @@
b29c49
 	echo i386-sequent-sysv4
b29c49
 	exit ;;
b29c49
     i*86:UNIX_SV:4.2MP:2.*)
b29c49
-        # Unixware is an offshoot of SVR4, but it has its own version
b29c49
-        # number series starting with 2...
b29c49
-        # I am not positive that other SVR4 systems won't match this,
b29c49
+	# Unixware is an offshoot of SVR4, but it has its own version
b29c49
+	# number series starting with 2...
b29c49
+	# I am not positive that other SVR4 systems won't match this,
b29c49
 	# I just have to hope.  -- rms.
b29c49
-        # Use sysv4.2uw... so that sysv4* matches it.
b29c49
+	# Use sysv4.2uw... so that sysv4* matches it.
b29c49
 	echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
b29c49
 	exit ;;
b29c49
     i*86:OS/2:*:*)
b29c49
@@ -1019,7 +1049,7 @@
b29c49
 	fi
b29c49
 	exit ;;
b29c49
     i*86:*:5:[678]*)
b29c49
-    	# UnixWare 7.x, OpenUNIX and OpenServer 6.
b29c49
+	# UnixWare 7.x, OpenUNIX and OpenServer 6.
b29c49
 	case `/bin/uname -X | grep "^Machine"` in
b29c49
 	    *486*)	     UNAME_MACHINE=i486 ;;
b29c49
 	    *Pentium)	     UNAME_MACHINE=i586 ;;
b29c49
@@ -1047,13 +1077,13 @@
b29c49
 	exit ;;
b29c49
     pc:*:*:*)
b29c49
 	# Left here for compatibility:
b29c49
-        # uname -m prints for DJGPP always 'pc', but it prints nothing about
b29c49
-        # the processor, so we play safe by assuming i586.
b29c49
+	# uname -m prints for DJGPP always 'pc', but it prints nothing about
b29c49
+	# the processor, so we play safe by assuming i586.
b29c49
 	# Note: whatever this is, it MUST be the same as what config.sub
b29c49
 	# prints for the "djgpp" host, or else GDB configury will decide that
b29c49
 	# this is a cross-build.
b29c49
 	echo i586-pc-msdosdjgpp
b29c49
-        exit ;;
b29c49
+	exit ;;
b29c49
     Intel:Mach:3*:*)
b29c49
 	echo i386-pc-mach3
b29c49
 	exit ;;
b29c49
@@ -1088,8 +1118,8 @@
b29c49
 	/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
b29c49
 	  && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
b29c49
     3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
b29c49
-        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
b29c49
-          && { echo i486-ncr-sysv4; exit; } ;;
b29c49
+	/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
b29c49
+	  && { echo i486-ncr-sysv4; exit; } ;;
b29c49
     NCR*:*:4.2:* | MPRAS*:*:4.2:*)
b29c49
 	OS_REL='.3'
b29c49
 	test -r /etc/.relid \
b29c49
@@ -1132,10 +1162,10 @@
b29c49
 		echo ns32k-sni-sysv
b29c49
 	fi
b29c49
 	exit ;;
b29c49
-    PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
b29c49
-                      # says <Richard.M.Bartel@ccMail.Census.GOV>
b29c49
-        echo i586-unisys-sysv4
b29c49
-        exit ;;
b29c49
+    PENTIUM:*:4.0*:*)	# Unisys `ClearPath HMP IX 4000' SVR4/MP effort
b29c49
+			# says <Richard.M.Bartel@ccMail.Census.GOV>
b29c49
+	echo i586-unisys-sysv4
b29c49
+	exit ;;
b29c49
     *:UNIX_System_V:4*:FTX*)
b29c49
 	# From Gerald Hewes <hewes@openmarket.com>.
b29c49
 	# How about differentiating between stratus architectures? -djm
b29c49
@@ -1161,11 +1191,11 @@
b29c49
 	exit ;;
b29c49
     R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
b29c49
 	if [ -d /usr/nec ]; then
b29c49
-	        echo mips-nec-sysv${UNAME_RELEASE}
b29c49
+		echo mips-nec-sysv${UNAME_RELEASE}
b29c49
 	else
b29c49
-	        echo mips-unknown-sysv${UNAME_RELEASE}
b29c49
+		echo mips-unknown-sysv${UNAME_RELEASE}
b29c49
 	fi
b29c49
-        exit ;;
b29c49
+	exit ;;
b29c49
     BeBox:BeOS:*:*)	# BeOS running on hardware made by Be, PPC only.
b29c49
 	echo powerpc-be-beos
b29c49
 	exit ;;
b29c49
@@ -1178,6 +1208,9 @@
b29c49
     BePC:Haiku:*:*)	# Haiku running on Intel PC compatible.
b29c49
 	echo i586-pc-haiku
b29c49
 	exit ;;
b29c49
+    x86_64:Haiku:*:*)
b29c49
+	echo x86_64-unknown-haiku
b29c49
+	exit ;;
b29c49
     SX-4:SUPER-UX:*:*)
b29c49
 	echo sx4-nec-superux${UNAME_RELEASE}
b29c49
 	exit ;;
b29c49
@@ -1230,7 +1263,10 @@
b29c49
     *:QNX:*:4*)
b29c49
 	echo i386-pc-qnx
b29c49
 	exit ;;
b29c49
-    NSE-?:NONSTOP_KERNEL:*:*)
b29c49
+    NEO-?:NONSTOP_KERNEL:*:*)
b29c49
+	echo neo-tandem-nsk${UNAME_RELEASE}
b29c49
+	exit ;;
b29c49
+    NSE-*:NONSTOP_KERNEL:*:*)
b29c49
 	echo nse-tandem-nsk${UNAME_RELEASE}
b29c49
 	exit ;;
b29c49
     NSR-?:NONSTOP_KERNEL:*:*)
b29c49
@@ -1275,13 +1311,13 @@
b29c49
 	echo pdp10-unknown-its
b29c49
 	exit ;;
b29c49
     SEI:*:*:SEIUX)
b29c49
-        echo mips-sei-seiux${UNAME_RELEASE}
b29c49
+	echo mips-sei-seiux${UNAME_RELEASE}
b29c49
 	exit ;;
b29c49
     *:DragonFly:*:*)
b29c49
 	echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
b29c49
 	exit ;;
b29c49
     *:*VMS:*:*)
b29c49
-    	UNAME_MACHINE=`(uname -p) 2>/dev/null`
b29c49
+	UNAME_MACHINE=`(uname -p) 2>/dev/null`
b29c49
 	case "${UNAME_MACHINE}" in
b29c49
 	    A*) echo alpha-dec-vms ; exit ;;
b29c49
 	    I*) echo ia64-dec-vms ; exit ;;
b29c49
@@ -1299,11 +1335,11 @@
b29c49
     i*86:AROS:*:*)
b29c49
 	echo ${UNAME_MACHINE}-pc-aros
b29c49
 	exit ;;
b29c49
+    x86_64:VMkernel:*:*)
b29c49
+	echo ${UNAME_MACHINE}-unknown-esx
b29c49
+	exit ;;
b29c49
 esac
b29c49
 
b29c49
-#echo '(No uname command or uname output not recognized.)' 1>&2
b29c49
-#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
b29c49
-
b29c49
 eval $set_cc_for_build
b29c49
 cat >$dummy.c <
b29c49
 #ifdef _SEQUENT_
b29c49
@@ -1321,11 +1357,11 @@
b29c49
 #include <sys/param.h>
b29c49
   printf ("m68k-sony-newsos%s\n",
b29c49
 #ifdef NEWSOS4
b29c49
-          "4"
b29c49
+	"4"
b29c49
 #else
b29c49
-	  ""
b29c49
+	""
b29c49
 #endif
b29c49
-         ); exit (0);
b29c49
+	); exit (0);
b29c49
 #endif
b29c49
 #endif
b29c49
 
b29c49
diff -urN aspell-0.60.6.1/config.sub aspell-0.60.6.1-aarch64/config.sub
b29c49
--- aspell-0.60.6.1/config.sub	2011-07-02 16:53:17.000000000 -0500
b29c49
+++ aspell-0.60.6.1-aarch64/config.sub	2013-03-07 19:06:06.651452728 -0600
b29c49
@@ -1,10 +1,10 @@
b29c49
 #! /bin/sh
b29c49
 # Configuration validation subroutine script.
b29c49
 #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
b29c49
-#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
b29c49
-#   Free Software Foundation, Inc.
b29c49
+#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
b29c49
+#   2011, 2012 Free Software Foundation, Inc.
b29c49
 
b29c49
-timestamp='2009-11-20'
b29c49
+timestamp='2012-10-10'
b29c49
 
b29c49
 # This file is (in principle) common to ALL GNU software.
b29c49
 # The presence of a machine in this file suggests that SOME GNU software
b29c49
@@ -21,9 +21,7 @@
b29c49
 # GNU General Public License for more details.
b29c49
 #
b29c49
 # You should have received a copy of the GNU General Public License
b29c49
-# along with this program; if not, write to the Free Software
b29c49
-# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
b29c49
-# 02110-1301, USA.
b29c49
+# along with this program; if not, see <http://www.gnu.org/licenses/>.
b29c49
 #
b29c49
 # As a special exception to the GNU General Public License, if you
b29c49
 # distribute this file as part of a program that contains a
b29c49
@@ -75,8 +73,9 @@
b29c49
 version="\
b29c49
 GNU config.sub ($timestamp)
b29c49
 
b29c49
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
b29c49
-2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
b29c49
+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
b29c49
+2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
b29c49
+Free Software Foundation, Inc.
b29c49
 
b29c49
 This is free software; see the source for copying conditions.  There is NO
b29c49
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
b29c49
@@ -123,13 +122,18 @@
b29c49
 # Here we must recognize all the valid KERNEL-OS combinations.
b29c49
 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
b29c49
 case $maybe_os in
b29c49
-  nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
b29c49
-  uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
b29c49
+  nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
b29c49
+  linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
b29c49
+  knetbsd*-gnu* | netbsd*-gnu* | \
b29c49
   kopensolaris*-gnu* | \
b29c49
   storm-chaos* | os2-emx* | rtmk-nova*)
b29c49
     os=-$maybe_os
b29c49
     basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
b29c49
     ;;
b29c49
+  android-linux)
b29c49
+    os=-linux-android
b29c49
+    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
b29c49
+    ;;
b29c49
   *)
b29c49
     basic_machine=`echo $1 | sed 's/-[^-]*$//'`
b29c49
     if [ $basic_machine != $1 ]
b29c49
@@ -152,12 +156,12 @@
b29c49
 	-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
b29c49
 	-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
b29c49
 	-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
b29c49
-	-apple | -axis | -knuth | -cray | -microblaze)
b29c49
+	-apple | -axis | -knuth | -cray | -microblaze*)
b29c49
 		os=
b29c49
 		basic_machine=$1
b29c49
 		;;
b29c49
-        -bluegene*)
b29c49
-	        os=-cnk
b29c49
+	-bluegene*)
b29c49
+		os=-cnk
b29c49
 		;;
b29c49
 	-sim | -cisco | -oki | -wec | -winbond)
b29c49
 		os=
b29c49
@@ -173,10 +177,10 @@
b29c49
 		os=-chorusos
b29c49
 		basic_machine=$1
b29c49
 		;;
b29c49
- 	-chorusrdb)
b29c49
- 		os=-chorusrdb
b29c49
+	-chorusrdb)
b29c49
+		os=-chorusrdb
b29c49
 		basic_machine=$1
b29c49
- 		;;
b29c49
+		;;
b29c49
 	-hiux*)
b29c49
 		os=-hiuxwe2
b29c49
 		;;
b29c49
@@ -221,6 +225,12 @@
b29c49
 	-isc*)
b29c49
 		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
b29c49
 		;;
b29c49
+	-lynx*178)
b29c49
+		os=-lynxos178
b29c49
+		;;
b29c49
+	-lynx*5)
b29c49
+		os=-lynxos5
b29c49
+		;;
b29c49
 	-lynx*)
b29c49
 		os=-lynxos
b29c49
 		;;
b29c49
@@ -245,20 +255,25 @@
b29c49
 	# Some are omitted here because they have special meanings below.
b29c49
 	1750a | 580 \
b29c49
 	| a29k \
b29c49
+	| aarch64 | aarch64_be \
b29c49
 	| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
b29c49
 	| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
b29c49
 	| am33_2.0 \
b29c49
 	| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
b29c49
+        | be32 | be64 \
b29c49
 	| bfin \
b29c49
 	| c4x | clipper \
b29c49
 	| d10v | d30v | dlx | dsp16xx \
b29c49
+	| epiphany \
b29c49
 	| fido | fr30 | frv \
b29c49
 	| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
b29c49
+	| hexagon \
b29c49
 	| i370 | i860 | i960 | ia64 \
b29c49
 	| ip2k | iq2000 \
b29c49
+	| le32 | le64 \
b29c49
 	| lm32 \
b29c49
 	| m32c | m32r | m32rle | m68000 | m68k | m88k \
b29c49
-	| maxq | mb | microblaze | mcore | mep | metag \
b29c49
+	| maxq | mb | microblaze | microblazeel | mcore | mep | metag \
b29c49
 	| mips | mipsbe | mipseb | mipsel | mipsle \
b29c49
 	| mips16 \
b29c49
 	| mips64 | mips64el \
b29c49
@@ -281,29 +296,39 @@
b29c49
 	| moxie \
b29c49
 	| mt \
b29c49
 	| msp430 \
b29c49
+	| nds32 | nds32le | nds32be \
b29c49
 	| nios | nios2 \
b29c49
 	| ns16k | ns32k \
b29c49
+	| open8 \
b29c49
 	| or32 \
b29c49
 	| pdp10 | pdp11 | pj | pjl \
b29c49
-	| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
b29c49
+	| powerpc | powerpc64 | powerpc64le | powerpcle \
b29c49
 	| pyramid \
b29c49
-	| rx \
b29c49
+	| rl78 | rx \
b29c49
 	| score \
b29c49
 	| sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
b29c49
 	| sh64 | sh64le \
b29c49
 	| sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
b29c49
 	| sparcv8 | sparcv9 | sparcv9b | sparcv9v \
b29c49
-	| spu | strongarm \
b29c49
-	| tahoe | thumb | tic4x | tic80 | tron \
b29c49
+	| spu \
b29c49
+	| tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
b29c49
 	| ubicom32 \
b29c49
-	| v850 | v850e \
b29c49
+	| v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
b29c49
 	| we32k \
b29c49
-	| x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
b29c49
+	| x86 | xc16x | xstormy16 | xtensa \
b29c49
 	| z8k | z80)
b29c49
 		basic_machine=$basic_machine-unknown
b29c49
 		;;
b29c49
-	m6811 | m68hc11 | m6812 | m68hc12 | picochip)
b29c49
-		# Motorola 68HC11/12.
b29c49
+	c54x)
b29c49
+		basic_machine=tic54x-unknown
b29c49
+		;;
b29c49
+	c55x)
b29c49
+		basic_machine=tic55x-unknown
b29c49
+		;;
b29c49
+	c6x)
b29c49
+		basic_machine=tic6x-unknown
b29c49
+		;;
b29c49
+	m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip)
b29c49
 		basic_machine=$basic_machine-unknown
b29c49
 		os=-none
b29c49
 		;;
b29c49
@@ -313,6 +338,21 @@
b29c49
 		basic_machine=mt-unknown
b29c49
 		;;
b29c49
 
b29c49
+	strongarm | thumb | xscale)
b29c49
+		basic_machine=arm-unknown
b29c49
+		;;
b29c49
+	xgate)
b29c49
+		basic_machine=$basic_machine-unknown
b29c49
+		os=-none
b29c49
+		;;
b29c49
+	xscaleeb)
b29c49
+		basic_machine=armeb-unknown
b29c49
+		;;
b29c49
+
b29c49
+	xscaleel)
b29c49
+		basic_machine=armel-unknown
b29c49
+		;;
b29c49
+
b29c49
 	# We use `pc' rather than `unknown'
b29c49
 	# because (1) that's what they normally are, and
b29c49
 	# (2) the word "unknown" tends to confuse beginning users.
b29c49
@@ -327,25 +367,30 @@
b29c49
 	# Recognize the basic CPU types with company name.
b29c49
 	580-* \
b29c49
 	| a29k-* \
b29c49
+	| aarch64-* | aarch64_be-* \
b29c49
 	| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
b29c49
 	| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
b29c49
 	| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
b29c49
 	| arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
b29c49
 	| avr-* | avr32-* \
b29c49
+	| be32-* | be64-* \
b29c49
 	| bfin-* | bs2000-* \
b29c49
-	| c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
b29c49
+	| c[123]* | c30-* | [cjt]90-* | c4x-* \
b29c49
 	| clipper-* | craynv-* | cydra-* \
b29c49
 	| d10v-* | d30v-* | dlx-* \
b29c49
 	| elxsi-* \
b29c49
 	| f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
b29c49
 	| h8300-* | h8500-* \
b29c49
 	| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
b29c49
+	| hexagon-* \
b29c49
 	| i*86-* | i860-* | i960-* | ia64-* \
b29c49
 	| ip2k-* | iq2000-* \
b29c49
+	| le32-* | le64-* \
b29c49
 	| lm32-* \
b29c49
 	| m32c-* | m32r-* | m32rle-* \
b29c49
 	| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
b29c49
-	| m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
b29c49
+	| m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
b29c49
+	| microblaze-* | microblazeel-* \
b29c49
 	| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
b29c49
 	| mips16-* \
b29c49
 	| mips64-* | mips64el-* \
b29c49
@@ -367,25 +412,29 @@
b29c49
 	| mmix-* \
b29c49
 	| mt-* \
b29c49
 	| msp430-* \
b29c49
+	| nds32-* | nds32le-* | nds32be-* \
b29c49
 	| nios-* | nios2-* \
b29c49
 	| none-* | np1-* | ns16k-* | ns32k-* \
b29c49
+	| open8-* \
b29c49
 	| orion-* \
b29c49
 	| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
b29c49
-	| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
b29c49
+	| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
b29c49
 	| pyramid-* \
b29c49
-	| romp-* | rs6000-* | rx-* \
b29c49
+	| rl78-* | romp-* | rs6000-* | rx-* \
b29c49
 	| sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
b29c49
 	| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
b29c49
 	| sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
b29c49
 	| sparclite-* \
b29c49
-	| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
b29c49
-	| tahoe-* | thumb-* \
b29c49
-	| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
b29c49
+	| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
b29c49
+	| tahoe-* \
b29c49
+	| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
b29c49
+	| tile*-* \
b29c49
 	| tron-* \
b29c49
 	| ubicom32-* \
b29c49
-	| v850-* | v850e-* | vax-* \
b29c49
+	| v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
b29c49
+	| vax-* \
b29c49
 	| we32k-* \
b29c49
-	| x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
b29c49
+	| x86-* | x86_64-* | xc16x-* | xps100-* \
b29c49
 	| xstormy16-* | xtensa*-* \
b29c49
 	| ymp-* \
b29c49
 	| z8k-* | z80-*)
b29c49
@@ -410,7 +459,7 @@
b29c49
 		basic_machine=a29k-amd
b29c49
 		os=-udi
b29c49
 		;;
b29c49
-    	abacus)
b29c49
+	abacus)
b29c49
 		basic_machine=abacus-unknown
b29c49
 		;;
b29c49
 	adobe68k)
b29c49
@@ -480,11 +529,20 @@
b29c49
 		basic_machine=powerpc-ibm
b29c49
 		os=-cnk
b29c49
 		;;
b29c49
+	c54x-*)
b29c49
+		basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
b29c49
+		;;
b29c49
+	c55x-*)
b29c49
+		basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
b29c49
+		;;
b29c49
+	c6x-*)
b29c49
+		basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
b29c49
+		;;
b29c49
 	c90)
b29c49
 		basic_machine=c90-cray
b29c49
 		os=-unicos
b29c49
 		;;
b29c49
-        cegcc)
b29c49
+	cegcc)
b29c49
 		basic_machine=arm-unknown
b29c49
 		os=-cegcc
b29c49
 		;;
b29c49
@@ -516,7 +574,7 @@
b29c49
 		basic_machine=craynv-cray
b29c49
 		os=-unicosmp
b29c49
 		;;
b29c49
-	cr16)
b29c49
+	cr16 | cr16-*)
b29c49
 		basic_machine=cr16-unknown
b29c49
 		os=-elf
b29c49
 		;;
b29c49
@@ -674,7 +732,6 @@
b29c49
 	i370-ibm* | ibm*)
b29c49
 		basic_machine=i370-ibm
b29c49
 		;;
b29c49
-# I'm not sure what "Sysv32" means.  Should this be sysv3.2?
b29c49
 	i*86v32)
b29c49
 		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
b29c49
 		os=-sysv32
b29c49
@@ -732,9 +789,13 @@
b29c49
 		basic_machine=ns32k-utek
b29c49
 		os=-sysv
b29c49
 		;;
b29c49
-        microblaze)
b29c49
+	microblaze*)
b29c49
 		basic_machine=microblaze-xilinx
b29c49
 		;;
b29c49
+	mingw64)
b29c49
+		basic_machine=x86_64-pc
b29c49
+		os=-mingw64
b29c49
+		;;
b29c49
 	mingw32)
b29c49
 		basic_machine=i386-pc
b29c49
 		os=-mingw32
b29c49
@@ -771,10 +832,18 @@
b29c49
 	ms1-*)
b29c49
 		basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
b29c49
 		;;
b29c49
+	msys)
b29c49
+		basic_machine=i386-pc
b29c49
+		os=-msys
b29c49
+		;;
b29c49
 	mvs)
b29c49
 		basic_machine=i370-ibm
b29c49
 		os=-mvs
b29c49
 		;;
b29c49
+	nacl)
b29c49
+		basic_machine=le32-unknown
b29c49
+		os=-nacl
b29c49
+		;;
b29c49
 	ncr3000)
b29c49
 		basic_machine=i486-ncr
b29c49
 		os=-sysv4
b29c49
@@ -839,6 +908,12 @@
b29c49
 	np1)
b29c49
 		basic_machine=np1-gould
b29c49
 		;;
b29c49
+	neo-tandem)
b29c49
+		basic_machine=neo-tandem
b29c49
+		;;
b29c49
+	nse-tandem)
b29c49
+		basic_machine=nse-tandem
b29c49
+		;;
b29c49
 	nsr-tandem)
b29c49
 		basic_machine=nsr-tandem
b29c49
 		;;
b29c49
@@ -921,9 +996,10 @@
b29c49
 		;;
b29c49
 	power)	basic_machine=power-ibm
b29c49
 		;;
b29c49
-	ppc)	basic_machine=powerpc-unknown
b29c49
+	ppc | ppcbe)	basic_machine=powerpc-unknown
b29c49
 		;;
b29c49
-	ppc-*)	basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
b29c49
+	ppc-* | ppcbe-*)
b29c49
+		basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
b29c49
 		;;
b29c49
 	ppcle | powerpclittle | ppc-le | powerpc-little)
b29c49
 		basic_machine=powerpcle-unknown
b29c49
@@ -1017,6 +1093,9 @@
b29c49
 		basic_machine=i860-stratus
b29c49
 		os=-sysv4
b29c49
 		;;
b29c49
+	strongarm-* | thumb-*)
b29c49
+		basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
b29c49
+		;;
b29c49
 	sun2)
b29c49
 		basic_machine=m68000-sun
b29c49
 		;;
b29c49
@@ -1073,20 +1152,8 @@
b29c49
 		basic_machine=t90-cray
b29c49
 		os=-unicos
b29c49
 		;;
b29c49
-	tic54x | c54x*)
b29c49
-		basic_machine=tic54x-unknown
b29c49
-		os=-coff
b29c49
-		;;
b29c49
-	tic55x | c55x*)
b29c49
-		basic_machine=tic55x-unknown
b29c49
-		os=-coff
b29c49
-		;;
b29c49
-	tic6x | c6x*)
b29c49
-		basic_machine=tic6x-unknown
b29c49
-		os=-coff
b29c49
-		;;
b29c49
 	tile*)
b29c49
-		basic_machine=tile-unknown
b29c49
+		basic_machine=$basic_machine-unknown
b29c49
 		os=-linux-gnu
b29c49
 		;;
b29c49
 	tx39)
b29c49
@@ -1156,6 +1223,9 @@
b29c49
 	xps | xps100)
b29c49
 		basic_machine=xps100-honeywell
b29c49
 		;;
b29c49
+	xscale-* | xscalee[bl]-*)
b29c49
+		basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
b29c49
+		;;
b29c49
 	ymp)
b29c49
 		basic_machine=ymp-cray
b29c49
 		os=-unicos
b29c49
@@ -1253,11 +1323,11 @@
b29c49
 if [ x"$os" != x"" ]
b29c49
 then
b29c49
 case $os in
b29c49
-        # First match some system type aliases
b29c49
-        # that might get confused with valid system types.
b29c49
+	# First match some system type aliases
b29c49
+	# that might get confused with valid system types.
b29c49
 	# -solaris* is a basic system type, with this one exception.
b29c49
-        -auroraux)
b29c49
-	        os=-auroraux
b29c49
+	-auroraux)
b29c49
+		os=-auroraux
b29c49
 		;;
b29c49
 	-solaris1 | -solaris1.*)
b29c49
 		os=`echo $os | sed -e 's|solaris1|sunos4|'`
b29c49
@@ -1287,14 +1357,15 @@
b29c49
 	      | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
b29c49
 	      | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
b29c49
 	      | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
b29c49
-	      | -openbsd* | -solidbsd* \
b29c49
+	      | -bitrig* | -openbsd* | -solidbsd* \
b29c49
 	      | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
b29c49
 	      | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
b29c49
 	      | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
b29c49
 	      | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
b29c49
 	      | -chorusos* | -chorusrdb* | -cegcc* \
b29c49
-	      | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
b29c49
-	      | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
b29c49
+	      | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
b29c49
+	      | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
b29c49
+	      | -linux-newlib* | -linux-musl* | -linux-uclibc* \
b29c49
 	      | -uxpv* | -beos* | -mpeix* | -udk* \
b29c49
 	      | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
b29c49
 	      | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
b29c49
@@ -1341,7 +1412,7 @@
b29c49
 	-opened*)
b29c49
 		os=-openedition
b29c49
 		;;
b29c49
-        -os400*)
b29c49
+	-os400*)
b29c49
 		os=-os400
b29c49
 		;;
b29c49
 	-wince*)
b29c49
@@ -1390,7 +1461,7 @@
b29c49
 	-sinix*)
b29c49
 		os=-sysv4
b29c49
 		;;
b29c49
-        -tpf*)
b29c49
+	-tpf*)
b29c49
 		os=-tpf
b29c49
 		;;
b29c49
 	-triton*)
b29c49
@@ -1435,6 +1506,8 @@
b29c49
 	-dicos*)
b29c49
 		os=-dicos
b29c49
 		;;
b29c49
+	-nacl*)
b29c49
+		;;
b29c49
 	-none)
b29c49
 		;;
b29c49
 	*)
b29c49
@@ -1457,10 +1530,10 @@
b29c49
 # system, and we'll never get to this point.
b29c49
 
b29c49
 case $basic_machine in
b29c49
-        score-*)
b29c49
+	score-*)
b29c49
 		os=-elf
b29c49
 		;;
b29c49
-        spu-*)
b29c49
+	spu-*)
b29c49
 		os=-elf
b29c49
 		;;
b29c49
 	*-acorn)
b29c49
@@ -1472,8 +1545,20 @@
b29c49
 	arm*-semi)
b29c49
 		os=-aout
b29c49
 		;;
b29c49
-        c4x-* | tic4x-*)
b29c49
-        	os=-coff
b29c49
+	c4x-* | tic4x-*)
b29c49
+		os=-coff
b29c49
+		;;
b29c49
+	hexagon-*)
b29c49
+		os=-elf
b29c49
+		;;
b29c49
+	tic54x-*)
b29c49
+		os=-coff
b29c49
+		;;
b29c49
+	tic55x-*)
b29c49
+		os=-coff
b29c49
+		;;
b29c49
+	tic6x-*)
b29c49
+		os=-coff
b29c49
 		;;
b29c49
 	# This must come before the *-dec entry.
b29c49
 	pdp10-*)
b29c49
@@ -1493,14 +1578,11 @@
b29c49
 		;;
b29c49
 	m68000-sun)
b29c49
 		os=-sunos3
b29c49
-		# This also exists in the configure program, but was not the
b29c49
-		# default.
b29c49
-		# os=-sunos4
b29c49
 		;;
b29c49
 	m68*-cisco)
b29c49
 		os=-aout
b29c49
 		;;
b29c49
-        mep-*)
b29c49
+	mep-*)
b29c49
 		os=-elf
b29c49
 		;;
b29c49
 	mips*-cisco)
b29c49
@@ -1527,7 +1609,7 @@
b29c49
 	*-ibm)
b29c49
 		os=-aix
b29c49
 		;;
b29c49
-    	*-knuth)
b29c49
+	*-knuth)
b29c49
 		os=-mmixware
b29c49
 		;;
b29c49
 	*-wec)