ohair@425: #! /bin/sh ohair@576: ohair@576: # ohair@576: # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. ohair@576: # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. ohair@576: # ohair@576: # This code is free software; you can redistribute it and/or modify it ohair@576: # under the terms of the GNU General Public License version 2 only, as ohair@576: # published by the Free Software Foundation. Oracle designates this ohair@576: # particular file as subject to the "Classpath" exception as provided ohair@576: # by Oracle in the LICENSE file that accompanied this code. ohair@576: # ohair@576: # This code is distributed in the hope that it will be useful, but WITHOUT ohair@576: # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or ohair@576: # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ohair@576: # version 2 for more details (a copy is included in the LICENSE file that ohair@576: # accompanied this code). ohair@576: # ohair@576: # You should have received a copy of the GNU General Public License version ohair@576: # 2 along with this work; if not, write to the Free Software Foundation, ohair@576: # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. ohair@576: # ohair@576: # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA ohair@576: # or visit www.oracle.com if you need additional information or have any ohair@576: # questions. ohair@576: # ohair@576: ohair@425: # Configuration validation subroutine script. ohair@425: # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, ohair@425: # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 ohair@425: # Free Software Foundation, Inc. ohair@425: ohair@425: timestamp='2008-01-16' ohair@425: ohair@425: # This file is (in principle) common to ALL GNU software. ohair@425: # The presence of a machine in this file suggests that SOME GNU software ohair@425: # can handle that machine. It does not imply ALL GNU software can. ohair@425: # ohair@425: # This file is free software; you can redistribute it and/or modify ohair@425: # it under the terms of the GNU General Public License as published by ohair@425: # the Free Software Foundation; either version 2 of the License, or ohair@425: # (at your option) any later version. ohair@425: # ohair@425: # This program is distributed in the hope that it will be useful, ohair@425: # but WITHOUT ANY WARRANTY; without even the implied warranty of ohair@425: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ohair@425: # GNU General Public License for more details. ohair@425: # ohair@425: # You should have received a copy of the GNU General Public License ohair@425: # along with this program; if not, write to the Free Software ohair@425: # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA ohair@425: # 02110-1301, USA. ohair@425: # ohair@425: # As a special exception to the GNU General Public License, if you ohair@425: # distribute this file as part of a program that contains a ohair@425: # configuration script generated by Autoconf, you may include it under ohair@425: # the same distribution terms that you use for the rest of that program. ohair@425: ohair@425: ohair@425: # Please send patches to . Submit a context ohair@425: # diff and a properly formatted ChangeLog entry. ohair@425: # ohair@425: # Configuration subroutine to validate and canonicalize a configuration type. ohair@425: # Supply the specified configuration type as an argument. ohair@425: # If it is invalid, we print an error message on stderr and exit with code 1. ohair@425: # Otherwise, we print the canonical config type on stdout and succeed. ohair@425: ohair@425: # This file is supposed to be the same for all GNU packages ohair@425: # and recognize all the CPU types, system types and aliases ohair@425: # that are meaningful with *any* GNU software. ohair@425: # Each package is responsible for reporting which valid configurations ohair@425: # it does not support. The user should be able to distinguish ohair@425: # a failure to support a valid configuration from a meaningless ohair@425: # configuration. ohair@425: ohair@425: # The goal of this file is to map all the various variations of a given ohair@425: # machine specification into a single specification in the form: ohair@425: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM ohair@425: # or in some cases, the newer four-part form: ohair@425: # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM ohair@425: # It is wrong to echo any other type of specification. ohair@425: ohair@425: me=`echo "$0" | sed -e 's,.*/,,'` ohair@425: ohair@425: usage="\ ohair@425: Usage: $0 [OPTION] CPU-MFR-OPSYS ohair@425: $0 [OPTION] ALIAS ohair@425: ohair@425: Canonicalize a configuration name. ohair@425: ohair@425: Operation modes: ohair@425: -h, --help print this help, then exit ohair@425: -t, --time-stamp print date of last modification, then exit ohair@425: -v, --version print version number, then exit ohair@425: ohair@425: Report bugs and patches to ." ohair@425: ohair@425: version="\ ohair@425: GNU config.sub ($timestamp) ohair@425: ohair@425: Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, ohair@425: 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. ohair@425: ohair@425: This is free software; see the source for copying conditions. There is NO ohair@425: warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." ohair@425: ohair@425: help=" ohair@425: Try \`$me --help' for more information." ohair@425: ohair@425: # Parse command line ohair@425: while test $# -gt 0 ; do ohair@425: case $1 in ohair@425: --time-stamp | --time* | -t ) ohair@425: echo "$timestamp" ; exit ;; ohair@425: --version | -v ) ohair@425: echo "$version" ; exit ;; ohair@425: --help | --h* | -h ) ohair@425: echo "$usage"; exit ;; ohair@425: -- ) # Stop option processing ohair@425: shift; break ;; ohair@425: - ) # Use stdin as input. ohair@425: break ;; ohair@425: -* ) ohair@425: echo "$me: invalid option $1$help" ohair@425: exit 1 ;; ohair@425: ohair@425: *local*) ohair@425: # First pass through any local machine types. ohair@425: echo $1 ohair@425: exit ;; ohair@425: ohair@425: * ) ohair@425: break ;; ohair@425: esac ohair@425: done ohair@425: ohair@425: case $# in ohair@425: 0) echo "$me: missing argument$help" >&2 ohair@425: exit 1;; ohair@425: 1) ;; ohair@425: *) echo "$me: too many arguments$help" >&2 ohair@425: exit 1;; ohair@425: esac ohair@425: ohair@425: # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). ohair@425: # Here we must recognize all the valid KERNEL-OS combinations. ohair@425: maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` ohair@425: case $maybe_os in ohair@425: nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \ ohair@425: uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \ ohair@425: storm-chaos* | os2-emx* | rtmk-nova*) ohair@425: os=-$maybe_os ohair@425: basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` ohair@425: ;; ohair@425: *) ohair@425: basic_machine=`echo $1 | sed 's/-[^-]*$//'` ohair@425: if [ $basic_machine != $1 ] ohair@425: then os=`echo $1 | sed 's/.*-/-/'` ohair@425: else os=; fi ohair@425: ;; ohair@425: esac ohair@425: ohair@425: ### Let's recognize common machines as not being operating systems so ohair@425: ### that things like config.sub decstation-3100 work. We also ohair@425: ### recognize some manufacturers as not being operating systems, so we ohair@425: ### can provide default operating systems below. ohair@425: case $os in ohair@425: -sun*os*) ohair@425: # Prevent following clause from handling this invalid input. ohair@425: ;; ohair@425: -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ ohair@425: -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ ohair@425: -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ ohair@425: -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ ohair@425: -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ ohair@425: -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ ohair@425: -apple | -axis | -knuth | -cray) ohair@425: os= ohair@425: basic_machine=$1 ohair@425: ;; ohair@425: -sim | -cisco | -oki | -wec | -winbond) ohair@425: os= ohair@425: basic_machine=$1 ohair@425: ;; ohair@425: -scout) ohair@425: ;; ohair@425: -wrs) ohair@425: os=-vxworks ohair@425: basic_machine=$1 ohair@425: ;; ohair@425: -chorusos*) ohair@425: os=-chorusos ohair@425: basic_machine=$1 ohair@425: ;; ohair@425: -chorusrdb) ohair@425: os=-chorusrdb ohair@425: basic_machine=$1 ohair@425: ;; ohair@425: -hiux*) ohair@425: os=-hiuxwe2 ohair@425: ;; ohair@425: -sco6) ohair@425: os=-sco5v6 ohair@425: basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ohair@425: ;; ohair@425: -sco5) ohair@425: os=-sco3.2v5 ohair@425: basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ohair@425: ;; ohair@425: -sco4) ohair@425: os=-sco3.2v4 ohair@425: basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ohair@425: ;; ohair@425: -sco3.2.[4-9]*) ohair@425: os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` ohair@425: basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ohair@425: ;; ohair@425: -sco3.2v[4-9]*) ohair@425: # Don't forget version if it is 3.2v4 or newer. ohair@425: basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ohair@425: ;; ohair@425: -sco5v6*) ohair@425: # Don't forget version if it is 3.2v4 or newer. ohair@425: basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ohair@425: ;; ohair@425: -sco*) ohair@425: os=-sco3.2v2 ohair@425: basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ohair@425: ;; ohair@425: -udk*) ohair@425: basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ohair@425: ;; ohair@425: -isc) ohair@425: os=-isc2.2 ohair@425: basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ohair@425: ;; ohair@425: -clix*) ohair@425: basic_machine=clipper-intergraph ohair@425: ;; ohair@425: -isc*) ohair@425: basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ohair@425: ;; ohair@425: -lynx*) ohair@425: os=-lynxos ohair@425: ;; ohair@425: -ptx*) ohair@425: basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` ohair@425: ;; ohair@425: -windowsnt*) ohair@425: os=`echo $os | sed -e 's/windowsnt/winnt/'` ohair@425: ;; ohair@425: -psos*) ohair@425: os=-psos ohair@425: ;; ohair@425: -mint | -mint[0-9]*) ohair@425: basic_machine=m68k-atari ohair@425: os=-mint ohair@425: ;; ohair@425: esac ohair@425: ohair@425: # Decode aliases for certain CPU-COMPANY combinations. ohair@425: case $basic_machine in ohair@425: # Recognize the basic CPU types without company name. ohair@425: # Some are omitted here because they have special meanings below. ohair@425: 1750a | 580 \ ohair@425: | a29k \ ohair@425: | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ ohair@425: | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ ohair@425: | am33_2.0 \ ohair@425: | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ ohair@425: | bfin \ ohair@425: | c4x | clipper \ ohair@425: | d10v | d30v | dlx | dsp16xx \ ohair@425: | fido | fr30 | frv \ ohair@425: | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ ohair@425: | i370 | i860 | i960 | ia64 \ ohair@425: | ip2k | iq2000 \ ohair@425: | m32c | m32r | m32rle | m68000 | m68k | m88k \ ohair@425: | maxq | mb | microblaze | mcore | mep \ ohair@425: | mips | mipsbe | mipseb | mipsel | mipsle \ ohair@425: | mips16 \ ohair@425: | mips64 | mips64el \ ohair@425: | mips64vr | mips64vrel \ ohair@425: | mips64orion | mips64orionel \ ohair@425: | mips64vr4100 | mips64vr4100el \ ohair@425: | mips64vr4300 | mips64vr4300el \ ohair@425: | mips64vr5000 | mips64vr5000el \ ohair@425: | mips64vr5900 | mips64vr5900el \ ohair@425: | mipsisa32 | mipsisa32el \ ohair@425: | mipsisa32r2 | mipsisa32r2el \ ohair@425: | mipsisa64 | mipsisa64el \ ohair@425: | mipsisa64r2 | mipsisa64r2el \ ohair@425: | mipsisa64sb1 | mipsisa64sb1el \ ohair@425: | mipsisa64sr71k | mipsisa64sr71kel \ ohair@425: | mipstx39 | mipstx39el \ ohair@425: | mn10200 | mn10300 \ ohair@425: | mt \ ohair@425: | msp430 \ ohair@425: | nios | nios2 \ ohair@425: | ns16k | ns32k \ ohair@425: | or32 \ ohair@425: | pdp10 | pdp11 | pj | pjl \ ohair@425: | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ ohair@425: | pyramid \ ohair@425: | score \ ohair@425: | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ ohair@425: | sh64 | sh64le \ ohair@425: | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ ohair@425: | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ ohair@425: | spu | strongarm \ ohair@425: | tahoe | thumb | tic4x | tic80 | tron \ ohair@425: | v850 | v850e \ ohair@425: | we32k \ ohair@425: | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \ ohair@425: | z8k) ohair@425: basic_machine=$basic_machine-unknown ohair@425: ;; ohair@425: m6811 | m68hc11 | m6812 | m68hc12) ohair@425: # Motorola 68HC11/12. ohair@425: basic_machine=$basic_machine-unknown ohair@425: os=-none ohair@425: ;; ohair@425: m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) ohair@425: ;; ohair@425: ms1) ohair@425: basic_machine=mt-unknown ohair@425: ;; ohair@425: ohair@425: # We use `pc' rather than `unknown' ohair@425: # because (1) that's what they normally are, and ohair@425: # (2) the word "unknown" tends to confuse beginning users. ohair@425: i*86 | x86_64) ohair@425: basic_machine=$basic_machine-pc ohair@425: ;; ohair@425: # Object if more than one company name word. ohair@425: *-*-*) ohair@425: echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 ohair@425: exit 1 ohair@425: ;; ohair@425: # Recognize the basic CPU types with company name. ohair@425: 580-* \ ohair@425: | a29k-* \ ohair@425: | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ ohair@425: | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ ohair@425: | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ ohair@425: | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ ohair@425: | avr-* | avr32-* \ ohair@425: | bfin-* | bs2000-* \ ohair@425: | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ ohair@425: | clipper-* | craynv-* | cydra-* \ ohair@425: | d10v-* | d30v-* | dlx-* \ ohair@425: | elxsi-* \ ohair@425: | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ ohair@425: | h8300-* | h8500-* \ ohair@425: | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ ohair@425: | i*86-* | i860-* | i960-* | ia64-* \ ohair@425: | ip2k-* | iq2000-* \ ohair@425: | m32c-* | m32r-* | m32rle-* \ ohair@425: | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ ohair@425: | m88110-* | m88k-* | maxq-* | mcore-* \ ohair@425: | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ ohair@425: | mips16-* \ ohair@425: | mips64-* | mips64el-* \ ohair@425: | mips64vr-* | mips64vrel-* \ ohair@425: | mips64orion-* | mips64orionel-* \ ohair@425: | mips64vr4100-* | mips64vr4100el-* \ ohair@425: | mips64vr4300-* | mips64vr4300el-* \ ohair@425: | mips64vr5000-* | mips64vr5000el-* \ ohair@425: | mips64vr5900-* | mips64vr5900el-* \ ohair@425: | mipsisa32-* | mipsisa32el-* \ ohair@425: | mipsisa32r2-* | mipsisa32r2el-* \ ohair@425: | mipsisa64-* | mipsisa64el-* \ ohair@425: | mipsisa64r2-* | mipsisa64r2el-* \ ohair@425: | mipsisa64sb1-* | mipsisa64sb1el-* \ ohair@425: | mipsisa64sr71k-* | mipsisa64sr71kel-* \ ohair@425: | mipstx39-* | mipstx39el-* \ ohair@425: | mmix-* \ ohair@425: | mt-* \ ohair@425: | msp430-* \ ohair@425: | nios-* | nios2-* \ ohair@425: | none-* | np1-* | ns16k-* | ns32k-* \ ohair@425: | orion-* \ ohair@425: | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ ohair@425: | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ ohair@425: | pyramid-* \ ohair@425: | romp-* | rs6000-* \ ohair@425: | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ ohair@425: | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ ohair@425: | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ ohair@425: | sparclite-* \ ohair@425: | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \ ohair@425: | tahoe-* | thumb-* \ ohair@425: | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ ohair@425: | tron-* \ ohair@425: | v850-* | v850e-* | vax-* \ ohair@425: | we32k-* \ ohair@425: | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \ ohair@425: | xstormy16-* | xtensa*-* \ ohair@425: | ymp-* \ ohair@425: | z8k-*) ohair@425: ;; ohair@425: # Recognize the basic CPU types without company name, with glob match. ohair@425: xtensa*) ohair@425: basic_machine=$basic_machine-unknown ohair@425: ;; ohair@425: # Recognize the various machine names and aliases which stand ohair@425: # for a CPU type and a company and sometimes even an OS. ohair@425: 386bsd) ohair@425: basic_machine=i386-unknown ohair@425: os=-bsd ohair@425: ;; ohair@425: 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) ohair@425: basic_machine=m68000-att ohair@425: ;; ohair@425: 3b*) ohair@425: basic_machine=we32k-att ohair@425: ;; ohair@425: a29khif) ohair@425: basic_machine=a29k-amd ohair@425: os=-udi ohair@425: ;; ohair@425: abacus) ohair@425: basic_machine=abacus-unknown ohair@425: ;; ohair@425: adobe68k) ohair@425: basic_machine=m68010-adobe ohair@425: os=-scout ohair@425: ;; ohair@425: alliant | fx80) ohair@425: basic_machine=fx80-alliant ohair@425: ;; ohair@425: altos | altos3068) ohair@425: basic_machine=m68k-altos ohair@425: ;; ohair@425: am29k) ohair@425: basic_machine=a29k-none ohair@425: os=-bsd ohair@425: ;; ohair@425: amd64) ohair@425: basic_machine=x86_64-pc ohair@425: ;; ohair@425: amd64-*) ohair@425: basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` ohair@425: ;; ohair@425: amdahl) ohair@425: basic_machine=580-amdahl ohair@425: os=-sysv ohair@425: ;; ohair@425: amiga | amiga-*) ohair@425: basic_machine=m68k-unknown ohair@425: ;; ohair@425: amigaos | amigados) ohair@425: basic_machine=m68k-unknown ohair@425: os=-amigaos ohair@425: ;; ohair@425: amigaunix | amix) ohair@425: basic_machine=m68k-unknown ohair@425: os=-sysv4 ohair@425: ;; ohair@425: apollo68) ohair@425: basic_machine=m68k-apollo ohair@425: os=-sysv ohair@425: ;; ohair@425: apollo68bsd) ohair@425: basic_machine=m68k-apollo ohair@425: os=-bsd ohair@425: ;; ohair@425: aux) ohair@425: basic_machine=m68k-apple ohair@425: os=-aux ohair@425: ;; ohair@425: balance) ohair@425: basic_machine=ns32k-sequent ohair@425: os=-dynix ohair@425: ;; ohair@425: blackfin) ohair@425: basic_machine=bfin-unknown ohair@425: os=-linux ohair@425: ;; ohair@425: blackfin-*) ohair@425: basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` ohair@425: os=-linux ohair@425: ;; ohair@425: c90) ohair@425: basic_machine=c90-cray ohair@425: os=-unicos ohair@425: ;; ohair@425: convex-c1) ohair@425: basic_machine=c1-convex ohair@425: os=-bsd ohair@425: ;; ohair@425: convex-c2) ohair@425: basic_machine=c2-convex ohair@425: os=-bsd ohair@425: ;; ohair@425: convex-c32) ohair@425: basic_machine=c32-convex ohair@425: os=-bsd ohair@425: ;; ohair@425: convex-c34) ohair@425: basic_machine=c34-convex ohair@425: os=-bsd ohair@425: ;; ohair@425: convex-c38) ohair@425: basic_machine=c38-convex ohair@425: os=-bsd ohair@425: ;; ohair@425: cray | j90) ohair@425: basic_machine=j90-cray ohair@425: os=-unicos ohair@425: ;; ohair@425: craynv) ohair@425: basic_machine=craynv-cray ohair@425: os=-unicosmp ohair@425: ;; ohair@425: cr16) ohair@425: basic_machine=cr16-unknown ohair@425: os=-elf ohair@425: ;; ohair@425: crds | unos) ohair@425: basic_machine=m68k-crds ohair@425: ;; ohair@425: crisv32 | crisv32-* | etraxfs*) ohair@425: basic_machine=crisv32-axis ohair@425: ;; ohair@425: cris | cris-* | etrax*) ohair@425: basic_machine=cris-axis ohair@425: ;; ohair@425: crx) ohair@425: basic_machine=crx-unknown ohair@425: os=-elf ohair@425: ;; ohair@425: da30 | da30-*) ohair@425: basic_machine=m68k-da30 ohair@425: ;; ohair@425: decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) ohair@425: basic_machine=mips-dec ohair@425: ;; ohair@425: decsystem10* | dec10*) ohair@425: basic_machine=pdp10-dec ohair@425: os=-tops10 ohair@425: ;; ohair@425: decsystem20* | dec20*) ohair@425: basic_machine=pdp10-dec ohair@425: os=-tops20 ohair@425: ;; ohair@425: delta | 3300 | motorola-3300 | motorola-delta \ ohair@425: | 3300-motorola | delta-motorola) ohair@425: basic_machine=m68k-motorola ohair@425: ;; ohair@425: delta88) ohair@425: basic_machine=m88k-motorola ohair@425: os=-sysv3 ohair@425: ;; ohair@425: djgpp) ohair@425: basic_machine=i586-pc ohair@425: os=-msdosdjgpp ohair@425: ;; ohair@425: dpx20 | dpx20-*) ohair@425: basic_machine=rs6000-bull ohair@425: os=-bosx ohair@425: ;; ohair@425: dpx2* | dpx2*-bull) ohair@425: basic_machine=m68k-bull ohair@425: os=-sysv3 ohair@425: ;; ohair@425: ebmon29k) ohair@425: basic_machine=a29k-amd ohair@425: os=-ebmon ohair@425: ;; ohair@425: elxsi) ohair@425: basic_machine=elxsi-elxsi ohair@425: os=-bsd ohair@425: ;; ohair@425: encore | umax | mmax) ohair@425: basic_machine=ns32k-encore ohair@425: ;; ohair@425: es1800 | OSE68k | ose68k | ose | OSE) ohair@425: basic_machine=m68k-ericsson ohair@425: os=-ose ohair@425: ;; ohair@425: fx2800) ohair@425: basic_machine=i860-alliant ohair@425: ;; ohair@425: genix) ohair@425: basic_machine=ns32k-ns ohair@425: ;; ohair@425: gmicro) ohair@425: basic_machine=tron-gmicro ohair@425: os=-sysv ohair@425: ;; ohair@425: go32) ohair@425: basic_machine=i386-pc ohair@425: os=-go32 ohair@425: ;; ohair@425: h3050r* | hiux*) ohair@425: basic_machine=hppa1.1-hitachi ohair@425: os=-hiuxwe2 ohair@425: ;; ohair@425: h8300hms) ohair@425: basic_machine=h8300-hitachi ohair@425: os=-hms ohair@425: ;; ohair@425: h8300xray) ohair@425: basic_machine=h8300-hitachi ohair@425: os=-xray ohair@425: ;; ohair@425: h8500hms) ohair@425: basic_machine=h8500-hitachi ohair@425: os=-hms ohair@425: ;; ohair@425: harris) ohair@425: basic_machine=m88k-harris ohair@425: os=-sysv3 ohair@425: ;; ohair@425: hp300-*) ohair@425: basic_machine=m68k-hp ohair@425: ;; ohair@425: hp300bsd) ohair@425: basic_machine=m68k-hp ohair@425: os=-bsd ohair@425: ;; ohair@425: hp300hpux) ohair@425: basic_machine=m68k-hp ohair@425: os=-hpux ohair@425: ;; ohair@425: hp3k9[0-9][0-9] | hp9[0-9][0-9]) ohair@425: basic_machine=hppa1.0-hp ohair@425: ;; ohair@425: hp9k2[0-9][0-9] | hp9k31[0-9]) ohair@425: basic_machine=m68000-hp ohair@425: ;; ohair@425: hp9k3[2-9][0-9]) ohair@425: basic_machine=m68k-hp ohair@425: ;; ohair@425: hp9k6[0-9][0-9] | hp6[0-9][0-9]) ohair@425: basic_machine=hppa1.0-hp ohair@425: ;; ohair@425: hp9k7[0-79][0-9] | hp7[0-79][0-9]) ohair@425: basic_machine=hppa1.1-hp ohair@425: ;; ohair@425: hp9k78[0-9] | hp78[0-9]) ohair@425: # FIXME: really hppa2.0-hp ohair@425: basic_machine=hppa1.1-hp ohair@425: ;; ohair@425: hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) ohair@425: # FIXME: really hppa2.0-hp ohair@425: basic_machine=hppa1.1-hp ohair@425: ;; ohair@425: hp9k8[0-9][13679] | hp8[0-9][13679]) ohair@425: basic_machine=hppa1.1-hp ohair@425: ;; ohair@425: hp9k8[0-9][0-9] | hp8[0-9][0-9]) ohair@425: basic_machine=hppa1.0-hp ohair@425: ;; ohair@425: hppa-next) ohair@425: os=-nextstep3 ohair@425: ;; ohair@425: hppaosf) ohair@425: basic_machine=hppa1.1-hp ohair@425: os=-osf ohair@425: ;; ohair@425: hppro) ohair@425: basic_machine=hppa1.1-hp ohair@425: os=-proelf ohair@425: ;; ohair@425: i370-ibm* | ibm*) ohair@425: basic_machine=i370-ibm ohair@425: ;; ohair@425: # I'm not sure what "Sysv32" means. Should this be sysv3.2? ohair@425: i*86v32) ohair@425: basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` ohair@425: os=-sysv32 ohair@425: ;; ohair@425: i*86v4*) ohair@425: basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` ohair@425: os=-sysv4 ohair@425: ;; ohair@425: i*86v) ohair@425: basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` ohair@425: os=-sysv ohair@425: ;; ohair@425: i*86sol2) ohair@425: basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` ohair@425: os=-solaris2 ohair@425: ;; ohair@425: i386mach) ohair@425: basic_machine=i386-mach ohair@425: os=-mach ohair@425: ;; ohair@425: i386-vsta | vsta) ohair@425: basic_machine=i386-unknown ohair@425: os=-vsta ohair@425: ;; ohair@425: iris | iris4d) ohair@425: basic_machine=mips-sgi ohair@425: case $os in ohair@425: -irix*) ohair@425: ;; ohair@425: *) ohair@425: os=-irix4 ohair@425: ;; ohair@425: esac ohair@425: ;; ohair@425: isi68 | isi) ohair@425: basic_machine=m68k-isi ohair@425: os=-sysv ohair@425: ;; ohair@425: m68knommu) ohair@425: basic_machine=m68k-unknown ohair@425: os=-linux ohair@425: ;; ohair@425: m68knommu-*) ohair@425: basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` ohair@425: os=-linux ohair@425: ;; ohair@425: m88k-omron*) ohair@425: basic_machine=m88k-omron ohair@425: ;; ohair@425: magnum | m3230) ohair@425: basic_machine=mips-mips ohair@425: os=-sysv ohair@425: ;; ohair@425: merlin) ohair@425: basic_machine=ns32k-utek ohair@425: os=-sysv ohair@425: ;; ohair@425: mingw32) ohair@425: basic_machine=i386-pc ohair@425: os=-mingw32 ohair@425: ;; ohair@425: mingw32ce) ohair@425: basic_machine=arm-unknown ohair@425: os=-mingw32ce ohair@425: ;; ohair@425: miniframe) ohair@425: basic_machine=m68000-convergent ohair@425: ;; ohair@425: *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) ohair@425: basic_machine=m68k-atari ohair@425: os=-mint ohair@425: ;; ohair@425: mips3*-*) ohair@425: basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` ohair@425: ;; ohair@425: mips3*) ohair@425: basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown ohair@425: ;; ohair@425: monitor) ohair@425: basic_machine=m68k-rom68k ohair@425: os=-coff ohair@425: ;; ohair@425: morphos) ohair@425: basic_machine=powerpc-unknown ohair@425: os=-morphos ohair@425: ;; ohair@425: msdos) ohair@425: basic_machine=i386-pc ohair@425: os=-msdos ohair@425: ;; ohair@425: ms1-*) ohair@425: basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` ohair@425: ;; ohair@425: mvs) ohair@425: basic_machine=i370-ibm ohair@425: os=-mvs ohair@425: ;; ohair@425: ncr3000) ohair@425: basic_machine=i486-ncr ohair@425: os=-sysv4 ohair@425: ;; ohair@425: netbsd386) ohair@425: basic_machine=i386-unknown ohair@425: os=-netbsd ohair@425: ;; ohair@425: netwinder) ohair@425: basic_machine=armv4l-rebel ohair@425: os=-linux ohair@425: ;; ohair@425: news | news700 | news800 | news900) ohair@425: basic_machine=m68k-sony ohair@425: os=-newsos ohair@425: ;; ohair@425: news1000) ohair@425: basic_machine=m68030-sony ohair@425: os=-newsos ohair@425: ;; ohair@425: news-3600 | risc-news) ohair@425: basic_machine=mips-sony ohair@425: os=-newsos ohair@425: ;; ohair@425: necv70) ohair@425: basic_machine=v70-nec ohair@425: os=-sysv ohair@425: ;; ohair@425: next | m*-next ) ohair@425: basic_machine=m68k-next ohair@425: case $os in ohair@425: -nextstep* ) ohair@425: ;; ohair@425: -ns2*) ohair@425: os=-nextstep2 ohair@425: ;; ohair@425: *) ohair@425: os=-nextstep3 ohair@425: ;; ohair@425: esac ohair@425: ;; ohair@425: nh3000) ohair@425: basic_machine=m68k-harris ohair@425: os=-cxux ohair@425: ;; ohair@425: nh[45]000) ohair@425: basic_machine=m88k-harris ohair@425: os=-cxux ohair@425: ;; ohair@425: nindy960) ohair@425: basic_machine=i960-intel ohair@425: os=-nindy ohair@425: ;; ohair@425: mon960) ohair@425: basic_machine=i960-intel ohair@425: os=-mon960 ohair@425: ;; ohair@425: nonstopux) ohair@425: basic_machine=mips-compaq ohair@425: os=-nonstopux ohair@425: ;; ohair@425: np1) ohair@425: basic_machine=np1-gould ohair@425: ;; ohair@425: nsr-tandem) ohair@425: basic_machine=nsr-tandem ohair@425: ;; ohair@425: op50n-* | op60c-*) ohair@425: basic_machine=hppa1.1-oki ohair@425: os=-proelf ohair@425: ;; ohair@425: openrisc | openrisc-*) ohair@425: basic_machine=or32-unknown ohair@425: ;; ohair@425: os400) ohair@425: basic_machine=powerpc-ibm ohair@425: os=-os400 ohair@425: ;; ohair@425: OSE68000 | ose68000) ohair@425: basic_machine=m68000-ericsson ohair@425: os=-ose ohair@425: ;; ohair@425: os68k) ohair@425: basic_machine=m68k-none ohair@425: os=-os68k ohair@425: ;; ohair@425: pa-hitachi) ohair@425: basic_machine=hppa1.1-hitachi ohair@425: os=-hiuxwe2 ohair@425: ;; ohair@425: paragon) ohair@425: basic_machine=i860-intel ohair@425: os=-osf ohair@425: ;; ohair@425: parisc) ohair@425: basic_machine=hppa-unknown ohair@425: os=-linux ohair@425: ;; ohair@425: parisc-*) ohair@425: basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` ohair@425: os=-linux ohair@425: ;; ohair@425: pbd) ohair@425: basic_machine=sparc-tti ohair@425: ;; ohair@425: pbb) ohair@425: basic_machine=m68k-tti ohair@425: ;; ohair@425: pc532 | pc532-*) ohair@425: basic_machine=ns32k-pc532 ohair@425: ;; ohair@425: pc98) ohair@425: basic_machine=i386-pc ohair@425: ;; ohair@425: pc98-*) ohair@425: basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` ohair@425: ;; ohair@425: pentium | p5 | k5 | k6 | nexgen | viac3) ohair@425: basic_machine=i586-pc ohair@425: ;; ohair@425: pentiumpro | p6 | 6x86 | athlon | athlon_*) ohair@425: basic_machine=i686-pc ohair@425: ;; ohair@425: pentiumii | pentium2 | pentiumiii | pentium3) ohair@425: basic_machine=i686-pc ohair@425: ;; ohair@425: pentium4) ohair@425: basic_machine=i786-pc ohair@425: ;; ohair@425: pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) ohair@425: basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` ohair@425: ;; ohair@425: pentiumpro-* | p6-* | 6x86-* | athlon-*) ohair@425: basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ohair@425: ;; ohair@425: pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) ohair@425: basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ohair@425: ;; ohair@425: pentium4-*) ohair@425: basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` ohair@425: ;; ohair@425: pn) ohair@425: basic_machine=pn-gould ohair@425: ;; ohair@425: power) basic_machine=power-ibm ohair@425: ;; ohair@425: ppc) basic_machine=powerpc-unknown ohair@425: ;; ohair@425: ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` ohair@425: ;; ohair@425: ppcle | powerpclittle | ppc-le | powerpc-little) ohair@425: basic_machine=powerpcle-unknown ohair@425: ;; ohair@425: ppcle-* | powerpclittle-*) ohair@425: basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` ohair@425: ;; ohair@425: ppc64) basic_machine=powerpc64-unknown ohair@425: ;; ohair@425: ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` ohair@425: ;; ohair@425: ppc64le | powerpc64little | ppc64-le | powerpc64-little) ohair@425: basic_machine=powerpc64le-unknown ohair@425: ;; ohair@425: ppc64le-* | powerpc64little-*) ohair@425: basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` ohair@425: ;; ohair@425: ps2) ohair@425: basic_machine=i386-ibm ohair@425: ;; ohair@425: pw32) ohair@425: basic_machine=i586-unknown ohair@425: os=-pw32 ohair@425: ;; ohair@425: rdos) ohair@425: basic_machine=i386-pc ohair@425: os=-rdos ohair@425: ;; ohair@425: rom68k) ohair@425: basic_machine=m68k-rom68k ohair@425: os=-coff ohair@425: ;; ohair@425: rm[46]00) ohair@425: basic_machine=mips-siemens ohair@425: ;; ohair@425: rtpc | rtpc-*) ohair@425: basic_machine=romp-ibm ohair@425: ;; ohair@425: s390 | s390-*) ohair@425: basic_machine=s390-ibm ohair@425: ;; ohair@425: s390x | s390x-*) ohair@425: basic_machine=s390x-ibm ohair@425: ;; ohair@425: sa29200) ohair@425: basic_machine=a29k-amd ohair@425: os=-udi ohair@425: ;; ohair@425: sb1) ohair@425: basic_machine=mipsisa64sb1-unknown ohair@425: ;; ohair@425: sb1el) ohair@425: basic_machine=mipsisa64sb1el-unknown ohair@425: ;; ohair@425: sde) ohair@425: basic_machine=mipsisa32-sde ohair@425: os=-elf ohair@425: ;; ohair@425: sei) ohair@425: basic_machine=mips-sei ohair@425: os=-seiux ohair@425: ;; ohair@425: sequent) ohair@425: basic_machine=i386-sequent ohair@425: ;; ohair@425: sh) ohair@425: basic_machine=sh-hitachi ohair@425: os=-hms ohair@425: ;; ohair@425: sh5el) ohair@425: basic_machine=sh5le-unknown ohair@425: ;; ohair@425: sh64) ohair@425: basic_machine=sh64-unknown ohair@425: ;; ohair@425: sparclite-wrs | simso-wrs) ohair@425: basic_machine=sparclite-wrs ohair@425: os=-vxworks ohair@425: ;; ohair@425: sps7) ohair@425: basic_machine=m68k-bull ohair@425: os=-sysv2 ohair@425: ;; ohair@425: spur) ohair@425: basic_machine=spur-unknown ohair@425: ;; ohair@425: st2000) ohair@425: basic_machine=m68k-tandem ohair@425: ;; ohair@425: stratus) ohair@425: basic_machine=i860-stratus ohair@425: os=-sysv4 ohair@425: ;; ohair@425: sun2) ohair@425: basic_machine=m68000-sun ohair@425: ;; ohair@425: sun2os3) ohair@425: basic_machine=m68000-sun ohair@425: os=-sunos3 ohair@425: ;; ohair@425: sun2os4) ohair@425: basic_machine=m68000-sun ohair@425: os=-sunos4 ohair@425: ;; ohair@425: sun3os3) ohair@425: basic_machine=m68k-sun ohair@425: os=-sunos3 ohair@425: ;; ohair@425: sun3os4) ohair@425: basic_machine=m68k-sun ohair@425: os=-sunos4 ohair@425: ;; ohair@425: sun4os3) ohair@425: basic_machine=sparc-sun ohair@425: os=-sunos3 ohair@425: ;; ohair@425: sun4os4) ohair@425: basic_machine=sparc-sun ohair@425: os=-sunos4 ohair@425: ;; ohair@425: sun4sol2) ohair@425: basic_machine=sparc-sun ohair@425: os=-solaris2 ohair@425: ;; ohair@425: sun3 | sun3-*) ohair@425: basic_machine=m68k-sun ohair@425: ;; ohair@425: sun4) ohair@425: basic_machine=sparc-sun ohair@425: ;; ohair@425: sun386 | sun386i | roadrunner) ohair@425: basic_machine=i386-sun ohair@425: ;; ohair@425: sv1) ohair@425: basic_machine=sv1-cray ohair@425: os=-unicos ohair@425: ;; ohair@425: symmetry) ohair@425: basic_machine=i386-sequent ohair@425: os=-dynix ohair@425: ;; ohair@425: t3e) ohair@425: basic_machine=alphaev5-cray ohair@425: os=-unicos ohair@425: ;; ohair@425: t90) ohair@425: basic_machine=t90-cray ohair@425: os=-unicos ohair@425: ;; ohair@425: tic54x | c54x*) ohair@425: basic_machine=tic54x-unknown ohair@425: os=-coff ohair@425: ;; ohair@425: tic55x | c55x*) ohair@425: basic_machine=tic55x-unknown ohair@425: os=-coff ohair@425: ;; ohair@425: tic6x | c6x*) ohair@425: basic_machine=tic6x-unknown ohair@425: os=-coff ohair@425: ;; ohair@425: tile*) ohair@425: basic_machine=tile-unknown ohair@425: os=-linux-gnu ohair@425: ;; ohair@425: tx39) ohair@425: basic_machine=mipstx39-unknown ohair@425: ;; ohair@425: tx39el) ohair@425: basic_machine=mipstx39el-unknown ohair@425: ;; ohair@425: toad1) ohair@425: basic_machine=pdp10-xkl ohair@425: os=-tops20 ohair@425: ;; ohair@425: tower | tower-32) ohair@425: basic_machine=m68k-ncr ohair@425: ;; ohair@425: tpf) ohair@425: basic_machine=s390x-ibm ohair@425: os=-tpf ohair@425: ;; ohair@425: udi29k) ohair@425: basic_machine=a29k-amd ohair@425: os=-udi ohair@425: ;; ohair@425: ultra3) ohair@425: basic_machine=a29k-nyu ohair@425: os=-sym1 ohair@425: ;; ohair@425: v810 | necv810) ohair@425: basic_machine=v810-nec ohair@425: os=-none ohair@425: ;; ohair@425: vaxv) ohair@425: basic_machine=vax-dec ohair@425: os=-sysv ohair@425: ;; ohair@425: vms) ohair@425: basic_machine=vax-dec ohair@425: os=-vms ohair@425: ;; ohair@425: vpp*|vx|vx-*) ohair@425: basic_machine=f301-fujitsu ohair@425: ;; ohair@425: vxworks960) ohair@425: basic_machine=i960-wrs ohair@425: os=-vxworks ohair@425: ;; ohair@425: vxworks68) ohair@425: basic_machine=m68k-wrs ohair@425: os=-vxworks ohair@425: ;; ohair@425: vxworks29k) ohair@425: basic_machine=a29k-wrs ohair@425: os=-vxworks ohair@425: ;; ohair@425: w65*) ohair@425: basic_machine=w65-wdc ohair@425: os=-none ohair@425: ;; ohair@425: w89k-*) ohair@425: basic_machine=hppa1.1-winbond ohair@425: os=-proelf ohair@425: ;; ohair@425: xbox) ohair@425: basic_machine=i686-pc ohair@425: os=-mingw32 ohair@425: ;; ohair@425: xps | xps100) ohair@425: basic_machine=xps100-honeywell ohair@425: ;; ohair@425: ymp) ohair@425: basic_machine=ymp-cray ohair@425: os=-unicos ohair@425: ;; ohair@425: z8k-*-coff) ohair@425: basic_machine=z8k-unknown ohair@425: os=-sim ohair@425: ;; ohair@425: none) ohair@425: basic_machine=none-none ohair@425: os=-none ohair@425: ;; ohair@425: ohair@425: # Here we handle the default manufacturer of certain CPU types. It is in ohair@425: # some cases the only manufacturer, in others, it is the most popular. ohair@425: w89k) ohair@425: basic_machine=hppa1.1-winbond ohair@425: ;; ohair@425: op50n) ohair@425: basic_machine=hppa1.1-oki ohair@425: ;; ohair@425: op60c) ohair@425: basic_machine=hppa1.1-oki ohair@425: ;; ohair@425: romp) ohair@425: basic_machine=romp-ibm ohair@425: ;; ohair@425: mmix) ohair@425: basic_machine=mmix-knuth ohair@425: ;; ohair@425: rs6000) ohair@425: basic_machine=rs6000-ibm ohair@425: ;; ohair@425: vax) ohair@425: basic_machine=vax-dec ohair@425: ;; ohair@425: pdp10) ohair@425: # there are many clones, so DEC is not a safe bet ohair@425: basic_machine=pdp10-unknown ohair@425: ;; ohair@425: pdp11) ohair@425: basic_machine=pdp11-dec ohair@425: ;; ohair@425: we32k) ohair@425: basic_machine=we32k-att ohair@425: ;; ohair@425: sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele) ohair@425: basic_machine=sh-unknown ohair@425: ;; ohair@425: sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) ohair@425: basic_machine=sparc-sun ohair@425: ;; ohair@425: cydra) ohair@425: basic_machine=cydra-cydrome ohair@425: ;; ohair@425: orion) ohair@425: basic_machine=orion-highlevel ohair@425: ;; ohair@425: orion105) ohair@425: basic_machine=clipper-highlevel ohair@425: ;; ohair@425: mac | mpw | mac-mpw) ohair@425: basic_machine=m68k-apple ohair@425: ;; ohair@425: pmac | pmac-mpw) ohair@425: basic_machine=powerpc-apple ohair@425: ;; ohair@425: *-unknown) ohair@425: # Make sure to match an already-canonicalized machine name. ohair@425: ;; ohair@425: *) ohair@425: echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 ohair@425: exit 1 ohair@425: ;; ohair@425: esac ohair@425: ohair@425: # Here we canonicalize certain aliases for manufacturers. ohair@425: case $basic_machine in ohair@425: *-digital*) ohair@425: basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` ohair@425: ;; ohair@425: *-commodore*) ohair@425: basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` ohair@425: ;; ohair@425: *) ohair@425: ;; ohair@425: esac ohair@425: ohair@425: # Decode manufacturer-specific aliases for certain operating systems. ohair@425: ohair@425: if [ x"$os" != x"" ] ohair@425: then ohair@425: case $os in ohair@425: # First match some system type aliases ohair@425: # that might get confused with valid system types. ohair@425: # -solaris* is a basic system type, with this one exception. ohair@425: -solaris1 | -solaris1.*) ohair@425: os=`echo $os | sed -e 's|solaris1|sunos4|'` ohair@425: ;; ohair@425: -solaris) ohair@425: os=-solaris2 ohair@425: ;; ohair@425: -svr4*) ohair@425: os=-sysv4 ohair@425: ;; ohair@425: -unixware*) ohair@425: os=-sysv4.2uw ohair@425: ;; ohair@425: -gnu/linux*) ohair@425: os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` ohair@425: ;; ohair@425: # First accept the basic system types. ohair@425: # The portable systems comes first. ohair@425: # Each alternative MUST END IN A *, to match a version number. ohair@425: # -sysv* is not here because it comes later, after sysvr4. ohair@425: -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ ohair@425: | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ ohair@425: | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ ohair@425: | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ ohair@425: | -aos* \ ohair@425: | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ ohair@425: | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ ohair@425: | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ ohair@425: | -openbsd* | -solidbsd* \ ohair@425: | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ ohair@425: | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ ohair@425: | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ ohair@425: | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ ohair@425: | -chorusos* | -chorusrdb* \ ohair@425: | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ ohair@425: | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \ ohair@425: | -uxpv* | -beos* | -mpeix* | -udk* \ ohair@425: | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ ohair@425: | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ ohair@425: | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ ohair@425: | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ ohair@425: | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ ohair@425: | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ ohair@425: | -skyos* | -haiku* | -rdos* | -toppers* | -drops*) ohair@425: # Remember, each alternative MUST END IN *, to match a version number. ohair@425: ;; ohair@425: -qnx*) ohair@425: case $basic_machine in ohair@425: x86-* | i*86-*) ohair@425: ;; ohair@425: *) ohair@425: os=-nto$os ohair@425: ;; ohair@425: esac ohair@425: ;; ohair@425: -nto-qnx*) ohair@425: ;; ohair@425: -nto*) ohair@425: os=`echo $os | sed -e 's|nto|nto-qnx|'` ohair@425: ;; ohair@425: -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ ohair@425: | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ ohair@425: | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) ohair@425: ;; ohair@425: -mac*) ohair@425: os=`echo $os | sed -e 's|mac|macos|'` ohair@425: ;; ohair@425: -linux-dietlibc) ohair@425: os=-linux-dietlibc ohair@425: ;; ohair@425: -linux*) ohair@425: os=`echo $os | sed -e 's|linux|linux-gnu|'` ohair@425: ;; ohair@425: -sunos5*) ohair@425: os=`echo $os | sed -e 's|sunos5|solaris2|'` ohair@425: ;; ohair@425: -sunos6*) ohair@425: os=`echo $os | sed -e 's|sunos6|solaris3|'` ohair@425: ;; ohair@425: -opened*) ohair@425: os=-openedition ohair@425: ;; ohair@425: -os400*) ohair@425: os=-os400 ohair@425: ;; ohair@425: -wince*) ohair@425: os=-wince ohair@425: ;; ohair@425: -osfrose*) ohair@425: os=-osfrose ohair@425: ;; ohair@425: -osf*) ohair@425: os=-osf ohair@425: ;; ohair@425: -utek*) ohair@425: os=-bsd ohair@425: ;; ohair@425: -dynix*) ohair@425: os=-bsd ohair@425: ;; ohair@425: -acis*) ohair@425: os=-aos ohair@425: ;; ohair@425: -atheos*) ohair@425: os=-atheos ohair@425: ;; ohair@425: -syllable*) ohair@425: os=-syllable ohair@425: ;; ohair@425: -386bsd) ohair@425: os=-bsd ohair@425: ;; ohair@425: -ctix* | -uts*) ohair@425: os=-sysv ohair@425: ;; ohair@425: -nova*) ohair@425: os=-rtmk-nova ohair@425: ;; ohair@425: -ns2 ) ohair@425: os=-nextstep2 ohair@425: ;; ohair@425: -nsk*) ohair@425: os=-nsk ohair@425: ;; ohair@425: # Preserve the version number of sinix5. ohair@425: -sinix5.*) ohair@425: os=`echo $os | sed -e 's|sinix|sysv|'` ohair@425: ;; ohair@425: -sinix*) ohair@425: os=-sysv4 ohair@425: ;; ohair@425: -tpf*) ohair@425: os=-tpf ohair@425: ;; ohair@425: -triton*) ohair@425: os=-sysv3 ohair@425: ;; ohair@425: -oss*) ohair@425: os=-sysv3 ohair@425: ;; ohair@425: -svr4) ohair@425: os=-sysv4 ohair@425: ;; ohair@425: -svr3) ohair@425: os=-sysv3 ohair@425: ;; ohair@425: -sysvr4) ohair@425: os=-sysv4 ohair@425: ;; ohair@425: # This must come after -sysvr4. ohair@425: -sysv*) ohair@425: ;; ohair@425: -ose*) ohair@425: os=-ose ohair@425: ;; ohair@425: -es1800*) ohair@425: os=-ose ohair@425: ;; ohair@425: -xenix) ohair@425: os=-xenix ohair@425: ;; ohair@425: -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) ohair@425: os=-mint ohair@425: ;; ohair@425: -aros*) ohair@425: os=-aros ohair@425: ;; ohair@425: -kaos*) ohair@425: os=-kaos ohair@425: ;; ohair@425: -zvmoe) ohair@425: os=-zvmoe ohair@425: ;; ohair@425: -none) ohair@425: ;; ohair@425: *) ohair@425: # Get rid of the `-' at the beginning of $os. ohair@425: os=`echo $os | sed 's/[^-]*-//'` ohair@425: echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 ohair@425: exit 1 ohair@425: ;; ohair@425: esac ohair@425: else ohair@425: ohair@425: # Here we handle the default operating systems that come with various machines. ohair@425: # The value should be what the vendor currently ships out the door with their ohair@425: # machine or put another way, the most popular os provided with the machine. ohair@425: ohair@425: # Note that if you're going to try to match "-MANUFACTURER" here (say, ohair@425: # "-sun"), then you have to tell the case statement up towards the top ohair@425: # that MANUFACTURER isn't an operating system. Otherwise, code above ohair@425: # will signal an error saying that MANUFACTURER isn't an operating ohair@425: # system, and we'll never get to this point. ohair@425: ohair@425: case $basic_machine in ohair@425: score-*) ohair@425: os=-elf ohair@425: ;; ohair@425: spu-*) ohair@425: os=-elf ohair@425: ;; ohair@425: *-acorn) ohair@425: os=-riscix1.2 ohair@425: ;; ohair@425: arm*-rebel) ohair@425: os=-linux ohair@425: ;; ohair@425: arm*-semi) ohair@425: os=-aout ohair@425: ;; ohair@425: c4x-* | tic4x-*) ohair@425: os=-coff ohair@425: ;; ohair@425: # This must come before the *-dec entry. ohair@425: pdp10-*) ohair@425: os=-tops20 ohair@425: ;; ohair@425: pdp11-*) ohair@425: os=-none ohair@425: ;; ohair@425: *-dec | vax-*) ohair@425: os=-ultrix4.2 ohair@425: ;; ohair@425: m68*-apollo) ohair@425: os=-domain ohair@425: ;; ohair@425: i386-sun) ohair@425: os=-sunos4.0.2 ohair@425: ;; ohair@425: m68000-sun) ohair@425: os=-sunos3 ohair@425: # This also exists in the configure program, but was not the ohair@425: # default. ohair@425: # os=-sunos4 ohair@425: ;; ohair@425: m68*-cisco) ohair@425: os=-aout ohair@425: ;; ohair@425: mep-*) ohair@425: os=-elf ohair@425: ;; ohair@425: mips*-cisco) ohair@425: os=-elf ohair@425: ;; ohair@425: mips*-*) ohair@425: os=-elf ohair@425: ;; ohair@425: or32-*) ohair@425: os=-coff ohair@425: ;; ohair@425: *-tti) # must be before sparc entry or we get the wrong os. ohair@425: os=-sysv3 ohair@425: ;; ohair@425: sparc-* | *-sun) ohair@425: os=-sunos4.1.1 ohair@425: ;; ohair@425: *-be) ohair@425: os=-beos ohair@425: ;; ohair@425: *-haiku) ohair@425: os=-haiku ohair@425: ;; ohair@425: *-ibm) ohair@425: os=-aix ohair@425: ;; ohair@425: *-knuth) ohair@425: os=-mmixware ohair@425: ;; ohair@425: *-wec) ohair@425: os=-proelf ohair@425: ;; ohair@425: *-winbond) ohair@425: os=-proelf ohair@425: ;; ohair@425: *-oki) ohair@425: os=-proelf ohair@425: ;; ohair@425: *-hp) ohair@425: os=-hpux ohair@425: ;; ohair@425: *-hitachi) ohair@425: os=-hiux ohair@425: ;; ohair@425: i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) ohair@425: os=-sysv ohair@425: ;; ohair@425: *-cbm) ohair@425: os=-amigaos ohair@425: ;; ohair@425: *-dg) ohair@425: os=-dgux ohair@425: ;; ohair@425: *-dolphin) ohair@425: os=-sysv3 ohair@425: ;; ohair@425: m68k-ccur) ohair@425: os=-rtu ohair@425: ;; ohair@425: m88k-omron*) ohair@425: os=-luna ohair@425: ;; ohair@425: *-next ) ohair@425: os=-nextstep ohair@425: ;; ohair@425: *-sequent) ohair@425: os=-ptx ohair@425: ;; ohair@425: *-crds) ohair@425: os=-unos ohair@425: ;; ohair@425: *-ns) ohair@425: os=-genix ohair@425: ;; ohair@425: i370-*) ohair@425: os=-mvs ohair@425: ;; ohair@425: *-next) ohair@425: os=-nextstep3 ohair@425: ;; ohair@425: *-gould) ohair@425: os=-sysv ohair@425: ;; ohair@425: *-highlevel) ohair@425: os=-bsd ohair@425: ;; ohair@425: *-encore) ohair@425: os=-bsd ohair@425: ;; ohair@425: *-sgi) ohair@425: os=-irix ohair@425: ;; ohair@425: *-siemens) ohair@425: os=-sysv4 ohair@425: ;; ohair@425: *-masscomp) ohair@425: os=-rtu ohair@425: ;; ohair@425: f30[01]-fujitsu | f700-fujitsu) ohair@425: os=-uxpv ohair@425: ;; ohair@425: *-rom68k) ohair@425: os=-coff ohair@425: ;; ohair@425: *-*bug) ohair@425: os=-coff ohair@425: ;; ohair@425: *-apple) ohair@425: os=-macos ohair@425: ;; ohair@425: *-atari*) ohair@425: os=-mint ohair@425: ;; ohair@425: *) ohair@425: os=-none ohair@425: ;; ohair@425: esac ohair@425: fi ohair@425: ohair@425: # Here we handle the case where we know the os, and the CPU type, but not the ohair@425: # manufacturer. We pick the logical manufacturer. ohair@425: vendor=unknown ohair@425: case $basic_machine in ohair@425: *-unknown) ohair@425: case $os in ohair@425: -riscix*) ohair@425: vendor=acorn ohair@425: ;; ohair@425: -sunos*) ohair@425: vendor=sun ohair@425: ;; ohair@425: -aix*) ohair@425: vendor=ibm ohair@425: ;; ohair@425: -beos*) ohair@425: vendor=be ohair@425: ;; ohair@425: -hpux*) ohair@425: vendor=hp ohair@425: ;; ohair@425: -mpeix*) ohair@425: vendor=hp ohair@425: ;; ohair@425: -hiux*) ohair@425: vendor=hitachi ohair@425: ;; ohair@425: -unos*) ohair@425: vendor=crds ohair@425: ;; ohair@425: -dgux*) ohair@425: vendor=dg ohair@425: ;; ohair@425: -luna*) ohair@425: vendor=omron ohair@425: ;; ohair@425: -genix*) ohair@425: vendor=ns ohair@425: ;; ohair@425: -mvs* | -opened*) ohair@425: vendor=ibm ohair@425: ;; ohair@425: -os400*) ohair@425: vendor=ibm ohair@425: ;; ohair@425: -ptx*) ohair@425: vendor=sequent ohair@425: ;; ohair@425: -tpf*) ohair@425: vendor=ibm ohair@425: ;; ohair@425: -vxsim* | -vxworks* | -windiss*) ohair@425: vendor=wrs ohair@425: ;; ohair@425: -aux*) ohair@425: vendor=apple ohair@425: ;; ohair@425: -hms*) ohair@425: vendor=hitachi ohair@425: ;; ohair@425: -mpw* | -macos*) ohair@425: vendor=apple ohair@425: ;; ohair@425: -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) ohair@425: vendor=atari ohair@425: ;; ohair@425: -vos*) ohair@425: vendor=stratus ohair@425: ;; ohair@425: esac ohair@425: basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` ohair@425: ;; ohair@425: esac ohair@425: ohair@425: echo $basic_machine$os ohair@425: exit ohair@425: ohair@425: # Local variables: ohair@425: # eval: (add-hook 'write-file-hooks 'time-stamp) ohair@425: # time-stamp-start: "timestamp='" ohair@425: # time-stamp-format: "%:y-%02m-%02d" ohair@425: # time-stamp-end: "'" ohair@425: # End: