patches/gcc/2.95.3/config.sub.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sat Feb 24 11:00:05 2007 +0000 (2007-02-24)
changeset 1 eeea35fbf182
permissions -rw-r--r--
Add the full crosstool-NG sources to the new repository of its own.
You might just say: 'Yeah! crosstool-NG's got its own repo!".
Unfortunately, that's because the previous repo got damaged beyond repair and I had no backup.
That means I'm putting backups in place in the afternoon.
That also means we've lost history... :-(
     1 # Backport from gcc-3.3.3
     2 # Fixes errors like
     3 #   Invalid configuration `x86_64-host_unknown-linux-gnu': machine `x86_64-host_unknown' not recognized
     4 #   Unrecognized host system name x86_64-host_unknown-linux-gnu.
     5 # when configuring on chip types or operating systems like x86_64 or Darwin
     6 # which are newer than gcc-2.95
     7 
     8 --- gcc-2.95.3/config.sub.old	1999-08-04 01:09:26.000000000 -0700
     9 +++ gcc-2.95.3/config.sub	2004-03-24 11:28:24.000000000 -0800
    10 @@ -1,6 +1,10 @@
    11  #! /bin/sh
    12 -# Configuration validation subroutine script, version 1.1.
    13 -#   Copyright (C) 1991, 92-97, 1998, 1999 Free Software Foundation, Inc.
    14 +# Configuration validation subroutine script.
    15 +#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
    16 +#   2000, 2001, 2002, 2003 Free Software Foundation, Inc.
    17 +
    18 +timestamp='2003-01-28'
    19 +
    20  # This file is (in principle) common to ALL GNU software.
    21  # The presence of a machine in this file suggests that SOME GNU software
    22  # can handle that machine.  It does not imply ALL GNU software can.
    23 @@ -25,6 +29,9 @@
    24  # configuration script generated by Autoconf, you may include it under
    25  # the same distribution terms that you use for the rest of that program.
    26  
    27 +# Please send patches to <config-patches@gnu.org>.  Submit a context
    28 +# diff and a properly formatted ChangeLog entry.
    29 +#
    30  # Configuration subroutine to validate and canonicalize a configuration type.
    31  # Supply the specified configuration type as an argument.
    32  # If it is invalid, we print an error message on stderr and exit with code 1.
    33 @@ -45,30 +52,73 @@
    34  #	CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
    35  # It is wrong to echo any other type of specification.
    36  
    37 -if [ x$1 = x ]
    38 -then
    39 -	echo Configuration name missing. 1>&2
    40 -	echo "Usage: $0 CPU-MFR-OPSYS" 1>&2
    41 -	echo "or     $0 ALIAS" 1>&2
    42 -	echo where ALIAS is a recognized configuration type. 1>&2
    43 -	exit 1
    44 -fi
    45 +me=`echo "$0" | sed -e 's,.*/,,'`
    46  
    47 -# First pass through any local machine types.
    48 -case $1 in
    49 -	*local*)
    50 -		echo $1
    51 -		exit 0
    52 -		;;
    53 -	*)
    54 -	;;
    55 +usage="\
    56 +Usage: $0 [OPTION] CPU-MFR-OPSYS
    57 +       $0 [OPTION] ALIAS
    58 +
    59 +Canonicalize a configuration name.
    60 +
    61 +Operation modes:
    62 +  -h, --help         print this help, then exit
    63 +  -t, --time-stamp   print date of last modification, then exit
    64 +  -v, --version      print version number, then exit
    65 +
    66 +Report bugs and patches to <config-patches@gnu.org>."
    67 +
    68 +version="\
    69 +GNU config.sub ($timestamp)
    70 +
    71 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
    72 +Free Software Foundation, Inc.
    73 +
    74 +This is free software; see the source for copying conditions.  There is NO
    75 +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
    76 +
    77 +help="
    78 +Try \`$me --help' for more information."
    79 +
    80 +# Parse command line
    81 +while test $# -gt 0 ; do
    82 +  case $1 in
    83 +    --time-stamp | --time* | -t )
    84 +       echo "$timestamp" ; exit 0 ;;
    85 +    --version | -v )
    86 +       echo "$version" ; exit 0 ;;
    87 +    --help | --h* | -h )
    88 +       echo "$usage"; exit 0 ;;
    89 +    -- )     # Stop option processing
    90 +       shift; break ;;
    91 +    - )	# Use stdin as input.
    92 +       break ;;
    93 +    -* )
    94 +       echo "$me: invalid option $1$help"
    95 +       exit 1 ;;
    96 +
    97 +    *local*)
    98 +       # First pass through any local machine types.
    99 +       echo $1
   100 +       exit 0;;
   101 +
   102 +    * )
   103 +       break ;;
   104 +  esac
   105 +done
   106 +
   107 +case $# in
   108 + 0) echo "$me: missing argument$help" >&2
   109 +    exit 1;;
   110 + 1) ;;
   111 + *) echo "$me: too many arguments$help" >&2
   112 +    exit 1;;
   113  esac
   114  
   115  # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
   116  # Here we must recognize all the valid KERNEL-OS combinations.
   117  maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
   118  case $maybe_os in
   119 -  linux-gnu*)
   120 +  nto-qnx* | linux-gnu* | freebsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
   121      os=-$maybe_os
   122      basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
   123      ;;
   124 @@ -94,20 +144,28 @@
   125  	-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
   126  	-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
   127  	-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
   128 -	-apple)
   129 +	-apple | -axis)
   130  		os=
   131  		basic_machine=$1
   132  		;;
   133 -	-sim | -cisco | -oki | -wec | -winbond )	# EGCS LOCAL
   134 +	-sim | -cisco | -oki | -wec | -winbond)
   135  		os=
   136  		basic_machine=$1
   137  		;;
   138 -	-scout)						# EGCS LOCAL
   139 +	-scout)
   140  		;;
   141 -	-wrs)						# EGCS LOCAL
   142 +	-wrs)
   143  		os=-vxworks
   144  		basic_machine=$1
   145  		;;
   146 +	-chorusos*)
   147 +		os=-chorusos
   148 +		basic_machine=$1
   149 +		;;
   150 + 	-chorusrdb)
   151 + 		os=-chorusrdb
   152 +		basic_machine=$1
   153 + 		;;
   154  	-hiux*)
   155  		os=-hiuxwe2
   156  		;;
   157 @@ -156,49 +214,72 @@
   158  	-psos*)
   159  		os=-psos
   160  		;;
   161 +	-mint | -mint[0-9]*)
   162 +		basic_machine=m68k-atari
   163 +		os=-mint
   164 +		;;
   165  esac
   166  
   167  # Decode aliases for certain CPU-COMPANY combinations.
   168  case $basic_machine in
   169  	# Recognize the basic CPU types without company name.
   170  	# Some are omitted here because they have special meanings below.
   171 -	tahoe | i860 | m32r | m68k | m68000 | m88k | ns32k | arc | arm \
   172 -		| arme[lb] | pyramid | mn10200 | mn10300 \
   173 -		| tron | a29k | 580 | i960 | h8300 \
   174 -		| hppa | hppa1.0 | hppa1.1 | hppa2.0 | hppa2.0w | hppa2.0n \
   175 -		| alpha | alphaev5 | alphaev56 | alphapca56 | alphaev6 \
   176 -		| we32k | ns16k | clipper | i370 | sh | powerpc | powerpcle \
   177 -		| 1750a | dsp16xx | pdp11 \
   178 -		| mips64 | mipsel | mips64el | mips64orion | mips64orionel \
   179 -		| mipstx39 | mipstx39el \
   180 -		| sparc | sparclet | sparclite | sparc64 | sparcv9 | v850 | c4x)
   181 -		basic_machine=$basic_machine-unknown
   182 -		;;
   183 -	m88110 | m680[012346]0 | m683?2 | m68360 | m5200 | z8k | v70 \
   184 -	        | h8500 | w65) # EGCS LOCAL
   185 -		;;
   186 -	thumb)
   187 -		basic_machine=$basic_machine-unknown
   188 -		;;
   189 -	mips64vr4300 | mips64vr4300el) # EGCS LOCAL jsmith/vr4300
   190 +	1750a | 580 \
   191 +	| a29k \
   192 +	| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
   193 +	| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
   194 +	| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
   195 +	| clipper \
   196 +	| d10v | d30v | dlx | dsp16xx \
   197 +	| fr30 | frv \
   198 +	| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
   199 +	| i370 | i860 | i960 | ia64 \
   200 +	| ip2k \
   201 +	| m32r | m68000 | m68k | m88k | mcore \
   202 +	| mips | mipsbe | mipseb | mipsel | mipsle \
   203 +	| mips16 \
   204 +	| mips64 | mips64el \
   205 +	| mips64vr | mips64vrel \
   206 +	| mips64orion | mips64orionel \
   207 +	| mips64vr4100 | mips64vr4100el \
   208 +	| mips64vr4300 | mips64vr4300el \
   209 +	| mips64vr5000 | mips64vr5000el \
   210 +	| mipsisa32 | mipsisa32el \
   211 +	| mipsisa32r2 | mipsisa32r2el \
   212 +	| mipsisa64 | mipsisa64el \
   213 +	| mipsisa64sb1 | mipsisa64sb1el \
   214 +	| mipsisa64sr71k | mipsisa64sr71kel \
   215 +	| mipstx39 | mipstx39el \
   216 +	| mn10200 | mn10300 \
   217 +	| msp430 \
   218 +	| ns16k | ns32k \
   219 +	| openrisc | or32 \
   220 +	| pdp10 | pdp11 | pj | pjl \
   221 +	| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
   222 +	| pyramid \
   223 +	| sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
   224 +	| sh64 | sh64le \
   225 +	| sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \
   226 +	| strongarm \
   227 +	| tahoe | thumb | tic80 | tron \
   228 +	| v850 | v850e \
   229 +	| we32k \
   230 +	| x86 | xscale | xstormy16 | xtensa \
   231 +	| z8k)
   232  		basic_machine=$basic_machine-unknown
   233  		;;
   234 -	mips64vr4100 | mips64vr4100el) # EGCS LOCAL jsmith/vr4100
   235 -		basic_machine=$basic_machine-unknown
   236 -		;;
   237 -	mips64vr5000 | mips64vr5000el) # EGCS LOCAL ian/vr5000
   238 -		basic_machine=$basic_machine-unknown
   239 -		;;
   240 -	mips16)
   241 +	m6811 | m68hc11 | m6812 | m68hc12)
   242 +		# Motorola 68HC11/12.
   243  		basic_machine=$basic_machine-unknown
   244 +		os=-none
   245  		;;
   246 -	d10v)
   247 -		basic_machine=$basic_machine-unknown
   248 +	m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
   249  		;;
   250 +
   251  	# We use `pc' rather than `unknown'
   252  	# because (1) that's what they normally are, and
   253  	# (2) the word "unknown" tends to confuse beginning users.
   254 -	i[34567]86)
   255 +	i*86 | x86_64)
   256  	  basic_machine=$basic_machine-pc
   257  	  ;;
   258  	# Object if more than one company name word.
   259 @@ -207,44 +288,62 @@
   260  		exit 1
   261  		;;
   262  	# Recognize the basic CPU types with company name.
   263 -	vax-* | tahoe-* | i[34567]86-* | i860-* | m32r-* | m68k-* | m68000-* \
   264 -	      | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | arm-* | c[123]* \
   265 -	      | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \
   266 -	      | power-* | none-* | 580-* | cray2-* | h8300-* | i960-* \
   267 -	      | xmp-* | ymp-* \
   268 -	      | hppa-* | hppa1.0-* | hppa1.1-* \
   269 -	      | hppa2.0-* | hppa2.0w-* | hppa2.0n-* \
   270 -	      | alpha-* | alphaev5-* | alphaev56-* | alphapca56-* \
   271 -	      | alphaev6-* | we32k-* | cydra-* | ns16k-* | pn-* | np1-* \
   272 -	      | xps100-* | clipper-* | orion-* \
   273 -	      | sparclite-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \
   274 -	      | sparc64-* | sparcv9-* | sparc86x-* | mips64-* | mipsel-* \
   275 -	      | mips64el-* | mips64orion-* | mips64orionel-*  \
   276 -	      | mipstx39-* | mipstx39el-* \
   277 -	      | f301-* | arm*-*)
   278 -		;;
   279 -	m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | h8500-* | d10v-*) # EGCS LOCAL
   280 -		;;
   281 -	thumb-*) # EGCS LOCAL angela/thumb
   282 -		;;
   283 -	v850-*) # EGCS LOCAL
   284 -	        ;;
   285 -	d30v-*) # EGCS LOCAL
   286 -	        ;;
   287 -	mips64vr4300-* | mips64vr4300el-*) # EGCS LOCAL jsmith/vr4300
   288 -		;;
   289 -	mips64vr4100-* | mips64vr4100el-*) # EGCS LOCAL jsmith/vr4100
   290 -		;;
   291 -	mips16-*) # EGCS LOCAL krk/mips16
   292 -		;;
   293 -	tic30-*) # EGCS LOCAL ian/tic30
   294 -		;;
   295 -	c30-*) # EGCS LOCAL ian/tic30
   296 -		basic_machine=tic30-unknown
   297 +	580-* \
   298 +	| a29k-* \
   299 +	| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
   300 +	| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
   301 +	| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
   302 +	| arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
   303 +	| avr-* \
   304 +	| bs2000-* \
   305 +	| c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* \
   306 +	| clipper-* | cydra-* \
   307 +	| d10v-* | d30v-* | dlx-* \
   308 +	| elxsi-* \
   309 +	| f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
   310 +	| h8300-* | h8500-* \
   311 +	| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
   312 +	| i*86-* | i860-* | i960-* | ia64-* \
   313 +	| ip2k-* \
   314 +	| m32r-* \
   315 +	| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
   316 +	| m88110-* | m88k-* | mcore-* \
   317 +	| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
   318 +	| mips16-* \
   319 +	| mips64-* | mips64el-* \
   320 +	| mips64vr-* | mips64vrel-* \
   321 +	| mips64orion-* | mips64orionel-* \
   322 +	| mips64vr4100-* | mips64vr4100el-* \
   323 +	| mips64vr4300-* | mips64vr4300el-* \
   324 +	| mips64vr5000-* | mips64vr5000el-* \
   325 +	| mipsisa32-* | mipsisa32el-* \
   326 +	| mipsisa32r2-* | mipsisa32r2el-* \
   327 +	| mipsisa64-* | mipsisa64el-* \
   328 +	| mipsisa64sb1-* | mipsisa64sb1el-* \
   329 +	| mipsisa64sr71k-* | mipsisa64sr71kel-* \
   330 +	| mipstx39-* | mipstx39el-* \
   331 +	| msp430-* \
   332 +	| none-* | np1-* | nv1-* | ns16k-* | ns32k-* \
   333 +	| orion-* \
   334 +	| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
   335 +	| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
   336 +	| pyramid-* \
   337 +	| romp-* | rs6000-* \
   338 +	| sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
   339 +	| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
   340 +	| sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
   341 +	| sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
   342 +	| tahoe-* | thumb-* | tic30-* | tic4x-* | tic54x-* | tic80-* | tron-* \
   343 +	| v850-* | v850e-* | vax-* \
   344 +	| we32k-* \
   345 +	| x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \
   346 +	| xtensa-* \
   347 +	| ymp-* \
   348 +	| z8k-*)
   349  		;;
   350  	# Recognize the various machine names and aliases which stand
   351  	# for a CPU type and a company and sometimes even an OS.
   352 -	386bsd)						# EGCS LOCAL
   353 +	386bsd)
   354  		basic_machine=i386-unknown
   355  		os=-bsd
   356  		;;
   357 @@ -254,11 +353,11 @@
   358  	3b*)
   359  		basic_machine=we32k-att
   360  		;;
   361 -	a29khif)					# EGCS LOCAL
   362 +	a29khif)
   363  		basic_machine=a29k-amd
   364  		os=-udi
   365  		;;
   366 -	adobe68k)					# EGCS LOCAL
   367 +	adobe68k)
   368  		basic_machine=m68010-adobe
   369  		os=-scout
   370  		;;
   371 @@ -277,21 +376,21 @@
   372  		os=-sysv
   373  		;;
   374  	amiga | amiga-*)
   375 -		basic_machine=m68k-cbm
   376 +		basic_machine=m68k-unknown
   377  		;;
   378  	amigaos | amigados)
   379 -		basic_machine=m68k-cbm
   380 +		basic_machine=m68k-unknown
   381  		os=-amigaos
   382  		;;
   383  	amigaunix | amix)
   384 -		basic_machine=m68k-cbm
   385 +		basic_machine=m68k-unknown
   386  		os=-sysv4
   387  		;;
   388  	apollo68)
   389  		basic_machine=m68k-apollo
   390  		os=-sysv
   391  		;;
   392 -	apollo68bsd)					# EGCS LOCAL
   393 +	apollo68bsd)
   394  		basic_machine=m68k-apollo
   395  		os=-bsd
   396  		;;
   397 @@ -303,6 +402,10 @@
   398  		basic_machine=ns32k-sequent
   399  		os=-dynix
   400  		;;
   401 +	c90)
   402 +		basic_machine=c90-cray
   403 +		os=-unicos
   404 +		;;
   405  	convex-c1)
   406  		basic_machine=c1-convex
   407  		os=-bsd
   408 @@ -323,27 +426,30 @@
   409  		basic_machine=c38-convex
   410  		os=-bsd
   411  		;;
   412 -	cray | ymp)
   413 -		basic_machine=ymp-cray
   414 -		os=-unicos
   415 -		;;
   416 -	cray2)
   417 -		basic_machine=cray2-cray
   418 -		os=-unicos
   419 -		;;
   420 -	[ctj]90-cray)
   421 -		basic_machine=c90-cray
   422 +	cray | j90)
   423 +		basic_machine=j90-cray
   424  		os=-unicos
   425  		;;
   426  	crds | unos)
   427  		basic_machine=m68k-crds
   428  		;;
   429 +	cris | cris-* | etrax*)
   430 +		basic_machine=cris-axis
   431 +		;;
   432  	da30 | da30-*)
   433  		basic_machine=m68k-da30
   434  		;;
   435  	decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
   436  		basic_machine=mips-dec
   437  		;;
   438 +	decsystem10* | dec10*)
   439 +		basic_machine=pdp10-dec
   440 +		os=-tops10
   441 +		;;
   442 +	decsystem20* | dec20*)
   443 +		basic_machine=pdp10-dec
   444 +		os=-tops20
   445 +		;;
   446  	delta | 3300 | motorola-3300 | motorola-delta \
   447  	      | 3300-motorola | delta-motorola)
   448  		basic_machine=m68k-motorola
   449 @@ -371,7 +477,7 @@
   450  	encore | umax | mmax)
   451  		basic_machine=ns32k-encore
   452  		;;
   453 -	es1800 | OSE68k | ose68k | ose | OSE)		# EGCS LOCAL
   454 +	es1800 | OSE68k | ose68k | ose | OSE)
   455  		basic_machine=m68k-ericsson
   456  		os=-ose
   457  		;;
   458 @@ -385,6 +491,10 @@
   459  		basic_machine=tron-gmicro
   460  		os=-sysv
   461  		;;
   462 +	go32)
   463 +		basic_machine=i386-pc
   464 +		os=-go32
   465 +		;;
   466  	h3050r* | hiux*)
   467  		basic_machine=hppa1.1-hitachi
   468  		os=-hiuxwe2
   469 @@ -393,11 +503,11 @@
   470  		basic_machine=h8300-hitachi
   471  		os=-hms
   472  		;;
   473 -	h8300xray)					# EGCS LOCAL
   474 +	h8300xray)
   475  		basic_machine=h8300-hitachi
   476  		os=-xray
   477  		;;
   478 -	h8500hms)					# EGCS LOCAL
   479 +	h8500hms)
   480  		basic_machine=h8500-hitachi
   481  		os=-hms
   482  		;;
   483 @@ -416,22 +526,6 @@
   484  		basic_machine=m68k-hp
   485  		os=-hpux
   486  		;;
   487 -        w89k-*)						# EGCS LOCAL
   488 -                basic_machine=hppa1.1-winbond
   489 -                os=-proelf
   490 -                ;;
   491 -        op50n-*)					# EGCS LOCAL
   492 -                basic_machine=hppa1.1-oki
   493 -                os=-proelf
   494 -                ;;
   495 -        op60c-*)					# EGCS LOCAL
   496 -                basic_machine=hppa1.1-oki
   497 -                os=-proelf
   498 -                ;;
   499 -        hppro)						# EGCS LOCAL
   500 -                basic_machine=hppa1.1-hp
   501 -                os=-proelf
   502 -                ;;
   503  	hp3k9[0-9][0-9] | hp9[0-9][0-9])
   504  		basic_machine=hppa1.0-hp
   505  		;;
   506 @@ -441,22 +535,21 @@
   507  	hp9k3[2-9][0-9])
   508  		basic_machine=m68k-hp
   509  		;;
   510 -	hp9k6[0-9][0-9] | hp6[0-9][0-9] )
   511 +	hp9k6[0-9][0-9] | hp6[0-9][0-9])
   512  		basic_machine=hppa1.0-hp
   513  		;;
   514 -	hp9k7[0-79][0-9] | hp7[0-79][0-9] )
   515 +	hp9k7[0-79][0-9] | hp7[0-79][0-9])
   516  		basic_machine=hppa1.1-hp
   517  		;;
   518 -	hp9k78[0-9] | hp78[0-9] )
   519 +	hp9k78[0-9] | hp78[0-9])
   520  		# FIXME: really hppa2.0-hp
   521  		basic_machine=hppa1.1-hp
   522  		;;
   523 -	hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | \
   524 -	hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893 )
   525 +	hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
   526  		# FIXME: really hppa2.0-hp
   527  		basic_machine=hppa1.1-hp
   528  		;;
   529 -	hp9k8[0-9][13679] | hp8[0-9][13679] )
   530 +	hp9k8[0-9][13679] | hp8[0-9][13679])
   531  		basic_machine=hppa1.1-hp
   532  		;;
   533  	hp9k8[0-9][0-9] | hp8[0-9][0-9])
   534 @@ -465,47 +558,42 @@
   535  	hppa-next)
   536  		os=-nextstep3
   537  		;;
   538 -	hppaosf)					# EGCS LOCAL
   539 +	hppaosf)
   540  		basic_machine=hppa1.1-hp
   541  		os=-osf
   542  		;;
   543 +	hppro)
   544 +		basic_machine=hppa1.1-hp
   545 +		os=-proelf
   546 +		;;
   547  	i370-ibm* | ibm*)
   548  		basic_machine=i370-ibm
   549 -		os=-mvs
   550  		;;
   551  # I'm not sure what "Sysv32" means.  Should this be sysv3.2?
   552 -	i[34567]86v32)
   553 +	i*86v32)
   554  		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
   555  		os=-sysv32
   556  		;;
   557 -	i[34567]86v4*)
   558 +	i*86v4*)
   559  		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
   560  		os=-sysv4
   561  		;;
   562 -	i[34567]86v)
   563 +	i*86v)
   564  		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
   565  		os=-sysv
   566  		;;
   567 -	i[34567]86sol2)
   568 +	i*86sol2)
   569  		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
   570  		os=-solaris2
   571  		;;
   572 -	i386mach)					# EGCS LOCAL
   573 +	i386mach)
   574  		basic_machine=i386-mach
   575  		os=-mach
   576  		;;
   577 -	i386-vsta | vsta)				# EGCS LOCAL
   578 +	i386-vsta | vsta)
   579  		basic_machine=i386-unknown
   580  		os=-vsta
   581  		;;
   582 -	i386-go32 | go32)				# EGCS LOCAL
   583 -		basic_machine=i386-unknown
   584 -		os=-go32
   585 -		;;
   586 -	i386-mingw32 | mingw32)
   587 -		basic_machine=i386-unknown
   588 -		os=-mingw32
   589 -		;;
   590  	iris | iris4d)
   591  		basic_machine=mips-sgi
   592  		case $os in
   593 @@ -531,16 +619,16 @@
   594  		basic_machine=ns32k-utek
   595  		os=-sysv
   596  		;;
   597 +	mingw32)
   598 +		basic_machine=i386-pc
   599 +		os=-mingw32
   600 +		;;
   601  	miniframe)
   602  		basic_machine=m68000-convergent
   603  		;;
   604 -	mipsel*-linux*)
   605 -		basic_machine=mipsel-unknown
   606 -		os=-linux-gnu
   607 -		;;
   608 -	mips*-linux*)
   609 -		basic_machine=mips-unknown
   610 -		os=-linux-gnu
   611 +	*mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
   612 +		basic_machine=m68k-atari
   613 +		os=-mint
   614  		;;
   615  	mips3*-*)
   616  		basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
   617 @@ -548,24 +636,36 @@
   618  	mips3*)
   619  		basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
   620  		;;
   621 -	monitor)					# EGCS LOCAL
   622 +	mmix*)
   623 +		basic_machine=mmix-knuth
   624 +		os=-mmixware
   625 +		;;
   626 +	monitor)
   627  		basic_machine=m68k-rom68k
   628  		os=-coff
   629  		;;
   630 -	msdos)						# EGCS LOCAL
   631 -		basic_machine=i386-unknown	
   632 +	morphos)
   633 +		basic_machine=powerpc-unknown
   634 +		os=-morphos
   635 +		;;
   636 +	msdos)
   637 +		basic_machine=i386-pc
   638  		os=-msdos
   639  		;;
   640 +	mvs)
   641 +		basic_machine=i370-ibm
   642 +		os=-mvs
   643 +		;;
   644  	ncr3000)
   645  		basic_machine=i486-ncr
   646  		os=-sysv4
   647  		;;
   648  	netbsd386)
   649 -		basic_machine=i386-unknown		# EGCS LOCAL
   650 +		basic_machine=i386-unknown
   651  		os=-netbsd
   652  		;;
   653  	netwinder)
   654 -		basic_machine=armv4l-corel
   655 +		basic_machine=armv4l-rebel
   656  		os=-linux
   657  		;;
   658  	news | news700 | news800 | news900)
   659 @@ -580,7 +680,7 @@
   660  		basic_machine=mips-sony
   661  		os=-newsos
   662  		;;
   663 -	necv70)						# EGCS LOCAL
   664 +	necv70)
   665  		basic_machine=v70-nec
   666  		os=-sysv
   667  		;;
   668 @@ -609,18 +709,37 @@
   669  		basic_machine=i960-intel
   670  		os=-nindy
   671  		;;
   672 -	mon960)						# EGCS LOCAL
   673 +	mon960)
   674  		basic_machine=i960-intel
   675  		os=-mon960
   676  		;;
   677 +	nonstopux)
   678 +		basic_machine=mips-compaq
   679 +		os=-nonstopux
   680 +		;;
   681  	np1)
   682  		basic_machine=np1-gould
   683  		;;
   684 -	OSE68000 | ose68000)				# EGCS LOCAL
   685 +	nv1)
   686 +		basic_machine=nv1-cray
   687 +		os=-unicosmp
   688 +		;;
   689 +	nsr-tandem)
   690 +		basic_machine=nsr-tandem
   691 +		;;
   692 +	op50n-* | op60c-*)
   693 +		basic_machine=hppa1.1-oki
   694 +		os=-proelf
   695 +		;;
   696 +	or32 | or32-*)
   697 +		basic_machine=or32-unknown
   698 +		os=-coff
   699 +		;;
   700 +	OSE68000 | ose68000)
   701  		basic_machine=m68000-ericsson
   702  		os=-ose
   703  		;;
   704 -	os68k)						# EGCS LOCAL
   705 +	os68k)
   706  		basic_machine=m68k-none
   707  		os=-os68k
   708  		;;
   709 @@ -638,46 +757,60 @@
   710  	pbb)
   711  		basic_machine=m68k-tti
   712  		;;
   713 -        pc532 | pc532-*)
   714 +	pc532 | pc532-*)
   715  		basic_machine=ns32k-pc532
   716  		;;
   717 -	pentium | p5 | k5 | k6 | nexen)
   718 +	pentium | p5 | k5 | k6 | nexgen | viac3)
   719  		basic_machine=i586-pc
   720  		;;
   721 -	pentiumpro | p6 | 6x86)
   722 +	pentiumpro | p6 | 6x86 | athlon | athlon_*)
   723  		basic_machine=i686-pc
   724  		;;
   725  	pentiumii | pentium2)
   726 -		basic_machine=i786-pc
   727 +		basic_machine=i686-pc
   728  		;;
   729 -	pentium-* | p5-* | k5-* | k6-* | nexen-*)
   730 +	pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
   731  		basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
   732  		;;
   733 -	pentiumpro-* | p6-* | 6x86-*)
   734 +	pentiumpro-* | p6-* | 6x86-* | athlon-*)
   735  		basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
   736  		;;
   737  	pentiumii-* | pentium2-*)
   738 -		basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
   739 +		basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
   740  		;;
   741  	pn)
   742  		basic_machine=pn-gould
   743  		;;
   744 -	power)	basic_machine=rs6000-ibm
   745 +	power)	basic_machine=power-ibm
   746  		;;
   747  	ppc)	basic_machine=powerpc-unknown
   748 -	        ;;
   749 +		;;
   750  	ppc-*)	basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
   751  		;;
   752  	ppcle | powerpclittle | ppc-le | powerpc-little)
   753  		basic_machine=powerpcle-unknown
   754 -	        ;;
   755 +		;;
   756  	ppcle-* | powerpclittle-*)
   757  		basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
   758  		;;
   759 +	ppc64)	basic_machine=powerpc64-unknown
   760 +		;;
   761 +	ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
   762 +		;;
   763 +	ppc64le | powerpc64little | ppc64-le | powerpc64-little)
   764 +		basic_machine=powerpc64le-unknown
   765 +		;;
   766 +	ppc64le-* | powerpc64little-*)
   767 +		basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
   768 +		;;
   769  	ps2)
   770  		basic_machine=i386-ibm
   771  		;;
   772 -	rom68k)						# EGCS LOCAL
   773 +	pw32)
   774 +		basic_machine=i586-unknown
   775 +		os=-pw32
   776 +		;;
   777 +	rom68k)
   778  		basic_machine=m68k-rom68k
   779  		os=-coff
   780  		;;
   781 @@ -687,10 +820,22 @@
   782  	rtpc | rtpc-*)
   783  		basic_machine=romp-ibm
   784  		;;
   785 -	sa29200)					# EGCS LOCAL
   786 +	s390 | s390-*)
   787 +		basic_machine=s390-ibm
   788 +		;;
   789 +	s390x | s390x-*)
   790 +		basic_machine=s390x-ibm
   791 +		;;
   792 +	sa29200)
   793  		basic_machine=a29k-amd
   794  		os=-udi
   795  		;;
   796 +	sb1)
   797 +		basic_machine=mipsisa64sb1-unknown
   798 +		;;
   799 +	sb1el)
   800 +		basic_machine=mipsisa64sb1el-unknown
   801 +		;;
   802  	sequent)
   803  		basic_machine=i386-sequent
   804  		;;
   805 @@ -698,7 +843,7 @@
   806  		basic_machine=sh-hitachi
   807  		os=-hms
   808  		;;
   809 -	sparclite-wrs)					# EGCS LOCAL
   810 +	sparclite-wrs | simso-wrs)
   811  		basic_machine=sparclite-wrs
   812  		os=-vxworks
   813  		;;
   814 @@ -709,10 +854,10 @@
   815  	spur)
   816  		basic_machine=spur-unknown
   817  		;;
   818 -	st2000)						# EGCS LOCAL
   819 +	st2000)
   820  		basic_machine=m68k-tandem
   821  		;;
   822 -	stratus)					# EGCS LOCAL
   823 +	stratus)
   824  		basic_machine=i860-stratus
   825  		os=-sysv4
   826  		;;
   827 @@ -756,16 +901,40 @@
   828  	sun386 | sun386i | roadrunner)
   829  		basic_machine=i386-sun
   830  		;;
   831 +	sv1)
   832 +		basic_machine=sv1-cray
   833 +		os=-unicos
   834 +		;;
   835  	symmetry)
   836  		basic_machine=i386-sequent
   837  		os=-dynix
   838  		;;
   839 +	t3e)
   840 +		basic_machine=alphaev5-cray
   841 +		os=-unicos
   842 +		;;
   843 +	t90)
   844 +		basic_machine=t90-cray
   845 +		os=-unicos
   846 +		;;
   847 +        tic4x | c4x*)
   848 +		basic_machine=tic4x-unknown
   849 +		os=-coff
   850 +		;;
   851 +	tic54x | c54x*)
   852 +		basic_machine=tic54x-unknown
   853 +		os=-coff
   854 +		;;
   855  	tx39)
   856  		basic_machine=mipstx39-unknown
   857  		;;
   858  	tx39el)
   859  		basic_machine=mipstx39el-unknown
   860  		;;
   861 +	toad1)
   862 +		basic_machine=pdp10-xkl
   863 +		os=-tops20
   864 +		;;
   865  	tower | tower-32)
   866  		basic_machine=m68k-ncr
   867  		;;
   868 @@ -777,7 +946,7 @@
   869  		basic_machine=a29k-nyu
   870  		os=-sym1
   871  		;;
   872 -	v810 | necv810)					# EGCS LOCAL
   873 +	v810 | necv810)
   874  		basic_machine=v810-nec
   875  		os=-none
   876  		;;
   877 @@ -790,8 +959,8 @@
   878  		os=-vms
   879  		;;
   880  	vpp*|vx|vx-*)
   881 -               basic_machine=f301-fujitsu
   882 -               ;;
   883 +		basic_machine=f301-fujitsu
   884 +		;;
   885  	vxworks960)
   886  		basic_machine=i960-wrs
   887  		os=-vxworks
   888 @@ -804,18 +973,22 @@
   889  		basic_machine=a29k-wrs
   890  		os=-vxworks
   891  		;;
   892 -	w65*)						# EGCS LOCAL
   893 - 		basic_machine=w65-wdc
   894 - 		os=-none
   895 +	w65*)
   896 +		basic_machine=w65-wdc
   897 +		os=-none
   898  		;;
   899 -	xmp)
   900 -		basic_machine=xmp-cray
   901 -		os=-unicos
   902 +	w89k-*)
   903 +		basic_machine=hppa1.1-winbond
   904 +		os=-proelf
   905  		;;
   906 -        xps | xps100)
   907 +	xps | xps100)
   908  		basic_machine=xps100-honeywell
   909  		;;
   910 -	z8k-*-coff)					# EGCS LOCAL
   911 +	ymp)
   912 +		basic_machine=ymp-cray
   913 +		os=-unicos
   914 +		;;
   915 +	z8k-*-coff)
   916  		basic_machine=z8k-unknown
   917  		os=-sim
   918  		;;
   919 @@ -826,22 +999,15 @@
   920  
   921  # Here we handle the default manufacturer of certain CPU types.  It is in
   922  # some cases the only manufacturer, in others, it is the most popular.
   923 -	w89k)						# EGCS LOCAL
   924 +	w89k)
   925  		basic_machine=hppa1.1-winbond
   926  		;;
   927 -	op50n)						# EGCS LOCAL
   928 +	op50n)
   929  		basic_machine=hppa1.1-oki
   930  		;;
   931 -	op60c)						# EGCS LOCAL
   932 +	op60c)
   933  		basic_machine=hppa1.1-oki
   934  		;;
   935 -	mips)
   936 -		if [ x$os = x-linux-gnu ]; then
   937 -			basic_machine=mips-unknown
   938 -		else
   939 -			basic_machine=mips-mips
   940 -		fi
   941 -		;;
   942  	romp)
   943  		basic_machine=romp-ibm
   944  		;;
   945 @@ -851,16 +1017,26 @@
   946  	vax)
   947  		basic_machine=vax-dec
   948  		;;
   949 +	pdp10)
   950 +		# there are many clones, so DEC is not a safe bet
   951 +		basic_machine=pdp10-unknown
   952 +		;;
   953  	pdp11)
   954  		basic_machine=pdp11-dec
   955  		;;
   956  	we32k)
   957  		basic_machine=we32k-att
   958  		;;
   959 -	sparc | sparcv9)
   960 +	sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
   961 +		basic_machine=sh-unknown
   962 +		;;
   963 +	sh64)
   964 +		basic_machine=sh64-unknown
   965 +		;;
   966 +	sparc | sparcv9 | sparcv9b)
   967  		basic_machine=sparc-sun
   968  		;;
   969 -        cydra)
   970 +	cydra)
   971  		basic_machine=cydra-cydrome
   972  		;;
   973  	orion)
   974 @@ -869,16 +1045,15 @@
   975  	orion105)
   976  		basic_machine=clipper-highlevel
   977  		;;
   978 -	mac | mpw | mac-mpw)				# EGCS LOCAL
   979 +	mac | mpw | mac-mpw)
   980  		basic_machine=m68k-apple
   981  		;;
   982 -	pmac | pmac-mpw)				# EGCS LOCAL
   983 +	pmac | pmac-mpw)
   984  		basic_machine=powerpc-apple
   985  		;;
   986 - 	c4x*)
   987 - 		basic_machine=c4x-none
   988 - 		os=-coff
   989 -  		;;
   990 +	*-unknown)
   991 +		# Make sure to match an already-canonicalized machine name.
   992 +		;;
   993  	*)
   994  		echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
   995  		exit 1
   996 @@ -935,20 +1110,38 @@
   997  	      | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
   998  	      | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
   999  	      | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
  1000 +	      | -chorusos* | -chorusrdb* \
  1001  	      | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
  1002  	      | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
  1003 -	      | -interix* | -uwin* )
  1004 +	      | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
  1005 +	      | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
  1006 +	      | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
  1007 +	      | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
  1008 +	      | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
  1009 +	      | -powermax* | -dnix* | -microbsd*)
  1010  	# Remember, each alternative MUST END IN *, to match a version number.
  1011  		;;
  1012 -	# EGCS LOCAL
  1013 +	-qnx*)
  1014 +		case $basic_machine in
  1015 +		    x86-* | i*86-*)
  1016 +			;;
  1017 +		    *)
  1018 +			os=-nto$os
  1019 +			;;
  1020 +		esac
  1021 +		;;
  1022 +	-nto-qnx*)
  1023 +		;;
  1024 +	-nto*)
  1025 +		os=`echo $os | sed -e 's|nto|nto-qnx|'`
  1026 +		;;
  1027  	-sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
  1028 -	      | -windows* | -osx | -abug |  -netware* | -os9* | -beos* \
  1029 -	      | -macos* | -mpw* | -magic* | -mon960* | -lnews* )
  1030 +	      | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
  1031 +	      | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
  1032  		;;
  1033  	-mac*)
  1034  		os=`echo $os | sed -e 's|mac|macos|'`
  1035  		;;
  1036 -	# END EGCS LOCAL
  1037  	-linux*)
  1038  		os=`echo $os | sed -e 's|linux|linux-gnu|'`
  1039  		;;
  1040 @@ -958,6 +1151,12 @@
  1041  	-sunos6*)
  1042  		os=`echo $os | sed -e 's|sunos6|solaris3|'`
  1043  		;;
  1044 +	-opened*)
  1045 +		os=-openedition
  1046 +		;;
  1047 +	-wince*)
  1048 +		os=-wince
  1049 +		;;
  1050  	-osfrose*)
  1051  		os=-osfrose
  1052  		;;
  1053 @@ -973,14 +1172,23 @@
  1054  	-acis*)
  1055  		os=-aos
  1056  		;;
  1057 -	-386bsd)					# EGCS LOCAL
  1058 +	-atheos*)
  1059 +		os=-atheos
  1060 +		;;
  1061 +	-386bsd)
  1062  		os=-bsd
  1063  		;;
  1064  	-ctix* | -uts*)
  1065  		os=-sysv
  1066  		;;
  1067 +	-nova*)
  1068 +		os=-rtmk-nova
  1069 +		;;
  1070  	-ns2 )
  1071 -	        os=-nextstep2
  1072 +		os=-nextstep2
  1073 +		;;
  1074 +	-nsk*)
  1075 +		os=-nsk
  1076  		;;
  1077  	# Preserve the version number of sinix5.
  1078  	-sinix5.*)
  1079 @@ -1007,15 +1215,21 @@
  1080  	# This must come after -sysvr4.
  1081  	-sysv*)
  1082  		;;
  1083 -	-ose*)						# EGCS LOCAL
  1084 +	-ose*)
  1085  		os=-ose
  1086  		;;
  1087 -	-es1800*)					# EGCS LOCAL
  1088 +	-es1800*)
  1089  		os=-ose
  1090  		;;
  1091  	-xenix)
  1092  		os=-xenix
  1093  		;;
  1094 +	-*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
  1095 +		os=-mint
  1096 +		;;
  1097 +	-aros*)
  1098 +		os=-aros
  1099 +		;;
  1100  	-none)
  1101  		;;
  1102  	*)
  1103 @@ -1041,13 +1255,17 @@
  1104  	*-acorn)
  1105  		os=-riscix1.2
  1106  		;;
  1107 -	arm*-corel)
  1108 +	arm*-rebel)
  1109  		os=-linux
  1110  		;;
  1111  	arm*-semi)
  1112  		os=-aout
  1113  		;;
  1114 -        pdp11-*)
  1115 +	# This must come before the *-dec entry.
  1116 +	pdp10-*)
  1117 +		os=-tops20
  1118 +		;;
  1119 +	pdp11-*)
  1120  		os=-none
  1121  		;;
  1122  	*-dec | vax-*)
  1123 @@ -1065,15 +1283,18 @@
  1124  		# default.
  1125  		# os=-sunos4
  1126  		;;
  1127 -	m68*-cisco)					# EGCS LOCAL
  1128 +	m68*-cisco)
  1129  		os=-aout
  1130  		;;
  1131 -	mips*-cisco)					# EGCS LOCAL
  1132 +	mips*-cisco)
  1133  		os=-elf
  1134  		;;
  1135 -        mips*-*)                                        # EGCS LOCAL
  1136 -                os=-elf
  1137 -                ;;
  1138 +	mips*-*)
  1139 +		os=-elf
  1140 +		;;
  1141 +	or32-*)
  1142 +		os=-coff
  1143 +		;;
  1144  	*-tti)	# must be before sparc entry or we get the wrong os.
  1145  		os=-sysv3
  1146  		;;
  1147 @@ -1086,13 +1307,13 @@
  1148  	*-ibm)
  1149  		os=-aix
  1150  		;;
  1151 -	*-wec)						# EGCS LOCAL
  1152 +	*-wec)
  1153  		os=-proelf
  1154  		;;
  1155 -	*-winbond)					# EGCS LOCAL
  1156 +	*-winbond)
  1157  		os=-proelf
  1158  		;;
  1159 -	*-oki)						# EGCS LOCAL
  1160 +	*-oki)
  1161  		os=-proelf
  1162  		;;
  1163  	*-hp)
  1164 @@ -1137,36 +1358,39 @@
  1165  	*-next)
  1166  		os=-nextstep3
  1167  		;;
  1168 -        *-gould)
  1169 +	*-gould)
  1170  		os=-sysv
  1171  		;;
  1172 -        *-highlevel)
  1173 +	*-highlevel)
  1174  		os=-bsd
  1175  		;;
  1176  	*-encore)
  1177  		os=-bsd
  1178  		;;
  1179 -        *-sgi)
  1180 +	*-sgi)
  1181  		os=-irix
  1182  		;;
  1183 -        *-siemens)
  1184 +	*-siemens)
  1185  		os=-sysv4
  1186  		;;
  1187  	*-masscomp)
  1188  		os=-rtu
  1189  		;;
  1190 -	f301-fujitsu)
  1191 +	f30[01]-fujitsu | f700-fujitsu)
  1192  		os=-uxpv
  1193  		;;
  1194 -	*-rom68k)					# EGCS LOCAL
  1195 +	*-rom68k)
  1196  		os=-coff
  1197  		;;
  1198 -	*-*bug)						# EGCS LOCAL
  1199 +	*-*bug)
  1200  		os=-coff
  1201  		;;
  1202 -	*-apple)					# EGCS LOCAL
  1203 +	*-apple)
  1204  		os=-macos
  1205  		;;
  1206 +	*-atari*)
  1207 +		os=-mint
  1208 +		;;
  1209  	*)
  1210  		os=-none
  1211  		;;
  1212 @@ -1212,27 +1436,41 @@
  1213  			-genix*)
  1214  				vendor=ns
  1215  				;;
  1216 -			-mvs*)
  1217 +			-mvs* | -opened*)
  1218  				vendor=ibm
  1219  				;;
  1220  			-ptx*)
  1221  				vendor=sequent
  1222  				;;
  1223 -			-vxsim* | -vxworks*)
  1224 +			-vxsim* | -vxworks* | -windiss*)
  1225  				vendor=wrs
  1226  				;;
  1227  			-aux*)
  1228  				vendor=apple
  1229  				;;
  1230 -			-hms*)				# EGCS LOCAL
  1231 +			-hms*)
  1232  				vendor=hitachi
  1233  				;;
  1234 -			-mpw* | -macos*)		# EGCS LOCAL
  1235 +			-mpw* | -macos*)
  1236  				vendor=apple
  1237  				;;
  1238 +			-*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
  1239 +				vendor=atari
  1240 +				;;
  1241 +			-vos*)
  1242 +				vendor=stratus
  1243 +				;;
  1244  		esac
  1245  		basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
  1246  		;;
  1247  esac
  1248  
  1249  echo $basic_machine$os
  1250 +exit 0
  1251 +
  1252 +# Local variables:
  1253 +# eval: (add-hook 'write-file-hooks 'time-stamp)
  1254 +# time-stamp-start: "timestamp='"
  1255 +# time-stamp-format: "%:y-%02m-%02d"
  1256 +# time-stamp-end: "'"
  1257 +# End: