toolkit/crashreporter/google-breakpad/autotools/config.sub

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rwxr-xr-x

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

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

mercurial