annotate src/flac-1.2.1/config.sub @ 169:223a55898ab9 tip default

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