5358ff
diff -urN hunspell-1.3.2/config.guess hunspell-1.3.2-aarch64/config.guess
5358ff
--- hunspell-1.3.2/config.guess	2010-02-23 03:08:49.000000000 -0600
5358ff
+++ hunspell-1.3.2-aarch64/config.guess	2013-03-08 00:25:55.370800875 -0600
5358ff
@@ -1,9 +1,10 @@
5358ff
 #! /bin/sh
5358ff
 # Attempt to guess a canonical system name.
5358ff
 #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
5358ff
-#   2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
5358ff
+#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
5358ff
+#   2011, 2012 Free Software Foundation, Inc.
5358ff
 
5358ff
-timestamp='2004-08-11'
5358ff
+timestamp='2012-09-25'
5358ff
 
5358ff
 # This file is free software; you can redistribute it and/or modify it
5358ff
 # under the terms of the GNU General Public License as published by
5358ff
@@ -16,24 +17,24 @@
5358ff
 # General Public License for more details.
5358ff
 #
5358ff
 # You should have received a copy of the GNU General Public License
5358ff
-# along with this program; if not, write to the Free Software
5358ff
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
5358ff
+# along with this program; if not, see <http://www.gnu.org/licenses/>.
5358ff
 #
5358ff
 # As a special exception to the GNU General Public License, if you
5358ff
 # distribute this file as part of a program that contains a
5358ff
 # configuration script generated by Autoconf, you may include it under
5358ff
 # the same distribution terms that you use for the rest of that program.
5358ff
 
5358ff
-# Originally written by Per Bothner <per@bothner.com>.
5358ff
-# Please send patches to <config-patches@gnu.org>.  Submit a context
5358ff
-# diff and a properly formatted ChangeLog entry.
5358ff
+
5358ff
+# Originally written by Per Bothner.  Please send patches (context
5358ff
+# diff format) to <config-patches@gnu.org> and include a ChangeLog
5358ff
+# entry.
5358ff
 #
5358ff
 # This script attempts to guess a canonical system name similar to
5358ff
 # config.sub.  If it succeeds, it prints the system name on stdout, and
5358ff
 # exits with 0.  Otherwise, it exits with 1.
5358ff
 #
5358ff
-# The plan is that this can be called by configure scripts if you
5358ff
-# don't specify an explicit build system type.
5358ff
+# You can get the latest version of this script from:
5358ff
+# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
5358ff
 
5358ff
 me=`echo "$0" | sed -e 's,.*/,,'`
5358ff
 
5358ff
@@ -53,7 +54,8 @@
5358ff
 GNU config.guess ($timestamp)
5358ff
 
5358ff
 Originally written by Per Bothner.
5358ff
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
5358ff
+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
5358ff
+2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
5358ff
 Free Software Foundation, Inc.
5358ff
 
5358ff
 This is free software; see the source for copying conditions.  There is NO
5358ff
@@ -66,11 +68,11 @@
5358ff
 while test $# -gt 0 ; do
5358ff
   case $1 in
5358ff
     --time-stamp | --time* | -t )
5358ff
-       echo "$timestamp" ; exit 0 ;;
5358ff
+       echo "$timestamp" ; exit ;;
5358ff
     --version | -v )
5358ff
-       echo "$version" ; exit 0 ;;
5358ff
+       echo "$version" ; exit ;;
5358ff
     --help | --h* | -h )
5358ff
-       echo "$usage"; exit 0 ;;
5358ff
+       echo "$usage"; exit ;;
5358ff
     -- )     # Stop option processing
5358ff
        shift; break ;;
5358ff
     - )	# Use stdin as input.
5358ff
@@ -104,7 +106,7 @@
5358ff
 trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
5358ff
 trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
5358ff
 : ${TMPDIR=/tmp} ;
5358ff
- { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
5358ff
+ { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
5358ff
  { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
5358ff
  { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
5358ff
  { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
5358ff
@@ -123,7 +125,7 @@
5358ff
 	;;
5358ff
  ,,*)   CC_FOR_BUILD=$CC ;;
5358ff
  ,*,*)  CC_FOR_BUILD=$HOST_CC ;;
5358ff
-esac ;'
5358ff
+esac ; set_cc_for_build= ;'
5358ff
 
5358ff
 # This is needed to find uname on a Pyramid OSx when run in the BSD universe.
5358ff
 # (ghazi@noc.rutgers.edu 1994-08-24)
5358ff
@@ -141,7 +143,7 @@
5358ff
 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
5358ff
     *:NetBSD:*:*)
5358ff
 	# NetBSD (nbsd) targets should (where applicable) match one or
5358ff
-	# more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
5358ff
+	# more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
5358ff
 	# *-*-netbsdecoff* and *-*-netbsd*.  For targets that recently
5358ff
 	# switched to ELF, *-*-netbsd* would select the old
5358ff
 	# object file format.  This provides both forward
5358ff
@@ -158,6 +160,7 @@
5358ff
 	    arm*) machine=arm-unknown ;;
5358ff
 	    sh3el) machine=shl-unknown ;;
5358ff
 	    sh3eb) machine=sh-unknown ;;
5358ff
+	    sh5el) machine=sh5le-unknown ;;
5358ff
 	    *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
5358ff
 	esac
5358ff
 	# The Operating System including object format, if it has switched
5358ff
@@ -166,7 +169,7 @@
5358ff
 	    arm*|i386|m68k|ns32k|sh3*|sparc|vax)
5358ff
 		eval $set_cc_for_build
5358ff
 		if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
5358ff
-			| grep __ELF__ >/dev/null
5358ff
+			| grep -q __ELF__
5358ff
 		then
5358ff
 		    # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
5358ff
 		    # Return netbsd for either.  FIX?
5358ff
@@ -176,7 +179,7 @@
5358ff
 		fi
5358ff
 		;;
5358ff
 	    *)
5358ff
-	        os=netbsd
5358ff
+		os=netbsd
5358ff
 		;;
5358ff
 	esac
5358ff
 	# The OS release
5358ff
@@ -196,71 +199,34 @@
5358ff
 	# contains redundant information, the shorter form:
5358ff
 	# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
5358ff
 	echo "${machine}-${os}${release}"
5358ff
-	exit 0 ;;
5358ff
-    amd64:OpenBSD:*:*)
5358ff
-	echo x86_64-unknown-openbsd${UNAME_RELEASE}
5358ff
-	exit 0 ;;
5358ff
-    amiga:OpenBSD:*:*)
5358ff
-	echo m68k-unknown-openbsd${UNAME_RELEASE}
5358ff
-	exit 0 ;;
5358ff
-    arc:OpenBSD:*:*)
5358ff
-	echo mipsel-unknown-openbsd${UNAME_RELEASE}
5358ff
-	exit 0 ;;
5358ff
-    cats:OpenBSD:*:*)
5358ff
-	echo arm-unknown-openbsd${UNAME_RELEASE}
5358ff
-	exit 0 ;;
5358ff
-    hp300:OpenBSD:*:*)
5358ff
-	echo m68k-unknown-openbsd${UNAME_RELEASE}
5358ff
-	exit 0 ;;
5358ff
-    luna88k:OpenBSD:*:*)
5358ff
-    	echo m88k-unknown-openbsd${UNAME_RELEASE}
5358ff
-	exit 0 ;;
5358ff
-    mac68k:OpenBSD:*:*)
5358ff
-	echo m68k-unknown-openbsd${UNAME_RELEASE}
5358ff
-	exit 0 ;;
5358ff
-    macppc:OpenBSD:*:*)
5358ff
-	echo powerpc-unknown-openbsd${UNAME_RELEASE}
5358ff
-	exit 0 ;;
5358ff
-    mvme68k:OpenBSD:*:*)
5358ff
-	echo m68k-unknown-openbsd${UNAME_RELEASE}
5358ff
-	exit 0 ;;
5358ff
-    mvme88k:OpenBSD:*:*)
5358ff
-	echo m88k-unknown-openbsd${UNAME_RELEASE}
5358ff
-	exit 0 ;;
5358ff
-    mvmeppc:OpenBSD:*:*)
5358ff
-	echo powerpc-unknown-openbsd${UNAME_RELEASE}
5358ff
-	exit 0 ;;
5358ff
-    pmax:OpenBSD:*:*)
5358ff
-	echo mipsel-unknown-openbsd${UNAME_RELEASE}
5358ff
-	exit 0 ;;
5358ff
-    sgi:OpenBSD:*:*)
5358ff
-	echo mipseb-unknown-openbsd${UNAME_RELEASE}
5358ff
-	exit 0 ;;
5358ff
-    sun3:OpenBSD:*:*)
5358ff
-	echo m68k-unknown-openbsd${UNAME_RELEASE}
5358ff
-	exit 0 ;;
5358ff
-    wgrisc:OpenBSD:*:*)
5358ff
-	echo mipsel-unknown-openbsd${UNAME_RELEASE}
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
+    *:Bitrig:*:*)
5358ff
+	UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
5358ff
+	echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
5358ff
+	exit ;;
5358ff
     *:OpenBSD:*:*)
5358ff
-	echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
5358ff
-	exit 0 ;;
5358ff
+	UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
5358ff
+	echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
5358ff
+	exit ;;
5358ff
     *:ekkoBSD:*:*)
5358ff
 	echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
+    *:SolidBSD:*:*)
5358ff
+	echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
5358ff
+	exit ;;
5358ff
     macppc:MirBSD:*:*)
5358ff
-	echo powerppc-unknown-mirbsd${UNAME_RELEASE}
5358ff
-	exit 0 ;;
5358ff
+	echo powerpc-unknown-mirbsd${UNAME_RELEASE}
5358ff
+	exit ;;
5358ff
     *:MirBSD:*:*)
5358ff
 	echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     alpha:OSF1:*:*)
5358ff
 	case $UNAME_RELEASE in
5358ff
 	*4.0)
5358ff
 		UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
5358ff
 		;;
5358ff
 	*5.*)
5358ff
-	        UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
5358ff
+		UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
5358ff
 		;;
5358ff
 	esac
5358ff
 	# According to Compaq, /usr/sbin/psrinfo has been available on
5358ff
@@ -306,37 +272,46 @@
5358ff
 	# A Xn.n version is an unreleased experimental baselevel.
5358ff
 	# 1.2 uses "1.2" for uname -r.
5358ff
 	echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
5358ff
-	exit 0 ;;
5358ff
+	# Reset EXIT trap before exiting to avoid spurious non-zero exit code.
5358ff
+	exitcode=$?
5358ff
+	trap '' 0
5358ff
+	exit $exitcode ;;
5358ff
     Alpha\ *:Windows_NT*:*)
5358ff
 	# How do we know it's Interix rather than the generic POSIX subsystem?
5358ff
 	# Should we change UNAME_MACHINE based on the output of uname instead
5358ff
 	# of the specific Alpha model?
5358ff
 	echo alpha-pc-interix
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     21064:Windows_NT:50:3)
5358ff
 	echo alpha-dec-winnt3.5
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     Amiga*:UNIX_System_V:4.0:*)
5358ff
 	echo m68k-unknown-sysv4
5358ff
-	exit 0;;
5358ff
+	exit ;;
5358ff
     *:[Aa]miga[Oo][Ss]:*:*)
5358ff
 	echo ${UNAME_MACHINE}-unknown-amigaos
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     *:[Mm]orph[Oo][Ss]:*:*)
5358ff
 	echo ${UNAME_MACHINE}-unknown-morphos
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     *:OS/390:*:*)
5358ff
 	echo i370-ibm-openedition
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
+    *:z/VM:*:*)
5358ff
+	echo s390-ibm-zvmoe
5358ff
+	exit ;;
5358ff
     *:OS400:*:*)
5358ff
-        echo powerpc-ibm-os400
5358ff
-	exit 0 ;;
5358ff
+	echo powerpc-ibm-os400
5358ff
+	exit ;;
5358ff
     arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
5358ff
 	echo arm-acorn-riscix${UNAME_RELEASE}
5358ff
-	exit 0;;
5358ff
+	exit ;;
5358ff
+    arm*:riscos:*:*|arm*:RISCOS:*:*)
5358ff
+	echo arm-unknown-riscos
5358ff
+	exit ;;
5358ff
     SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
5358ff
 	echo hppa1.1-hitachi-hiuxmpp
5358ff
-	exit 0;;
5358ff
+	exit ;;
5358ff
     Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
5358ff
 	# akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
5358ff
 	if test "`(/bin/universe) 2>/dev/null`" = att ; then
5358ff
@@ -344,32 +319,51 @@
5358ff
 	else
5358ff
 		echo pyramid-pyramid-bsd
5358ff
 	fi
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     NILE*:*:*:dcosx)
5358ff
 	echo pyramid-pyramid-svr4
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     DRS?6000:unix:4.0:6*)
5358ff
 	echo sparc-icl-nx6
5358ff
-	exit 0 ;;
5358ff
-    DRS?6000:UNIX_SV:4.2*:7*)
5358ff
+	exit ;;
5358ff
+    DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
5358ff
 	case `/usr/bin/uname -p` in
5358ff
-	    sparc) echo sparc-icl-nx7 && exit 0 ;;
5358ff
+	    sparc) echo sparc-icl-nx7; exit ;;
5358ff
 	esac ;;
5358ff
+    s390x:SunOS:*:*)
5358ff
+	echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
5358ff
+	exit ;;
5358ff
     sun4H:SunOS:5.*:*)
5358ff
 	echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
5358ff
 	echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
5358ff
-	exit 0 ;;
5358ff
-    i86pc:SunOS:5.*:*)
5358ff
-	echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
+    i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
5358ff
+	echo i386-pc-auroraux${UNAME_RELEASE}
5358ff
+	exit ;;
5358ff
+    i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
5358ff
+	eval $set_cc_for_build
5358ff
+	SUN_ARCH="i386"
5358ff
+	# If there is a compiler, see if it is configured for 64-bit objects.
5358ff
+	# Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
5358ff
+	# This test works for both compilers.
5358ff
+	if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
5358ff
+	    if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
5358ff
+		(CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
5358ff
+		grep IS_64BIT_ARCH >/dev/null
5358ff
+	    then
5358ff
+		SUN_ARCH="x86_64"
5358ff
+	    fi
5358ff
+	fi
5358ff
+	echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
5358ff
+	exit ;;
5358ff
     sun4*:SunOS:6*:*)
5358ff
 	# According to config.sub, this is the proper way to canonicalize
5358ff
 	# SunOS6.  Hard to guess exactly what SunOS6 will be like, but
5358ff
 	# it's likely to be more like Solaris than SunOS4.
5358ff
 	echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     sun4*:SunOS:*:*)
5358ff
 	case "`/usr/bin/arch -k`" in
5358ff
 	    Series*|S4*)
5358ff
@@ -378,10 +372,10 @@
5358ff
 	esac
5358ff
 	# Japanese Language versions have a version number like `4.1.3-JL'.
5358ff
 	echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     sun3*:SunOS:*:*)
5358ff
 	echo m68k-sun-sunos${UNAME_RELEASE}
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     sun*:*:4.2BSD:*)
5358ff
 	UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
5358ff
 	test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
5358ff
@@ -393,10 +387,10 @@
5358ff
 		echo sparc-sun-sunos${UNAME_RELEASE}
5358ff
 		;;
5358ff
 	esac
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     aushp:SunOS:*:*)
5358ff
 	echo sparc-auspex-sunos${UNAME_RELEASE}
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     # The situation for MiNT is a little confusing.  The machine name
5358ff
     # can be virtually everything (everything which is not
5358ff
     # "atarist" or "atariste" at least should have a processor
5358ff
@@ -406,41 +400,41 @@
5358ff
     # MiNT.  But MiNT is downward compatible to TOS, so this should
5358ff
     # be no problem.
5358ff
     atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
5358ff
-        echo m68k-atari-mint${UNAME_RELEASE}
5358ff
-	exit 0 ;;
5358ff
+	echo m68k-atari-mint${UNAME_RELEASE}
5358ff
+	exit ;;
5358ff
     atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
5358ff
 	echo m68k-atari-mint${UNAME_RELEASE}
5358ff
-        exit 0 ;;
5358ff
+	exit ;;
5358ff
     *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
5358ff
-        echo m68k-atari-mint${UNAME_RELEASE}
5358ff
-	exit 0 ;;
5358ff
+	echo m68k-atari-mint${UNAME_RELEASE}
5358ff
+	exit ;;
5358ff
     milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
5358ff
-        echo m68k-milan-mint${UNAME_RELEASE}
5358ff
-        exit 0 ;;
5358ff
+	echo m68k-milan-mint${UNAME_RELEASE}
5358ff
+	exit ;;
5358ff
     hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
5358ff
-        echo m68k-hades-mint${UNAME_RELEASE}
5358ff
-        exit 0 ;;
5358ff
+	echo m68k-hades-mint${UNAME_RELEASE}
5358ff
+	exit ;;
5358ff
     *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
5358ff
-        echo m68k-unknown-mint${UNAME_RELEASE}
5358ff
-        exit 0 ;;
5358ff
+	echo m68k-unknown-mint${UNAME_RELEASE}
5358ff
+	exit ;;
5358ff
     m68k:machten:*:*)
5358ff
 	echo m68k-apple-machten${UNAME_RELEASE}
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     powerpc:machten:*:*)
5358ff
 	echo powerpc-apple-machten${UNAME_RELEASE}
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     RISC*:Mach:*:*)
5358ff
 	echo mips-dec-mach_bsd4.3
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     RISC*:ULTRIX:*:*)
5358ff
 	echo mips-dec-ultrix${UNAME_RELEASE}
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     VAX*:ULTRIX*:*:*)
5358ff
 	echo vax-dec-ultrix${UNAME_RELEASE}
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     2020:CLIX:*:* | 2430:CLIX:*:*)
5358ff
 	echo clipper-intergraph-clix${UNAME_RELEASE}
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     mips:*:*:UMIPS | mips:*:*:RISCos)
5358ff
 	eval $set_cc_for_build
5358ff
 	sed 's/^	//' << EOF >$dummy.c
5358ff
@@ -464,35 +458,36 @@
5358ff
 	  exit (-1);
5358ff
 	}
5358ff
 EOF
5358ff
-	$CC_FOR_BUILD -o $dummy $dummy.c \
5358ff
-	  && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
5358ff
-	  && exit 0
5358ff
+	$CC_FOR_BUILD -o $dummy $dummy.c &&
5358ff
+	  dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
5358ff
+	  SYSTEM_NAME=`$dummy $dummyarg` &&
5358ff
+	    { echo "$SYSTEM_NAME"; exit; }
5358ff
 	echo mips-mips-riscos${UNAME_RELEASE}
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     Motorola:PowerMAX_OS:*:*)
5358ff
 	echo powerpc-motorola-powermax
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     Motorola:*:4.3:PL8-*)
5358ff
 	echo powerpc-harris-powermax
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
5358ff
 	echo powerpc-harris-powermax
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     Night_Hawk:Power_UNIX:*:*)
5358ff
 	echo powerpc-harris-powerunix
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     m88k:CX/UX:7*:*)
5358ff
 	echo m88k-harris-cxux7
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     m88k:*:4*:R4*)
5358ff
 	echo m88k-motorola-sysv4
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     m88k:*:3*:R3*)
5358ff
 	echo m88k-motorola-sysv3
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     AViiON:dgux:*:*)
5358ff
-        # DG/UX returns AViiON for all architectures
5358ff
-        UNAME_PROCESSOR=`/usr/bin/uname -p`
5358ff
+	# DG/UX returns AViiON for all architectures
5358ff
+	UNAME_PROCESSOR=`/usr/bin/uname -p`
5358ff
 	if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
5358ff
 	then
5358ff
 	    if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
5358ff
@@ -505,29 +500,29 @@
5358ff
 	else
5358ff
 	    echo i586-dg-dgux${UNAME_RELEASE}
5358ff
 	fi
5358ff
- 	exit 0 ;;
5358ff
+	exit ;;
5358ff
     M88*:DolphinOS:*:*)	# DolphinOS (SVR3)
5358ff
 	echo m88k-dolphin-sysv3
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     M88*:*:R3*:*)
5358ff
 	# Delta 88k system running SVR3
5358ff
 	echo m88k-motorola-sysv3
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
5358ff
 	echo m88k-tektronix-sysv3
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
5358ff
 	echo m68k-tektronix-bsd
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     *:IRIX*:*:*)
5358ff
 	echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     ????????:AIX?:[12].1:2)   # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
5358ff
-	echo romp-ibm-aix      # uname -m gives an 8 hex-code CPU id
5358ff
-	exit 0 ;;              # Note that: echo "'`uname -s`'" gives 'AIX '
5358ff
+	echo romp-ibm-aix     # uname -m gives an 8 hex-code CPU id
5358ff
+	exit ;;               # Note that: echo "'`uname -s`'" gives 'AIX '
5358ff
     i*86:AIX:*:*)
5358ff
 	echo i386-ibm-aix
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     ia64:AIX:*:*)
5358ff
 	if [ -x /usr/bin/oslevel ] ; then
5358ff
 		IBM_REV=`/usr/bin/oslevel`
5358ff
@@ -535,7 +530,7 @@
5358ff
 		IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
5358ff
 	fi
5358ff
 	echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     *:AIX:2:3)
5358ff
 	if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
5358ff
 		eval $set_cc_for_build
5358ff
@@ -550,15 +545,19 @@
5358ff
 			exit(0);
5358ff
 			}
5358ff
 EOF
5358ff
-		$CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
5358ff
-		echo rs6000-ibm-aix3.2.5
5358ff
+		if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
5358ff
+		then
5358ff
+			echo "$SYSTEM_NAME"
5358ff
+		else
5358ff
+			echo rs6000-ibm-aix3.2.5
5358ff
+		fi
5358ff
 	elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
5358ff
 		echo rs6000-ibm-aix3.2.4
5358ff
 	else
5358ff
 		echo rs6000-ibm-aix3.2
5358ff
 	fi
5358ff
-	exit 0 ;;
5358ff
-    *:AIX:*:[45])
5358ff
+	exit ;;
5358ff
+    *:AIX:*:[4567])
5358ff
 	IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
5358ff
 	if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
5358ff
 		IBM_ARCH=rs6000
5358ff
@@ -571,28 +570,28 @@
5358ff
 		IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
5358ff
 	fi
5358ff
 	echo ${IBM_ARCH}-ibm-aix${IBM_REV}
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     *:AIX:*:*)
5358ff
 	echo rs6000-ibm-aix
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     ibmrt:4.4BSD:*|romp-ibm:BSD:*)
5358ff
 	echo romp-ibm-bsd4.4
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     ibmrt:*BSD:*|romp-ibm:BSD:*)            # covers RT/PC BSD and
5358ff
 	echo romp-ibm-bsd${UNAME_RELEASE}   # 4.3 with uname added to
5358ff
-	exit 0 ;;                           # report: romp-ibm BSD 4.3
5358ff
+	exit ;;                             # report: romp-ibm BSD 4.3
5358ff
     *:BOSX:*:*)
5358ff
 	echo rs6000-bull-bosx
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     DPX/2?00:B.O.S.:*:*)
5358ff
 	echo m68k-bull-sysv3
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     9000/[34]??:4.3bsd:1.*:*)
5358ff
 	echo m68k-hp-bsd
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
5358ff
 	echo m68k-hp-bsd4.4
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     9000/[34678]??:HP-UX:*:*)
5358ff
 	HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
5358ff
 	case "${UNAME_MACHINE}" in
5358ff
@@ -601,52 +600,52 @@
5358ff
 	    9000/[678][0-9][0-9])
5358ff
 		if [ -x /usr/bin/getconf ]; then
5358ff
 		    sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
5358ff
-                    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
5358ff
-                    case "${sc_cpu_version}" in
5358ff
-                      523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
5358ff
-                      528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
5358ff
-                      532)                      # CPU_PA_RISC2_0
5358ff
-                        case "${sc_kernel_bits}" in
5358ff
-                          32) HP_ARCH="hppa2.0n" ;;
5358ff
-                          64) HP_ARCH="hppa2.0w" ;;
5358ff
+		    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
5358ff
+		    case "${sc_cpu_version}" in
5358ff
+		      523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
5358ff
+		      528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
5358ff
+		      532)                      # CPU_PA_RISC2_0
5358ff
+			case "${sc_kernel_bits}" in
5358ff
+			  32) HP_ARCH="hppa2.0n" ;;
5358ff
+			  64) HP_ARCH="hppa2.0w" ;;
5358ff
 			  '') HP_ARCH="hppa2.0" ;;   # HP-UX 10.20
5358ff
-                        esac ;;
5358ff
-                    esac
5358ff
+			esac ;;
5358ff
+		    esac
5358ff
 		fi
5358ff
 		if [ "${HP_ARCH}" = "" ]; then
5358ff
 		    eval $set_cc_for_build
5358ff
-		    sed 's/^              //' << EOF >$dummy.c
5358ff
+		    sed 's/^		//' << EOF >$dummy.c
5358ff
 
5358ff
-              #define _HPUX_SOURCE
5358ff
-              #include <stdlib.h>
5358ff
-              #include <unistd.h>
5358ff
-
5358ff
-              int main ()
5358ff
-              {
5358ff
-              #if defined(_SC_KERNEL_BITS)
5358ff
-                  long bits = sysconf(_SC_KERNEL_BITS);
5358ff
-              #endif
5358ff
-                  long cpu  = sysconf (_SC_CPU_VERSION);
5358ff
-
5358ff
-                  switch (cpu)
5358ff
-              	{
5358ff
-              	case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
5358ff
-              	case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
5358ff
-              	case CPU_PA_RISC2_0:
5358ff
-              #if defined(_SC_KERNEL_BITS)
5358ff
-              	    switch (bits)
5358ff
-              		{
5358ff
-              		case 64: puts ("hppa2.0w"); break;
5358ff
-              		case 32: puts ("hppa2.0n"); break;
5358ff
-              		default: puts ("hppa2.0"); break;
5358ff
-              		} break;
5358ff
-              #else  /* !defined(_SC_KERNEL_BITS) */
5358ff
-              	    puts ("hppa2.0"); break;
5358ff
-              #endif
5358ff
-              	default: puts ("hppa1.0"); break;
5358ff
-              	}
5358ff
-                  exit (0);
5358ff
-              }
5358ff
+		#define _HPUX_SOURCE
5358ff
+		#include <stdlib.h>
5358ff
+		#include <unistd.h>
5358ff
+
5358ff
+		int main ()
5358ff
+		{
5358ff
+		#if defined(_SC_KERNEL_BITS)
5358ff
+		    long bits = sysconf(_SC_KERNEL_BITS);
5358ff
+		#endif
5358ff
+		    long cpu  = sysconf (_SC_CPU_VERSION);
5358ff
+
5358ff
+		    switch (cpu)
5358ff
+			{
5358ff
+			case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
5358ff
+			case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
5358ff
+			case CPU_PA_RISC2_0:
5358ff
+		#if defined(_SC_KERNEL_BITS)
5358ff
+			    switch (bits)
5358ff
+				{
5358ff
+				case 64: puts ("hppa2.0w"); break;
5358ff
+				case 32: puts ("hppa2.0n"); break;
5358ff
+				default: puts ("hppa2.0"); break;
5358ff
+				} break;
5358ff
+		#else  /* !defined(_SC_KERNEL_BITS) */
5358ff
+			    puts ("hppa2.0"); break;
5358ff
+		#endif
5358ff
+			default: puts ("hppa1.0"); break;
5358ff
+			}
5358ff
+		    exit (0);
5358ff
+		}
5358ff
 EOF
5358ff
 		    (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
5358ff
 		    test -z "$HP_ARCH" && HP_ARCH=hppa
5358ff
@@ -654,9 +653,19 @@
5358ff
 	esac
5358ff
 	if [ ${HP_ARCH} = "hppa2.0w" ]
5358ff
 	then
5358ff
-	    # avoid double evaluation of $set_cc_for_build
5358ff
-	    test -n "$CC_FOR_BUILD" || eval $set_cc_for_build
5358ff
-	    if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null
5358ff
+	    eval $set_cc_for_build
5358ff
+
5358ff
+	    # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
5358ff
+	    # 32-bit code.  hppa64-hp-hpux* has the same kernel and a compiler
5358ff
+	    # generating 64-bit code.  GNU and HP use different nomenclature:
5358ff
+	    #
5358ff
+	    # $ CC_FOR_BUILD=cc ./config.guess
5358ff
+	    # => hppa2.0w-hp-hpux11.23
5358ff
+	    # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
5358ff
+	    # => hppa64-hp-hpux11.23
5358ff
+
5358ff
+	    if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
5358ff
+		grep -q __LP64__
5358ff
 	    then
5358ff
 		HP_ARCH="hppa2.0w"
5358ff
 	    else
5358ff
@@ -664,11 +673,11 @@
5358ff
 	    fi
5358ff
 	fi
5358ff
 	echo ${HP_ARCH}-hp-hpux${HPUX_REV}
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     ia64:HP-UX:*:*)
5358ff
 	HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
5358ff
 	echo ia64-hp-hpux${HPUX_REV}
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     3050*:HI-UX:*:*)
5358ff
 	eval $set_cc_for_build
5358ff
 	sed 's/^	//' << EOF >$dummy.c
5358ff
@@ -696,210 +705,269 @@
5358ff
 	  exit (0);
5358ff
 	}
5358ff
 EOF
5358ff
-	$CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
5358ff
+	$CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
5358ff
+		{ echo "$SYSTEM_NAME"; exit; }
5358ff
 	echo unknown-hitachi-hiuxwe2
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
5358ff
 	echo hppa1.1-hp-bsd
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     9000/8??:4.3bsd:*:*)
5358ff
 	echo hppa1.0-hp-bsd
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
5358ff
 	echo hppa1.0-hp-mpeix
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
5358ff
 	echo hppa1.1-hp-osf
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     hp8??:OSF1:*:*)
5358ff
 	echo hppa1.0-hp-osf
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     i*86:OSF1:*:*)
5358ff
 	if [ -x /usr/sbin/sysversion ] ; then
5358ff
 	    echo ${UNAME_MACHINE}-unknown-osf1mk
5358ff
 	else
5358ff
 	    echo ${UNAME_MACHINE}-unknown-osf1
5358ff
 	fi
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     parisc*:Lites*:*:*)
5358ff
 	echo hppa1.1-hp-lites
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
5358ff
 	echo c1-convex-bsd
5358ff
-        exit 0 ;;
5358ff
+	exit ;;
5358ff
     C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
5358ff
 	if getsysinfo -f scalar_acc
5358ff
 	then echo c32-convex-bsd
5358ff
 	else echo c2-convex-bsd
5358ff
 	fi
5358ff
-        exit 0 ;;
5358ff
+	exit ;;
5358ff
     C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
5358ff
 	echo c34-convex-bsd
5358ff
-        exit 0 ;;
5358ff
+	exit ;;
5358ff
     C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
5358ff
 	echo c38-convex-bsd
5358ff
-        exit 0 ;;
5358ff
+	exit ;;
5358ff
     C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
5358ff
 	echo c4-convex-bsd
5358ff
-        exit 0 ;;
5358ff
+	exit ;;
5358ff
     CRAY*Y-MP:*:*:*)
5358ff
 	echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     CRAY*[A-Z]90:*:*:*)
5358ff
 	echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
5358ff
 	| sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
5358ff
 	      -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
5358ff
 	      -e 's/\.[^.]*$/.X/'
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     CRAY*TS:*:*:*)
5358ff
 	echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     CRAY*T3E:*:*:*)
5358ff
 	echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     CRAY*SV1:*:*:*)
5358ff
 	echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     *:UNICOS/mp:*:*)
5358ff
 	echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
5358ff
 	FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
5358ff
-        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
5358ff
-        FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
5358ff
-        echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
5358ff
-        exit 0 ;;
5358ff
+	FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
5358ff
+	FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
5358ff
+	echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
5358ff
+	exit ;;
5358ff
     5000:UNIX_System_V:4.*:*)
5358ff
-        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
5358ff
-        FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
5358ff
-        echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
5358ff
-	exit 0 ;;
5358ff
+	FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
5358ff
+	FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
5358ff
+	echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
5358ff
+	exit ;;
5358ff
     i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
5358ff
 	echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     sparc*:BSD/OS:*:*)
5358ff
 	echo sparc-unknown-bsdi${UNAME_RELEASE}
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     *:BSD/OS:*:*)
5358ff
 	echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     *:FreeBSD:*:*)
5358ff
-	echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
5358ff
-	exit 0 ;;
5358ff
+	UNAME_PROCESSOR=`/usr/bin/uname -p`
5358ff
+	case ${UNAME_PROCESSOR} in
5358ff
+	    amd64)
5358ff
+		echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
5358ff
+	    *)
5358ff
+		echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
5358ff
+	esac
5358ff
+	exit ;;
5358ff
     i*:CYGWIN*:*)
5358ff
 	echo ${UNAME_MACHINE}-pc-cygwin
5358ff
-	exit 0 ;;
5358ff
-    i*:MINGW*:*)
5358ff
+	exit ;;
5358ff
+    *:MINGW64*:*)
5358ff
+	echo ${UNAME_MACHINE}-pc-mingw64
5358ff
+	exit ;;
5358ff
+    *:MINGW*:*)
5358ff
 	echo ${UNAME_MACHINE}-pc-mingw32
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
+    i*:MSYS*:*)
5358ff
+	echo ${UNAME_MACHINE}-pc-msys
5358ff
+	exit ;;
5358ff
+    i*:windows32*:*)
5358ff
+	# uname -m includes "-pc" on this system.
5358ff
+	echo ${UNAME_MACHINE}-mingw32
5358ff
+	exit ;;
5358ff
     i*:PW*:*)
5358ff
 	echo ${UNAME_MACHINE}-pc-pw32
5358ff
-	exit 0 ;;
5358ff
-    x86:Interix*:[34]*)
5358ff
-	echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
+    *:Interix*:*)
5358ff
+	case ${UNAME_MACHINE} in
5358ff
+	    x86)
5358ff
+		echo i586-pc-interix${UNAME_RELEASE}
5358ff
+		exit ;;
5358ff
+	    authenticamd | genuineintel | EM64T)
5358ff
+		echo x86_64-unknown-interix${UNAME_RELEASE}
5358ff
+		exit ;;
5358ff
+	    IA64)
5358ff
+		echo ia64-unknown-interix${UNAME_RELEASE}
5358ff
+		exit ;;
5358ff
+	esac ;;
5358ff
     [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
5358ff
 	echo i${UNAME_MACHINE}-pc-mks
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
+    8664:Windows_NT:*)
5358ff
+	echo x86_64-pc-mks
5358ff
+	exit ;;
5358ff
     i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
5358ff
 	# How do we know it's Interix rather than the generic POSIX subsystem?
5358ff
 	# It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
5358ff
 	# UNAME_MACHINE based on the output of uname instead of i386?
5358ff
 	echo i586-pc-interix
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     i*:UWIN*:*)
5358ff
 	echo ${UNAME_MACHINE}-pc-uwin
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
+    amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
5358ff
+	echo x86_64-unknown-cygwin
5358ff
+	exit ;;
5358ff
     p*:CYGWIN*:*)
5358ff
 	echo powerpcle-unknown-cygwin
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     prep*:SunOS:5.*:*)
5358ff
 	echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     *:GNU:*:*)
5358ff
 	# the GNU system
5358ff
 	echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     *:GNU/*:*:*)
5358ff
 	# other systems with GNU libc and userland
5358ff
 	echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     i*86:Minix:*:*)
5358ff
 	echo ${UNAME_MACHINE}-pc-minix
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
+    aarch64:Linux:*:*)
5358ff
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
5358ff
+	exit ;;
5358ff
+    aarch64_be:Linux:*:*)
5358ff
+	UNAME_MACHINE=aarch64_be
5358ff
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
5358ff
+	exit ;;
5358ff
+    alpha:Linux:*:*)
5358ff
+	case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
5358ff
+	  EV5)   UNAME_MACHINE=alphaev5 ;;
5358ff
+	  EV56)  UNAME_MACHINE=alphaev56 ;;
5358ff
+	  PCA56) UNAME_MACHINE=alphapca56 ;;
5358ff
+	  PCA57) UNAME_MACHINE=alphapca56 ;;
5358ff
+	  EV6)   UNAME_MACHINE=alphaev6 ;;
5358ff
+	  EV67)  UNAME_MACHINE=alphaev67 ;;
5358ff
+	  EV68*) UNAME_MACHINE=alphaev68 ;;
5358ff
+	esac
5358ff
+	objdump --private-headers /bin/sh | grep -q ld.so.1
5358ff
+	if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
5358ff
+	echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
5358ff
+	exit ;;
5358ff
     arm*:Linux:*:*)
5358ff
+	eval $set_cc_for_build
5358ff
+	if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
5358ff
+	    | grep -q __ARM_EABI__
5358ff
+	then
5358ff
+	    echo ${UNAME_MACHINE}-unknown-linux-gnu
5358ff
+	else
5358ff
+	    if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
5358ff
+		| grep -q __ARM_PCS_VFP
5358ff
+	    then
5358ff
+		echo ${UNAME_MACHINE}-unknown-linux-gnueabi
5358ff
+	    else
5358ff
+		echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
5358ff
+	    fi
5358ff
+	fi
5358ff
+	exit ;;
5358ff
+    avr32*:Linux:*:*)
5358ff
 	echo ${UNAME_MACHINE}-unknown-linux-gnu
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     cris:Linux:*:*)
5358ff
-	echo cris-axis-linux-gnu
5358ff
-	exit 0 ;;
5358ff
-    ia64:Linux:*:*)
5358ff
+	echo ${UNAME_MACHINE}-axis-linux-gnu
5358ff
+	exit ;;
5358ff
+    crisv32:Linux:*:*)
5358ff
+	echo ${UNAME_MACHINE}-axis-linux-gnu
5358ff
+	exit ;;
5358ff
+    frv:Linux:*:*)
5358ff
 	echo ${UNAME_MACHINE}-unknown-linux-gnu
5358ff
-	exit 0 ;;
5358ff
-    m32r*:Linux:*:*)
5358ff
+	exit ;;
5358ff
+    hexagon:Linux:*:*)
5358ff
 	echo ${UNAME_MACHINE}-unknown-linux-gnu
5358ff
-	exit 0 ;;
5358ff
-    m68*:Linux:*:*)
5358ff
-	echo ${UNAME_MACHINE}-unknown-linux-gnu
5358ff
-	exit 0 ;;
5358ff
-    mips:Linux:*:*)
5358ff
+	exit ;;
5358ff
+    i*86:Linux:*:*)
5358ff
+	LIBC=gnu
5358ff
 	eval $set_cc_for_build
5358ff
 	sed 's/^	//' << EOF >$dummy.c
5358ff
-	#undef CPU
5358ff
-	#undef mips
5358ff
-	#undef mipsel
5358ff
-	#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
5358ff
-	CPU=mipsel
5358ff
-	#else
5358ff
-	#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
5358ff
-	CPU=mips
5358ff
-	#else
5358ff
-	CPU=
5358ff
-	#endif
5358ff
+	#ifdef __dietlibc__
5358ff
+	LIBC=dietlibc
5358ff
 	#endif
5358ff
 EOF
5358ff
-	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
5358ff
-	test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
5358ff
-	;;
5358ff
-    mips64:Linux:*:*)
5358ff
+	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
5358ff
+	echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
5358ff
+	exit ;;
5358ff
+    ia64:Linux:*:*)
5358ff
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
5358ff
+	exit ;;
5358ff
+    m32r*:Linux:*:*)
5358ff
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
5358ff
+	exit ;;
5358ff
+    m68*:Linux:*:*)
5358ff
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
5358ff
+	exit ;;
5358ff
+    mips:Linux:*:* | mips64:Linux:*:*)
5358ff
 	eval $set_cc_for_build
5358ff
 	sed 's/^	//' << EOF >$dummy.c
5358ff
 	#undef CPU
5358ff
-	#undef mips64
5358ff
-	#undef mips64el
5358ff
+	#undef ${UNAME_MACHINE}
5358ff
+	#undef ${UNAME_MACHINE}el
5358ff
 	#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
5358ff
-	CPU=mips64el
5358ff
+	CPU=${UNAME_MACHINE}el
5358ff
 	#else
5358ff
 	#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
5358ff
-	CPU=mips64
5358ff
+	CPU=${UNAME_MACHINE}
5358ff
 	#else
5358ff
 	CPU=
5358ff
 	#endif
5358ff
 	#endif
5358ff
 EOF
5358ff
-	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
5358ff
-	test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
5358ff
+	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
5358ff
+	test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
5358ff
 	;;
5358ff
-    ppc:Linux:*:*)
5358ff
-	echo powerpc-unknown-linux-gnu
5358ff
-	exit 0 ;;
5358ff
-    ppc64:Linux:*:*)
5358ff
-	echo powerpc64-unknown-linux-gnu
5358ff
-	exit 0 ;;
5358ff
-    alpha:Linux:*:*)
5358ff
-	case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
5358ff
-	  EV5)   UNAME_MACHINE=alphaev5 ;;
5358ff
-	  EV56)  UNAME_MACHINE=alphaev56 ;;
5358ff
-	  PCA56) UNAME_MACHINE=alphapca56 ;;
5358ff
-	  PCA57) UNAME_MACHINE=alphapca56 ;;
5358ff
-	  EV6)   UNAME_MACHINE=alphaev6 ;;
5358ff
-	  EV67)  UNAME_MACHINE=alphaev67 ;;
5358ff
-	  EV68*) UNAME_MACHINE=alphaev68 ;;
5358ff
-        esac
5358ff
-	objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
5358ff
-	if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
5358ff
-	echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
5358ff
-	exit 0 ;;
5358ff
+    or32:Linux:*:*)
5358ff
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
5358ff
+	exit ;;
5358ff
+    padre:Linux:*:*)
5358ff
+	echo sparc-unknown-linux-gnu
5358ff
+	exit ;;
5358ff
+    parisc64:Linux:*:* | hppa64:Linux:*:*)
5358ff
+	echo hppa64-unknown-linux-gnu
5358ff
+	exit ;;
5358ff
     parisc:Linux:*:* | hppa:Linux:*:*)
5358ff
 	# Look for CPU level
5358ff
 	case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
5358ff
@@ -907,115 +975,71 @@
5358ff
 	  PA8*) echo hppa2.0-unknown-linux-gnu ;;
5358ff
 	  *)    echo hppa-unknown-linux-gnu ;;
5358ff
 	esac
5358ff
-	exit 0 ;;
5358ff
-    parisc64:Linux:*:* | hppa64:Linux:*:*)
5358ff
-	echo hppa64-unknown-linux-gnu
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
+    ppc64:Linux:*:*)
5358ff
+	echo powerpc64-unknown-linux-gnu
5358ff
+	exit ;;
5358ff
+    ppc:Linux:*:*)
5358ff
+	echo powerpc-unknown-linux-gnu
5358ff
+	exit ;;
5358ff
     s390:Linux:*:* | s390x:Linux:*:*)
5358ff
 	echo ${UNAME_MACHINE}-ibm-linux
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     sh64*:Linux:*:*)
5358ff
-    	echo ${UNAME_MACHINE}-unknown-linux-gnu
5358ff
-	exit 0 ;;
5358ff
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
5358ff
+	exit ;;
5358ff
     sh*:Linux:*:*)
5358ff
 	echo ${UNAME_MACHINE}-unknown-linux-gnu
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     sparc:Linux:*:* | sparc64:Linux:*:*)
5358ff
 	echo ${UNAME_MACHINE}-unknown-linux-gnu
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
+    tile*:Linux:*:*)
5358ff
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
5358ff
+	exit ;;
5358ff
+    vax:Linux:*:*)
5358ff
+	echo ${UNAME_MACHINE}-dec-linux-gnu
5358ff
+	exit ;;
5358ff
     x86_64:Linux:*:*)
5358ff
-	echo x86_64-unknown-linux-gnu
5358ff
-	exit 0 ;;
5358ff
-    i*86:Linux:*:*)
5358ff
-	# The BFD linker knows what the default object file format is, so
5358ff
-	# first see if it will tell us. cd to the root directory to prevent
5358ff
-	# problems with other programs or directories called `ld' in the path.
5358ff
-	# Set LC_ALL=C to ensure ld outputs messages in English.
5358ff
-	ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
5358ff
-			 | sed -ne '/supported targets:/!d
5358ff
-				    s/[ 	][ 	]*/ /g
5358ff
-				    s/.*supported targets: *//
5358ff
-				    s/ .*//
5358ff
-				    p'`
5358ff
-        case "$ld_supported_targets" in
5358ff
-	  elf32-i386)
5358ff
-		TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
5358ff
-		;;
5358ff
-	  a.out-i386-linux)
5358ff
-		echo "${UNAME_MACHINE}-pc-linux-gnuaout"
5358ff
-		exit 0 ;;
5358ff
-	  coff-i386)
5358ff
-		echo "${UNAME_MACHINE}-pc-linux-gnucoff"
5358ff
-		exit 0 ;;
5358ff
-	  "")
5358ff
-		# Either a pre-BFD a.out linker (linux-gnuoldld) or
5358ff
-		# one that does not give us useful --help.
5358ff
-		echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
5358ff
-		exit 0 ;;
5358ff
-	esac
5358ff
-	# Determine whether the default compiler is a.out or elf
5358ff
-	eval $set_cc_for_build
5358ff
-	sed 's/^	//' << EOF >$dummy.c
5358ff
-	#include <features.h>
5358ff
-	#ifdef __ELF__
5358ff
-	# ifdef __GLIBC__
5358ff
-	#  if __GLIBC__ >= 2
5358ff
-	LIBC=gnu
5358ff
-	#  else
5358ff
-	LIBC=gnulibc1
5358ff
-	#  endif
5358ff
-	# else
5358ff
-	LIBC=gnulibc1
5358ff
-	# endif
5358ff
-	#else
5358ff
-	#ifdef __INTEL_COMPILER
5358ff
-	LIBC=gnu
5358ff
-	#else
5358ff
-	LIBC=gnuaout
5358ff
-	#endif
5358ff
-	#endif
5358ff
-	#ifdef __dietlibc__
5358ff
-	LIBC=dietlibc
5358ff
-	#endif
5358ff
-EOF
5358ff
-	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
5358ff
-	test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
5358ff
-	test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
5358ff
-	;;
5358ff
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
5358ff
+	exit ;;
5358ff
+    xtensa*:Linux:*:*)
5358ff
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
5358ff
+	exit ;;
5358ff
     i*86:DYNIX/ptx:4*:*)
5358ff
 	# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
5358ff
 	# earlier versions are messed up and put the nodename in both
5358ff
 	# sysname and nodename.
5358ff
 	echo i386-sequent-sysv4
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     i*86:UNIX_SV:4.2MP:2.*)
5358ff
-        # Unixware is an offshoot of SVR4, but it has its own version
5358ff
-        # number series starting with 2...
5358ff
-        # I am not positive that other SVR4 systems won't match this,
5358ff
+	# Unixware is an offshoot of SVR4, but it has its own version
5358ff
+	# number series starting with 2...
5358ff
+	# I am not positive that other SVR4 systems won't match this,
5358ff
 	# I just have to hope.  -- rms.
5358ff
-        # Use sysv4.2uw... so that sysv4* matches it.
5358ff
+	# Use sysv4.2uw... so that sysv4* matches it.
5358ff
 	echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     i*86:OS/2:*:*)
5358ff
 	# If we were able to find `uname', then EMX Unix compatibility
5358ff
 	# is probably installed.
5358ff
 	echo ${UNAME_MACHINE}-pc-os2-emx
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     i*86:XTS-300:*:STOP)
5358ff
 	echo ${UNAME_MACHINE}-unknown-stop
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     i*86:atheos:*:*)
5358ff
 	echo ${UNAME_MACHINE}-unknown-atheos
5358ff
-	exit 0 ;;
5358ff
-	i*86:syllable:*:*)
5358ff
+	exit ;;
5358ff
+    i*86:syllable:*:*)
5358ff
 	echo ${UNAME_MACHINE}-pc-syllable
5358ff
-	exit 0 ;;
5358ff
-    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
5358ff
+	exit ;;
5358ff
+    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
5358ff
 	echo i386-unknown-lynxos${UNAME_RELEASE}
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     i*86:*DOS:*:*)
5358ff
 	echo ${UNAME_MACHINE}-pc-msdosdjgpp
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
5358ff
 	UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
5358ff
 	if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
5358ff
@@ -1023,15 +1047,16 @@
5358ff
 	else
5358ff
 		echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
5358ff
 	fi
5358ff
-	exit 0 ;;
5358ff
-    i*86:*:5:[78]*)
5358ff
+	exit ;;
5358ff
+    i*86:*:5:[678]*)
5358ff
+	# UnixWare 7.x, OpenUNIX and OpenServer 6.
5358ff
 	case `/bin/uname -X | grep "^Machine"` in
5358ff
 	    *486*)	     UNAME_MACHINE=i486 ;;
5358ff
 	    *Pentium)	     UNAME_MACHINE=i586 ;;
5358ff
 	    *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
5358ff
 	esac
5358ff
 	echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     i*86:*:3.2:*)
5358ff
 	if test -f /usr/options/cb.name; then
5358ff
 		UNAME_REL=`sed -n 's/.*Version //p' 
5358ff
@@ -1049,73 +1074,86 @@
5358ff
 	else
5358ff
 		echo ${UNAME_MACHINE}-pc-sysv32
5358ff
 	fi
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     pc:*:*:*)
5358ff
 	# Left here for compatibility:
5358ff
-        # uname -m prints for DJGPP always 'pc', but it prints nothing about
5358ff
-        # the processor, so we play safe by assuming i386.
5358ff
-	echo i386-pc-msdosdjgpp
5358ff
-        exit 0 ;;
5358ff
+	# uname -m prints for DJGPP always 'pc', but it prints nothing about
5358ff
+	# the processor, so we play safe by assuming i586.
5358ff
+	# Note: whatever this is, it MUST be the same as what config.sub
5358ff
+	# prints for the "djgpp" host, or else GDB configury will decide that
5358ff
+	# this is a cross-build.
5358ff
+	echo i586-pc-msdosdjgpp
5358ff
+	exit ;;
5358ff
     Intel:Mach:3*:*)
5358ff
 	echo i386-pc-mach3
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     paragon:*:*:*)
5358ff
 	echo i860-intel-osf1
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     i860:*:4.*:*) # i860-SVR4
5358ff
 	if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
5358ff
 	  echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
5358ff
 	else # Add other i860-SVR4 vendors below as they are discovered.
5358ff
 	  echo i860-unknown-sysv${UNAME_RELEASE}  # Unknown i860-SVR4
5358ff
 	fi
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     mini*:CTIX:SYS*5:*)
5358ff
 	# "miniframe"
5358ff
 	echo m68010-convergent-sysv
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     mc68k:UNIX:SYSTEM5:3.51m)
5358ff
 	echo m68k-convergent-sysv
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     M680?0:D-NIX:5.3:*)
5358ff
 	echo m68k-diab-dnix
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     M68*:*:R3V[5678]*:*)
5358ff
-	test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
5358ff
+	test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
5358ff
     3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0)
5358ff
 	OS_REL=''
5358ff
 	test -r /etc/.relid \
5358ff
 	&& OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
5358ff
 	/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
5358ff
-	  && echo i486-ncr-sysv4.3${OS_REL} && exit 0
5358ff
+	  && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
5358ff
 	/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
5358ff
-	  && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;;
5358ff
+	  && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
5358ff
     3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
5358ff
-        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
5358ff
-          && echo i486-ncr-sysv4 && exit 0 ;;
5358ff
+	/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
5358ff
+	  && { echo i486-ncr-sysv4; exit; } ;;
5358ff
+    NCR*:*:4.2:* | MPRAS*:*:4.2:*)
5358ff
+	OS_REL='.3'
5358ff
+	test -r /etc/.relid \
5358ff
+	    && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
5358ff
+	/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
5358ff
+	    && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
5358ff
+	/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
5358ff
+	    && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
5358ff
+	/bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
5358ff
+	    && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
5358ff
     m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
5358ff
 	echo m68k-unknown-lynxos${UNAME_RELEASE}
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     mc68030:UNIX_System_V:4.*:*)
5358ff
 	echo m68k-atari-sysv4
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     TSUNAMI:LynxOS:2.*:*)
5358ff
 	echo sparc-unknown-lynxos${UNAME_RELEASE}
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     rs6000:LynxOS:2.*:*)
5358ff
 	echo rs6000-unknown-lynxos${UNAME_RELEASE}
5358ff
-	exit 0 ;;
5358ff
-    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
5358ff
+	exit ;;
5358ff
+    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
5358ff
 	echo powerpc-unknown-lynxos${UNAME_RELEASE}
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     SM[BE]S:UNIX_SV:*:*)
5358ff
 	echo mips-dde-sysv${UNAME_RELEASE}
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     RM*:ReliantUNIX-*:*:*)
5358ff
 	echo mips-sni-sysv4
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     RM*:SINIX-*:*:*)
5358ff
 	echo mips-sni-sysv4
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     *:SINIX-*:*:*)
5358ff
 	if uname -p 2>/dev/null >/dev/null ; then
5358ff
 		UNAME_MACHINE=`(uname -p) 2>/dev/null`
5358ff
@@ -1123,69 +1161,97 @@
5358ff
 	else
5358ff
 		echo ns32k-sni-sysv
5358ff
 	fi
5358ff
-	exit 0 ;;
5358ff
-    PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
5358ff
-                      # says <Richard.M.Bartel@ccMail.Census.GOV>
5358ff
-        echo i586-unisys-sysv4
5358ff
-        exit 0 ;;
5358ff
+	exit ;;
5358ff
+    PENTIUM:*:4.0*:*)	# Unisys `ClearPath HMP IX 4000' SVR4/MP effort
5358ff
+			# says <Richard.M.Bartel@ccMail.Census.GOV>
5358ff
+	echo i586-unisys-sysv4
5358ff
+	exit ;;
5358ff
     *:UNIX_System_V:4*:FTX*)
5358ff
 	# From Gerald Hewes <hewes@openmarket.com>.
5358ff
 	# How about differentiating between stratus architectures? -djm
5358ff
 	echo hppa1.1-stratus-sysv4
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     *:*:*:FTX*)
5358ff
 	# From seanf@swdc.stratus.com.
5358ff
 	echo i860-stratus-sysv4
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
+    i*86:VOS:*:*)
5358ff
+	# From Paul.Green@stratus.com.
5358ff
+	echo ${UNAME_MACHINE}-stratus-vos
5358ff
+	exit ;;
5358ff
     *:VOS:*:*)
5358ff
 	# From Paul.Green@stratus.com.
5358ff
 	echo hppa1.1-stratus-vos
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     mc68*:A/UX:*:*)
5358ff
 	echo m68k-apple-aux${UNAME_RELEASE}
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     news*:NEWS-OS:6*:*)
5358ff
 	echo mips-sony-newsos6
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
5358ff
 	if [ -d /usr/nec ]; then
5358ff
-	        echo mips-nec-sysv${UNAME_RELEASE}
5358ff
+		echo mips-nec-sysv${UNAME_RELEASE}
5358ff
 	else
5358ff
-	        echo mips-unknown-sysv${UNAME_RELEASE}
5358ff
+		echo mips-unknown-sysv${UNAME_RELEASE}
5358ff
 	fi
5358ff
-        exit 0 ;;
5358ff
+	exit ;;
5358ff
     BeBox:BeOS:*:*)	# BeOS running on hardware made by Be, PPC only.
5358ff
 	echo powerpc-be-beos
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     BeMac:BeOS:*:*)	# BeOS running on Mac or Mac clone, PPC only.
5358ff
 	echo powerpc-apple-beos
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     BePC:BeOS:*:*)	# BeOS running on Intel PC compatible.
5358ff
 	echo i586-pc-beos
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
+    BePC:Haiku:*:*)	# Haiku running on Intel PC compatible.
5358ff
+	echo i586-pc-haiku
5358ff
+	exit ;;
5358ff
+    x86_64:Haiku:*:*)
5358ff
+	echo x86_64-unknown-haiku
5358ff
+	exit ;;
5358ff
     SX-4:SUPER-UX:*:*)
5358ff
 	echo sx4-nec-superux${UNAME_RELEASE}
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     SX-5:SUPER-UX:*:*)
5358ff
 	echo sx5-nec-superux${UNAME_RELEASE}
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     SX-6:SUPER-UX:*:*)
5358ff
 	echo sx6-nec-superux${UNAME_RELEASE}
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
+    SX-7:SUPER-UX:*:*)
5358ff
+	echo sx7-nec-superux${UNAME_RELEASE}
5358ff
+	exit ;;
5358ff
+    SX-8:SUPER-UX:*:*)
5358ff
+	echo sx8-nec-superux${UNAME_RELEASE}
5358ff
+	exit ;;
5358ff
+    SX-8R:SUPER-UX:*:*)
5358ff
+	echo sx8r-nec-superux${UNAME_RELEASE}
5358ff
+	exit ;;
5358ff
     Power*:Rhapsody:*:*)
5358ff
 	echo powerpc-apple-rhapsody${UNAME_RELEASE}
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     *:Rhapsody:*:*)
5358ff
 	echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     *:Darwin:*:*)
5358ff
 	UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
5358ff
 	case $UNAME_PROCESSOR in
5358ff
-	    *86) UNAME_PROCESSOR=i686 ;;
5358ff
+	    i386)
5358ff
+		eval $set_cc_for_build
5358ff
+		if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
5358ff
+		  if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
5358ff
+		      (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
5358ff
+		      grep IS_64BIT_ARCH >/dev/null
5358ff
+		  then
5358ff
+		      UNAME_PROCESSOR="x86_64"
5358ff
+		  fi
5358ff
+		fi ;;
5358ff
 	    unknown) UNAME_PROCESSOR=powerpc ;;
5358ff
 	esac
5358ff
 	echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     *:procnto*:*:* | *:QNX:[0123456789]*:*)
5358ff
 	UNAME_PROCESSOR=`uname -p`
5358ff
 	if test "$UNAME_PROCESSOR" = "x86"; then
5358ff
@@ -1193,22 +1259,28 @@
5358ff
 		UNAME_MACHINE=pc
5358ff
 	fi
5358ff
 	echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     *:QNX:*:4*)
5358ff
 	echo i386-pc-qnx
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
+    NEO-?:NONSTOP_KERNEL:*:*)
5358ff
+	echo neo-tandem-nsk${UNAME_RELEASE}
5358ff
+	exit ;;
5358ff
+    NSE-*:NONSTOP_KERNEL:*:*)
5358ff
+	echo nse-tandem-nsk${UNAME_RELEASE}
5358ff
+	exit ;;
5358ff
     NSR-?:NONSTOP_KERNEL:*:*)
5358ff
 	echo nsr-tandem-nsk${UNAME_RELEASE}
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     *:NonStop-UX:*:*)
5358ff
 	echo mips-compaq-nonstopux
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     BS2000:POSIX*:*:*)
5358ff
 	echo bs2000-siemens-sysv
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     DS/*:UNIX_System_V:*:*)
5358ff
 	echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     *:Plan9:*:*)
5358ff
 	# "uname -m" is not consistent, so use $cputype instead. 386
5358ff
 	# is converted to i386 for consistency with other x86
5358ff
@@ -1219,43 +1291,55 @@
5358ff
 	    UNAME_MACHINE="$cputype"
5358ff
 	fi
5358ff
 	echo ${UNAME_MACHINE}-unknown-plan9
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     *:TOPS-10:*:*)
5358ff
 	echo pdp10-unknown-tops10
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     *:TENEX:*:*)
5358ff
 	echo pdp10-unknown-tenex
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
5358ff
 	echo pdp10-dec-tops20
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
5358ff
 	echo pdp10-xkl-tops20
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     *:TOPS-20:*:*)
5358ff
 	echo pdp10-unknown-tops20
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     *:ITS:*:*)
5358ff
 	echo pdp10-unknown-its
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     SEI:*:*:SEIUX)
5358ff
-        echo mips-sei-seiux${UNAME_RELEASE}
5358ff
-	exit 0 ;;
5358ff
+	echo mips-sei-seiux${UNAME_RELEASE}
5358ff
+	exit ;;
5358ff
     *:DragonFly:*:*)
5358ff
 	echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     *:*VMS:*:*)
5358ff
-    	UNAME_MACHINE=`(uname -p) 2>/dev/null`
5358ff
+	UNAME_MACHINE=`(uname -p) 2>/dev/null`
5358ff
 	case "${UNAME_MACHINE}" in
5358ff
-	    A*) echo alpha-dec-vms && exit 0 ;;
5358ff
-	    I*) echo ia64-dec-vms && exit 0 ;;
5358ff
-	    V*) echo vax-dec-vms && exit 0 ;;
5358ff
-	esac
5358ff
+	    A*) echo alpha-dec-vms ; exit ;;
5358ff
+	    I*) echo ia64-dec-vms ; exit ;;
5358ff
+	    V*) echo vax-dec-vms ; exit ;;
5358ff
+	esac ;;
5358ff
+    *:XENIX:*:SysV)
5358ff
+	echo i386-pc-xenix
5358ff
+	exit ;;
5358ff
+    i*86:skyos:*:*)
5358ff
+	echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
5358ff
+	exit ;;
5358ff
+    i*86:rdos:*:*)
5358ff
+	echo ${UNAME_MACHINE}-pc-rdos
5358ff
+	exit ;;
5358ff
+    i*86:AROS:*:*)
5358ff
+	echo ${UNAME_MACHINE}-pc-aros
5358ff
+	exit ;;
5358ff
+    x86_64:VMkernel:*:*)
5358ff
+	echo ${UNAME_MACHINE}-unknown-esx
5358ff
+	exit ;;
5358ff
 esac
5358ff
 
5358ff
-#echo '(No uname command or uname output not recognized.)' 1>&2
5358ff
-#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
5358ff
-
5358ff
 eval $set_cc_for_build
5358ff
 cat >$dummy.c <
5358ff
 #ifdef _SEQUENT_
5358ff
@@ -1273,16 +1357,16 @@
5358ff
 #include <sys/param.h>
5358ff
   printf ("m68k-sony-newsos%s\n",
5358ff
 #ifdef NEWSOS4
5358ff
-          "4"
5358ff
+	"4"
5358ff
 #else
5358ff
-	  ""
5358ff
+	""
5358ff
 #endif
5358ff
-         ); exit (0);
5358ff
+	); exit (0);
5358ff
 #endif
5358ff
 #endif
5358ff
 
5358ff
 #if defined (__arm) && defined (__acorn) && defined (__unix)
5358ff
-  printf ("arm-acorn-riscix"); exit (0);
5358ff
+  printf ("arm-acorn-riscix\n"); exit (0);
5358ff
 #endif
5358ff
 
5358ff
 #if defined (hp300) && !defined (hpux)
5358ff
@@ -1371,11 +1455,12 @@
5358ff
 }
5358ff
 EOF
5358ff
 
5358ff
-$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0
5358ff
+$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
5358ff
+	{ echo "$SYSTEM_NAME"; exit; }
5358ff
 
5358ff
 # Apollos put the system type in the environment.
5358ff
 
5358ff
-test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; }
5358ff
+test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
5358ff
 
5358ff
 # Convex versions that predate uname can use getsysinfo(1)
5358ff
 
5358ff
@@ -1384,22 +1469,22 @@
5358ff
     case `getsysinfo -f cpu_type` in
5358ff
     c1*)
5358ff
 	echo c1-convex-bsd
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     c2*)
5358ff
 	if getsysinfo -f scalar_acc
5358ff
 	then echo c32-convex-bsd
5358ff
 	else echo c2-convex-bsd
5358ff
 	fi
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     c34*)
5358ff
 	echo c34-convex-bsd
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     c38*)
5358ff
 	echo c38-convex-bsd
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     c4*)
5358ff
 	echo c4-convex-bsd
5358ff
-	exit 0 ;;
5358ff
+	exit ;;
5358ff
     esac
5358ff
 fi
5358ff
 
5358ff
@@ -1410,7 +1495,9 @@
5358ff
 the operating system you are using. It is advised that you
5358ff
 download the most up to date version of the config scripts from
5358ff
 
5358ff
-    ftp://ftp.gnu.org/pub/gnu/config/
5358ff
+  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
5358ff
+and
5358ff
+  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
5358ff
 
5358ff
 If the version you run ($0) is already up to date, please
5358ff
 send the following data and any information you think might be
5358ff
diff -urN hunspell-1.3.2/config.sub hunspell-1.3.2-aarch64/config.sub
5358ff
--- hunspell-1.3.2/config.sub	2010-02-23 03:08:48.000000000 -0600
5358ff
+++ hunspell-1.3.2-aarch64/config.sub	2013-03-08 00:25:55.399797555 -0600
5358ff
@@ -1,9 +1,10 @@
5358ff
 #! /bin/sh
5358ff
 # Configuration validation subroutine script.
5358ff
 #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
5358ff
-#   2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
5358ff
+#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
5358ff
+#   2011, 2012 Free Software Foundation, Inc.
5358ff
 
5358ff
-timestamp='2004-06-24'
5358ff
+timestamp='2012-10-10'
5358ff
 
5358ff
 # This file is (in principle) common to ALL GNU software.
5358ff
 # The presence of a machine in this file suggests that SOME GNU software
5358ff
@@ -20,23 +21,25 @@
5358ff
 # GNU General Public License for more details.
5358ff
 #
5358ff
 # You should have received a copy of the GNU General Public License
5358ff
-# along with this program; if not, write to the Free Software
5358ff
-# Foundation, Inc., 59 Temple Place - Suite 330,
5358ff
-# Boston, MA 02111-1307, USA.
5358ff
-
5358ff
+# along with this program; if not, see <http://www.gnu.org/licenses/>.
5358ff
+#
5358ff
 # As a special exception to the GNU General Public License, if you
5358ff
 # distribute this file as part of a program that contains a
5358ff
 # configuration script generated by Autoconf, you may include it under
5358ff
 # the same distribution terms that you use for the rest of that program.
5358ff
 
5358ff
+
5358ff
 # Please send patches to <config-patches@gnu.org>.  Submit a context
5358ff
-# diff and a properly formatted ChangeLog entry.
5358ff
+# diff and a properly formatted GNU ChangeLog entry.
5358ff
 #
5358ff
 # Configuration subroutine to validate and canonicalize a configuration type.
5358ff
 # Supply the specified configuration type as an argument.
5358ff
 # If it is invalid, we print an error message on stderr and exit with code 1.
5358ff
 # Otherwise, we print the canonical config type on stdout and succeed.
5358ff
 
5358ff
+# You can get the latest version of this script from:
5358ff
+# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
5358ff
+
5358ff
 # This file is supposed to be the same for all GNU packages
5358ff
 # and recognize all the CPU types, system types and aliases
5358ff
 # that are meaningful with *any* GNU software.
5358ff
@@ -70,7 +73,8 @@
5358ff
 version="\
5358ff
 GNU config.sub ($timestamp)
5358ff
 
5358ff
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
5358ff
+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
5358ff
+2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
5358ff
 Free Software Foundation, Inc.
5358ff
 
5358ff
 This is free software; see the source for copying conditions.  There is NO
5358ff
@@ -83,11 +87,11 @@
5358ff
 while test $# -gt 0 ; do
5358ff
   case $1 in
5358ff
     --time-stamp | --time* | -t )
5358ff
-       echo "$timestamp" ; exit 0 ;;
5358ff
+       echo "$timestamp" ; exit ;;
5358ff
     --version | -v )
5358ff
-       echo "$version" ; exit 0 ;;
5358ff
+       echo "$version" ; exit ;;
5358ff
     --help | --h* | -h )
5358ff
-       echo "$usage"; exit 0 ;;
5358ff
+       echo "$usage"; exit ;;
5358ff
     -- )     # Stop option processing
5358ff
        shift; break ;;
5358ff
     - )	# Use stdin as input.
5358ff
@@ -99,7 +103,7 @@
5358ff
     *local*)
5358ff
        # First pass through any local machine types.
5358ff
        echo $1
5358ff
-       exit 0;;
5358ff
+       exit ;;
5358ff
 
5358ff
     * )
5358ff
        break ;;
5358ff
@@ -118,11 +122,18 @@
5358ff
 # Here we must recognize all the valid KERNEL-OS combinations.
5358ff
 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
5358ff
 case $maybe_os in
5358ff
-  nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \
5358ff
-  kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
5358ff
+  nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
5358ff
+  linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
5358ff
+  knetbsd*-gnu* | netbsd*-gnu* | \
5358ff
+  kopensolaris*-gnu* | \
5358ff
+  storm-chaos* | os2-emx* | rtmk-nova*)
5358ff
     os=-$maybe_os
5358ff
     basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
5358ff
     ;;
5358ff
+  android-linux)
5358ff
+    os=-linux-android
5358ff
+    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
5358ff
+    ;;
5358ff
   *)
5358ff
     basic_machine=`echo $1 | sed 's/-[^-]*$//'`
5358ff
     if [ $basic_machine != $1 ]
5358ff
@@ -145,10 +156,13 @@
5358ff
 	-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
5358ff
 	-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
5358ff
 	-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
5358ff
-	-apple | -axis | -knuth | -cray)
5358ff
+	-apple | -axis | -knuth | -cray | -microblaze*)
5358ff
 		os=
5358ff
 		basic_machine=$1
5358ff
 		;;
5358ff
+	-bluegene*)
5358ff
+		os=-cnk
5358ff
+		;;
5358ff
 	-sim | -cisco | -oki | -wec | -winbond)
5358ff
 		os=
5358ff
 		basic_machine=$1
5358ff
@@ -163,13 +177,17 @@
5358ff
 		os=-chorusos
5358ff
 		basic_machine=$1
5358ff
 		;;
5358ff
- 	-chorusrdb)
5358ff
- 		os=-chorusrdb
5358ff
+	-chorusrdb)
5358ff
+		os=-chorusrdb
5358ff
 		basic_machine=$1
5358ff
- 		;;
5358ff
+		;;
5358ff
 	-hiux*)
5358ff
 		os=-hiuxwe2
5358ff
 		;;
5358ff
+	-sco6)
5358ff
+		os=-sco5v6
5358ff
+		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
5358ff
+		;;
5358ff
 	-sco5)
5358ff
 		os=-sco3.2v5
5358ff
 		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
5358ff
@@ -186,6 +204,10 @@
5358ff
 		# Don't forget version if it is 3.2v4 or newer.
5358ff
 		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
5358ff
 		;;
5358ff
+	-sco5v6*)
5358ff
+		# Don't forget version if it is 3.2v4 or newer.
5358ff
+		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
5358ff
+		;;
5358ff
 	-sco*)
5358ff
 		os=-sco3.2v2
5358ff
 		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
5358ff
@@ -203,6 +225,12 @@
5358ff
 	-isc*)
5358ff
 		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
5358ff
 		;;
5358ff
+	-lynx*178)
5358ff
+		os=-lynxos178
5358ff
+		;;
5358ff
+	-lynx*5)
5358ff
+		os=-lynxos5
5358ff
+		;;
5358ff
 	-lynx*)
5358ff
 		os=-lynxos
5358ff
 		;;
5358ff
@@ -227,25 +255,36 @@
5358ff
 	# Some are omitted here because they have special meanings below.
5358ff
 	1750a | 580 \
5358ff
 	| a29k \
5358ff
+	| aarch64 | aarch64_be \
5358ff
 	| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
5358ff
 	| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
5358ff
 	| am33_2.0 \
5358ff
-	| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
5358ff
+	| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
5358ff
+        | be32 | be64 \
5358ff
+	| bfin \
5358ff
 	| c4x | clipper \
5358ff
 	| d10v | d30v | dlx | dsp16xx \
5358ff
-	| fr30 | frv \
5358ff
+	| epiphany \
5358ff
+	| fido | fr30 | frv \
5358ff
 	| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
5358ff
+	| hexagon \
5358ff
 	| i370 | i860 | i960 | ia64 \
5358ff
 	| ip2k | iq2000 \
5358ff
-	| m32r | m32rle | m68000 | m68k | m88k | mcore \
5358ff
+	| le32 | le64 \
5358ff
+	| lm32 \
5358ff
+	| m32c | m32r | m32rle | m68000 | m68k | m88k \
5358ff
+	| maxq | mb | microblaze | microblazeel | mcore | mep | metag \
5358ff
 	| mips | mipsbe | mipseb | mipsel | mipsle \
5358ff
 	| mips16 \
5358ff
 	| mips64 | mips64el \
5358ff
-	| mips64vr | mips64vrel \
5358ff
+	| mips64octeon | mips64octeonel \
5358ff
 	| mips64orion | mips64orionel \
5358ff
+	| mips64r5900 | mips64r5900el \
5358ff
+	| mips64vr | mips64vrel \
5358ff
 	| mips64vr4100 | mips64vr4100el \
5358ff
 	| mips64vr4300 | mips64vr4300el \
5358ff
 	| mips64vr5000 | mips64vr5000el \
5358ff
+	| mips64vr5900 | mips64vr5900el \
5358ff
 	| mipsisa32 | mipsisa32el \
5358ff
 	| mipsisa32r2 | mipsisa32r2el \
5358ff
 	| mipsisa64 | mipsisa64el \
5358ff
@@ -254,30 +293,65 @@
5358ff
 	| mipsisa64sr71k | mipsisa64sr71kel \
5358ff
 	| mipstx39 | mipstx39el \
5358ff
 	| mn10200 | mn10300 \
5358ff
+	| moxie \
5358ff
+	| mt \
5358ff
 	| msp430 \
5358ff
+	| nds32 | nds32le | nds32be \
5358ff
+	| nios | nios2 \
5358ff
 	| ns16k | ns32k \
5358ff
-	| openrisc | or32 \
5358ff
+	| open8 \
5358ff
+	| or32 \
5358ff
 	| pdp10 | pdp11 | pj | pjl \
5358ff
-	| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
5358ff
+	| powerpc | powerpc64 | powerpc64le | powerpcle \
5358ff
 	| pyramid \
5358ff
-	| sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
5358ff
+	| rl78 | rx \
5358ff
+	| score \
5358ff
+	| sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
5358ff
 	| sh64 | sh64le \
5358ff
-	| sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv8 | sparcv9 | sparcv9b \
5358ff
-	| strongarm \
5358ff
-	| tahoe | thumb | tic4x | tic80 | tron \
5358ff
-	| v850 | v850e \
5358ff
+	| sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
5358ff
+	| sparcv8 | sparcv9 | sparcv9b | sparcv9v \
5358ff
+	| spu \
5358ff
+	| tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
5358ff
+	| ubicom32 \
5358ff
+	| v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
5358ff
 	| we32k \
5358ff
-	| x86 | xscale | xstormy16 | xtensa \
5358ff
-	| z8k)
5358ff
+	| x86 | xc16x | xstormy16 | xtensa \
5358ff
+	| z8k | z80)
5358ff
 		basic_machine=$basic_machine-unknown
5358ff
 		;;
5358ff
-	m6811 | m68hc11 | m6812 | m68hc12)
5358ff
-		# Motorola 68HC11/12.
5358ff
+	c54x)
5358ff
+		basic_machine=tic54x-unknown
5358ff
+		;;
5358ff
+	c55x)
5358ff
+		basic_machine=tic55x-unknown
5358ff
+		;;
5358ff
+	c6x)
5358ff
+		basic_machine=tic6x-unknown
5358ff
+		;;
5358ff
+	m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip)
5358ff
 		basic_machine=$basic_machine-unknown
5358ff
 		os=-none
5358ff
 		;;
5358ff
 	m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
5358ff
 		;;
5358ff
+	ms1)
5358ff
+		basic_machine=mt-unknown
5358ff
+		;;
5358ff
+
5358ff
+	strongarm | thumb | xscale)
5358ff
+		basic_machine=arm-unknown
5358ff
+		;;
5358ff
+	xgate)
5358ff
+		basic_machine=$basic_machine-unknown
5358ff
+		os=-none
5358ff
+		;;
5358ff
+	xscaleeb)
5358ff
+		basic_machine=armeb-unknown
5358ff
+		;;
5358ff
+
5358ff
+	xscaleel)
5358ff
+		basic_machine=armel-unknown
5358ff
+		;;
5358ff
 
5358ff
 	# We use `pc' rather than `unknown'
5358ff
 	# because (1) that's what they normally are, and
5358ff
@@ -293,32 +367,41 @@
5358ff
 	# Recognize the basic CPU types with company name.
5358ff
 	580-* \
5358ff
 	| a29k-* \
5358ff
+	| aarch64-* | aarch64_be-* \
5358ff
 	| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
5358ff
 	| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
5358ff
 	| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
5358ff
 	| arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
5358ff
-	| avr-* \
5358ff
-	| bs2000-* \
5358ff
-	| c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
5358ff
+	| avr-* | avr32-* \
5358ff
+	| be32-* | be64-* \
5358ff
+	| bfin-* | bs2000-* \
5358ff
+	| c[123]* | c30-* | [cjt]90-* | c4x-* \
5358ff
 	| clipper-* | craynv-* | cydra-* \
5358ff
 	| d10v-* | d30v-* | dlx-* \
5358ff
 	| elxsi-* \
5358ff
-	| f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
5358ff
+	| f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
5358ff
 	| h8300-* | h8500-* \
5358ff
 	| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
5358ff
+	| hexagon-* \
5358ff
 	| i*86-* | i860-* | i960-* | ia64-* \
5358ff
 	| ip2k-* | iq2000-* \
5358ff
-	| m32r-* | m32rle-* \
5358ff
+	| le32-* | le64-* \
5358ff
+	| lm32-* \
5358ff
+	| m32c-* | m32r-* | m32rle-* \
5358ff
 	| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
5358ff
-	| m88110-* | m88k-* | mcore-* \
5358ff
+	| m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
5358ff
+	| microblaze-* | microblazeel-* \
5358ff
 	| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
5358ff
 	| mips16-* \
5358ff
 	| mips64-* | mips64el-* \
5358ff
-	| mips64vr-* | mips64vrel-* \
5358ff
+	| mips64octeon-* | mips64octeonel-* \
5358ff
 	| mips64orion-* | mips64orionel-* \
5358ff
+	| mips64r5900-* | mips64r5900el-* \
5358ff
+	| mips64vr-* | mips64vrel-* \
5358ff
 	| mips64vr4100-* | mips64vr4100el-* \
5358ff
 	| mips64vr4300-* | mips64vr4300el-* \
5358ff
 	| mips64vr5000-* | mips64vr5000el-* \
5358ff
+	| mips64vr5900-* | mips64vr5900el-* \
5358ff
 	| mipsisa32-* | mipsisa32el-* \
5358ff
 	| mipsisa32r2-* | mipsisa32r2el-* \
5358ff
 	| mipsisa64-* | mipsisa64el-* \
5358ff
@@ -327,26 +410,38 @@
5358ff
 	| mipsisa64sr71k-* | mipsisa64sr71kel-* \
5358ff
 	| mipstx39-* | mipstx39el-* \
5358ff
 	| mmix-* \
5358ff
+	| mt-* \
5358ff
 	| msp430-* \
5358ff
+	| nds32-* | nds32le-* | nds32be-* \
5358ff
+	| nios-* | nios2-* \
5358ff
 	| none-* | np1-* | ns16k-* | ns32k-* \
5358ff
+	| open8-* \
5358ff
 	| orion-* \
5358ff
 	| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
5358ff
-	| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
5358ff
+	| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
5358ff
 	| pyramid-* \
5358ff
-	| romp-* | rs6000-* \
5358ff
-	| sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
5358ff
+	| rl78-* | romp-* | rs6000-* | rx-* \
5358ff
+	| sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
5358ff
 	| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
5358ff
-	| sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
5358ff
-	| sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
5358ff
-	| tahoe-* | thumb-* \
5358ff
+	| sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
5358ff
+	| sparclite-* \
5358ff
+	| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
5358ff
+	| tahoe-* \
5358ff
 	| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
5358ff
+	| tile*-* \
5358ff
 	| tron-* \
5358ff
-	| v850-* | v850e-* | vax-* \
5358ff
+	| ubicom32-* \
5358ff
+	| v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
5358ff
+	| vax-* \
5358ff
 	| we32k-* \
5358ff
-	| x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \
5358ff
-	| xtensa-* \
5358ff
+	| x86-* | x86_64-* | xc16x-* | xps100-* \
5358ff
+	| xstormy16-* | xtensa*-* \
5358ff
 	| ymp-* \
5358ff
-	| z8k-*)
5358ff
+	| z8k-* | z80-*)
5358ff
+		;;
5358ff
+	# Recognize the basic CPU types without company name, with glob match.
5358ff
+	xtensa*)
5358ff
+		basic_machine=$basic_machine-unknown
5358ff
 		;;
5358ff
 	# Recognize the various machine names and aliases which stand
5358ff
 	# for a CPU type and a company and sometimes even an OS.
5358ff
@@ -364,7 +459,7 @@
5358ff
 		basic_machine=a29k-amd
5358ff
 		os=-udi
5358ff
 		;;
5358ff
-    	abacus)
5358ff
+	abacus)
5358ff
 		basic_machine=abacus-unknown
5358ff
 		;;
5358ff
 	adobe68k)
5358ff
@@ -410,6 +505,10 @@
5358ff
 		basic_machine=m68k-apollo
5358ff
 		os=-bsd
5358ff
 		;;
5358ff
+	aros)
5358ff
+		basic_machine=i386-pc
5358ff
+		os=-aros
5358ff
+		;;
5358ff
 	aux)
5358ff
 		basic_machine=m68k-apple
5358ff
 		os=-aux
5358ff
@@ -418,10 +517,35 @@
5358ff
 		basic_machine=ns32k-sequent
5358ff
 		os=-dynix
5358ff
 		;;
5358ff
+	blackfin)
5358ff
+		basic_machine=bfin-unknown
5358ff
+		os=-linux
5358ff
+		;;
5358ff
+	blackfin-*)
5358ff
+		basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
5358ff
+		os=-linux
5358ff
+		;;
5358ff
+	bluegene*)
5358ff
+		basic_machine=powerpc-ibm
5358ff
+		os=-cnk
5358ff
+		;;
5358ff
+	c54x-*)
5358ff
+		basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
5358ff
+		;;
5358ff
+	c55x-*)
5358ff
+		basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
5358ff
+		;;
5358ff
+	c6x-*)
5358ff
+		basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
5358ff
+		;;
5358ff
 	c90)
5358ff
 		basic_machine=c90-cray
5358ff
 		os=-unicos
5358ff
 		;;
5358ff
+	cegcc)
5358ff
+		basic_machine=arm-unknown
5358ff
+		os=-cegcc
5358ff
+		;;
5358ff
 	convex-c1)
5358ff
 		basic_machine=c1-convex
5358ff
 		os=-bsd
5358ff
@@ -450,13 +574,16 @@
5358ff
 		basic_machine=craynv-cray
5358ff
 		os=-unicosmp
5358ff
 		;;
5358ff
-	cr16c)
5358ff
-		basic_machine=cr16c-unknown
5358ff
+	cr16 | cr16-*)
5358ff
+		basic_machine=cr16-unknown
5358ff
 		os=-elf
5358ff
 		;;
5358ff
 	crds | unos)
5358ff
 		basic_machine=m68k-crds
5358ff
 		;;
5358ff
+	crisv32 | crisv32-* | etraxfs*)
5358ff
+		basic_machine=crisv32-axis
5358ff
+		;;
5358ff
 	cris | cris-* | etrax*)
5358ff
 		basic_machine=cris-axis
5358ff
 		;;
5358ff
@@ -486,6 +613,14 @@
5358ff
 		basic_machine=m88k-motorola
5358ff
 		os=-sysv3
5358ff
 		;;
5358ff
+	dicos)
5358ff
+		basic_machine=i686-pc
5358ff
+		os=-dicos
5358ff
+		;;
5358ff
+	djgpp)
5358ff
+		basic_machine=i586-pc
5358ff
+		os=-msdosdjgpp
5358ff
+		;;
5358ff
 	dpx20 | dpx20-*)
5358ff
 		basic_machine=rs6000-bull
5358ff
 		os=-bosx
5358ff
@@ -597,7 +732,6 @@
5358ff
 	i370-ibm* | ibm*)
5358ff
 		basic_machine=i370-ibm
5358ff
 		;;
5358ff
-# I'm not sure what "Sysv32" means.  Should this be sysv3.2?
5358ff
 	i*86v32)
5358ff
 		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
5358ff
 		os=-sysv32
5358ff
@@ -636,6 +770,14 @@
5358ff
 		basic_machine=m68k-isi
5358ff
 		os=-sysv
5358ff
 		;;
5358ff
+	m68knommu)
5358ff
+		basic_machine=m68k-unknown
5358ff
+		os=-linux
5358ff
+		;;
5358ff
+	m68knommu-*)
5358ff
+		basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
5358ff
+		os=-linux
5358ff
+		;;
5358ff
 	m88k-omron*)
5358ff
 		basic_machine=m88k-omron
5358ff
 		;;
5358ff
@@ -647,10 +789,21 @@
5358ff
 		basic_machine=ns32k-utek
5358ff
 		os=-sysv
5358ff
 		;;
5358ff
+	microblaze*)
5358ff
+		basic_machine=microblaze-xilinx
5358ff
+		;;
5358ff
+	mingw64)
5358ff
+		basic_machine=x86_64-pc
5358ff
+		os=-mingw64
5358ff
+		;;
5358ff
 	mingw32)
5358ff
 		basic_machine=i386-pc
5358ff
 		os=-mingw32
5358ff
 		;;
5358ff
+	mingw32ce)
5358ff
+		basic_machine=arm-unknown
5358ff
+		os=-mingw32ce
5358ff
+		;;
5358ff
 	miniframe)
5358ff
 		basic_machine=m68000-convergent
5358ff
 		;;
5358ff
@@ -676,10 +829,21 @@
5358ff
 		basic_machine=i386-pc
5358ff
 		os=-msdos
5358ff
 		;;
5358ff
+	ms1-*)
5358ff
+		basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
5358ff
+		;;
5358ff
+	msys)
5358ff
+		basic_machine=i386-pc
5358ff
+		os=-msys
5358ff
+		;;
5358ff
 	mvs)
5358ff
 		basic_machine=i370-ibm
5358ff
 		os=-mvs
5358ff
 		;;
5358ff
+	nacl)
5358ff
+		basic_machine=le32-unknown
5358ff
+		os=-nacl
5358ff
+		;;
5358ff
 	ncr3000)
5358ff
 		basic_machine=i486-ncr
5358ff
 		os=-sysv4
5358ff
@@ -744,6 +908,12 @@
5358ff
 	np1)
5358ff
 		basic_machine=np1-gould
5358ff
 		;;
5358ff
+	neo-tandem)
5358ff
+		basic_machine=neo-tandem
5358ff
+		;;
5358ff
+	nse-tandem)
5358ff
+		basic_machine=nse-tandem
5358ff
+		;;
5358ff
 	nsr-tandem)
5358ff
 		basic_machine=nsr-tandem
5358ff
 		;;
5358ff
@@ -751,9 +921,8 @@
5358ff
 		basic_machine=hppa1.1-oki
5358ff
 		os=-proelf
5358ff
 		;;
5358ff
-	or32 | or32-*)
5358ff
+	openrisc | openrisc-*)
5358ff
 		basic_machine=or32-unknown
5358ff
-		os=-coff
5358ff
 		;;
5358ff
 	os400)
5358ff
 		basic_machine=powerpc-ibm
5358ff
@@ -775,6 +944,14 @@
5358ff
 		basic_machine=i860-intel
5358ff
 		os=-osf
5358ff
 		;;
5358ff
+	parisc)
5358ff
+		basic_machine=hppa-unknown
5358ff
+		os=-linux
5358ff
+		;;
5358ff
+	parisc-*)
5358ff
+		basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
5358ff
+		os=-linux
5358ff
+		;;
5358ff
 	pbd)
5358ff
 		basic_machine=sparc-tti
5358ff
 		;;
5358ff
@@ -784,6 +961,12 @@
5358ff
 	pc532 | pc532-*)
5358ff
 		basic_machine=ns32k-pc532
5358ff
 		;;
5358ff
+	pc98)
5358ff
+		basic_machine=i386-pc
5358ff
+		;;
5358ff
+	pc98-*)
5358ff
+		basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
5358ff
+		;;
5358ff
 	pentium | p5 | k5 | k6 | nexgen | viac3)
5358ff
 		basic_machine=i586-pc
5358ff
 		;;
5358ff
@@ -813,9 +996,10 @@
5358ff
 		;;
5358ff
 	power)	basic_machine=power-ibm
5358ff
 		;;
5358ff
-	ppc)	basic_machine=powerpc-unknown
5358ff
+	ppc | ppcbe)	basic_machine=powerpc-unknown
5358ff
 		;;
5358ff
-	ppc-*)	basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
5358ff
+	ppc-* | ppcbe-*)
5358ff
+		basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
5358ff
 		;;
5358ff
 	ppcle | powerpclittle | ppc-le | powerpc-little)
5358ff
 		basic_machine=powerpcle-unknown
5358ff
@@ -840,6 +1024,10 @@
5358ff
 		basic_machine=i586-unknown
5358ff
 		os=-pw32
5358ff
 		;;
5358ff
+	rdos)
5358ff
+		basic_machine=i386-pc
5358ff
+		os=-rdos
5358ff
+		;;
5358ff
 	rom68k)
5358ff
 		basic_machine=m68k-rom68k
5358ff
 		os=-coff
5358ff
@@ -866,6 +1054,10 @@
5358ff
 	sb1el)
5358ff
 		basic_machine=mipsisa64sb1el-unknown
5358ff
 		;;
5358ff
+	sde)
5358ff
+		basic_machine=mipsisa32-sde
5358ff
+		os=-elf
5358ff
+		;;
5358ff
 	sei)
5358ff
 		basic_machine=mips-sei
5358ff
 		os=-seiux
5358ff
@@ -877,6 +1069,9 @@
5358ff
 		basic_machine=sh-hitachi
5358ff
 		os=-hms
5358ff
 		;;
5358ff
+	sh5el)
5358ff
+		basic_machine=sh5le-unknown
5358ff
+		;;
5358ff
 	sh64)
5358ff
 		basic_machine=sh64-unknown
5358ff
 		;;
5358ff
@@ -898,6 +1093,9 @@
5358ff
 		basic_machine=i860-stratus
5358ff
 		os=-sysv4
5358ff
 		;;
5358ff
+	strongarm-* | thumb-*)
5358ff
+		basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
5358ff
+		;;
5358ff
 	sun2)
5358ff
 		basic_machine=m68000-sun
5358ff
 		;;
5358ff
@@ -954,17 +1152,9 @@
5358ff
 		basic_machine=t90-cray
5358ff
 		os=-unicos
5358ff
 		;;
5358ff
-	tic54x | c54x*)
5358ff
-		basic_machine=tic54x-unknown
5358ff
-		os=-coff
5358ff
-		;;
5358ff
-	tic55x | c55x*)
5358ff
-		basic_machine=tic55x-unknown
5358ff
-		os=-coff
5358ff
-		;;
5358ff
-	tic6x | c6x*)
5358ff
-		basic_machine=tic6x-unknown
5358ff
-		os=-coff
5358ff
+	tile*)
5358ff
+		basic_machine=$basic_machine-unknown
5358ff
+		os=-linux-gnu
5358ff
 		;;
5358ff
 	tx39)
5358ff
 		basic_machine=mipstx39-unknown
5358ff
@@ -1026,9 +1216,16 @@
5358ff
 		basic_machine=hppa1.1-winbond
5358ff
 		os=-proelf
5358ff
 		;;
5358ff
+	xbox)
5358ff
+		basic_machine=i686-pc
5358ff
+		os=-mingw32
5358ff
+		;;
5358ff
 	xps | xps100)
5358ff
 		basic_machine=xps100-honeywell
5358ff
 		;;
5358ff
+	xscale-* | xscalee[bl]-*)
5358ff
+		basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
5358ff
+		;;
5358ff
 	ymp)
5358ff
 		basic_machine=ymp-cray
5358ff
 		os=-unicos
5358ff
@@ -1037,6 +1234,10 @@
5358ff
 		basic_machine=z8k-unknown
5358ff
 		os=-sim
5358ff
 		;;
5358ff
+	z80-*-coff)
5358ff
+		basic_machine=z80-unknown
5358ff
+		os=-sim
5358ff
+		;;
5358ff
 	none)
5358ff
 		basic_machine=none-none
5358ff
 		os=-none
5358ff
@@ -1075,13 +1276,10 @@
5358ff
 	we32k)
5358ff
 		basic_machine=we32k-att
5358ff
 		;;
5358ff
-	sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
5358ff
+	sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
5358ff
 		basic_machine=sh-unknown
5358ff
 		;;
5358ff
-	sh64)
5358ff
-		basic_machine=sh64-unknown
5358ff
-		;;
5358ff
-	sparc | sparcv8 | sparcv9 | sparcv9b)
5358ff
+	sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
5358ff
 		basic_machine=sparc-sun
5358ff
 		;;
5358ff
 	cydra)
5358ff
@@ -1125,9 +1323,12 @@
5358ff
 if [ x"$os" != x"" ]
5358ff
 then
5358ff
 case $os in
5358ff
-        # First match some system type aliases
5358ff
-        # that might get confused with valid system types.
5358ff
+	# First match some system type aliases
5358ff
+	# that might get confused with valid system types.
5358ff
 	# -solaris* is a basic system type, with this one exception.
5358ff
+	-auroraux)
5358ff
+		os=-auroraux
5358ff
+		;;
5358ff
 	-solaris1 | -solaris1.*)
5358ff
 		os=`echo $os | sed -e 's|solaris1|sunos4|'`
5358ff
 		;;
5358ff
@@ -1148,26 +1349,31 @@
5358ff
 	# Each alternative MUST END IN A *, to match a version number.
5358ff
 	# -sysv* is not here because it comes later, after sysvr4.
5358ff
 	-gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
5358ff
-	      | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
5358ff
-	      | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
5358ff
+	      | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
5358ff
+	      | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
5358ff
+	      | -sym* | -kopensolaris* \
5358ff
 	      | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
5358ff
-	      | -aos* \
5358ff
+	      | -aos* | -aros* \
5358ff
 	      | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
5358ff
 	      | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
5358ff
-	      | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \
5358ff
+	      | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
5358ff
+	      | -bitrig* | -openbsd* | -solidbsd* \
5358ff
 	      | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
5358ff
 	      | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
5358ff
 	      | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
5358ff
 	      | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
5358ff
-	      | -chorusos* | -chorusrdb* \
5358ff
-	      | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
5358ff
-	      | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \
5358ff
+	      | -chorusos* | -chorusrdb* | -cegcc* \
5358ff
+	      | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
5358ff
+	      | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
5358ff
+	      | -linux-newlib* | -linux-musl* | -linux-uclibc* \
5358ff
+	      | -uxpv* | -beos* | -mpeix* | -udk* \
5358ff
 	      | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
5358ff
 	      | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
5358ff
 	      | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
5358ff
 	      | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
5358ff
 	      | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
5358ff
-	      | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*)
5358ff
+	      | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
5358ff
+	      | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
5358ff
 	# Remember, each alternative MUST END IN *, to match a version number.
5358ff
 		;;
5358ff
 	-qnx*)
5358ff
@@ -1185,7 +1391,7 @@
5358ff
 		os=`echo $os | sed -e 's|nto|nto-qnx|'`
5358ff
 		;;
5358ff
 	-sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
5358ff
-	      | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
5358ff
+	      | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
5358ff
 	      | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
5358ff
 		;;
5358ff
 	-mac*)
5358ff
@@ -1206,7 +1412,7 @@
5358ff
 	-opened*)
5358ff
 		os=-openedition
5358ff
 		;;
5358ff
-        -os400*)
5358ff
+	-os400*)
5358ff
 		os=-os400
5358ff
 		;;
5358ff
 	-wince*)
5358ff
@@ -1255,7 +1461,7 @@
5358ff
 	-sinix*)
5358ff
 		os=-sysv4
5358ff
 		;;
5358ff
-        -tpf*)
5358ff
+	-tpf*)
5358ff
 		os=-tpf
5358ff
 		;;
5358ff
 	-triton*)
5358ff
@@ -1294,6 +1500,14 @@
5358ff
 	-kaos*)
5358ff
 		os=-kaos
5358ff
 		;;
5358ff
+	-zvmoe)
5358ff
+		os=-zvmoe
5358ff
+		;;
5358ff
+	-dicos*)
5358ff
+		os=-dicos
5358ff
+		;;
5358ff
+	-nacl*)
5358ff
+		;;
5358ff
 	-none)
5358ff
 		;;
5358ff
 	*)
5358ff
@@ -1316,6 +1530,12 @@
5358ff
 # system, and we'll never get to this point.
5358ff
 
5358ff
 case $basic_machine in
5358ff
+	score-*)
5358ff
+		os=-elf
5358ff
+		;;
5358ff
+	spu-*)
5358ff
+		os=-elf
5358ff
+		;;
5358ff
 	*-acorn)
5358ff
 		os=-riscix1.2
5358ff
 		;;
5358ff
@@ -1325,9 +1545,21 @@
5358ff
 	arm*-semi)
5358ff
 		os=-aout
5358ff
 		;;
5358ff
-    c4x-* | tic4x-*)
5358ff
-        os=-coff
5358ff
-        ;;
5358ff
+	c4x-* | tic4x-*)
5358ff
+		os=-coff
5358ff
+		;;
5358ff
+	hexagon-*)
5358ff
+		os=-elf
5358ff
+		;;
5358ff
+	tic54x-*)
5358ff
+		os=-coff
5358ff
+		;;
5358ff
+	tic55x-*)
5358ff
+		os=-coff
5358ff
+		;;
5358ff
+	tic6x-*)
5358ff
+		os=-coff
5358ff
+		;;
5358ff
 	# This must come before the *-dec entry.
5358ff
 	pdp10-*)
5358ff
 		os=-tops20
5358ff
@@ -1346,13 +1578,13 @@
5358ff
 		;;
5358ff
 	m68000-sun)
5358ff
 		os=-sunos3
5358ff
-		# This also exists in the configure program, but was not the
5358ff
-		# default.
5358ff
-		# os=-sunos4
5358ff
 		;;
5358ff
 	m68*-cisco)
5358ff
 		os=-aout
5358ff
 		;;
5358ff
+	mep-*)
5358ff
+		os=-elf
5358ff
+		;;
5358ff
 	mips*-cisco)
5358ff
 		os=-elf
5358ff
 		;;
5358ff
@@ -1371,10 +1603,13 @@
5358ff
 	*-be)
5358ff
 		os=-beos
5358ff
 		;;
5358ff
+	*-haiku)
5358ff
+		os=-haiku
5358ff
+		;;
5358ff
 	*-ibm)
5358ff
 		os=-aix
5358ff
 		;;
5358ff
-    	*-knuth)
5358ff
+	*-knuth)
5358ff
 		os=-mmixware
5358ff
 		;;
5358ff
 	*-wec)
5358ff
@@ -1479,7 +1714,7 @@
5358ff
 			-sunos*)
5358ff
 				vendor=sun
5358ff
 				;;
5358ff
-			-aix*)
5358ff
+			-cnk*|-aix*)
5358ff
 				vendor=ibm
5358ff
 				;;
5358ff
 			-beos*)
5358ff
@@ -1542,7 +1777,7 @@
5358ff
 esac
5358ff
 
5358ff
 echo $basic_machine$os
5358ff
-exit 0
5358ff
+exit
5358ff
 
5358ff
 # Local variables:
5358ff
 # eval: (add-hook 'write-file-hooks 'time-stamp)