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