build/autoconf/config.sub

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rwxr-xr-x

Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.

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

mercurial