intl/icu/source/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
-rw-r--r--

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

mercurial