annotate config.sub @ 23:e1e451cf85bb

Simplify Reddit example more
author Adam Chlipala <adam@chlipala.net>
date Sat, 29 Sep 2012 10:34:11 -0400
parents dd5b333a7960
children
rev   line source
adam@0 1 #! /bin/sh
adam@0 2 # Configuration validation subroutine script.
adam@0 3 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
adam@12 4 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
adam@20 5 # 2011, 2012 Free Software Foundation, Inc.
adam@0 6
adam@20 7 timestamp='2012-04-18'
adam@0 8
adam@0 9 # This file is (in principle) common to ALL GNU software.
adam@0 10 # The presence of a machine in this file suggests that SOME GNU software
adam@0 11 # can handle that machine. It does not imply ALL GNU software can.
adam@0 12 #
adam@0 13 # This file is free software; you can redistribute it and/or modify
adam@0 14 # it under the terms of the GNU General Public License as published by
adam@0 15 # the Free Software Foundation; either version 2 of the License, or
adam@0 16 # (at your option) any later version.
adam@0 17 #
adam@0 18 # This program is distributed in the hope that it will be useful,
adam@0 19 # but WITHOUT ANY WARRANTY; without even the implied warranty of
adam@0 20 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
adam@0 21 # GNU General Public License for more details.
adam@0 22 #
adam@0 23 # You should have received a copy of the GNU General Public License
adam@20 24 # along with this program; if not, see <http://www.gnu.org/licenses/>.
adam@0 25 #
adam@0 26 # As a special exception to the GNU General Public License, if you
adam@0 27 # distribute this file as part of a program that contains a
adam@0 28 # configuration script generated by Autoconf, you may include it under
adam@0 29 # the same distribution terms that you use for the rest of that program.
adam@0 30
adam@0 31
adam@0 32 # Please send patches to <config-patches@gnu.org>. Submit a context
adam@0 33 # diff and a properly formatted GNU ChangeLog entry.
adam@0 34 #
adam@0 35 # Configuration subroutine to validate and canonicalize a configuration type.
adam@0 36 # Supply the specified configuration type as an argument.
adam@0 37 # If it is invalid, we print an error message on stderr and exit with code 1.
adam@0 38 # Otherwise, we print the canonical config type on stdout and succeed.
adam@0 39
adam@0 40 # You can get the latest version of this script from:
adam@0 41 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
adam@0 42
adam@0 43 # This file is supposed to be the same for all GNU packages
adam@0 44 # and recognize all the CPU types, system types and aliases
adam@0 45 # that are meaningful with *any* GNU software.
adam@0 46 # Each package is responsible for reporting which valid configurations
adam@0 47 # it does not support. The user should be able to distinguish
adam@0 48 # a failure to support a valid configuration from a meaningless
adam@0 49 # configuration.
adam@0 50
adam@0 51 # The goal of this file is to map all the various variations of a given
adam@0 52 # machine specification into a single specification in the form:
adam@0 53 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
adam@0 54 # or in some cases, the newer four-part form:
adam@0 55 # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
adam@0 56 # It is wrong to echo any other type of specification.
adam@0 57
adam@0 58 me=`echo "$0" | sed -e 's,.*/,,'`
adam@0 59
adam@0 60 usage="\
adam@0 61 Usage: $0 [OPTION] CPU-MFR-OPSYS
adam@0 62 $0 [OPTION] ALIAS
adam@0 63
adam@0 64 Canonicalize a configuration name.
adam@0 65
adam@0 66 Operation modes:
adam@0 67 -h, --help print this help, then exit
adam@0 68 -t, --time-stamp print date of last modification, then exit
adam@0 69 -v, --version print version number, then exit
adam@0 70
adam@0 71 Report bugs and patches to <config-patches@gnu.org>."
adam@0 72
adam@0 73 version="\
adam@0 74 GNU config.sub ($timestamp)
adam@0 75
adam@0 76 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
adam@20 77 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
adam@20 78 Free Software Foundation, Inc.
adam@0 79
adam@0 80 This is free software; see the source for copying conditions. There is NO
adam@0 81 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
adam@0 82
adam@0 83 help="
adam@0 84 Try \`$me --help' for more information."
adam@0 85
adam@0 86 # Parse command line
adam@0 87 while test $# -gt 0 ; do
adam@0 88 case $1 in
adam@0 89 --time-stamp | --time* | -t )
adam@0 90 echo "$timestamp" ; exit ;;
adam@0 91 --version | -v )
adam@0 92 echo "$version" ; exit ;;
adam@0 93 --help | --h* | -h )
adam@0 94 echo "$usage"; exit ;;
adam@0 95 -- ) # Stop option processing
adam@0 96 shift; break ;;
adam@0 97 - ) # Use stdin as input.
adam@0 98 break ;;
adam@0 99 -* )
adam@0 100 echo "$me: invalid option $1$help"
adam@0 101 exit 1 ;;
adam@0 102
adam@0 103 *local*)
adam@0 104 # First pass through any local machine types.
adam@0 105 echo $1
adam@0 106 exit ;;
adam@0 107
adam@0 108 * )
adam@0 109 break ;;
adam@0 110 esac
adam@0 111 done
adam@0 112
adam@0 113 case $# in
adam@0 114 0) echo "$me: missing argument$help" >&2
adam@0 115 exit 1;;
adam@0 116 1) ;;
adam@0 117 *) echo "$me: too many arguments$help" >&2
adam@0 118 exit 1;;
adam@0 119 esac
adam@0 120
adam@0 121 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
adam@0 122 # Here we must recognize all the valid KERNEL-OS combinations.
adam@0 123 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
adam@0 124 case $maybe_os in
adam@12 125 nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
adam@12 126 linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
adam@12 127 knetbsd*-gnu* | netbsd*-gnu* | \
adam@0 128 kopensolaris*-gnu* | \
adam@0 129 storm-chaos* | os2-emx* | rtmk-nova*)
adam@0 130 os=-$maybe_os
adam@0 131 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
adam@0 132 ;;
adam@20 133 android-linux)
adam@20 134 os=-linux-android
adam@20 135 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
adam@20 136 ;;
adam@0 137 *)
adam@0 138 basic_machine=`echo $1 | sed 's/-[^-]*$//'`
adam@0 139 if [ $basic_machine != $1 ]
adam@0 140 then os=`echo $1 | sed 's/.*-/-/'`
adam@0 141 else os=; fi
adam@0 142 ;;
adam@0 143 esac
adam@0 144
adam@0 145 ### Let's recognize common machines as not being operating systems so
adam@0 146 ### that things like config.sub decstation-3100 work. We also
adam@0 147 ### recognize some manufacturers as not being operating systems, so we
adam@0 148 ### can provide default operating systems below.
adam@0 149 case $os in
adam@0 150 -sun*os*)
adam@0 151 # Prevent following clause from handling this invalid input.
adam@0 152 ;;
adam@0 153 -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
adam@0 154 -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
adam@0 155 -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
adam@0 156 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
adam@0 157 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
adam@0 158 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
adam@0 159 -apple | -axis | -knuth | -cray | -microblaze)
adam@0 160 os=
adam@0 161 basic_machine=$1
adam@0 162 ;;
adam@12 163 -bluegene*)
adam@12 164 os=-cnk
adam@0 165 ;;
adam@0 166 -sim | -cisco | -oki | -wec | -winbond)
adam@0 167 os=
adam@0 168 basic_machine=$1
adam@0 169 ;;
adam@0 170 -scout)
adam@0 171 ;;
adam@0 172 -wrs)
adam@0 173 os=-vxworks
adam@0 174 basic_machine=$1
adam@0 175 ;;
adam@0 176 -chorusos*)
adam@0 177 os=-chorusos
adam@0 178 basic_machine=$1
adam@0 179 ;;
adam@12 180 -chorusrdb)
adam@12 181 os=-chorusrdb
adam@0 182 basic_machine=$1
adam@12 183 ;;
adam@0 184 -hiux*)
adam@0 185 os=-hiuxwe2
adam@0 186 ;;
adam@0 187 -sco6)
adam@0 188 os=-sco5v6
adam@0 189 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
adam@0 190 ;;
adam@0 191 -sco5)
adam@0 192 os=-sco3.2v5
adam@0 193 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
adam@0 194 ;;
adam@0 195 -sco4)
adam@0 196 os=-sco3.2v4
adam@0 197 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
adam@0 198 ;;
adam@0 199 -sco3.2.[4-9]*)
adam@0 200 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
adam@0 201 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
adam@0 202 ;;
adam@0 203 -sco3.2v[4-9]*)
adam@0 204 # Don't forget version if it is 3.2v4 or newer.
adam@0 205 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
adam@0 206 ;;
adam@0 207 -sco5v6*)
adam@0 208 # Don't forget version if it is 3.2v4 or newer.
adam@0 209 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
adam@0 210 ;;
adam@0 211 -sco*)
adam@0 212 os=-sco3.2v2
adam@0 213 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
adam@0 214 ;;
adam@0 215 -udk*)
adam@0 216 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
adam@0 217 ;;
adam@0 218 -isc)
adam@0 219 os=-isc2.2
adam@0 220 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
adam@0 221 ;;
adam@0 222 -clix*)
adam@0 223 basic_machine=clipper-intergraph
adam@0 224 ;;
adam@0 225 -isc*)
adam@0 226 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
adam@0 227 ;;
adam@20 228 -lynx*178)
adam@20 229 os=-lynxos178
adam@20 230 ;;
adam@20 231 -lynx*5)
adam@20 232 os=-lynxos5
adam@20 233 ;;
adam@0 234 -lynx*)
adam@0 235 os=-lynxos
adam@0 236 ;;
adam@0 237 -ptx*)
adam@0 238 basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
adam@0 239 ;;
adam@0 240 -windowsnt*)
adam@0 241 os=`echo $os | sed -e 's/windowsnt/winnt/'`
adam@0 242 ;;
adam@0 243 -psos*)
adam@0 244 os=-psos
adam@0 245 ;;
adam@0 246 -mint | -mint[0-9]*)
adam@0 247 basic_machine=m68k-atari
adam@0 248 os=-mint
adam@0 249 ;;
adam@0 250 esac
adam@0 251
adam@0 252 # Decode aliases for certain CPU-COMPANY combinations.
adam@0 253 case $basic_machine in
adam@0 254 # Recognize the basic CPU types without company name.
adam@0 255 # Some are omitted here because they have special meanings below.
adam@0 256 1750a | 580 \
adam@0 257 | a29k \
adam@20 258 | aarch64 | aarch64_be \
adam@0 259 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
adam@0 260 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
adam@0 261 | am33_2.0 \
adam@0 262 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
adam@20 263 | be32 | be64 \
adam@0 264 | bfin \
adam@0 265 | c4x | clipper \
adam@0 266 | d10v | d30v | dlx | dsp16xx \
adam@20 267 | epiphany \
adam@0 268 | fido | fr30 | frv \
adam@0 269 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
adam@20 270 | hexagon \
adam@0 271 | i370 | i860 | i960 | ia64 \
adam@0 272 | ip2k | iq2000 \
adam@20 273 | le32 | le64 \
adam@0 274 | lm32 \
adam@0 275 | m32c | m32r | m32rle | m68000 | m68k | m88k \
adam@0 276 | maxq | mb | microblaze | mcore | mep | metag \
adam@0 277 | mips | mipsbe | mipseb | mipsel | mipsle \
adam@0 278 | mips16 \
adam@0 279 | mips64 | mips64el \
adam@0 280 | mips64octeon | mips64octeonel \
adam@0 281 | mips64orion | mips64orionel \
adam@0 282 | mips64r5900 | mips64r5900el \
adam@0 283 | mips64vr | mips64vrel \
adam@0 284 | mips64vr4100 | mips64vr4100el \
adam@0 285 | mips64vr4300 | mips64vr4300el \
adam@0 286 | mips64vr5000 | mips64vr5000el \
adam@0 287 | mips64vr5900 | mips64vr5900el \
adam@0 288 | mipsisa32 | mipsisa32el \
adam@0 289 | mipsisa32r2 | mipsisa32r2el \
adam@0 290 | mipsisa64 | mipsisa64el \
adam@0 291 | mipsisa64r2 | mipsisa64r2el \
adam@0 292 | mipsisa64sb1 | mipsisa64sb1el \
adam@0 293 | mipsisa64sr71k | mipsisa64sr71kel \
adam@0 294 | mipstx39 | mipstx39el \
adam@0 295 | mn10200 | mn10300 \
adam@0 296 | moxie \
adam@0 297 | mt \
adam@0 298 | msp430 \
adam@12 299 | nds32 | nds32le | nds32be \
adam@0 300 | nios | nios2 \
adam@0 301 | ns16k | ns32k \
adam@12 302 | open8 \
adam@0 303 | or32 \
adam@0 304 | pdp10 | pdp11 | pj | pjl \
adam@12 305 | powerpc | powerpc64 | powerpc64le | powerpcle \
adam@0 306 | pyramid \
adam@20 307 | rl78 | rx \
adam@0 308 | score \
adam@0 309 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
adam@0 310 | sh64 | sh64le \
adam@0 311 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
adam@0 312 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
adam@12 313 | spu \
adam@12 314 | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
adam@0 315 | ubicom32 \
adam@20 316 | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
adam@0 317 | we32k \
adam@12 318 | x86 | xc16x | xstormy16 | xtensa \
adam@0 319 | z8k | z80)
adam@0 320 basic_machine=$basic_machine-unknown
adam@0 321 ;;
adam@12 322 c54x)
adam@12 323 basic_machine=tic54x-unknown
adam@12 324 ;;
adam@12 325 c55x)
adam@12 326 basic_machine=tic55x-unknown
adam@12 327 ;;
adam@12 328 c6x)
adam@12 329 basic_machine=tic6x-unknown
adam@12 330 ;;
adam@20 331 m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip)
adam@0 332 basic_machine=$basic_machine-unknown
adam@0 333 os=-none
adam@0 334 ;;
adam@0 335 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
adam@0 336 ;;
adam@0 337 ms1)
adam@0 338 basic_machine=mt-unknown
adam@0 339 ;;
adam@0 340
adam@12 341 strongarm | thumb | xscale)
adam@12 342 basic_machine=arm-unknown
adam@12 343 ;;
adam@20 344 xgate)
adam@20 345 basic_machine=$basic_machine-unknown
adam@20 346 os=-none
adam@20 347 ;;
adam@12 348 xscaleeb)
adam@12 349 basic_machine=armeb-unknown
adam@12 350 ;;
adam@12 351
adam@12 352 xscaleel)
adam@12 353 basic_machine=armel-unknown
adam@12 354 ;;
adam@12 355
adam@0 356 # We use `pc' rather than `unknown'
adam@0 357 # because (1) that's what they normally are, and
adam@0 358 # (2) the word "unknown" tends to confuse beginning users.
adam@0 359 i*86 | x86_64)
adam@0 360 basic_machine=$basic_machine-pc
adam@0 361 ;;
adam@0 362 # Object if more than one company name word.
adam@0 363 *-*-*)
adam@0 364 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
adam@0 365 exit 1
adam@0 366 ;;
adam@0 367 # Recognize the basic CPU types with company name.
adam@0 368 580-* \
adam@0 369 | a29k-* \
adam@20 370 | aarch64-* | aarch64_be-* \
adam@0 371 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
adam@0 372 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
adam@0 373 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
adam@0 374 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
adam@0 375 | avr-* | avr32-* \
adam@20 376 | be32-* | be64-* \
adam@0 377 | bfin-* | bs2000-* \
adam@12 378 | c[123]* | c30-* | [cjt]90-* | c4x-* \
adam@0 379 | clipper-* | craynv-* | cydra-* \
adam@0 380 | d10v-* | d30v-* | dlx-* \
adam@0 381 | elxsi-* \
adam@0 382 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
adam@0 383 | h8300-* | h8500-* \
adam@0 384 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
adam@20 385 | hexagon-* \
adam@0 386 | i*86-* | i860-* | i960-* | ia64-* \
adam@0 387 | ip2k-* | iq2000-* \
adam@20 388 | le32-* | le64-* \
adam@0 389 | lm32-* \
adam@0 390 | m32c-* | m32r-* | m32rle-* \
adam@0 391 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
adam@0 392 | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
adam@0 393 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
adam@0 394 | mips16-* \
adam@0 395 | mips64-* | mips64el-* \
adam@0 396 | mips64octeon-* | mips64octeonel-* \
adam@0 397 | mips64orion-* | mips64orionel-* \
adam@0 398 | mips64r5900-* | mips64r5900el-* \
adam@0 399 | mips64vr-* | mips64vrel-* \
adam@0 400 | mips64vr4100-* | mips64vr4100el-* \
adam@0 401 | mips64vr4300-* | mips64vr4300el-* \
adam@0 402 | mips64vr5000-* | mips64vr5000el-* \
adam@0 403 | mips64vr5900-* | mips64vr5900el-* \
adam@0 404 | mipsisa32-* | mipsisa32el-* \
adam@0 405 | mipsisa32r2-* | mipsisa32r2el-* \
adam@0 406 | mipsisa64-* | mipsisa64el-* \
adam@0 407 | mipsisa64r2-* | mipsisa64r2el-* \
adam@0 408 | mipsisa64sb1-* | mipsisa64sb1el-* \
adam@0 409 | mipsisa64sr71k-* | mipsisa64sr71kel-* \
adam@0 410 | mipstx39-* | mipstx39el-* \
adam@0 411 | mmix-* \
adam@0 412 | mt-* \
adam@0 413 | msp430-* \
adam@12 414 | nds32-* | nds32le-* | nds32be-* \
adam@0 415 | nios-* | nios2-* \
adam@0 416 | none-* | np1-* | ns16k-* | ns32k-* \
adam@12 417 | open8-* \
adam@0 418 | orion-* \
adam@0 419 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
adam@12 420 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
adam@0 421 | pyramid-* \
adam@20 422 | rl78-* | romp-* | rs6000-* | rx-* \
adam@0 423 | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
adam@0 424 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
adam@0 425 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
adam@0 426 | sparclite-* \
adam@12 427 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
adam@12 428 | tahoe-* \
adam@0 429 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
adam@20 430 | tile*-* \
adam@0 431 | tron-* \
adam@0 432 | ubicom32-* \
adam@20 433 | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
adam@20 434 | vax-* \
adam@0 435 | we32k-* \
adam@12 436 | x86-* | x86_64-* | xc16x-* | xps100-* \
adam@0 437 | xstormy16-* | xtensa*-* \
adam@0 438 | ymp-* \
adam@0 439 | z8k-* | z80-*)
adam@0 440 ;;
adam@0 441 # Recognize the basic CPU types without company name, with glob match.
adam@0 442 xtensa*)
adam@0 443 basic_machine=$basic_machine-unknown
adam@0 444 ;;
adam@0 445 # Recognize the various machine names and aliases which stand
adam@0 446 # for a CPU type and a company and sometimes even an OS.
adam@0 447 386bsd)
adam@0 448 basic_machine=i386-unknown
adam@0 449 os=-bsd
adam@0 450 ;;
adam@0 451 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
adam@0 452 basic_machine=m68000-att
adam@0 453 ;;
adam@0 454 3b*)
adam@0 455 basic_machine=we32k-att
adam@0 456 ;;
adam@0 457 a29khif)
adam@0 458 basic_machine=a29k-amd
adam@0 459 os=-udi
adam@0 460 ;;
adam@12 461 abacus)
adam@0 462 basic_machine=abacus-unknown
adam@0 463 ;;
adam@0 464 adobe68k)
adam@0 465 basic_machine=m68010-adobe
adam@0 466 os=-scout
adam@0 467 ;;
adam@0 468 alliant | fx80)
adam@0 469 basic_machine=fx80-alliant
adam@0 470 ;;
adam@0 471 altos | altos3068)
adam@0 472 basic_machine=m68k-altos
adam@0 473 ;;
adam@0 474 am29k)
adam@0 475 basic_machine=a29k-none
adam@0 476 os=-bsd
adam@0 477 ;;
adam@0 478 amd64)
adam@0 479 basic_machine=x86_64-pc
adam@0 480 ;;
adam@0 481 amd64-*)
adam@0 482 basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
adam@0 483 ;;
adam@0 484 amdahl)
adam@0 485 basic_machine=580-amdahl
adam@0 486 os=-sysv
adam@0 487 ;;
adam@0 488 amiga | amiga-*)
adam@0 489 basic_machine=m68k-unknown
adam@0 490 ;;
adam@0 491 amigaos | amigados)
adam@0 492 basic_machine=m68k-unknown
adam@0 493 os=-amigaos
adam@0 494 ;;
adam@0 495 amigaunix | amix)
adam@0 496 basic_machine=m68k-unknown
adam@0 497 os=-sysv4
adam@0 498 ;;
adam@0 499 apollo68)
adam@0 500 basic_machine=m68k-apollo
adam@0 501 os=-sysv
adam@0 502 ;;
adam@0 503 apollo68bsd)
adam@0 504 basic_machine=m68k-apollo
adam@0 505 os=-bsd
adam@0 506 ;;
adam@0 507 aros)
adam@0 508 basic_machine=i386-pc
adam@0 509 os=-aros
adam@0 510 ;;
adam@0 511 aux)
adam@0 512 basic_machine=m68k-apple
adam@0 513 os=-aux
adam@0 514 ;;
adam@0 515 balance)
adam@0 516 basic_machine=ns32k-sequent
adam@0 517 os=-dynix
adam@0 518 ;;
adam@0 519 blackfin)
adam@0 520 basic_machine=bfin-unknown
adam@0 521 os=-linux
adam@0 522 ;;
adam@0 523 blackfin-*)
adam@0 524 basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
adam@0 525 os=-linux
adam@0 526 ;;
adam@0 527 bluegene*)
adam@0 528 basic_machine=powerpc-ibm
adam@0 529 os=-cnk
adam@0 530 ;;
adam@12 531 c54x-*)
adam@12 532 basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
adam@12 533 ;;
adam@12 534 c55x-*)
adam@12 535 basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
adam@12 536 ;;
adam@12 537 c6x-*)
adam@12 538 basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
adam@12 539 ;;
adam@0 540 c90)
adam@0 541 basic_machine=c90-cray
adam@0 542 os=-unicos
adam@0 543 ;;
adam@12 544 cegcc)
adam@0 545 basic_machine=arm-unknown
adam@0 546 os=-cegcc
adam@0 547 ;;
adam@0 548 convex-c1)
adam@0 549 basic_machine=c1-convex
adam@0 550 os=-bsd
adam@0 551 ;;
adam@0 552 convex-c2)
adam@0 553 basic_machine=c2-convex
adam@0 554 os=-bsd
adam@0 555 ;;
adam@0 556 convex-c32)
adam@0 557 basic_machine=c32-convex
adam@0 558 os=-bsd
adam@0 559 ;;
adam@0 560 convex-c34)
adam@0 561 basic_machine=c34-convex
adam@0 562 os=-bsd
adam@0 563 ;;
adam@0 564 convex-c38)
adam@0 565 basic_machine=c38-convex
adam@0 566 os=-bsd
adam@0 567 ;;
adam@0 568 cray | j90)
adam@0 569 basic_machine=j90-cray
adam@0 570 os=-unicos
adam@0 571 ;;
adam@0 572 craynv)
adam@0 573 basic_machine=craynv-cray
adam@0 574 os=-unicosmp
adam@0 575 ;;
adam@12 576 cr16 | cr16-*)
adam@0 577 basic_machine=cr16-unknown
adam@0 578 os=-elf
adam@0 579 ;;
adam@0 580 crds | unos)
adam@0 581 basic_machine=m68k-crds
adam@0 582 ;;
adam@0 583 crisv32 | crisv32-* | etraxfs*)
adam@0 584 basic_machine=crisv32-axis
adam@0 585 ;;
adam@0 586 cris | cris-* | etrax*)
adam@0 587 basic_machine=cris-axis
adam@0 588 ;;
adam@0 589 crx)
adam@0 590 basic_machine=crx-unknown
adam@0 591 os=-elf
adam@0 592 ;;
adam@0 593 da30 | da30-*)
adam@0 594 basic_machine=m68k-da30
adam@0 595 ;;
adam@0 596 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
adam@0 597 basic_machine=mips-dec
adam@0 598 ;;
adam@0 599 decsystem10* | dec10*)
adam@0 600 basic_machine=pdp10-dec
adam@0 601 os=-tops10
adam@0 602 ;;
adam@0 603 decsystem20* | dec20*)
adam@0 604 basic_machine=pdp10-dec
adam@0 605 os=-tops20
adam@0 606 ;;
adam@0 607 delta | 3300 | motorola-3300 | motorola-delta \
adam@0 608 | 3300-motorola | delta-motorola)
adam@0 609 basic_machine=m68k-motorola
adam@0 610 ;;
adam@0 611 delta88)
adam@0 612 basic_machine=m88k-motorola
adam@0 613 os=-sysv3
adam@0 614 ;;
adam@0 615 dicos)
adam@0 616 basic_machine=i686-pc
adam@0 617 os=-dicos
adam@0 618 ;;
adam@0 619 djgpp)
adam@0 620 basic_machine=i586-pc
adam@0 621 os=-msdosdjgpp
adam@0 622 ;;
adam@0 623 dpx20 | dpx20-*)
adam@0 624 basic_machine=rs6000-bull
adam@0 625 os=-bosx
adam@0 626 ;;
adam@0 627 dpx2* | dpx2*-bull)
adam@0 628 basic_machine=m68k-bull
adam@0 629 os=-sysv3
adam@0 630 ;;
adam@0 631 ebmon29k)
adam@0 632 basic_machine=a29k-amd
adam@0 633 os=-ebmon
adam@0 634 ;;
adam@0 635 elxsi)
adam@0 636 basic_machine=elxsi-elxsi
adam@0 637 os=-bsd
adam@0 638 ;;
adam@0 639 encore | umax | mmax)
adam@0 640 basic_machine=ns32k-encore
adam@0 641 ;;
adam@0 642 es1800 | OSE68k | ose68k | ose | OSE)
adam@0 643 basic_machine=m68k-ericsson
adam@0 644 os=-ose
adam@0 645 ;;
adam@0 646 fx2800)
adam@0 647 basic_machine=i860-alliant
adam@0 648 ;;
adam@0 649 genix)
adam@0 650 basic_machine=ns32k-ns
adam@0 651 ;;
adam@0 652 gmicro)
adam@0 653 basic_machine=tron-gmicro
adam@0 654 os=-sysv
adam@0 655 ;;
adam@0 656 go32)
adam@0 657 basic_machine=i386-pc
adam@0 658 os=-go32
adam@0 659 ;;
adam@0 660 h3050r* | hiux*)
adam@0 661 basic_machine=hppa1.1-hitachi
adam@0 662 os=-hiuxwe2
adam@0 663 ;;
adam@0 664 h8300hms)
adam@0 665 basic_machine=h8300-hitachi
adam@0 666 os=-hms
adam@0 667 ;;
adam@0 668 h8300xray)
adam@0 669 basic_machine=h8300-hitachi
adam@0 670 os=-xray
adam@0 671 ;;
adam@0 672 h8500hms)
adam@0 673 basic_machine=h8500-hitachi
adam@0 674 os=-hms
adam@0 675 ;;
adam@0 676 harris)
adam@0 677 basic_machine=m88k-harris
adam@0 678 os=-sysv3
adam@0 679 ;;
adam@0 680 hp300-*)
adam@0 681 basic_machine=m68k-hp
adam@0 682 ;;
adam@0 683 hp300bsd)
adam@0 684 basic_machine=m68k-hp
adam@0 685 os=-bsd
adam@0 686 ;;
adam@0 687 hp300hpux)
adam@0 688 basic_machine=m68k-hp
adam@0 689 os=-hpux
adam@0 690 ;;
adam@0 691 hp3k9[0-9][0-9] | hp9[0-9][0-9])
adam@0 692 basic_machine=hppa1.0-hp
adam@0 693 ;;
adam@0 694 hp9k2[0-9][0-9] | hp9k31[0-9])
adam@0 695 basic_machine=m68000-hp
adam@0 696 ;;
adam@0 697 hp9k3[2-9][0-9])
adam@0 698 basic_machine=m68k-hp
adam@0 699 ;;
adam@0 700 hp9k6[0-9][0-9] | hp6[0-9][0-9])
adam@0 701 basic_machine=hppa1.0-hp
adam@0 702 ;;
adam@0 703 hp9k7[0-79][0-9] | hp7[0-79][0-9])
adam@0 704 basic_machine=hppa1.1-hp
adam@0 705 ;;
adam@0 706 hp9k78[0-9] | hp78[0-9])
adam@0 707 # FIXME: really hppa2.0-hp
adam@0 708 basic_machine=hppa1.1-hp
adam@0 709 ;;
adam@0 710 hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
adam@0 711 # FIXME: really hppa2.0-hp
adam@0 712 basic_machine=hppa1.1-hp
adam@0 713 ;;
adam@0 714 hp9k8[0-9][13679] | hp8[0-9][13679])
adam@0 715 basic_machine=hppa1.1-hp
adam@0 716 ;;
adam@0 717 hp9k8[0-9][0-9] | hp8[0-9][0-9])
adam@0 718 basic_machine=hppa1.0-hp
adam@0 719 ;;
adam@0 720 hppa-next)
adam@0 721 os=-nextstep3
adam@0 722 ;;
adam@0 723 hppaosf)
adam@0 724 basic_machine=hppa1.1-hp
adam@0 725 os=-osf
adam@0 726 ;;
adam@0 727 hppro)
adam@0 728 basic_machine=hppa1.1-hp
adam@0 729 os=-proelf
adam@0 730 ;;
adam@0 731 i370-ibm* | ibm*)
adam@0 732 basic_machine=i370-ibm
adam@0 733 ;;
adam@0 734 i*86v32)
adam@0 735 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
adam@0 736 os=-sysv32
adam@0 737 ;;
adam@0 738 i*86v4*)
adam@0 739 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
adam@0 740 os=-sysv4
adam@0 741 ;;
adam@0 742 i*86v)
adam@0 743 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
adam@0 744 os=-sysv
adam@0 745 ;;
adam@0 746 i*86sol2)
adam@0 747 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
adam@0 748 os=-solaris2
adam@0 749 ;;
adam@0 750 i386mach)
adam@0 751 basic_machine=i386-mach
adam@0 752 os=-mach
adam@0 753 ;;
adam@0 754 i386-vsta | vsta)
adam@0 755 basic_machine=i386-unknown
adam@0 756 os=-vsta
adam@0 757 ;;
adam@0 758 iris | iris4d)
adam@0 759 basic_machine=mips-sgi
adam@0 760 case $os in
adam@0 761 -irix*)
adam@0 762 ;;
adam@0 763 *)
adam@0 764 os=-irix4
adam@0 765 ;;
adam@0 766 esac
adam@0 767 ;;
adam@0 768 isi68 | isi)
adam@0 769 basic_machine=m68k-isi
adam@0 770 os=-sysv
adam@0 771 ;;
adam@0 772 m68knommu)
adam@0 773 basic_machine=m68k-unknown
adam@0 774 os=-linux
adam@0 775 ;;
adam@0 776 m68knommu-*)
adam@0 777 basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
adam@0 778 os=-linux
adam@0 779 ;;
adam@0 780 m88k-omron*)
adam@0 781 basic_machine=m88k-omron
adam@0 782 ;;
adam@0 783 magnum | m3230)
adam@0 784 basic_machine=mips-mips
adam@0 785 os=-sysv
adam@0 786 ;;
adam@0 787 merlin)
adam@0 788 basic_machine=ns32k-utek
adam@0 789 os=-sysv
adam@0 790 ;;
adam@12 791 microblaze)
adam@0 792 basic_machine=microblaze-xilinx
adam@0 793 ;;
adam@0 794 mingw32)
adam@0 795 basic_machine=i386-pc
adam@0 796 os=-mingw32
adam@0 797 ;;
adam@0 798 mingw32ce)
adam@0 799 basic_machine=arm-unknown
adam@0 800 os=-mingw32ce
adam@0 801 ;;
adam@0 802 miniframe)
adam@0 803 basic_machine=m68000-convergent
adam@0 804 ;;
adam@0 805 *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
adam@0 806 basic_machine=m68k-atari
adam@0 807 os=-mint
adam@0 808 ;;
adam@0 809 mips3*-*)
adam@0 810 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
adam@0 811 ;;
adam@0 812 mips3*)
adam@0 813 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
adam@0 814 ;;
adam@0 815 monitor)
adam@0 816 basic_machine=m68k-rom68k
adam@0 817 os=-coff
adam@0 818 ;;
adam@0 819 morphos)
adam@0 820 basic_machine=powerpc-unknown
adam@0 821 os=-morphos
adam@0 822 ;;
adam@0 823 msdos)
adam@0 824 basic_machine=i386-pc
adam@0 825 os=-msdos
adam@0 826 ;;
adam@0 827 ms1-*)
adam@0 828 basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
adam@0 829 ;;
adam@20 830 msys)
adam@20 831 basic_machine=i386-pc
adam@20 832 os=-msys
adam@20 833 ;;
adam@0 834 mvs)
adam@0 835 basic_machine=i370-ibm
adam@0 836 os=-mvs
adam@0 837 ;;
adam@20 838 nacl)
adam@20 839 basic_machine=le32-unknown
adam@20 840 os=-nacl
adam@20 841 ;;
adam@0 842 ncr3000)
adam@0 843 basic_machine=i486-ncr
adam@0 844 os=-sysv4
adam@0 845 ;;
adam@0 846 netbsd386)
adam@0 847 basic_machine=i386-unknown
adam@0 848 os=-netbsd
adam@0 849 ;;
adam@0 850 netwinder)
adam@0 851 basic_machine=armv4l-rebel
adam@0 852 os=-linux
adam@0 853 ;;
adam@0 854 news | news700 | news800 | news900)
adam@0 855 basic_machine=m68k-sony
adam@0 856 os=-newsos
adam@0 857 ;;
adam@0 858 news1000)
adam@0 859 basic_machine=m68030-sony
adam@0 860 os=-newsos
adam@0 861 ;;
adam@0 862 news-3600 | risc-news)
adam@0 863 basic_machine=mips-sony
adam@0 864 os=-newsos
adam@0 865 ;;
adam@0 866 necv70)
adam@0 867 basic_machine=v70-nec
adam@0 868 os=-sysv
adam@0 869 ;;
adam@0 870 next | m*-next )
adam@0 871 basic_machine=m68k-next
adam@0 872 case $os in
adam@0 873 -nextstep* )
adam@0 874 ;;
adam@0 875 -ns2*)
adam@0 876 os=-nextstep2
adam@0 877 ;;
adam@0 878 *)
adam@0 879 os=-nextstep3
adam@0 880 ;;
adam@0 881 esac
adam@0 882 ;;
adam@0 883 nh3000)
adam@0 884 basic_machine=m68k-harris
adam@0 885 os=-cxux
adam@0 886 ;;
adam@0 887 nh[45]000)
adam@0 888 basic_machine=m88k-harris
adam@0 889 os=-cxux
adam@0 890 ;;
adam@0 891 nindy960)
adam@0 892 basic_machine=i960-intel
adam@0 893 os=-nindy
adam@0 894 ;;
adam@0 895 mon960)
adam@0 896 basic_machine=i960-intel
adam@0 897 os=-mon960
adam@0 898 ;;
adam@0 899 nonstopux)
adam@0 900 basic_machine=mips-compaq
adam@0 901 os=-nonstopux
adam@0 902 ;;
adam@0 903 np1)
adam@0 904 basic_machine=np1-gould
adam@0 905 ;;
adam@12 906 neo-tandem)
adam@12 907 basic_machine=neo-tandem
adam@12 908 ;;
adam@12 909 nse-tandem)
adam@12 910 basic_machine=nse-tandem
adam@12 911 ;;
adam@0 912 nsr-tandem)
adam@0 913 basic_machine=nsr-tandem
adam@0 914 ;;
adam@0 915 op50n-* | op60c-*)
adam@0 916 basic_machine=hppa1.1-oki
adam@0 917 os=-proelf
adam@0 918 ;;
adam@0 919 openrisc | openrisc-*)
adam@0 920 basic_machine=or32-unknown
adam@0 921 ;;
adam@0 922 os400)
adam@0 923 basic_machine=powerpc-ibm
adam@0 924 os=-os400
adam@0 925 ;;
adam@0 926 OSE68000 | ose68000)
adam@0 927 basic_machine=m68000-ericsson
adam@0 928 os=-ose
adam@0 929 ;;
adam@0 930 os68k)
adam@0 931 basic_machine=m68k-none
adam@0 932 os=-os68k
adam@0 933 ;;
adam@0 934 pa-hitachi)
adam@0 935 basic_machine=hppa1.1-hitachi
adam@0 936 os=-hiuxwe2
adam@0 937 ;;
adam@0 938 paragon)
adam@0 939 basic_machine=i860-intel
adam@0 940 os=-osf
adam@0 941 ;;
adam@0 942 parisc)
adam@0 943 basic_machine=hppa-unknown
adam@0 944 os=-linux
adam@0 945 ;;
adam@0 946 parisc-*)
adam@0 947 basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
adam@0 948 os=-linux
adam@0 949 ;;
adam@0 950 pbd)
adam@0 951 basic_machine=sparc-tti
adam@0 952 ;;
adam@0 953 pbb)
adam@0 954 basic_machine=m68k-tti
adam@0 955 ;;
adam@0 956 pc532 | pc532-*)
adam@0 957 basic_machine=ns32k-pc532
adam@0 958 ;;
adam@0 959 pc98)
adam@0 960 basic_machine=i386-pc
adam@0 961 ;;
adam@0 962 pc98-*)
adam@0 963 basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
adam@0 964 ;;
adam@0 965 pentium | p5 | k5 | k6 | nexgen | viac3)
adam@0 966 basic_machine=i586-pc
adam@0 967 ;;
adam@0 968 pentiumpro | p6 | 6x86 | athlon | athlon_*)
adam@0 969 basic_machine=i686-pc
adam@0 970 ;;
adam@0 971 pentiumii | pentium2 | pentiumiii | pentium3)
adam@0 972 basic_machine=i686-pc
adam@0 973 ;;
adam@0 974 pentium4)
adam@0 975 basic_machine=i786-pc
adam@0 976 ;;
adam@0 977 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
adam@0 978 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
adam@0 979 ;;
adam@0 980 pentiumpro-* | p6-* | 6x86-* | athlon-*)
adam@0 981 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
adam@0 982 ;;
adam@0 983 pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
adam@0 984 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
adam@0 985 ;;
adam@0 986 pentium4-*)
adam@0 987 basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
adam@0 988 ;;
adam@0 989 pn)
adam@0 990 basic_machine=pn-gould
adam@0 991 ;;
adam@0 992 power) basic_machine=power-ibm
adam@0 993 ;;
adam@12 994 ppc | ppcbe) basic_machine=powerpc-unknown
adam@0 995 ;;
adam@12 996 ppc-* | ppcbe-*)
adam@12 997 basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
adam@0 998 ;;
adam@0 999 ppcle | powerpclittle | ppc-le | powerpc-little)
adam@0 1000 basic_machine=powerpcle-unknown
adam@0 1001 ;;
adam@0 1002 ppcle-* | powerpclittle-*)
adam@0 1003 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
adam@0 1004 ;;
adam@0 1005 ppc64) basic_machine=powerpc64-unknown
adam@0 1006 ;;
adam@0 1007 ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
adam@0 1008 ;;
adam@0 1009 ppc64le | powerpc64little | ppc64-le | powerpc64-little)
adam@0 1010 basic_machine=powerpc64le-unknown
adam@0 1011 ;;
adam@0 1012 ppc64le-* | powerpc64little-*)
adam@0 1013 basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
adam@0 1014 ;;
adam@0 1015 ps2)
adam@0 1016 basic_machine=i386-ibm
adam@0 1017 ;;
adam@0 1018 pw32)
adam@0 1019 basic_machine=i586-unknown
adam@0 1020 os=-pw32
adam@0 1021 ;;
adam@0 1022 rdos)
adam@0 1023 basic_machine=i386-pc
adam@0 1024 os=-rdos
adam@0 1025 ;;
adam@0 1026 rom68k)
adam@0 1027 basic_machine=m68k-rom68k
adam@0 1028 os=-coff
adam@0 1029 ;;
adam@0 1030 rm[46]00)
adam@0 1031 basic_machine=mips-siemens
adam@0 1032 ;;
adam@0 1033 rtpc | rtpc-*)
adam@0 1034 basic_machine=romp-ibm
adam@0 1035 ;;
adam@0 1036 s390 | s390-*)
adam@0 1037 basic_machine=s390-ibm
adam@0 1038 ;;
adam@0 1039 s390x | s390x-*)
adam@0 1040 basic_machine=s390x-ibm
adam@0 1041 ;;
adam@0 1042 sa29200)
adam@0 1043 basic_machine=a29k-amd
adam@0 1044 os=-udi
adam@0 1045 ;;
adam@0 1046 sb1)
adam@0 1047 basic_machine=mipsisa64sb1-unknown
adam@0 1048 ;;
adam@0 1049 sb1el)
adam@0 1050 basic_machine=mipsisa64sb1el-unknown
adam@0 1051 ;;
adam@0 1052 sde)
adam@0 1053 basic_machine=mipsisa32-sde
adam@0 1054 os=-elf
adam@0 1055 ;;
adam@0 1056 sei)
adam@0 1057 basic_machine=mips-sei
adam@0 1058 os=-seiux
adam@0 1059 ;;
adam@0 1060 sequent)
adam@0 1061 basic_machine=i386-sequent
adam@0 1062 ;;
adam@0 1063 sh)
adam@0 1064 basic_machine=sh-hitachi
adam@0 1065 os=-hms
adam@0 1066 ;;
adam@0 1067 sh5el)
adam@0 1068 basic_machine=sh5le-unknown
adam@0 1069 ;;
adam@0 1070 sh64)
adam@0 1071 basic_machine=sh64-unknown
adam@0 1072 ;;
adam@0 1073 sparclite-wrs | simso-wrs)
adam@0 1074 basic_machine=sparclite-wrs
adam@0 1075 os=-vxworks
adam@0 1076 ;;
adam@0 1077 sps7)
adam@0 1078 basic_machine=m68k-bull
adam@0 1079 os=-sysv2
adam@0 1080 ;;
adam@0 1081 spur)
adam@0 1082 basic_machine=spur-unknown
adam@0 1083 ;;
adam@0 1084 st2000)
adam@0 1085 basic_machine=m68k-tandem
adam@0 1086 ;;
adam@0 1087 stratus)
adam@0 1088 basic_machine=i860-stratus
adam@0 1089 os=-sysv4
adam@0 1090 ;;
adam@12 1091 strongarm-* | thumb-*)
adam@12 1092 basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
adam@12 1093 ;;
adam@0 1094 sun2)
adam@0 1095 basic_machine=m68000-sun
adam@0 1096 ;;
adam@0 1097 sun2os3)
adam@0 1098 basic_machine=m68000-sun
adam@0 1099 os=-sunos3
adam@0 1100 ;;
adam@0 1101 sun2os4)
adam@0 1102 basic_machine=m68000-sun
adam@0 1103 os=-sunos4
adam@0 1104 ;;
adam@0 1105 sun3os3)
adam@0 1106 basic_machine=m68k-sun
adam@0 1107 os=-sunos3
adam@0 1108 ;;
adam@0 1109 sun3os4)
adam@0 1110 basic_machine=m68k-sun
adam@0 1111 os=-sunos4
adam@0 1112 ;;
adam@0 1113 sun4os3)
adam@0 1114 basic_machine=sparc-sun
adam@0 1115 os=-sunos3
adam@0 1116 ;;
adam@0 1117 sun4os4)
adam@0 1118 basic_machine=sparc-sun
adam@0 1119 os=-sunos4
adam@0 1120 ;;
adam@0 1121 sun4sol2)
adam@0 1122 basic_machine=sparc-sun
adam@0 1123 os=-solaris2
adam@0 1124 ;;
adam@0 1125 sun3 | sun3-*)
adam@0 1126 basic_machine=m68k-sun
adam@0 1127 ;;
adam@0 1128 sun4)
adam@0 1129 basic_machine=sparc-sun
adam@0 1130 ;;
adam@0 1131 sun386 | sun386i | roadrunner)
adam@0 1132 basic_machine=i386-sun
adam@0 1133 ;;
adam@0 1134 sv1)
adam@0 1135 basic_machine=sv1-cray
adam@0 1136 os=-unicos
adam@0 1137 ;;
adam@0 1138 symmetry)
adam@0 1139 basic_machine=i386-sequent
adam@0 1140 os=-dynix
adam@0 1141 ;;
adam@0 1142 t3e)
adam@0 1143 basic_machine=alphaev5-cray
adam@0 1144 os=-unicos
adam@0 1145 ;;
adam@0 1146 t90)
adam@0 1147 basic_machine=t90-cray
adam@0 1148 os=-unicos
adam@0 1149 ;;
adam@0 1150 tile*)
adam@20 1151 basic_machine=$basic_machine-unknown
adam@0 1152 os=-linux-gnu
adam@0 1153 ;;
adam@0 1154 tx39)
adam@0 1155 basic_machine=mipstx39-unknown
adam@0 1156 ;;
adam@0 1157 tx39el)
adam@0 1158 basic_machine=mipstx39el-unknown
adam@0 1159 ;;
adam@0 1160 toad1)
adam@0 1161 basic_machine=pdp10-xkl
adam@0 1162 os=-tops20
adam@0 1163 ;;
adam@0 1164 tower | tower-32)
adam@0 1165 basic_machine=m68k-ncr
adam@0 1166 ;;
adam@0 1167 tpf)
adam@0 1168 basic_machine=s390x-ibm
adam@0 1169 os=-tpf
adam@0 1170 ;;
adam@0 1171 udi29k)
adam@0 1172 basic_machine=a29k-amd
adam@0 1173 os=-udi
adam@0 1174 ;;
adam@0 1175 ultra3)
adam@0 1176 basic_machine=a29k-nyu
adam@0 1177 os=-sym1
adam@0 1178 ;;
adam@0 1179 v810 | necv810)
adam@0 1180 basic_machine=v810-nec
adam@0 1181 os=-none
adam@0 1182 ;;
adam@0 1183 vaxv)
adam@0 1184 basic_machine=vax-dec
adam@0 1185 os=-sysv
adam@0 1186 ;;
adam@0 1187 vms)
adam@0 1188 basic_machine=vax-dec
adam@0 1189 os=-vms
adam@0 1190 ;;
adam@0 1191 vpp*|vx|vx-*)
adam@0 1192 basic_machine=f301-fujitsu
adam@0 1193 ;;
adam@0 1194 vxworks960)
adam@0 1195 basic_machine=i960-wrs
adam@0 1196 os=-vxworks
adam@0 1197 ;;
adam@0 1198 vxworks68)
adam@0 1199 basic_machine=m68k-wrs
adam@0 1200 os=-vxworks
adam@0 1201 ;;
adam@0 1202 vxworks29k)
adam@0 1203 basic_machine=a29k-wrs
adam@0 1204 os=-vxworks
adam@0 1205 ;;
adam@0 1206 w65*)
adam@0 1207 basic_machine=w65-wdc
adam@0 1208 os=-none
adam@0 1209 ;;
adam@0 1210 w89k-*)
adam@0 1211 basic_machine=hppa1.1-winbond
adam@0 1212 os=-proelf
adam@0 1213 ;;
adam@0 1214 xbox)
adam@0 1215 basic_machine=i686-pc
adam@0 1216 os=-mingw32
adam@0 1217 ;;
adam@0 1218 xps | xps100)
adam@0 1219 basic_machine=xps100-honeywell
adam@0 1220 ;;
adam@12 1221 xscale-* | xscalee[bl]-*)
adam@12 1222 basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
adam@12 1223 ;;
adam@0 1224 ymp)
adam@0 1225 basic_machine=ymp-cray
adam@0 1226 os=-unicos
adam@0 1227 ;;
adam@0 1228 z8k-*-coff)
adam@0 1229 basic_machine=z8k-unknown
adam@0 1230 os=-sim
adam@0 1231 ;;
adam@0 1232 z80-*-coff)
adam@0 1233 basic_machine=z80-unknown
adam@0 1234 os=-sim
adam@0 1235 ;;
adam@0 1236 none)
adam@0 1237 basic_machine=none-none
adam@0 1238 os=-none
adam@0 1239 ;;
adam@0 1240
adam@0 1241 # Here we handle the default manufacturer of certain CPU types. It is in
adam@0 1242 # some cases the only manufacturer, in others, it is the most popular.
adam@0 1243 w89k)
adam@0 1244 basic_machine=hppa1.1-winbond
adam@0 1245 ;;
adam@0 1246 op50n)
adam@0 1247 basic_machine=hppa1.1-oki
adam@0 1248 ;;
adam@0 1249 op60c)
adam@0 1250 basic_machine=hppa1.1-oki
adam@0 1251 ;;
adam@0 1252 romp)
adam@0 1253 basic_machine=romp-ibm
adam@0 1254 ;;
adam@0 1255 mmix)
adam@0 1256 basic_machine=mmix-knuth
adam@0 1257 ;;
adam@0 1258 rs6000)
adam@0 1259 basic_machine=rs6000-ibm
adam@0 1260 ;;
adam@0 1261 vax)
adam@0 1262 basic_machine=vax-dec
adam@0 1263 ;;
adam@0 1264 pdp10)
adam@0 1265 # there are many clones, so DEC is not a safe bet
adam@0 1266 basic_machine=pdp10-unknown
adam@0 1267 ;;
adam@0 1268 pdp11)
adam@0 1269 basic_machine=pdp11-dec
adam@0 1270 ;;
adam@0 1271 we32k)
adam@0 1272 basic_machine=we32k-att
adam@0 1273 ;;
adam@0 1274 sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
adam@0 1275 basic_machine=sh-unknown
adam@0 1276 ;;
adam@0 1277 sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
adam@0 1278 basic_machine=sparc-sun
adam@0 1279 ;;
adam@0 1280 cydra)
adam@0 1281 basic_machine=cydra-cydrome
adam@0 1282 ;;
adam@0 1283 orion)
adam@0 1284 basic_machine=orion-highlevel
adam@0 1285 ;;
adam@0 1286 orion105)
adam@0 1287 basic_machine=clipper-highlevel
adam@0 1288 ;;
adam@0 1289 mac | mpw | mac-mpw)
adam@0 1290 basic_machine=m68k-apple
adam@0 1291 ;;
adam@0 1292 pmac | pmac-mpw)
adam@0 1293 basic_machine=powerpc-apple
adam@0 1294 ;;
adam@0 1295 *-unknown)
adam@0 1296 # Make sure to match an already-canonicalized machine name.
adam@0 1297 ;;
adam@0 1298 *)
adam@0 1299 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
adam@0 1300 exit 1
adam@0 1301 ;;
adam@0 1302 esac
adam@0 1303
adam@0 1304 # Here we canonicalize certain aliases for manufacturers.
adam@0 1305 case $basic_machine in
adam@0 1306 *-digital*)
adam@0 1307 basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
adam@0 1308 ;;
adam@0 1309 *-commodore*)
adam@0 1310 basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
adam@0 1311 ;;
adam@0 1312 *)
adam@0 1313 ;;
adam@0 1314 esac
adam@0 1315
adam@0 1316 # Decode manufacturer-specific aliases for certain operating systems.
adam@0 1317
adam@0 1318 if [ x"$os" != x"" ]
adam@0 1319 then
adam@0 1320 case $os in
adam@12 1321 # First match some system type aliases
adam@12 1322 # that might get confused with valid system types.
adam@0 1323 # -solaris* is a basic system type, with this one exception.
adam@12 1324 -auroraux)
adam@12 1325 os=-auroraux
adam@0 1326 ;;
adam@0 1327 -solaris1 | -solaris1.*)
adam@0 1328 os=`echo $os | sed -e 's|solaris1|sunos4|'`
adam@0 1329 ;;
adam@0 1330 -solaris)
adam@0 1331 os=-solaris2
adam@0 1332 ;;
adam@0 1333 -svr4*)
adam@0 1334 os=-sysv4
adam@0 1335 ;;
adam@0 1336 -unixware*)
adam@0 1337 os=-sysv4.2uw
adam@0 1338 ;;
adam@0 1339 -gnu/linux*)
adam@0 1340 os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
adam@0 1341 ;;
adam@0 1342 # First accept the basic system types.
adam@0 1343 # The portable systems comes first.
adam@0 1344 # Each alternative MUST END IN A *, to match a version number.
adam@0 1345 # -sysv* is not here because it comes later, after sysvr4.
adam@0 1346 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
adam@0 1347 | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
adam@0 1348 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
adam@0 1349 | -sym* | -kopensolaris* \
adam@0 1350 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
adam@0 1351 | -aos* | -aros* \
adam@0 1352 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
adam@0 1353 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
adam@0 1354 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
adam@0 1355 | -openbsd* | -solidbsd* \
adam@0 1356 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
adam@0 1357 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
adam@0 1358 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
adam@0 1359 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
adam@0 1360 | -chorusos* | -chorusrdb* | -cegcc* \
adam@20 1361 | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
adam@12 1362 | -mingw32* | -linux-gnu* | -linux-android* \
adam@12 1363 | -linux-newlib* | -linux-uclibc* \
adam@0 1364 | -uxpv* | -beos* | -mpeix* | -udk* \
adam@0 1365 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
adam@0 1366 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
adam@0 1367 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
adam@0 1368 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
adam@0 1369 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
adam@0 1370 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
adam@0 1371 | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
adam@0 1372 # Remember, each alternative MUST END IN *, to match a version number.
adam@0 1373 ;;
adam@0 1374 -qnx*)
adam@0 1375 case $basic_machine in
adam@0 1376 x86-* | i*86-*)
adam@0 1377 ;;
adam@0 1378 *)
adam@0 1379 os=-nto$os
adam@0 1380 ;;
adam@0 1381 esac
adam@0 1382 ;;
adam@0 1383 -nto-qnx*)
adam@0 1384 ;;
adam@0 1385 -nto*)
adam@0 1386 os=`echo $os | sed -e 's|nto|nto-qnx|'`
adam@0 1387 ;;
adam@0 1388 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
adam@0 1389 | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
adam@0 1390 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
adam@0 1391 ;;
adam@0 1392 -mac*)
adam@0 1393 os=`echo $os | sed -e 's|mac|macos|'`
adam@0 1394 ;;
adam@0 1395 -linux-dietlibc)
adam@0 1396 os=-linux-dietlibc
adam@0 1397 ;;
adam@0 1398 -linux*)
adam@0 1399 os=`echo $os | sed -e 's|linux|linux-gnu|'`
adam@0 1400 ;;
adam@0 1401 -sunos5*)
adam@0 1402 os=`echo $os | sed -e 's|sunos5|solaris2|'`
adam@0 1403 ;;
adam@0 1404 -sunos6*)
adam@0 1405 os=`echo $os | sed -e 's|sunos6|solaris3|'`
adam@0 1406 ;;
adam@0 1407 -opened*)
adam@0 1408 os=-openedition
adam@0 1409 ;;
adam@12 1410 -os400*)
adam@0 1411 os=-os400
adam@0 1412 ;;
adam@0 1413 -wince*)
adam@0 1414 os=-wince
adam@0 1415 ;;
adam@0 1416 -osfrose*)
adam@0 1417 os=-osfrose
adam@0 1418 ;;
adam@0 1419 -osf*)
adam@0 1420 os=-osf
adam@0 1421 ;;
adam@0 1422 -utek*)
adam@0 1423 os=-bsd
adam@0 1424 ;;
adam@0 1425 -dynix*)
adam@0 1426 os=-bsd
adam@0 1427 ;;
adam@0 1428 -acis*)
adam@0 1429 os=-aos
adam@0 1430 ;;
adam@0 1431 -atheos*)
adam@0 1432 os=-atheos
adam@0 1433 ;;
adam@0 1434 -syllable*)
adam@0 1435 os=-syllable
adam@0 1436 ;;
adam@0 1437 -386bsd)
adam@0 1438 os=-bsd
adam@0 1439 ;;
adam@0 1440 -ctix* | -uts*)
adam@0 1441 os=-sysv
adam@0 1442 ;;
adam@0 1443 -nova*)
adam@0 1444 os=-rtmk-nova
adam@0 1445 ;;
adam@0 1446 -ns2 )
adam@0 1447 os=-nextstep2
adam@0 1448 ;;
adam@0 1449 -nsk*)
adam@0 1450 os=-nsk
adam@0 1451 ;;
adam@0 1452 # Preserve the version number of sinix5.
adam@0 1453 -sinix5.*)
adam@0 1454 os=`echo $os | sed -e 's|sinix|sysv|'`
adam@0 1455 ;;
adam@0 1456 -sinix*)
adam@0 1457 os=-sysv4
adam@0 1458 ;;
adam@12 1459 -tpf*)
adam@0 1460 os=-tpf
adam@0 1461 ;;
adam@0 1462 -triton*)
adam@0 1463 os=-sysv3
adam@0 1464 ;;
adam@0 1465 -oss*)
adam@0 1466 os=-sysv3
adam@0 1467 ;;
adam@0 1468 -svr4)
adam@0 1469 os=-sysv4
adam@0 1470 ;;
adam@0 1471 -svr3)
adam@0 1472 os=-sysv3
adam@0 1473 ;;
adam@0 1474 -sysvr4)
adam@0 1475 os=-sysv4
adam@0 1476 ;;
adam@0 1477 # This must come after -sysvr4.
adam@0 1478 -sysv*)
adam@0 1479 ;;
adam@0 1480 -ose*)
adam@0 1481 os=-ose
adam@0 1482 ;;
adam@0 1483 -es1800*)
adam@0 1484 os=-ose
adam@0 1485 ;;
adam@0 1486 -xenix)
adam@0 1487 os=-xenix
adam@0 1488 ;;
adam@0 1489 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
adam@0 1490 os=-mint
adam@0 1491 ;;
adam@0 1492 -aros*)
adam@0 1493 os=-aros
adam@0 1494 ;;
adam@0 1495 -kaos*)
adam@0 1496 os=-kaos
adam@0 1497 ;;
adam@0 1498 -zvmoe)
adam@0 1499 os=-zvmoe
adam@0 1500 ;;
adam@0 1501 -dicos*)
adam@0 1502 os=-dicos
adam@0 1503 ;;
adam@12 1504 -nacl*)
adam@12 1505 ;;
adam@0 1506 -none)
adam@0 1507 ;;
adam@0 1508 *)
adam@0 1509 # Get rid of the `-' at the beginning of $os.
adam@0 1510 os=`echo $os | sed 's/[^-]*-//'`
adam@0 1511 echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
adam@0 1512 exit 1
adam@0 1513 ;;
adam@0 1514 esac
adam@0 1515 else
adam@0 1516
adam@0 1517 # Here we handle the default operating systems that come with various machines.
adam@0 1518 # The value should be what the vendor currently ships out the door with their
adam@0 1519 # machine or put another way, the most popular os provided with the machine.
adam@0 1520
adam@0 1521 # Note that if you're going to try to match "-MANUFACTURER" here (say,
adam@0 1522 # "-sun"), then you have to tell the case statement up towards the top
adam@0 1523 # that MANUFACTURER isn't an operating system. Otherwise, code above
adam@0 1524 # will signal an error saying that MANUFACTURER isn't an operating
adam@0 1525 # system, and we'll never get to this point.
adam@0 1526
adam@0 1527 case $basic_machine in
adam@12 1528 score-*)
adam@0 1529 os=-elf
adam@0 1530 ;;
adam@12 1531 spu-*)
adam@0 1532 os=-elf
adam@0 1533 ;;
adam@0 1534 *-acorn)
adam@0 1535 os=-riscix1.2
adam@0 1536 ;;
adam@0 1537 arm*-rebel)
adam@0 1538 os=-linux
adam@0 1539 ;;
adam@0 1540 arm*-semi)
adam@0 1541 os=-aout
adam@0 1542 ;;
adam@12 1543 c4x-* | tic4x-*)
adam@12 1544 os=-coff
adam@12 1545 ;;
adam@20 1546 hexagon-*)
adam@20 1547 os=-elf
adam@20 1548 ;;
adam@12 1549 tic54x-*)
adam@12 1550 os=-coff
adam@12 1551 ;;
adam@12 1552 tic55x-*)
adam@12 1553 os=-coff
adam@12 1554 ;;
adam@12 1555 tic6x-*)
adam@12 1556 os=-coff
adam@0 1557 ;;
adam@0 1558 # This must come before the *-dec entry.
adam@0 1559 pdp10-*)
adam@0 1560 os=-tops20
adam@0 1561 ;;
adam@0 1562 pdp11-*)
adam@0 1563 os=-none
adam@0 1564 ;;
adam@0 1565 *-dec | vax-*)
adam@0 1566 os=-ultrix4.2
adam@0 1567 ;;
adam@0 1568 m68*-apollo)
adam@0 1569 os=-domain
adam@0 1570 ;;
adam@0 1571 i386-sun)
adam@0 1572 os=-sunos4.0.2
adam@0 1573 ;;
adam@0 1574 m68000-sun)
adam@0 1575 os=-sunos3
adam@0 1576 ;;
adam@0 1577 m68*-cisco)
adam@0 1578 os=-aout
adam@0 1579 ;;
adam@12 1580 mep-*)
adam@0 1581 os=-elf
adam@0 1582 ;;
adam@0 1583 mips*-cisco)
adam@0 1584 os=-elf
adam@0 1585 ;;
adam@0 1586 mips*-*)
adam@0 1587 os=-elf
adam@0 1588 ;;
adam@0 1589 or32-*)
adam@0 1590 os=-coff
adam@0 1591 ;;
adam@0 1592 *-tti) # must be before sparc entry or we get the wrong os.
adam@0 1593 os=-sysv3
adam@0 1594 ;;
adam@0 1595 sparc-* | *-sun)
adam@0 1596 os=-sunos4.1.1
adam@0 1597 ;;
adam@0 1598 *-be)
adam@0 1599 os=-beos
adam@0 1600 ;;
adam@0 1601 *-haiku)
adam@0 1602 os=-haiku
adam@0 1603 ;;
adam@0 1604 *-ibm)
adam@0 1605 os=-aix
adam@0 1606 ;;
adam@12 1607 *-knuth)
adam@0 1608 os=-mmixware
adam@0 1609 ;;
adam@0 1610 *-wec)
adam@0 1611 os=-proelf
adam@0 1612 ;;
adam@0 1613 *-winbond)
adam@0 1614 os=-proelf
adam@0 1615 ;;
adam@0 1616 *-oki)
adam@0 1617 os=-proelf
adam@0 1618 ;;
adam@0 1619 *-hp)
adam@0 1620 os=-hpux
adam@0 1621 ;;
adam@0 1622 *-hitachi)
adam@0 1623 os=-hiux
adam@0 1624 ;;
adam@0 1625 i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
adam@0 1626 os=-sysv
adam@0 1627 ;;
adam@0 1628 *-cbm)
adam@0 1629 os=-amigaos
adam@0 1630 ;;
adam@0 1631 *-dg)
adam@0 1632 os=-dgux
adam@0 1633 ;;
adam@0 1634 *-dolphin)
adam@0 1635 os=-sysv3
adam@0 1636 ;;
adam@0 1637 m68k-ccur)
adam@0 1638 os=-rtu
adam@0 1639 ;;
adam@0 1640 m88k-omron*)
adam@0 1641 os=-luna
adam@0 1642 ;;
adam@0 1643 *-next )
adam@0 1644 os=-nextstep
adam@0 1645 ;;
adam@0 1646 *-sequent)
adam@0 1647 os=-ptx
adam@0 1648 ;;
adam@0 1649 *-crds)
adam@0 1650 os=-unos
adam@0 1651 ;;
adam@0 1652 *-ns)
adam@0 1653 os=-genix
adam@0 1654 ;;
adam@0 1655 i370-*)
adam@0 1656 os=-mvs
adam@0 1657 ;;
adam@0 1658 *-next)
adam@0 1659 os=-nextstep3
adam@0 1660 ;;
adam@0 1661 *-gould)
adam@0 1662 os=-sysv
adam@0 1663 ;;
adam@0 1664 *-highlevel)
adam@0 1665 os=-bsd
adam@0 1666 ;;
adam@0 1667 *-encore)
adam@0 1668 os=-bsd
adam@0 1669 ;;
adam@0 1670 *-sgi)
adam@0 1671 os=-irix
adam@0 1672 ;;
adam@0 1673 *-siemens)
adam@0 1674 os=-sysv4
adam@0 1675 ;;
adam@0 1676 *-masscomp)
adam@0 1677 os=-rtu
adam@0 1678 ;;
adam@0 1679 f30[01]-fujitsu | f700-fujitsu)
adam@0 1680 os=-uxpv
adam@0 1681 ;;
adam@0 1682 *-rom68k)
adam@0 1683 os=-coff
adam@0 1684 ;;
adam@0 1685 *-*bug)
adam@0 1686 os=-coff
adam@0 1687 ;;
adam@0 1688 *-apple)
adam@0 1689 os=-macos
adam@0 1690 ;;
adam@0 1691 *-atari*)
adam@0 1692 os=-mint
adam@0 1693 ;;
adam@0 1694 *)
adam@0 1695 os=-none
adam@0 1696 ;;
adam@0 1697 esac
adam@0 1698 fi
adam@0 1699
adam@0 1700 # Here we handle the case where we know the os, and the CPU type, but not the
adam@0 1701 # manufacturer. We pick the logical manufacturer.
adam@0 1702 vendor=unknown
adam@0 1703 case $basic_machine in
adam@0 1704 *-unknown)
adam@0 1705 case $os in
adam@0 1706 -riscix*)
adam@0 1707 vendor=acorn
adam@0 1708 ;;
adam@0 1709 -sunos*)
adam@0 1710 vendor=sun
adam@0 1711 ;;
adam@0 1712 -cnk*|-aix*)
adam@0 1713 vendor=ibm
adam@0 1714 ;;
adam@0 1715 -beos*)
adam@0 1716 vendor=be
adam@0 1717 ;;
adam@0 1718 -hpux*)
adam@0 1719 vendor=hp
adam@0 1720 ;;
adam@0 1721 -mpeix*)
adam@0 1722 vendor=hp
adam@0 1723 ;;
adam@0 1724 -hiux*)
adam@0 1725 vendor=hitachi
adam@0 1726 ;;
adam@0 1727 -unos*)
adam@0 1728 vendor=crds
adam@0 1729 ;;
adam@0 1730 -dgux*)
adam@0 1731 vendor=dg
adam@0 1732 ;;
adam@0 1733 -luna*)
adam@0 1734 vendor=omron
adam@0 1735 ;;
adam@0 1736 -genix*)
adam@0 1737 vendor=ns
adam@0 1738 ;;
adam@0 1739 -mvs* | -opened*)
adam@0 1740 vendor=ibm
adam@0 1741 ;;
adam@0 1742 -os400*)
adam@0 1743 vendor=ibm
adam@0 1744 ;;
adam@0 1745 -ptx*)
adam@0 1746 vendor=sequent
adam@0 1747 ;;
adam@0 1748 -tpf*)
adam@0 1749 vendor=ibm
adam@0 1750 ;;
adam@0 1751 -vxsim* | -vxworks* | -windiss*)
adam@0 1752 vendor=wrs
adam@0 1753 ;;
adam@0 1754 -aux*)
adam@0 1755 vendor=apple
adam@0 1756 ;;
adam@0 1757 -hms*)
adam@0 1758 vendor=hitachi
adam@0 1759 ;;
adam@0 1760 -mpw* | -macos*)
adam@0 1761 vendor=apple
adam@0 1762 ;;
adam@0 1763 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
adam@0 1764 vendor=atari
adam@0 1765 ;;
adam@0 1766 -vos*)
adam@0 1767 vendor=stratus
adam@0 1768 ;;
adam@0 1769 esac
adam@0 1770 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
adam@0 1771 ;;
adam@0 1772 esac
adam@0 1773
adam@0 1774 echo $basic_machine$os
adam@0 1775 exit
adam@0 1776
adam@0 1777 # Local variables:
adam@0 1778 # eval: (add-hook 'write-file-hooks 'time-stamp)
adam@0 1779 # time-stamp-start: "timestamp='"
adam@0 1780 # time-stamp-format: "%:y-%02m-%02d"
adam@0 1781 # time-stamp-end: "'"
adam@0 1782 # End: