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