Updated config* from CVS
authorSam Lantinga <slouken@libsdl.org>
Thu, 26 Jan 2006 07:33:57 +0000
changeset 1270b1425473be0f
parent 1269 905d5b482f2a
child 1271 092722dbc766
Updated config* from CVS
http://cvs.savannah.gnu.org/viewcvs/config/?root=config
config.guess
config.sub
     1.1 --- a/config.guess	Thu Jan 26 06:10:34 2006 +0000
     1.2 +++ b/config.guess	Thu Jan 26 07:33:57 2006 +0000
     1.3 @@ -1,9 +1,9 @@
     1.4  #! /bin/sh
     1.5  # Attempt to guess a canonical system name.
     1.6  #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
     1.7 -#   2000, 2001, 2002, 2003 Free Software Foundation, Inc.
     1.8 +#   2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
     1.9  
    1.10 -timestamp='2003-02-22'
    1.11 +timestamp='2006-01-02'
    1.12  
    1.13  # This file is free software; you can redistribute it and/or modify it
    1.14  # under the terms of the GNU General Public License as published by
    1.15 @@ -17,13 +17,15 @@
    1.16  #
    1.17  # You should have received a copy of the GNU General Public License
    1.18  # along with this program; if not, write to the Free Software
    1.19 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
    1.20 +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
    1.21 +# 02110-1301, USA.
    1.22  #
    1.23  # As a special exception to the GNU General Public License, if you
    1.24  # distribute this file as part of a program that contains a
    1.25  # configuration script generated by Autoconf, you may include it under
    1.26  # the same distribution terms that you use for the rest of that program.
    1.27  
    1.28 +
    1.29  # Originally written by Per Bothner <per@bothner.com>.
    1.30  # Please send patches to <config-patches@gnu.org>.  Submit a context
    1.31  # diff and a properly formatted ChangeLog entry.
    1.32 @@ -53,7 +55,7 @@
    1.33  GNU config.guess ($timestamp)
    1.34  
    1.35  Originally written by Per Bothner.
    1.36 -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
    1.37 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
    1.38  Free Software Foundation, Inc.
    1.39  
    1.40  This is free software; see the source for copying conditions.  There is NO
    1.41 @@ -66,11 +68,11 @@
    1.42  while test $# -gt 0 ; do
    1.43    case $1 in
    1.44      --time-stamp | --time* | -t )
    1.45 -       echo "$timestamp" ; exit 0 ;;
    1.46 +       echo "$timestamp" ; exit ;;
    1.47      --version | -v )
    1.48 -       echo "$version" ; exit 0 ;;
    1.49 +       echo "$version" ; exit ;;
    1.50      --help | --h* | -h )
    1.51 -       echo "$usage"; exit 0 ;;
    1.52 +       echo "$usage"; exit ;;
    1.53      -- )     # Stop option processing
    1.54         shift; break ;;
    1.55      - )	# Use stdin as input.
    1.56 @@ -106,6 +108,7 @@
    1.57  : ${TMPDIR=/tmp} ;
    1.58   { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
    1.59   { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
    1.60 + { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
    1.61   { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
    1.62  dummy=$tmp/dummy ;
    1.63  tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
    1.64 @@ -122,7 +125,7 @@
    1.65  	;;
    1.66   ,,*)   CC_FOR_BUILD=$CC ;;
    1.67   ,*,*)  CC_FOR_BUILD=$HOST_CC ;;
    1.68 -esac ;'
    1.69 +esac ; set_cc_for_build= ;'
    1.70  
    1.71  # This is needed to find uname on a Pyramid OSx when run in the BSD universe.
    1.72  # (ghazi@noc.rutgers.edu 1994-08-24)
    1.73 @@ -195,50 +198,32 @@
    1.74  	# contains redundant information, the shorter form:
    1.75  	# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
    1.76  	echo "${machine}-${os}${release}"
    1.77 -	exit 0 ;;
    1.78 -    amiga:OpenBSD:*:*)
    1.79 -	echo m68k-unknown-openbsd${UNAME_RELEASE}
    1.80 -	exit 0 ;;
    1.81 -    arc:OpenBSD:*:*)
    1.82 -	echo mipsel-unknown-openbsd${UNAME_RELEASE}
    1.83 -	exit 0 ;;
    1.84 -    hp300:OpenBSD:*:*)
    1.85 -	echo m68k-unknown-openbsd${UNAME_RELEASE}
    1.86 -	exit 0 ;;
    1.87 -    mac68k:OpenBSD:*:*)
    1.88 -	echo m68k-unknown-openbsd${UNAME_RELEASE}
    1.89 -	exit 0 ;;
    1.90 -    macppc:OpenBSD:*:*)
    1.91 -	echo powerpc-unknown-openbsd${UNAME_RELEASE}
    1.92 -	exit 0 ;;
    1.93 -    mvme68k:OpenBSD:*:*)
    1.94 -	echo m68k-unknown-openbsd${UNAME_RELEASE}
    1.95 -	exit 0 ;;
    1.96 -    mvme88k:OpenBSD:*:*)
    1.97 -	echo m88k-unknown-openbsd${UNAME_RELEASE}
    1.98 -	exit 0 ;;
    1.99 -    mvmeppc:OpenBSD:*:*)
   1.100 -	echo powerpc-unknown-openbsd${UNAME_RELEASE}
   1.101 -	exit 0 ;;
   1.102 -    pmax:OpenBSD:*:*)
   1.103 -	echo mipsel-unknown-openbsd${UNAME_RELEASE}
   1.104 -	exit 0 ;;
   1.105 -    sgi:OpenBSD:*:*)
   1.106 -	echo mipseb-unknown-openbsd${UNAME_RELEASE}
   1.107 -	exit 0 ;;
   1.108 -    sun3:OpenBSD:*:*)
   1.109 -	echo m68k-unknown-openbsd${UNAME_RELEASE}
   1.110 -	exit 0 ;;
   1.111 -    wgrisc:OpenBSD:*:*)
   1.112 -	echo mipsel-unknown-openbsd${UNAME_RELEASE}
   1.113 -	exit 0 ;;
   1.114 +	exit ;;
   1.115      *:OpenBSD:*:*)
   1.116 -	echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
   1.117 -	exit 0 ;;
   1.118 +	UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
   1.119 +	echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
   1.120 +	exit ;;
   1.121 +    *:ekkoBSD:*:*)
   1.122 +	echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
   1.123 +	exit ;;
   1.124 +    *:SolidBSD:*:*)
   1.125 +	echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
   1.126 +	exit ;;
   1.127 +    macppc:MirBSD:*:*)
   1.128 +	echo powerppc-unknown-mirbsd${UNAME_RELEASE}
   1.129 +	exit ;;
   1.130 +    *:MirBSD:*:*)
   1.131 +	echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
   1.132 +	exit ;;
   1.133      alpha:OSF1:*:*)
   1.134 -	if test $UNAME_RELEASE = "V4.0"; then
   1.135 +	case $UNAME_RELEASE in
   1.136 +	*4.0)
   1.137  		UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
   1.138 -	fi
   1.139 +		;;
   1.140 +	*5.*)
   1.141 +	        UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
   1.142 +		;;
   1.143 +	esac
   1.144  	# According to Compaq, /usr/sbin/psrinfo has been available on
   1.145  	# OSF/1 and Tru64 systems produced since 1995.  I hope that
   1.146  	# covers most systems running today.  This code pipes the CPU
   1.147 @@ -276,39 +261,49 @@
   1.148  	    "EV7.9 (21364A)")
   1.149  		UNAME_MACHINE="alphaev79" ;;
   1.150  	esac
   1.151 +	# A Pn.n version is a patched version.
   1.152  	# A Vn.n version is a released version.
   1.153  	# A Tn.n version is a released field test version.
   1.154  	# A Xn.n version is an unreleased experimental baselevel.
   1.155  	# 1.2 uses "1.2" for uname -r.
   1.156 -	echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
   1.157 -	exit 0 ;;
   1.158 +	echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
   1.159 +	exit ;;
   1.160      Alpha\ *:Windows_NT*:*)
   1.161  	# How do we know it's Interix rather than the generic POSIX subsystem?
   1.162  	# Should we change UNAME_MACHINE based on the output of uname instead
   1.163  	# of the specific Alpha model?
   1.164  	echo alpha-pc-interix
   1.165 -	exit 0 ;;
   1.166 +	exit ;;
   1.167      21064:Windows_NT:50:3)
   1.168  	echo alpha-dec-winnt3.5
   1.169 -	exit 0 ;;
   1.170 +	exit ;;
   1.171      Amiga*:UNIX_System_V:4.0:*)
   1.172  	echo m68k-unknown-sysv4
   1.173 -	exit 0;;
   1.174 +	exit ;;
   1.175      *:[Aa]miga[Oo][Ss]:*:*)
   1.176  	echo ${UNAME_MACHINE}-unknown-amigaos
   1.177 -	exit 0 ;;
   1.178 +	exit ;;
   1.179      *:[Mm]orph[Oo][Ss]:*:*)
   1.180  	echo ${UNAME_MACHINE}-unknown-morphos
   1.181 -	exit 0 ;;
   1.182 +	exit ;;
   1.183      *:OS/390:*:*)
   1.184  	echo i370-ibm-openedition
   1.185 -	exit 0 ;;
   1.186 +	exit ;;
   1.187 +    *:z/VM:*:*)
   1.188 +	echo s390-ibm-zvmoe
   1.189 +	exit ;;
   1.190 +    *:OS400:*:*)
   1.191 +        echo powerpc-ibm-os400
   1.192 +	exit ;;
   1.193      arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
   1.194  	echo arm-acorn-riscix${UNAME_RELEASE}
   1.195 -	exit 0;;
   1.196 +	exit ;;
   1.197 +    arm:riscos:*:*|arm:RISCOS:*:*)
   1.198 +	echo arm-unknown-riscos
   1.199 +	exit ;;
   1.200      SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
   1.201  	echo hppa1.1-hitachi-hiuxmpp
   1.202 -	exit 0;;
   1.203 +	exit ;;
   1.204      Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
   1.205  	# akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
   1.206  	if test "`(/bin/universe) 2>/dev/null`" = att ; then
   1.207 @@ -316,29 +311,32 @@
   1.208  	else
   1.209  		echo pyramid-pyramid-bsd
   1.210  	fi
   1.211 -	exit 0 ;;
   1.212 +	exit ;;
   1.213      NILE*:*:*:dcosx)
   1.214  	echo pyramid-pyramid-svr4
   1.215 -	exit 0 ;;
   1.216 -    DRS?6000:UNIX_SV:4.2*:7*)
   1.217 +	exit ;;
   1.218 +    DRS?6000:unix:4.0:6*)
   1.219 +	echo sparc-icl-nx6
   1.220 +	exit ;;
   1.221 +    DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
   1.222  	case `/usr/bin/uname -p` in
   1.223 -	    sparc) echo sparc-icl-nx7 && exit 0 ;;
   1.224 +	    sparc) echo sparc-icl-nx7; exit ;;
   1.225  	esac ;;
   1.226      sun4H:SunOS:5.*:*)
   1.227  	echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
   1.228 -	exit 0 ;;
   1.229 +	exit ;;
   1.230      sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
   1.231  	echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
   1.232 -	exit 0 ;;
   1.233 +	exit ;;
   1.234      i86pc:SunOS:5.*:*)
   1.235  	echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
   1.236 -	exit 0 ;;
   1.237 +	exit ;;
   1.238      sun4*:SunOS:6*:*)
   1.239  	# According to config.sub, this is the proper way to canonicalize
   1.240  	# SunOS6.  Hard to guess exactly what SunOS6 will be like, but
   1.241  	# it's likely to be more like Solaris than SunOS4.
   1.242  	echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
   1.243 -	exit 0 ;;
   1.244 +	exit ;;
   1.245      sun4*:SunOS:*:*)
   1.246  	case "`/usr/bin/arch -k`" in
   1.247  	    Series*|S4*)
   1.248 @@ -347,10 +345,10 @@
   1.249  	esac
   1.250  	# Japanese Language versions have a version number like `4.1.3-JL'.
   1.251  	echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
   1.252 -	exit 0 ;;
   1.253 +	exit ;;
   1.254      sun3*:SunOS:*:*)
   1.255  	echo m68k-sun-sunos${UNAME_RELEASE}
   1.256 -	exit 0 ;;
   1.257 +	exit ;;
   1.258      sun*:*:4.2BSD:*)
   1.259  	UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
   1.260  	test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
   1.261 @@ -362,10 +360,10 @@
   1.262  		echo sparc-sun-sunos${UNAME_RELEASE}
   1.263  		;;
   1.264  	esac
   1.265 -	exit 0 ;;
   1.266 +	exit ;;
   1.267      aushp:SunOS:*:*)
   1.268  	echo sparc-auspex-sunos${UNAME_RELEASE}
   1.269 -	exit 0 ;;
   1.270 +	exit ;;
   1.271      # The situation for MiNT is a little confusing.  The machine name
   1.272      # can be virtually everything (everything which is not
   1.273      # "atarist" or "atariste" at least should have a processor
   1.274 @@ -376,37 +374,40 @@
   1.275      # be no problem.
   1.276      atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
   1.277          echo m68k-atari-mint${UNAME_RELEASE}
   1.278 -	exit 0 ;;
   1.279 +	exit ;;
   1.280      atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
   1.281  	echo m68k-atari-mint${UNAME_RELEASE}
   1.282 -        exit 0 ;;
   1.283 +        exit ;;
   1.284      *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
   1.285          echo m68k-atari-mint${UNAME_RELEASE}
   1.286 -	exit 0 ;;
   1.287 +	exit ;;
   1.288      milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
   1.289          echo m68k-milan-mint${UNAME_RELEASE}
   1.290 -        exit 0 ;;
   1.291 +        exit ;;
   1.292      hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
   1.293          echo m68k-hades-mint${UNAME_RELEASE}
   1.294 -        exit 0 ;;
   1.295 +        exit ;;
   1.296      *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
   1.297          echo m68k-unknown-mint${UNAME_RELEASE}
   1.298 -        exit 0 ;;
   1.299 +        exit ;;
   1.300 +    m68k:machten:*:*)
   1.301 +	echo m68k-apple-machten${UNAME_RELEASE}
   1.302 +	exit ;;
   1.303      powerpc:machten:*:*)
   1.304  	echo powerpc-apple-machten${UNAME_RELEASE}
   1.305 -	exit 0 ;;
   1.306 +	exit ;;
   1.307      RISC*:Mach:*:*)
   1.308  	echo mips-dec-mach_bsd4.3
   1.309 -	exit 0 ;;
   1.310 +	exit ;;
   1.311      RISC*:ULTRIX:*:*)
   1.312  	echo mips-dec-ultrix${UNAME_RELEASE}
   1.313 -	exit 0 ;;
   1.314 +	exit ;;
   1.315      VAX*:ULTRIX*:*:*)
   1.316  	echo vax-dec-ultrix${UNAME_RELEASE}
   1.317 -	exit 0 ;;
   1.318 +	exit ;;
   1.319      2020:CLIX:*:* | 2430:CLIX:*:*)
   1.320  	echo clipper-intergraph-clix${UNAME_RELEASE}
   1.321 -	exit 0 ;;
   1.322 +	exit ;;
   1.323      mips:*:*:UMIPS | mips:*:*:RISCos)
   1.324  	eval $set_cc_for_build
   1.325  	sed 's/^	//' << EOF >$dummy.c
   1.326 @@ -430,32 +431,33 @@
   1.327  	  exit (-1);
   1.328  	}
   1.329  EOF
   1.330 -	$CC_FOR_BUILD -o $dummy $dummy.c \
   1.331 -	  && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
   1.332 -	  && exit 0
   1.333 +	$CC_FOR_BUILD -o $dummy $dummy.c &&
   1.334 +	  dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
   1.335 +	  SYSTEM_NAME=`$dummy $dummyarg` &&
   1.336 +	    { echo "$SYSTEM_NAME"; exit; }
   1.337  	echo mips-mips-riscos${UNAME_RELEASE}
   1.338 -	exit 0 ;;
   1.339 +	exit ;;
   1.340      Motorola:PowerMAX_OS:*:*)
   1.341  	echo powerpc-motorola-powermax
   1.342 -	exit 0 ;;
   1.343 +	exit ;;
   1.344      Motorola:*:4.3:PL8-*)
   1.345  	echo powerpc-harris-powermax
   1.346 -	exit 0 ;;
   1.347 +	exit ;;
   1.348      Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
   1.349  	echo powerpc-harris-powermax
   1.350 -	exit 0 ;;
   1.351 +	exit ;;
   1.352      Night_Hawk:Power_UNIX:*:*)
   1.353  	echo powerpc-harris-powerunix
   1.354 -	exit 0 ;;
   1.355 +	exit ;;
   1.356      m88k:CX/UX:7*:*)
   1.357  	echo m88k-harris-cxux7
   1.358 -	exit 0 ;;
   1.359 +	exit ;;
   1.360      m88k:*:4*:R4*)
   1.361  	echo m88k-motorola-sysv4
   1.362 -	exit 0 ;;
   1.363 +	exit ;;
   1.364      m88k:*:3*:R3*)
   1.365  	echo m88k-motorola-sysv3
   1.366 -	exit 0 ;;
   1.367 +	exit ;;
   1.368      AViiON:dgux:*:*)
   1.369          # DG/UX returns AViiON for all architectures
   1.370          UNAME_PROCESSOR=`/usr/bin/uname -p`
   1.371 @@ -471,29 +473,29 @@
   1.372  	else
   1.373  	    echo i586-dg-dgux${UNAME_RELEASE}
   1.374  	fi
   1.375 - 	exit 0 ;;
   1.376 + 	exit ;;
   1.377      M88*:DolphinOS:*:*)	# DolphinOS (SVR3)
   1.378  	echo m88k-dolphin-sysv3
   1.379 -	exit 0 ;;
   1.380 +	exit ;;
   1.381      M88*:*:R3*:*)
   1.382  	# Delta 88k system running SVR3
   1.383  	echo m88k-motorola-sysv3
   1.384 -	exit 0 ;;
   1.385 +	exit ;;
   1.386      XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
   1.387  	echo m88k-tektronix-sysv3
   1.388 -	exit 0 ;;
   1.389 +	exit ;;
   1.390      Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
   1.391  	echo m68k-tektronix-bsd
   1.392 -	exit 0 ;;
   1.393 +	exit ;;
   1.394      *:IRIX*:*:*)
   1.395  	echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
   1.396 -	exit 0 ;;
   1.397 +	exit ;;
   1.398      ????????:AIX?:[12].1:2)   # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
   1.399 -	echo romp-ibm-aix      # uname -m gives an 8 hex-code CPU id
   1.400 -	exit 0 ;;              # Note that: echo "'`uname -s`'" gives 'AIX '
   1.401 +	echo romp-ibm-aix     # uname -m gives an 8 hex-code CPU id
   1.402 +	exit ;;               # Note that: echo "'`uname -s`'" gives 'AIX '
   1.403      i*86:AIX:*:*)
   1.404  	echo i386-ibm-aix
   1.405 -	exit 0 ;;
   1.406 +	exit ;;
   1.407      ia64:AIX:*:*)
   1.408  	if [ -x /usr/bin/oslevel ] ; then
   1.409  		IBM_REV=`/usr/bin/oslevel`
   1.410 @@ -501,7 +503,7 @@
   1.411  		IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
   1.412  	fi
   1.413  	echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
   1.414 -	exit 0 ;;
   1.415 +	exit ;;
   1.416      *:AIX:2:3)
   1.417  	if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
   1.418  		eval $set_cc_for_build
   1.419 @@ -516,14 +518,18 @@
   1.420  			exit(0);
   1.421  			}
   1.422  EOF
   1.423 -		$CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
   1.424 -		echo rs6000-ibm-aix3.2.5
   1.425 +		if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
   1.426 +		then
   1.427 +			echo "$SYSTEM_NAME"
   1.428 +		else
   1.429 +			echo rs6000-ibm-aix3.2.5
   1.430 +		fi
   1.431  	elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
   1.432  		echo rs6000-ibm-aix3.2.4
   1.433  	else
   1.434  		echo rs6000-ibm-aix3.2
   1.435  	fi
   1.436 -	exit 0 ;;
   1.437 +	exit ;;
   1.438      *:AIX:*:[45])
   1.439  	IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
   1.440  	if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
   1.441 @@ -537,28 +543,28 @@
   1.442  		IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
   1.443  	fi
   1.444  	echo ${IBM_ARCH}-ibm-aix${IBM_REV}
   1.445 -	exit 0 ;;
   1.446 +	exit ;;
   1.447      *:AIX:*:*)
   1.448  	echo rs6000-ibm-aix
   1.449 -	exit 0 ;;
   1.450 +	exit ;;
   1.451      ibmrt:4.4BSD:*|romp-ibm:BSD:*)
   1.452  	echo romp-ibm-bsd4.4
   1.453 -	exit 0 ;;
   1.454 +	exit ;;
   1.455      ibmrt:*BSD:*|romp-ibm:BSD:*)            # covers RT/PC BSD and
   1.456  	echo romp-ibm-bsd${UNAME_RELEASE}   # 4.3 with uname added to
   1.457 -	exit 0 ;;                           # report: romp-ibm BSD 4.3
   1.458 +	exit ;;                             # report: romp-ibm BSD 4.3
   1.459      *:BOSX:*:*)
   1.460  	echo rs6000-bull-bosx
   1.461 -	exit 0 ;;
   1.462 +	exit ;;
   1.463      DPX/2?00:B.O.S.:*:*)
   1.464  	echo m68k-bull-sysv3
   1.465 -	exit 0 ;;
   1.466 +	exit ;;
   1.467      9000/[34]??:4.3bsd:1.*:*)
   1.468  	echo m68k-hp-bsd
   1.469 -	exit 0 ;;
   1.470 +	exit ;;
   1.471      hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
   1.472  	echo m68k-hp-bsd4.4
   1.473 -	exit 0 ;;
   1.474 +	exit ;;
   1.475      9000/[34678]??:HP-UX:*:*)
   1.476  	HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
   1.477  	case "${UNAME_MACHINE}" in
   1.478 @@ -620,9 +626,19 @@
   1.479  	esac
   1.480  	if [ ${HP_ARCH} = "hppa2.0w" ]
   1.481  	then
   1.482 -	    # avoid double evaluation of $set_cc_for_build
   1.483 -	    test -n "$CC_FOR_BUILD" || eval $set_cc_for_build
   1.484 -	    if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null
   1.485 +	    eval $set_cc_for_build
   1.486 +
   1.487 +	    # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
   1.488 +	    # 32-bit code.  hppa64-hp-hpux* has the same kernel and a compiler
   1.489 +	    # generating 64-bit code.  GNU and HP use different nomenclature:
   1.490 +	    #
   1.491 +	    # $ CC_FOR_BUILD=cc ./config.guess
   1.492 +	    # => hppa2.0w-hp-hpux11.23
   1.493 +	    # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
   1.494 +	    # => hppa64-hp-hpux11.23
   1.495 +
   1.496 +	    if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
   1.497 +		grep __LP64__ >/dev/null
   1.498  	    then
   1.499  		HP_ARCH="hppa2.0w"
   1.500  	    else
   1.501 @@ -630,11 +646,11 @@
   1.502  	    fi
   1.503  	fi
   1.504  	echo ${HP_ARCH}-hp-hpux${HPUX_REV}
   1.505 -	exit 0 ;;
   1.506 +	exit ;;
   1.507      ia64:HP-UX:*:*)
   1.508  	HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
   1.509  	echo ia64-hp-hpux${HPUX_REV}
   1.510 -	exit 0 ;;
   1.511 +	exit ;;
   1.512      3050*:HI-UX:*:*)
   1.513  	eval $set_cc_for_build
   1.514  	sed 's/^	//' << EOF >$dummy.c
   1.515 @@ -662,147 +678,171 @@
   1.516  	  exit (0);
   1.517  	}
   1.518  EOF
   1.519 -	$CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
   1.520 +	$CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
   1.521 +		{ echo "$SYSTEM_NAME"; exit; }
   1.522  	echo unknown-hitachi-hiuxwe2
   1.523 -	exit 0 ;;
   1.524 +	exit ;;
   1.525      9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
   1.526  	echo hppa1.1-hp-bsd
   1.527 -	exit 0 ;;
   1.528 +	exit ;;
   1.529      9000/8??:4.3bsd:*:*)
   1.530  	echo hppa1.0-hp-bsd
   1.531 -	exit 0 ;;
   1.532 +	exit ;;
   1.533      *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
   1.534  	echo hppa1.0-hp-mpeix
   1.535 -	exit 0 ;;
   1.536 +	exit ;;
   1.537      hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
   1.538  	echo hppa1.1-hp-osf
   1.539 -	exit 0 ;;
   1.540 +	exit ;;
   1.541      hp8??:OSF1:*:*)
   1.542  	echo hppa1.0-hp-osf
   1.543 -	exit 0 ;;
   1.544 +	exit ;;
   1.545      i*86:OSF1:*:*)
   1.546  	if [ -x /usr/sbin/sysversion ] ; then
   1.547  	    echo ${UNAME_MACHINE}-unknown-osf1mk
   1.548  	else
   1.549  	    echo ${UNAME_MACHINE}-unknown-osf1
   1.550  	fi
   1.551 -	exit 0 ;;
   1.552 +	exit ;;
   1.553      parisc*:Lites*:*:*)
   1.554  	echo hppa1.1-hp-lites
   1.555 -	exit 0 ;;
   1.556 +	exit ;;
   1.557      C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
   1.558  	echo c1-convex-bsd
   1.559 -        exit 0 ;;
   1.560 +        exit ;;
   1.561      C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
   1.562  	if getsysinfo -f scalar_acc
   1.563  	then echo c32-convex-bsd
   1.564  	else echo c2-convex-bsd
   1.565  	fi
   1.566 -        exit 0 ;;
   1.567 +        exit ;;
   1.568      C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
   1.569  	echo c34-convex-bsd
   1.570 -        exit 0 ;;
   1.571 +        exit ;;
   1.572      C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
   1.573  	echo c38-convex-bsd
   1.574 -        exit 0 ;;
   1.575 +        exit ;;
   1.576      C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
   1.577  	echo c4-convex-bsd
   1.578 -        exit 0 ;;
   1.579 +        exit ;;
   1.580      CRAY*Y-MP:*:*:*)
   1.581  	echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
   1.582 -	exit 0 ;;
   1.583 +	exit ;;
   1.584      CRAY*[A-Z]90:*:*:*)
   1.585  	echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
   1.586  	| sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
   1.587  	      -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
   1.588  	      -e 's/\.[^.]*$/.X/'
   1.589 -	exit 0 ;;
   1.590 +	exit ;;
   1.591      CRAY*TS:*:*:*)
   1.592  	echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
   1.593 -	exit 0 ;;
   1.594 +	exit ;;
   1.595      CRAY*T3E:*:*:*)
   1.596  	echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
   1.597 -	exit 0 ;;
   1.598 +	exit ;;
   1.599      CRAY*SV1:*:*:*)
   1.600  	echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
   1.601 -	exit 0 ;;
   1.602 +	exit ;;
   1.603      *:UNICOS/mp:*:*)
   1.604 -	echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 
   1.605 -	exit 0 ;;
   1.606 +	echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
   1.607 +	exit ;;
   1.608      F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
   1.609  	FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
   1.610          FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
   1.611          FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
   1.612          echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
   1.613 -        exit 0 ;;
   1.614 +        exit ;;
   1.615 +    5000:UNIX_System_V:4.*:*)
   1.616 +        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
   1.617 +        FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
   1.618 +        echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
   1.619 +	exit ;;
   1.620      i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
   1.621  	echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
   1.622 -	exit 0 ;;
   1.623 +	exit ;;
   1.624      sparc*:BSD/OS:*:*)
   1.625  	echo sparc-unknown-bsdi${UNAME_RELEASE}
   1.626 -	exit 0 ;;
   1.627 +	exit ;;
   1.628      *:BSD/OS:*:*)
   1.629  	echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
   1.630 -	exit 0 ;;
   1.631 +	exit ;;
   1.632      *:FreeBSD:*:*)
   1.633 -	# Determine whether the default compiler uses glibc.
   1.634 -	eval $set_cc_for_build
   1.635 -	sed 's/^	//' << EOF >$dummy.c
   1.636 -	#include <features.h>
   1.637 -	#if __GLIBC__ >= 2
   1.638 -	LIBC=gnu
   1.639 -	#else
   1.640 -	LIBC=
   1.641 -	#endif
   1.642 -EOF
   1.643 -	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
   1.644 -	echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC}
   1.645 -	exit 0 ;;
   1.646 +	case ${UNAME_MACHINE} in
   1.647 +	    pc98)
   1.648 +		echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
   1.649 +	    *)
   1.650 +		echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
   1.651 +	esac
   1.652 +	exit ;;
   1.653      i*:CYGWIN*:*)
   1.654  	echo ${UNAME_MACHINE}-pc-cygwin
   1.655 -	exit 0 ;;
   1.656 +	exit ;;
   1.657      i*:MINGW*:*)
   1.658  	echo ${UNAME_MACHINE}-pc-mingw32
   1.659 -	exit 0 ;;
   1.660 +	exit ;;
   1.661 +    i*:windows32*:*)
   1.662 +    	# uname -m includes "-pc" on this system.
   1.663 +    	echo ${UNAME_MACHINE}-mingw32
   1.664 +	exit ;;
   1.665      i*:PW*:*)
   1.666  	echo ${UNAME_MACHINE}-pc-pw32
   1.667 -	exit 0 ;;
   1.668 -    x86:Interix*:3*)
   1.669 -	echo i586-pc-interix3
   1.670 -	exit 0 ;;
   1.671 +	exit ;;
   1.672 +    x86:Interix*:[345]*)
   1.673 +	echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
   1.674 +	exit ;;
   1.675      [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
   1.676  	echo i${UNAME_MACHINE}-pc-mks
   1.677 -	exit 0 ;;
   1.678 +	exit ;;
   1.679      i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
   1.680  	# How do we know it's Interix rather than the generic POSIX subsystem?
   1.681  	# It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
   1.682  	# UNAME_MACHINE based on the output of uname instead of i386?
   1.683  	echo i586-pc-interix
   1.684 -	exit 0 ;;
   1.685 +	exit ;;
   1.686      i*:UWIN*:*)
   1.687  	echo ${UNAME_MACHINE}-pc-uwin
   1.688 -	exit 0 ;;
   1.689 +	exit ;;
   1.690 +    amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
   1.691 +	echo x86_64-unknown-cygwin
   1.692 +	exit ;;
   1.693      p*:CYGWIN*:*)
   1.694  	echo powerpcle-unknown-cygwin
   1.695 -	exit 0 ;;
   1.696 +	exit ;;
   1.697      prep*:SunOS:5.*:*)
   1.698  	echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
   1.699 -	exit 0 ;;
   1.700 +	exit ;;
   1.701      *:GNU:*:*)
   1.702 +	# the GNU system
   1.703  	echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
   1.704 -	exit 0 ;;
   1.705 +	exit ;;
   1.706 +    *:GNU/*:*:*)
   1.707 +	# other systems with GNU libc and userland
   1.708 +	echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
   1.709 +	exit ;;
   1.710      i*86:Minix:*:*)
   1.711  	echo ${UNAME_MACHINE}-pc-minix
   1.712 -	exit 0 ;;
   1.713 +	exit ;;
   1.714      arm*:Linux:*:*)
   1.715  	echo ${UNAME_MACHINE}-unknown-linux-gnu
   1.716 -	exit 0 ;;
   1.717 +	exit ;;
   1.718 +    cris:Linux:*:*)
   1.719 +	echo cris-axis-linux-gnu
   1.720 +	exit ;;
   1.721 +    crisv32:Linux:*:*)
   1.722 +	echo crisv32-axis-linux-gnu
   1.723 +	exit ;;
   1.724 +    frv:Linux:*:*)
   1.725 +    	echo frv-unknown-linux-gnu
   1.726 +	exit ;;
   1.727      ia64:Linux:*:*)
   1.728  	echo ${UNAME_MACHINE}-unknown-linux-gnu
   1.729 -	exit 0 ;;
   1.730 +	exit ;;
   1.731 +    m32r*:Linux:*:*)
   1.732 +	echo ${UNAME_MACHINE}-unknown-linux-gnu
   1.733 +	exit ;;
   1.734      m68*:Linux:*:*)
   1.735  	echo ${UNAME_MACHINE}-unknown-linux-gnu
   1.736 -	exit 0 ;;
   1.737 +	exit ;;
   1.738      mips:Linux:*:*)
   1.739  	eval $set_cc_for_build
   1.740  	sed 's/^	//' << EOF >$dummy.c
   1.741 @@ -819,8 +859,8 @@
   1.742  	#endif
   1.743  	#endif
   1.744  EOF
   1.745 -	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
   1.746 -	test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
   1.747 +	eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '/^CPU/{s: ::g;p;}'`"
   1.748 +	test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
   1.749  	;;
   1.750      mips64:Linux:*:*)
   1.751  	eval $set_cc_for_build
   1.752 @@ -838,15 +878,18 @@
   1.753  	#endif
   1.754  	#endif
   1.755  EOF
   1.756 -	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
   1.757 -	test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
   1.758 +	eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '/^CPU/{s: ::g;p;}'`"
   1.759 +	test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
   1.760  	;;
   1.761 +    or32:Linux:*:*)
   1.762 +	echo or32-unknown-linux-gnu
   1.763 +	exit ;;
   1.764      ppc:Linux:*:*)
   1.765  	echo powerpc-unknown-linux-gnu
   1.766 -	exit 0 ;;
   1.767 +	exit ;;
   1.768      ppc64:Linux:*:*)
   1.769  	echo powerpc64-unknown-linux-gnu
   1.770 -	exit 0 ;;
   1.771 +	exit ;;
   1.772      alpha:Linux:*:*)
   1.773  	case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
   1.774  	  EV5)   UNAME_MACHINE=alphaev5 ;;
   1.775 @@ -860,7 +903,7 @@
   1.776  	objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
   1.777  	if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
   1.778  	echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
   1.779 -	exit 0 ;;
   1.780 +	exit ;;
   1.781      parisc:Linux:*:* | hppa:Linux:*:*)
   1.782  	# Look for CPU level
   1.783  	case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
   1.784 @@ -868,22 +911,28 @@
   1.785  	  PA8*) echo hppa2.0-unknown-linux-gnu ;;
   1.786  	  *)    echo hppa-unknown-linux-gnu ;;
   1.787  	esac
   1.788 -	exit 0 ;;
   1.789 +	exit ;;
   1.790      parisc64:Linux:*:* | hppa64:Linux:*:*)
   1.791  	echo hppa64-unknown-linux-gnu
   1.792 -	exit 0 ;;
   1.793 +	exit ;;
   1.794      s390:Linux:*:* | s390x:Linux:*:*)
   1.795  	echo ${UNAME_MACHINE}-ibm-linux
   1.796 -	exit 0 ;;
   1.797 +	exit ;;
   1.798 +    sh64*:Linux:*:*)
   1.799 +    	echo ${UNAME_MACHINE}-unknown-linux-gnu
   1.800 +	exit ;;
   1.801      sh*:Linux:*:*)
   1.802  	echo ${UNAME_MACHINE}-unknown-linux-gnu
   1.803 -	exit 0 ;;
   1.804 +	exit ;;
   1.805      sparc:Linux:*:* | sparc64:Linux:*:*)
   1.806  	echo ${UNAME_MACHINE}-unknown-linux-gnu
   1.807 -	exit 0 ;;
   1.808 +	exit ;;
   1.809 +    vax:Linux:*:*)
   1.810 +	echo ${UNAME_MACHINE}-dec-linux-gnu
   1.811 +	exit ;;
   1.812      x86_64:Linux:*:*)
   1.813  	echo x86_64-unknown-linux-gnu
   1.814 -	exit 0 ;;
   1.815 +	exit ;;
   1.816      i*86:Linux:*:*)
   1.817  	# The BFD linker knows what the default object file format is, so
   1.818  	# first see if it will tell us. cd to the root directory to prevent
   1.819 @@ -901,15 +950,15 @@
   1.820  		;;
   1.821  	  a.out-i386-linux)
   1.822  		echo "${UNAME_MACHINE}-pc-linux-gnuaout"
   1.823 -		exit 0 ;;
   1.824 +		exit ;;
   1.825  	  coff-i386)
   1.826  		echo "${UNAME_MACHINE}-pc-linux-gnucoff"
   1.827 -		exit 0 ;;
   1.828 +		exit ;;
   1.829  	  "")
   1.830  		# Either a pre-BFD a.out linker (linux-gnuoldld) or
   1.831  		# one that does not give us useful --help.
   1.832  		echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
   1.833 -		exit 0 ;;
   1.834 +		exit ;;
   1.835  	esac
   1.836  	# Determine whether the default compiler is a.out or elf
   1.837  	eval $set_cc_for_build
   1.838 @@ -926,23 +975,29 @@
   1.839  	LIBC=gnulibc1
   1.840  	# endif
   1.841  	#else
   1.842 -	#ifdef __INTEL_COMPILER
   1.843 +	#if defined(__INTEL_COMPILER) || defined(__PGI)
   1.844  	LIBC=gnu
   1.845  	#else
   1.846  	LIBC=gnuaout
   1.847  	#endif
   1.848  	#endif
   1.849 +	#ifdef __dietlibc__
   1.850 +	LIBC=dietlibc
   1.851 +	#endif
   1.852  EOF
   1.853 -	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
   1.854 -	test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
   1.855 -	test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
   1.856 +	eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '/^LIBC/{s: ::g;p;}'`"
   1.857 +	test x"${LIBC}" != x && {
   1.858 +		echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
   1.859 +		exit
   1.860 +	}
   1.861 +	test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
   1.862  	;;
   1.863      i*86:DYNIX/ptx:4*:*)
   1.864  	# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
   1.865  	# earlier versions are messed up and put the nodename in both
   1.866  	# sysname and nodename.
   1.867  	echo i386-sequent-sysv4
   1.868 -	exit 0 ;;
   1.869 +	exit ;;
   1.870      i*86:UNIX_SV:4.2MP:2.*)
   1.871          # Unixware is an offshoot of SVR4, but it has its own version
   1.872          # number series starting with 2...
   1.873 @@ -950,24 +1005,27 @@
   1.874  	# I just have to hope.  -- rms.
   1.875          # Use sysv4.2uw... so that sysv4* matches it.
   1.876  	echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
   1.877 -	exit 0 ;;
   1.878 +	exit ;;
   1.879      i*86:OS/2:*:*)
   1.880  	# If we were able to find `uname', then EMX Unix compatibility
   1.881  	# is probably installed.
   1.882  	echo ${UNAME_MACHINE}-pc-os2-emx
   1.883 -	exit 0 ;;
   1.884 +	exit ;;
   1.885      i*86:XTS-300:*:STOP)
   1.886  	echo ${UNAME_MACHINE}-unknown-stop
   1.887 -	exit 0 ;;
   1.888 +	exit ;;
   1.889      i*86:atheos:*:*)
   1.890  	echo ${UNAME_MACHINE}-unknown-atheos
   1.891 -	exit 0 ;;
   1.892 +	exit ;;
   1.893 +    i*86:syllable:*:*)
   1.894 +	echo ${UNAME_MACHINE}-pc-syllable
   1.895 +	exit ;;
   1.896      i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
   1.897  	echo i386-unknown-lynxos${UNAME_RELEASE}
   1.898 -	exit 0 ;;
   1.899 +	exit ;;
   1.900      i*86:*DOS:*:*)
   1.901  	echo ${UNAME_MACHINE}-pc-msdosdjgpp
   1.902 -	exit 0 ;;
   1.903 +	exit ;;
   1.904      i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
   1.905  	UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
   1.906  	if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
   1.907 @@ -975,15 +1033,16 @@
   1.908  	else
   1.909  		echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
   1.910  	fi
   1.911 -	exit 0 ;;
   1.912 -    i*86:*:5:[78]*)
   1.913 +	exit ;;
   1.914 +    i*86:*:5:[678]*)
   1.915 +    	# UnixWare 7.x, OpenUNIX and OpenServer 6.
   1.916  	case `/bin/uname -X | grep "^Machine"` in
   1.917  	    *486*)	     UNAME_MACHINE=i486 ;;
   1.918  	    *Pentium)	     UNAME_MACHINE=i586 ;;
   1.919  	    *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
   1.920  	esac
   1.921  	echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
   1.922 -	exit 0 ;;
   1.923 +	exit ;;
   1.924      i*86:*:3.2:*)
   1.925  	if test -f /usr/options/cb.name; then
   1.926  		UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
   1.927 @@ -1001,73 +1060,73 @@
   1.928  	else
   1.929  		echo ${UNAME_MACHINE}-pc-sysv32
   1.930  	fi
   1.931 -	exit 0 ;;
   1.932 +	exit ;;
   1.933      pc:*:*:*)
   1.934  	# Left here for compatibility:
   1.935          # uname -m prints for DJGPP always 'pc', but it prints nothing about
   1.936          # the processor, so we play safe by assuming i386.
   1.937  	echo i386-pc-msdosdjgpp
   1.938 -        exit 0 ;;
   1.939 +        exit ;;
   1.940      Intel:Mach:3*:*)
   1.941  	echo i386-pc-mach3
   1.942 -	exit 0 ;;
   1.943 +	exit ;;
   1.944      paragon:*:*:*)
   1.945  	echo i860-intel-osf1
   1.946 -	exit 0 ;;
   1.947 +	exit ;;
   1.948      i860:*:4.*:*) # i860-SVR4
   1.949  	if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
   1.950  	  echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
   1.951  	else # Add other i860-SVR4 vendors below as they are discovered.
   1.952  	  echo i860-unknown-sysv${UNAME_RELEASE}  # Unknown i860-SVR4
   1.953  	fi
   1.954 -	exit 0 ;;
   1.955 +	exit ;;
   1.956      mini*:CTIX:SYS*5:*)
   1.957  	# "miniframe"
   1.958  	echo m68010-convergent-sysv
   1.959 -	exit 0 ;;
   1.960 +	exit ;;
   1.961      mc68k:UNIX:SYSTEM5:3.51m)
   1.962  	echo m68k-convergent-sysv
   1.963 -	exit 0 ;;
   1.964 +	exit ;;
   1.965      M680?0:D-NIX:5.3:*)
   1.966  	echo m68k-diab-dnix
   1.967 -	exit 0 ;;
   1.968 -    M68*:*:R3V[567]*:*)
   1.969 -	test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
   1.970 -    3[34]??:*: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)
   1.971 +	exit ;;
   1.972 +    M68*:*:R3V[5678]*:*)
   1.973 +	test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
   1.974 +    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)
   1.975  	OS_REL=''
   1.976  	test -r /etc/.relid \
   1.977  	&& OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
   1.978  	/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
   1.979 -	  && echo i486-ncr-sysv4.3${OS_REL} && exit 0
   1.980 +	  && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
   1.981  	/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
   1.982 -	  && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;;
   1.983 +	  && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
   1.984      3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
   1.985          /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
   1.986 -          && echo i486-ncr-sysv4 && exit 0 ;;
   1.987 +          && { echo i486-ncr-sysv4; exit; } ;;
   1.988      m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
   1.989  	echo m68k-unknown-lynxos${UNAME_RELEASE}
   1.990 -	exit 0 ;;
   1.991 +	exit ;;
   1.992      mc68030:UNIX_System_V:4.*:*)
   1.993  	echo m68k-atari-sysv4
   1.994 -	exit 0 ;;
   1.995 +	exit ;;
   1.996      TSUNAMI:LynxOS:2.*:*)
   1.997  	echo sparc-unknown-lynxos${UNAME_RELEASE}
   1.998 -	exit 0 ;;
   1.999 +	exit ;;
  1.1000      rs6000:LynxOS:2.*:*)
  1.1001  	echo rs6000-unknown-lynxos${UNAME_RELEASE}
  1.1002 -	exit 0 ;;
  1.1003 +	exit ;;
  1.1004      PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
  1.1005  	echo powerpc-unknown-lynxos${UNAME_RELEASE}
  1.1006 -	exit 0 ;;
  1.1007 +	exit ;;
  1.1008      SM[BE]S:UNIX_SV:*:*)
  1.1009  	echo mips-dde-sysv${UNAME_RELEASE}
  1.1010 -	exit 0 ;;
  1.1011 +	exit ;;
  1.1012      RM*:ReliantUNIX-*:*:*)
  1.1013  	echo mips-sni-sysv4
  1.1014 -	exit 0 ;;
  1.1015 +	exit ;;
  1.1016      RM*:SINIX-*:*:*)
  1.1017  	echo mips-sni-sysv4
  1.1018 -	exit 0 ;;
  1.1019 +	exit ;;
  1.1020      *:SINIX-*:*:*)
  1.1021  	if uname -p 2>/dev/null >/dev/null ; then
  1.1022  		UNAME_MACHINE=`(uname -p) 2>/dev/null`
  1.1023 @@ -1075,68 +1134,72 @@
  1.1024  	else
  1.1025  		echo ns32k-sni-sysv
  1.1026  	fi
  1.1027 -	exit 0 ;;
  1.1028 +	exit ;;
  1.1029      PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
  1.1030                        # says <Richard.M.Bartel@ccMail.Census.GOV>
  1.1031          echo i586-unisys-sysv4
  1.1032 -        exit 0 ;;
  1.1033 +        exit ;;
  1.1034      *:UNIX_System_V:4*:FTX*)
  1.1035  	# From Gerald Hewes <hewes@openmarket.com>.
  1.1036  	# How about differentiating between stratus architectures? -djm
  1.1037  	echo hppa1.1-stratus-sysv4
  1.1038 -	exit 0 ;;
  1.1039 +	exit ;;
  1.1040      *:*:*:FTX*)
  1.1041  	# From seanf@swdc.stratus.com.
  1.1042  	echo i860-stratus-sysv4
  1.1043 -	exit 0 ;;
  1.1044 +	exit ;;
  1.1045 +    i*86:VOS:*:*)
  1.1046 +	# From Paul.Green@stratus.com.
  1.1047 +	echo ${UNAME_MACHINE}-stratus-vos
  1.1048 +	exit ;;
  1.1049      *:VOS:*:*)
  1.1050  	# From Paul.Green@stratus.com.
  1.1051  	echo hppa1.1-stratus-vos
  1.1052 -	exit 0 ;;
  1.1053 +	exit ;;
  1.1054      mc68*:A/UX:*:*)
  1.1055  	echo m68k-apple-aux${UNAME_RELEASE}
  1.1056 -	exit 0 ;;
  1.1057 +	exit ;;
  1.1058      news*:NEWS-OS:6*:*)
  1.1059  	echo mips-sony-newsos6
  1.1060 -	exit 0 ;;
  1.1061 +	exit ;;
  1.1062      R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
  1.1063  	if [ -d /usr/nec ]; then
  1.1064  	        echo mips-nec-sysv${UNAME_RELEASE}
  1.1065  	else
  1.1066  	        echo mips-unknown-sysv${UNAME_RELEASE}
  1.1067  	fi
  1.1068 -        exit 0 ;;
  1.1069 +        exit ;;
  1.1070      BeBox:BeOS:*:*)	# BeOS running on hardware made by Be, PPC only.
  1.1071  	echo powerpc-be-beos
  1.1072 -	exit 0 ;;
  1.1073 +	exit ;;
  1.1074      BeMac:BeOS:*:*)	# BeOS running on Mac or Mac clone, PPC only.
  1.1075  	echo powerpc-apple-beos
  1.1076 -	exit 0 ;;
  1.1077 +	exit ;;
  1.1078      BePC:BeOS:*:*)	# BeOS running on Intel PC compatible.
  1.1079  	echo i586-pc-beos
  1.1080 -	exit 0 ;;
  1.1081 +	exit ;;
  1.1082      SX-4:SUPER-UX:*:*)
  1.1083  	echo sx4-nec-superux${UNAME_RELEASE}
  1.1084 -	exit 0 ;;
  1.1085 +	exit ;;
  1.1086      SX-5:SUPER-UX:*:*)
  1.1087  	echo sx5-nec-superux${UNAME_RELEASE}
  1.1088 -	exit 0 ;;
  1.1089 +	exit ;;
  1.1090      SX-6:SUPER-UX:*:*)
  1.1091  	echo sx6-nec-superux${UNAME_RELEASE}
  1.1092 -	exit 0 ;;
  1.1093 +	exit ;;
  1.1094      Power*:Rhapsody:*:*)
  1.1095  	echo powerpc-apple-rhapsody${UNAME_RELEASE}
  1.1096 -	exit 0 ;;
  1.1097 +	exit ;;
  1.1098      *:Rhapsody:*:*)
  1.1099  	echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
  1.1100 -	exit 0 ;;
  1.1101 +	exit ;;
  1.1102      *:Darwin:*:*)
  1.1103 -	case `uname -p` in
  1.1104 -	    *86) UNAME_PROCESSOR=i686 ;;
  1.1105 -	    powerpc) UNAME_PROCESSOR=powerpc ;;
  1.1106 +	UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
  1.1107 +	case $UNAME_PROCESSOR in
  1.1108 +	    unknown) UNAME_PROCESSOR=powerpc ;;
  1.1109  	esac
  1.1110  	echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
  1.1111 -	exit 0 ;;
  1.1112 +	exit ;;
  1.1113      *:procnto*:*:* | *:QNX:[0123456789]*:*)
  1.1114  	UNAME_PROCESSOR=`uname -p`
  1.1115  	if test "$UNAME_PROCESSOR" = "x86"; then
  1.1116 @@ -1144,22 +1207,25 @@
  1.1117  		UNAME_MACHINE=pc
  1.1118  	fi
  1.1119  	echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
  1.1120 -	exit 0 ;;
  1.1121 +	exit ;;
  1.1122      *:QNX:*:4*)
  1.1123  	echo i386-pc-qnx
  1.1124 -	exit 0 ;;
  1.1125 -    NSR-[DGKLNPTVW]:NONSTOP_KERNEL:*:*)
  1.1126 +	exit ;;
  1.1127 +    NSE-?:NONSTOP_KERNEL:*:*)
  1.1128 +	echo nse-tandem-nsk${UNAME_RELEASE}
  1.1129 +	exit ;;
  1.1130 +    NSR-?:NONSTOP_KERNEL:*:*)
  1.1131  	echo nsr-tandem-nsk${UNAME_RELEASE}
  1.1132 -	exit 0 ;;
  1.1133 +	exit ;;
  1.1134      *:NonStop-UX:*:*)
  1.1135  	echo mips-compaq-nonstopux
  1.1136 -	exit 0 ;;
  1.1137 +	exit ;;
  1.1138      BS2000:POSIX*:*:*)
  1.1139  	echo bs2000-siemens-sysv
  1.1140 -	exit 0 ;;
  1.1141 +	exit ;;
  1.1142      DS/*:UNIX_System_V:*:*)
  1.1143  	echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
  1.1144 -	exit 0 ;;
  1.1145 +	exit ;;
  1.1146      *:Plan9:*:*)
  1.1147  	# "uname -m" is not consistent, so use $cputype instead. 386
  1.1148  	# is converted to i386 for consistency with other x86
  1.1149 @@ -1170,25 +1236,47 @@
  1.1150  	    UNAME_MACHINE="$cputype"
  1.1151  	fi
  1.1152  	echo ${UNAME_MACHINE}-unknown-plan9
  1.1153 -	exit 0 ;;
  1.1154 +	exit ;;
  1.1155      *:TOPS-10:*:*)
  1.1156  	echo pdp10-unknown-tops10
  1.1157 -	exit 0 ;;
  1.1158 +	exit ;;
  1.1159      *:TENEX:*:*)
  1.1160  	echo pdp10-unknown-tenex
  1.1161 -	exit 0 ;;
  1.1162 +	exit ;;
  1.1163      KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
  1.1164  	echo pdp10-dec-tops20
  1.1165 -	exit 0 ;;
  1.1166 +	exit ;;
  1.1167      XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
  1.1168  	echo pdp10-xkl-tops20
  1.1169 -	exit 0 ;;
  1.1170 +	exit ;;
  1.1171      *:TOPS-20:*:*)
  1.1172  	echo pdp10-unknown-tops20
  1.1173 -	exit 0 ;;
  1.1174 +	exit ;;
  1.1175      *:ITS:*:*)
  1.1176  	echo pdp10-unknown-its
  1.1177 -	exit 0 ;;
  1.1178 +	exit ;;
  1.1179 +    SEI:*:*:SEIUX)
  1.1180 +        echo mips-sei-seiux${UNAME_RELEASE}
  1.1181 +	exit ;;
  1.1182 +    *:DragonFly:*:*)
  1.1183 +	echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
  1.1184 +	exit ;;
  1.1185 +    *:*VMS:*:*)
  1.1186 +    	UNAME_MACHINE=`(uname -p) 2>/dev/null`
  1.1187 +	case "${UNAME_MACHINE}" in
  1.1188 +	    A*) echo alpha-dec-vms ; exit ;;
  1.1189 +	    I*) echo ia64-dec-vms ; exit ;;
  1.1190 +	    V*) echo vax-dec-vms ; exit ;;
  1.1191 +	esac ;;
  1.1192 +    *:XENIX:*:SysV)
  1.1193 +	echo i386-pc-xenix
  1.1194 +	exit ;;
  1.1195 +    i*86:skyos:*:*)
  1.1196 +	echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
  1.1197 +	exit ;;
  1.1198 +    i*86:rdos:*:*)
  1.1199 +	echo ${UNAME_MACHINE}-pc-rdos
  1.1200 +	exit ;;
  1.1201  esac
  1.1202  
  1.1203  #echo '(No uname command or uname output not recognized.)' 1>&2
  1.1204 @@ -1220,7 +1308,7 @@
  1.1205  #endif
  1.1206  
  1.1207  #if defined (__arm) && defined (__acorn) && defined (__unix)
  1.1208 -  printf ("arm-acorn-riscix"); exit (0);
  1.1209 +  printf ("arm-acorn-riscix\n"); exit (0);
  1.1210  #endif
  1.1211  
  1.1212  #if defined (hp300) && !defined (hpux)
  1.1213 @@ -1309,11 +1397,12 @@
  1.1214  }
  1.1215  EOF
  1.1216  
  1.1217 -$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0
  1.1218 +$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
  1.1219 +	{ echo "$SYSTEM_NAME"; exit; }
  1.1220  
  1.1221  # Apollos put the system type in the environment.
  1.1222  
  1.1223 -test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; }
  1.1224 +test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
  1.1225  
  1.1226  # Convex versions that predate uname can use getsysinfo(1)
  1.1227  
  1.1228 @@ -1322,22 +1411,22 @@
  1.1229      case `getsysinfo -f cpu_type` in
  1.1230      c1*)
  1.1231  	echo c1-convex-bsd
  1.1232 -	exit 0 ;;
  1.1233 +	exit ;;
  1.1234      c2*)
  1.1235  	if getsysinfo -f scalar_acc
  1.1236  	then echo c32-convex-bsd
  1.1237  	else echo c2-convex-bsd
  1.1238  	fi
  1.1239 -	exit 0 ;;
  1.1240 +	exit ;;
  1.1241      c34*)
  1.1242  	echo c34-convex-bsd
  1.1243 -	exit 0 ;;
  1.1244 +	exit ;;
  1.1245      c38*)
  1.1246  	echo c38-convex-bsd
  1.1247 -	exit 0 ;;
  1.1248 +	exit ;;
  1.1249      c4*)
  1.1250  	echo c4-convex-bsd
  1.1251 -	exit 0 ;;
  1.1252 +	exit ;;
  1.1253      esac
  1.1254  fi
  1.1255  
  1.1256 @@ -1348,7 +1437,9 @@
  1.1257  the operating system you are using. It is advised that you
  1.1258  download the most up to date version of the config scripts from
  1.1259  
  1.1260 -    ftp://ftp.gnu.org/pub/gnu/config/
  1.1261 +  http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
  1.1262 +and
  1.1263 +  http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
  1.1264  
  1.1265  If the version you run ($0) is already up to date, please
  1.1266  send the following data and any information you think might be
     2.1 --- a/config.sub	Thu Jan 26 06:10:34 2006 +0000
     2.2 +++ b/config.sub	Thu Jan 26 07:33:57 2006 +0000
     2.3 @@ -1,9 +1,9 @@
     2.4  #! /bin/sh
     2.5  # Configuration validation subroutine script.
     2.6  #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
     2.7 -#   2000, 2001, 2002, 2003 Free Software Foundation, Inc.
     2.8 +#   2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
     2.9  
    2.10 -timestamp='2003-02-22'
    2.11 +timestamp='2006-01-02'
    2.12  
    2.13  # This file is (in principle) common to ALL GNU software.
    2.14  # The presence of a machine in this file suggests that SOME GNU software
    2.15 @@ -21,14 +21,15 @@
    2.16  #
    2.17  # You should have received a copy of the GNU General Public License
    2.18  # along with this program; if not, write to the Free Software
    2.19 -# Foundation, Inc., 59 Temple Place - Suite 330,
    2.20 -# Boston, MA 02111-1307, USA.
    2.21 -
    2.22 +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
    2.23 +# 02110-1301, USA.
    2.24 +#
    2.25  # As a special exception to the GNU General Public License, if you
    2.26  # distribute this file as part of a program that contains a
    2.27  # configuration script generated by Autoconf, you may include it under
    2.28  # the same distribution terms that you use for the rest of that program.
    2.29  
    2.30 +
    2.31  # Please send patches to <config-patches@gnu.org>.  Submit a context
    2.32  # diff and a properly formatted ChangeLog entry.
    2.33  #
    2.34 @@ -70,7 +71,7 @@
    2.35  version="\
    2.36  GNU config.sub ($timestamp)
    2.37  
    2.38 -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
    2.39 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
    2.40  Free Software Foundation, Inc.
    2.41  
    2.42  This is free software; see the source for copying conditions.  There is NO
    2.43 @@ -83,11 +84,11 @@
    2.44  while test $# -gt 0 ; do
    2.45    case $1 in
    2.46      --time-stamp | --time* | -t )
    2.47 -       echo "$timestamp" ; exit 0 ;;
    2.48 +       echo "$timestamp" ; exit ;;
    2.49      --version | -v )
    2.50 -       echo "$version" ; exit 0 ;;
    2.51 +       echo "$version" ; exit ;;
    2.52      --help | --h* | -h )
    2.53 -       echo "$usage"; exit 0 ;;
    2.54 +       echo "$usage"; exit ;;
    2.55      -- )     # Stop option processing
    2.56         shift; break ;;
    2.57      - )	# Use stdin as input.
    2.58 @@ -99,7 +100,7 @@
    2.59      *local*)
    2.60         # First pass through any local machine types.
    2.61         echo $1
    2.62 -       exit 0;;
    2.63 +       exit ;;
    2.64  
    2.65      * )
    2.66         break ;;
    2.67 @@ -118,7 +119,9 @@
    2.68  # Here we must recognize all the valid KERNEL-OS combinations.
    2.69  maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
    2.70  case $maybe_os in
    2.71 -  nto-qnx* | linux-gnu* | freebsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
    2.72 +  nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
    2.73 +  uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
    2.74 +  storm-chaos* | os2-emx* | rtmk-nova*)
    2.75      os=-$maybe_os
    2.76      basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
    2.77      ;;
    2.78 @@ -144,7 +147,7 @@
    2.79  	-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
    2.80  	-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
    2.81  	-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
    2.82 -	-apple | -axis)
    2.83 +	-apple | -axis | -knuth | -cray)
    2.84  		os=
    2.85  		basic_machine=$1
    2.86  		;;
    2.87 @@ -169,6 +172,10 @@
    2.88  	-hiux*)
    2.89  		os=-hiuxwe2
    2.90  		;;
    2.91 +	-sco6)
    2.92 +		os=-sco5v6
    2.93 +		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
    2.94 +		;;
    2.95  	-sco5)
    2.96  		os=-sco3.2v5
    2.97  		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
    2.98 @@ -185,6 +192,10 @@
    2.99  		# Don't forget version if it is 3.2v4 or newer.
   2.100  		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
   2.101  		;;
   2.102 +	-sco5v6*)
   2.103 +		# Don't forget version if it is 3.2v4 or newer.
   2.104 +		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
   2.105 +		;;
   2.106  	-sco*)
   2.107  		os=-sco3.2v2
   2.108  		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
   2.109 @@ -228,14 +239,16 @@
   2.110  	| a29k \
   2.111  	| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
   2.112  	| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
   2.113 +	| am33_2.0 \
   2.114  	| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
   2.115 -	| clipper \
   2.116 +	| bfin \
   2.117 +	| c4x | clipper \
   2.118  	| d10v | d30v | dlx | dsp16xx \
   2.119  	| fr30 | frv \
   2.120  	| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
   2.121  	| i370 | i860 | i960 | ia64 \
   2.122 -	| ip2k \
   2.123 -	| m32r | m68000 | m68k | m88k | mcore \
   2.124 +	| ip2k | iq2000 \
   2.125 +	| m32r | m32rle | m68000 | m68k | m88k | maxq | mb | microblaze | mcore \
   2.126  	| mips | mipsbe | mipseb | mipsel | mipsle \
   2.127  	| mips16 \
   2.128  	| mips64 | mips64el \
   2.129 @@ -244,30 +257,37 @@
   2.130  	| mips64vr4100 | mips64vr4100el \
   2.131  	| mips64vr4300 | mips64vr4300el \
   2.132  	| mips64vr5000 | mips64vr5000el \
   2.133 +	| mips64vr5900 | mips64vr5900el \
   2.134  	| mipsisa32 | mipsisa32el \
   2.135  	| mipsisa32r2 | mipsisa32r2el \
   2.136  	| mipsisa64 | mipsisa64el \
   2.137 +	| mipsisa64r2 | mipsisa64r2el \
   2.138  	| mipsisa64sb1 | mipsisa64sb1el \
   2.139  	| mipsisa64sr71k | mipsisa64sr71kel \
   2.140  	| mipstx39 | mipstx39el \
   2.141  	| mn10200 | mn10300 \
   2.142 +	| mt \
   2.143  	| msp430 \
   2.144  	| ns16k | ns32k \
   2.145 -	| openrisc | or32 \
   2.146 +	| or32 \
   2.147  	| pdp10 | pdp11 | pj | pjl \
   2.148  	| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
   2.149  	| pyramid \
   2.150 -	| sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
   2.151 +	| sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
   2.152  	| sh64 | sh64le \
   2.153 -	| sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \
   2.154 +	| sparc | sparc64 | sparc64b | sparc86x | sparclet | sparclite \
   2.155 +	| sparcv8 | sparcv9 | sparcv9b \
   2.156  	| strongarm \
   2.157 -	| tahoe | thumb | tic80 | tron \
   2.158 +	| tahoe | thumb | tic4x | tic80 | tron \
   2.159  	| v850 | v850e \
   2.160  	| we32k \
   2.161 -	| x86 | xscale | xstormy16 | xtensa \
   2.162 +	| x86 | xscale | xscalee[bl] | xstormy16 | xtensa \
   2.163  	| z8k)
   2.164  		basic_machine=$basic_machine-unknown
   2.165  		;;
   2.166 +	m32c)
   2.167 +		basic_machine=$basic_machine-unknown
   2.168 +		;;
   2.169  	m6811 | m68hc11 | m6812 | m68hc12)
   2.170  		# Motorola 68HC11/12.
   2.171  		basic_machine=$basic_machine-unknown
   2.172 @@ -275,6 +295,9 @@
   2.173  		;;
   2.174  	m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
   2.175  		;;
   2.176 +	ms1)
   2.177 +		basic_machine=mt-unknown
   2.178 +		;;
   2.179  
   2.180  	# We use `pc' rather than `unknown'
   2.181  	# because (1) that's what they normally are, and
   2.182 @@ -295,19 +318,19 @@
   2.183  	| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
   2.184  	| arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
   2.185  	| avr-* \
   2.186 -	| bs2000-* \
   2.187 +	| bfin-* | bs2000-* \
   2.188  	| c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
   2.189 -	| clipper-* | cydra-* \
   2.190 +	| clipper-* | craynv-* | cydra-* \
   2.191  	| d10v-* | d30v-* | dlx-* \
   2.192  	| elxsi-* \
   2.193  	| f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
   2.194  	| h8300-* | h8500-* \
   2.195  	| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
   2.196  	| i*86-* | i860-* | i960-* | ia64-* \
   2.197 -	| ip2k-* \
   2.198 -	| m32r-* \
   2.199 +	| ip2k-* | iq2000-* \
   2.200 +	| m32r-* | m32rle-* \
   2.201  	| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
   2.202 -	| m88110-* | m88k-* | mcore-* \
   2.203 +	| m88110-* | m88k-* | maxq-* | mcore-* \
   2.204  	| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
   2.205  	| mips16-* \
   2.206  	| mips64-* | mips64el-* \
   2.207 @@ -316,33 +339,40 @@
   2.208  	| mips64vr4100-* | mips64vr4100el-* \
   2.209  	| mips64vr4300-* | mips64vr4300el-* \
   2.210  	| mips64vr5000-* | mips64vr5000el-* \
   2.211 +	| mips64vr5900-* | mips64vr5900el-* \
   2.212  	| mipsisa32-* | mipsisa32el-* \
   2.213  	| mipsisa32r2-* | mipsisa32r2el-* \
   2.214  	| mipsisa64-* | mipsisa64el-* \
   2.215 +	| mipsisa64r2-* | mipsisa64r2el-* \
   2.216  	| mipsisa64sb1-* | mipsisa64sb1el-* \
   2.217  	| mipsisa64sr71k-* | mipsisa64sr71kel-* \
   2.218  	| mipstx39-* | mipstx39el-* \
   2.219 +	| mmix-* \
   2.220 +	| mt-* \
   2.221  	| msp430-* \
   2.222 -	| none-* | np1-* | nv1-* | ns16k-* | ns32k-* \
   2.223 +	| none-* | np1-* | ns16k-* | ns32k-* \
   2.224  	| orion-* \
   2.225  	| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
   2.226  	| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
   2.227  	| pyramid-* \
   2.228  	| romp-* | rs6000-* \
   2.229 -	| sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
   2.230 +	| sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | shbe-* \
   2.231  	| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
   2.232 -	| sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
   2.233 -	| sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
   2.234 +	| sparc-* | sparc64-* | sparc64b-* | sparc86x-* | sparclet-* \
   2.235 +	| sparclite-* \
   2.236 +	| sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
   2.237  	| tahoe-* | thumb-* \
   2.238  	| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
   2.239  	| tron-* \
   2.240  	| v850-* | v850e-* | vax-* \
   2.241  	| we32k-* \
   2.242 -	| x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \
   2.243 -	| xtensa-* \
   2.244 +	| x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \
   2.245 +	| xstormy16-* | xtensa-* \
   2.246  	| ymp-* \
   2.247  	| z8k-*)
   2.248  		;;
   2.249 +	m32c-*)
   2.250 +		;;
   2.251  	# Recognize the various machine names and aliases which stand
   2.252  	# for a CPU type and a company and sometimes even an OS.
   2.253  	386bsd)
   2.254 @@ -359,6 +389,9 @@
   2.255  		basic_machine=a29k-amd
   2.256  		os=-udi
   2.257  		;;
   2.258 +    	abacus)
   2.259 +		basic_machine=abacus-unknown
   2.260 +		;;
   2.261  	adobe68k)
   2.262  		basic_machine=m68010-adobe
   2.263  		os=-scout
   2.264 @@ -373,6 +406,12 @@
   2.265  		basic_machine=a29k-none
   2.266  		os=-bsd
   2.267  		;;
   2.268 +	amd64)
   2.269 +		basic_machine=x86_64-pc
   2.270 +		;;
   2.271 +	amd64-*)
   2.272 +		basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
   2.273 +		;;
   2.274  	amdahl)
   2.275  		basic_machine=580-amdahl
   2.276  		os=-sysv
   2.277 @@ -432,12 +471,27 @@
   2.278  		basic_machine=j90-cray
   2.279  		os=-unicos
   2.280  		;;
   2.281 +	craynv)
   2.282 +		basic_machine=craynv-cray
   2.283 +		os=-unicosmp
   2.284 +		;;
   2.285 +	cr16c)
   2.286 +		basic_machine=cr16c-unknown
   2.287 +		os=-elf
   2.288 +		;;
   2.289  	crds | unos)
   2.290  		basic_machine=m68k-crds
   2.291  		;;
   2.292 +	crisv32 | crisv32-* | etraxfs*)
   2.293 +		basic_machine=crisv32-axis
   2.294 +		;;
   2.295  	cris | cris-* | etrax*)
   2.296  		basic_machine=cris-axis
   2.297  		;;
   2.298 +	crx)
   2.299 +		basic_machine=crx-unknown
   2.300 +		os=-elf
   2.301 +		;;
   2.302  	da30 | da30-*)
   2.303  		basic_machine=m68k-da30
   2.304  		;;
   2.305 @@ -460,6 +514,10 @@
   2.306  		basic_machine=m88k-motorola
   2.307  		os=-sysv3
   2.308  		;;
   2.309 +	djgpp)
   2.310 +		basic_machine=i586-pc
   2.311 +		os=-msdosdjgpp
   2.312 +		;;
   2.313  	dpx20 | dpx20-*)
   2.314  		basic_machine=rs6000-bull
   2.315  		os=-bosx
   2.316 @@ -638,10 +696,6 @@
   2.317  	mips3*)
   2.318  		basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
   2.319  		;;
   2.320 -	mmix*)
   2.321 -		basic_machine=mmix-knuth
   2.322 -		os=-mmixware
   2.323 -		;;
   2.324  	monitor)
   2.325  		basic_machine=m68k-rom68k
   2.326  		os=-coff
   2.327 @@ -654,6 +708,9 @@
   2.328  		basic_machine=i386-pc
   2.329  		os=-msdos
   2.330  		;;
   2.331 +	ms1-*)
   2.332 +		basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
   2.333 +		;;
   2.334  	mvs)
   2.335  		basic_machine=i370-ibm
   2.336  		os=-mvs
   2.337 @@ -722,10 +779,6 @@
   2.338  	np1)
   2.339  		basic_machine=np1-gould
   2.340  		;;
   2.341 -	nv1)
   2.342 -		basic_machine=nv1-cray
   2.343 -		os=-unicosmp
   2.344 -		;;
   2.345  	nsr-tandem)
   2.346  		basic_machine=nsr-tandem
   2.347  		;;
   2.348 @@ -733,9 +786,12 @@
   2.349  		basic_machine=hppa1.1-oki
   2.350  		os=-proelf
   2.351  		;;
   2.352 -	or32 | or32-*)
   2.353 +	openrisc | openrisc-*)
   2.354  		basic_machine=or32-unknown
   2.355 -		os=-coff
   2.356 +		;;
   2.357 +	os400)
   2.358 +		basic_machine=powerpc-ibm
   2.359 +		os=-os400
   2.360  		;;
   2.361  	OSE68000 | ose68000)
   2.362  		basic_machine=m68000-ericsson
   2.363 @@ -762,24 +818,36 @@
   2.364  	pc532 | pc532-*)
   2.365  		basic_machine=ns32k-pc532
   2.366  		;;
   2.367 +	pc98)
   2.368 +		basic_machine=i386-pc
   2.369 +		;;
   2.370 +	pc98-*)
   2.371 +		basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
   2.372 +		;;
   2.373  	pentium | p5 | k5 | k6 | nexgen | viac3)
   2.374  		basic_machine=i586-pc
   2.375  		;;
   2.376  	pentiumpro | p6 | 6x86 | athlon | athlon_*)
   2.377  		basic_machine=i686-pc
   2.378  		;;
   2.379 -	pentiumii | pentium2)
   2.380 +	pentiumii | pentium2 | pentiumiii | pentium3)
   2.381  		basic_machine=i686-pc
   2.382  		;;
   2.383 +	pentium4)
   2.384 +		basic_machine=i786-pc
   2.385 +		;;
   2.386  	pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
   2.387  		basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
   2.388  		;;
   2.389  	pentiumpro-* | p6-* | 6x86-* | athlon-*)
   2.390  		basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
   2.391  		;;
   2.392 -	pentiumii-* | pentium2-*)
   2.393 +	pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
   2.394  		basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
   2.395  		;;
   2.396 +	pentium4-*)
   2.397 +		basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
   2.398 +		;;
   2.399  	pn)
   2.400  		basic_machine=pn-gould
   2.401  		;;
   2.402 @@ -812,6 +880,10 @@
   2.403  		basic_machine=i586-unknown
   2.404  		os=-pw32
   2.405  		;;
   2.406 +	rdos)
   2.407 +		basic_machine=i386-pc
   2.408 +		os=-rdos
   2.409 +		;;
   2.410  	rom68k)
   2.411  		basic_machine=m68k-rom68k
   2.412  		os=-coff
   2.413 @@ -838,6 +910,10 @@
   2.414  	sb1el)
   2.415  		basic_machine=mipsisa64sb1el-unknown
   2.416  		;;
   2.417 +	sei)
   2.418 +		basic_machine=mips-sei
   2.419 +		os=-seiux
   2.420 +		;;
   2.421  	sequent)
   2.422  		basic_machine=i386-sequent
   2.423  		;;
   2.424 @@ -845,6 +921,9 @@
   2.425  		basic_machine=sh-hitachi
   2.426  		os=-hms
   2.427  		;;
   2.428 +	sh64)
   2.429 +		basic_machine=sh64-unknown
   2.430 +		;;
   2.431  	sparclite-wrs | simso-wrs)
   2.432  		basic_machine=sparclite-wrs
   2.433  		os=-vxworks
   2.434 @@ -919,10 +998,6 @@
   2.435  		basic_machine=t90-cray
   2.436  		os=-unicos
   2.437  		;;
   2.438 -        tic4x | c4x*)
   2.439 -		basic_machine=tic4x-unknown
   2.440 -		os=-coff
   2.441 -		;;
   2.442  	tic54x | c54x*)
   2.443  		basic_machine=tic54x-unknown
   2.444  		os=-coff
   2.445 @@ -948,6 +1023,10 @@
   2.446  	tower | tower-32)
   2.447  		basic_machine=m68k-ncr
   2.448  		;;
   2.449 +	tpf)
   2.450 +		basic_machine=s390x-ibm
   2.451 +		os=-tpf
   2.452 +		;;
   2.453  	udi29k)
   2.454  		basic_machine=a29k-amd
   2.455  		os=-udi
   2.456 @@ -991,6 +1070,10 @@
   2.457  		basic_machine=hppa1.1-winbond
   2.458  		os=-proelf
   2.459  		;;
   2.460 +	xbox)
   2.461 +		basic_machine=i686-pc
   2.462 +		os=-mingw32
   2.463 +		;;
   2.464  	xps | xps100)
   2.465  		basic_machine=xps100-honeywell
   2.466  		;;
   2.467 @@ -1021,6 +1104,9 @@
   2.468  	romp)
   2.469  		basic_machine=romp-ibm
   2.470  		;;
   2.471 +	mmix)
   2.472 +		basic_machine=mmix-knuth
   2.473 +		;;
   2.474  	rs6000)
   2.475  		basic_machine=rs6000-ibm
   2.476  		;;
   2.477 @@ -1037,13 +1123,10 @@
   2.478  	we32k)
   2.479  		basic_machine=we32k-att
   2.480  		;;
   2.481 -	sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
   2.482 +	sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
   2.483  		basic_machine=sh-unknown
   2.484  		;;
   2.485 -	sh64)
   2.486 -		basic_machine=sh64-unknown
   2.487 -		;;
   2.488 -	sparc | sparcv9 | sparcv9b)
   2.489 +	sparc | sparcv8 | sparcv9 | sparcv9b)
   2.490  		basic_machine=sparc-sun
   2.491  		;;
   2.492  	cydra)
   2.493 @@ -1116,19 +1199,23 @@
   2.494  	      | -aos* \
   2.495  	      | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
   2.496  	      | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
   2.497 -	      | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
   2.498 -	      | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
   2.499 +	      | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
   2.500 +	      | -openbsd* | -solidbsd* \
   2.501 +	      | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
   2.502 +	      | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
   2.503  	      | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
   2.504  	      | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
   2.505  	      | -chorusos* | -chorusrdb* \
   2.506  	      | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
   2.507 -	      | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
   2.508 +	      | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
   2.509 +	      | -uxpv* | -beos* | -mpeix* | -udk* \
   2.510  	      | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
   2.511  	      | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
   2.512  	      | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
   2.513  	      | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
   2.514  	      | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
   2.515 -	      | -powermax* | -dnix*)
   2.516 +	      | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
   2.517 +	      | -skyos* | -haiku* | -rdos*)
   2.518  	# Remember, each alternative MUST END IN *, to match a version number.
   2.519  		;;
   2.520  	-qnx*)
   2.521 @@ -1140,16 +1227,21 @@
   2.522  			;;
   2.523  		esac
   2.524  		;;
   2.525 +	-nto-qnx*)
   2.526 +		;;
   2.527  	-nto*)
   2.528 -		os=-nto-qnx
   2.529 +		os=`echo $os | sed -e 's|nto|nto-qnx|'`
   2.530  		;;
   2.531  	-sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
   2.532 -	      | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
   2.533 +	      | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
   2.534  	      | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
   2.535  		;;
   2.536  	-mac*)
   2.537  		os=`echo $os | sed -e 's|mac|macos|'`
   2.538  		;;
   2.539 +	-linux-dietlibc)
   2.540 +		os=-linux-dietlibc
   2.541 +		;;
   2.542  	-linux*)
   2.543  		os=`echo $os | sed -e 's|linux|linux-gnu|'`
   2.544  		;;
   2.545 @@ -1162,6 +1254,9 @@
   2.546  	-opened*)
   2.547  		os=-openedition
   2.548  		;;
   2.549 +        -os400*)
   2.550 +		os=-os400
   2.551 +		;;
   2.552  	-wince*)
   2.553  		os=-wince
   2.554  		;;
   2.555 @@ -1183,6 +1278,9 @@
   2.556  	-atheos*)
   2.557  		os=-atheos
   2.558  		;;
   2.559 +	-syllable*)
   2.560 +		os=-syllable
   2.561 +		;;
   2.562  	-386bsd)
   2.563  		os=-bsd
   2.564  		;;
   2.565 @@ -1205,6 +1303,9 @@
   2.566  	-sinix*)
   2.567  		os=-sysv4
   2.568  		;;
   2.569 +        -tpf*)
   2.570 +		os=-tpf
   2.571 +		;;
   2.572  	-triton*)
   2.573  		os=-sysv3
   2.574  		;;
   2.575 @@ -1241,6 +1342,9 @@
   2.576  	-kaos*)
   2.577  		os=-kaos
   2.578  		;;
   2.579 +	-zvmoe)
   2.580 +		os=-zvmoe
   2.581 +		;;
   2.582  	-none)
   2.583  		;;
   2.584  	*)
   2.585 @@ -1272,6 +1376,9 @@
   2.586  	arm*-semi)
   2.587  		os=-aout
   2.588  		;;
   2.589 +    c4x-* | tic4x-*)
   2.590 +        os=-coff
   2.591 +        ;;
   2.592  	# This must come before the *-dec entry.
   2.593  	pdp10-*)
   2.594  		os=-tops20
   2.595 @@ -1315,9 +1422,15 @@
   2.596  	*-be)
   2.597  		os=-beos
   2.598  		;;
   2.599 +	*-haiku)
   2.600 +		os=-haiku
   2.601 +		;;
   2.602  	*-ibm)
   2.603  		os=-aix
   2.604  		;;
   2.605 +    	*-knuth)
   2.606 +		os=-mmixware
   2.607 +		;;
   2.608  	*-wec)
   2.609  		os=-proelf
   2.610  		;;
   2.611 @@ -1450,9 +1563,15 @@
   2.612  			-mvs* | -opened*)
   2.613  				vendor=ibm
   2.614  				;;
   2.615 +			-os400*)
   2.616 +				vendor=ibm
   2.617 +				;;
   2.618  			-ptx*)
   2.619  				vendor=sequent
   2.620  				;;
   2.621 +			-tpf*)
   2.622 +				vendor=ibm
   2.623 +				;;
   2.624  			-vxsim* | -vxworks* | -windiss*)
   2.625  				vendor=wrs
   2.626  				;;
   2.627 @@ -1477,7 +1596,7 @@
   2.628  esac
   2.629  
   2.630  echo $basic_machine$os
   2.631 -exit 0
   2.632 +exit
   2.633  
   2.634  # Local variables:
   2.635  # eval: (add-hook 'write-file-hooks 'time-stamp)