annotate config.sub @ 57:748dd8a2e3a2

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