Mercurial > dropbear
comparison config.sub @ 792:239ede24d54f
Update config.guess and config.sub
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Mon, 13 May 2013 21:06:35 +0800 |
parents | 5587d151d5a2 |
children | 369a811e466a |
comparison
equal
deleted
inserted
replaced
791:0bf76f54de6f | 792:239ede24d54f |
---|---|
1 #! /bin/sh | 1 #! /bin/sh |
2 # Configuration validation subroutine script. | 2 # Configuration validation subroutine script. |
3 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, | 3 # Copyright 1992-2013 Free Software Foundation, Inc. |
4 # 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, | 4 |
5 # Inc. | 5 timestamp='2013-04-24' |
6 | 6 |
7 timestamp='2007-01-18' | 7 # This file is free software; you can redistribute it and/or modify it |
8 | 8 # under the terms of the GNU General Public License as published by |
9 # This file is (in principle) common to ALL GNU software. | 9 # the Free Software Foundation; either version 3 of the License, or |
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. | 10 # (at your option) any later version. |
17 # | 11 # |
18 # This program is distributed in the hope that it will be useful, | 12 # This program is distributed in the hope that it will be useful, but |
19 # but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 # WITHOUT ANY WARRANTY; without even the implied warranty of |
20 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
21 # GNU General Public License for more details. | 15 # General Public License for more details. |
22 # | 16 # |
23 # You should have received a copy of the GNU General Public License | 17 # You should have received a copy of the GNU General Public License |
24 # along with this program; if not, write to the Free Software | 18 # along with this program; if not, see <http://www.gnu.org/licenses/>. |
25 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA | |
26 # 02110-1301, USA. | |
27 # | 19 # |
28 # As a special exception to the GNU General Public License, if you | 20 # As a special exception to the GNU General Public License, if you |
29 # distribute this file as part of a program that contains a | 21 # distribute this file as part of a program that contains a |
30 # configuration script generated by Autoconf, you may include it under | 22 # configuration script generated by Autoconf, you may include it under |
31 # the same distribution terms that you use for the rest of that program. | 23 # the same distribution terms that you use for the rest of that |
32 | 24 # program. This Exception is an additional permission under section 7 |
33 | 25 # of the GNU General Public License, version 3 ("GPLv3"). |
34 # Please send patches to <[email protected]>. Submit a context | 26 |
35 # diff and a properly formatted ChangeLog entry. | 27 |
28 # Please send patches with a ChangeLog entry to [email protected]. | |
36 # | 29 # |
37 # Configuration subroutine to validate and canonicalize a configuration type. | 30 # Configuration subroutine to validate and canonicalize a configuration type. |
38 # Supply the specified configuration type as an argument. | 31 # 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. | 32 # 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. | 33 # Otherwise, we print the canonical config type on stdout and succeed. |
34 | |
35 # You can get the latest version of this script from: | |
36 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD | |
41 | 37 |
42 # This file is supposed to be the same for all GNU packages | 38 # This file is supposed to be the same for all GNU packages |
43 # and recognize all the CPU types, system types and aliases | 39 # and recognize all the CPU types, system types and aliases |
44 # that are meaningful with *any* GNU software. | 40 # that are meaningful with *any* GNU software. |
45 # Each package is responsible for reporting which valid configurations | 41 # Each package is responsible for reporting which valid configurations |
70 Report bugs and patches to <[email protected]>." | 66 Report bugs and patches to <[email protected]>." |
71 | 67 |
72 version="\ | 68 version="\ |
73 GNU config.sub ($timestamp) | 69 GNU config.sub ($timestamp) |
74 | 70 |
75 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 | 71 Copyright 1992-2013 Free Software Foundation, Inc. |
76 Free Software Foundation, Inc. | |
77 | 72 |
78 This is free software; see the source for copying conditions. There is NO | 73 This is free software; see the source for copying conditions. There is NO |
79 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." | 74 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
80 | 75 |
81 help=" | 76 help=" |
118 | 113 |
119 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). | 114 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). |
120 # Here we must recognize all the valid KERNEL-OS combinations. | 115 # Here we must recognize all the valid KERNEL-OS combinations. |
121 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` | 116 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` |
122 case $maybe_os in | 117 case $maybe_os in |
123 nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \ | 118 nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ |
124 uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \ | 119 linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ |
120 knetbsd*-gnu* | netbsd*-gnu* | \ | |
121 kopensolaris*-gnu* | \ | |
125 storm-chaos* | os2-emx* | rtmk-nova*) | 122 storm-chaos* | os2-emx* | rtmk-nova*) |
126 os=-$maybe_os | 123 os=-$maybe_os |
127 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` | 124 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` |
125 ;; | |
126 android-linux) | |
127 os=-linux-android | |
128 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown | |
128 ;; | 129 ;; |
129 *) | 130 *) |
130 basic_machine=`echo $1 | sed 's/-[^-]*$//'` | 131 basic_machine=`echo $1 | sed 's/-[^-]*$//'` |
131 if [ $basic_machine != $1 ] | 132 if [ $basic_machine != $1 ] |
132 then os=`echo $1 | sed 's/.*-/-/'` | 133 then os=`echo $1 | sed 's/.*-/-/'` |
146 -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ | 147 -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ |
147 -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ | 148 -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ |
148 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ | 149 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ |
149 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ | 150 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ |
150 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ | 151 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ |
151 -apple | -axis | -knuth | -cray) | 152 -apple | -axis | -knuth | -cray | -microblaze*) |
152 os= | 153 os= |
153 basic_machine=$1 | 154 basic_machine=$1 |
155 ;; | |
156 -bluegene*) | |
157 os=-cnk | |
154 ;; | 158 ;; |
155 -sim | -cisco | -oki | -wec | -winbond) | 159 -sim | -cisco | -oki | -wec | -winbond) |
156 os= | 160 os= |
157 basic_machine=$1 | 161 basic_machine=$1 |
158 ;; | 162 ;; |
164 ;; | 168 ;; |
165 -chorusos*) | 169 -chorusos*) |
166 os=-chorusos | 170 os=-chorusos |
167 basic_machine=$1 | 171 basic_machine=$1 |
168 ;; | 172 ;; |
169 -chorusrdb) | 173 -chorusrdb) |
170 os=-chorusrdb | 174 os=-chorusrdb |
171 basic_machine=$1 | 175 basic_machine=$1 |
172 ;; | 176 ;; |
173 -hiux*) | 177 -hiux*) |
174 os=-hiuxwe2 | 178 os=-hiuxwe2 |
175 ;; | 179 ;; |
176 -sco6) | 180 -sco6) |
177 os=-sco5v6 | 181 os=-sco5v6 |
211 -clix*) | 215 -clix*) |
212 basic_machine=clipper-intergraph | 216 basic_machine=clipper-intergraph |
213 ;; | 217 ;; |
214 -isc*) | 218 -isc*) |
215 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | 219 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
220 ;; | |
221 -lynx*178) | |
222 os=-lynxos178 | |
223 ;; | |
224 -lynx*5) | |
225 os=-lynxos5 | |
216 ;; | 226 ;; |
217 -lynx*) | 227 -lynx*) |
218 os=-lynxos | 228 os=-lynxos |
219 ;; | 229 ;; |
220 -ptx*) | 230 -ptx*) |
236 case $basic_machine in | 246 case $basic_machine in |
237 # Recognize the basic CPU types without company name. | 247 # Recognize the basic CPU types without company name. |
238 # Some are omitted here because they have special meanings below. | 248 # Some are omitted here because they have special meanings below. |
239 1750a | 580 \ | 249 1750a | 580 \ |
240 | a29k \ | 250 | a29k \ |
251 | aarch64 | aarch64_be \ | |
241 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ | 252 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ |
242 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ | 253 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ |
243 | am33_2.0 \ | 254 | am33_2.0 \ |
244 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ | 255 | arc | arceb \ |
256 | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \ | |
257 | avr | avr32 \ | |
258 | be32 | be64 \ | |
245 | bfin \ | 259 | bfin \ |
246 | c4x | clipper \ | 260 | c4x | clipper \ |
247 | d10v | d30v | dlx | dsp16xx \ | 261 | d10v | d30v | dlx | dsp16xx \ |
262 | epiphany \ | |
248 | fido | fr30 | frv \ | 263 | fido | fr30 | frv \ |
249 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | 264 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ |
265 | hexagon \ | |
250 | i370 | i860 | i960 | ia64 \ | 266 | i370 | i860 | i960 | ia64 \ |
251 | ip2k | iq2000 \ | 267 | ip2k | iq2000 \ |
268 | le32 | le64 \ | |
269 | lm32 \ | |
252 | m32c | m32r | m32rle | m68000 | m68k | m88k \ | 270 | m32c | m32r | m32rle | m68000 | m68k | m88k \ |
253 | maxq | mb | microblaze | mcore | mep \ | 271 | maxq | mb | microblaze | microblazeel | mcore | mep | metag \ |
254 | mips | mipsbe | mipseb | mipsel | mipsle \ | 272 | mips | mipsbe | mipseb | mipsel | mipsle \ |
255 | mips16 \ | 273 | mips16 \ |
256 | mips64 | mips64el \ | 274 | mips64 | mips64el \ |
275 | mips64octeon | mips64octeonel \ | |
276 | mips64orion | mips64orionel \ | |
277 | mips64r5900 | mips64r5900el \ | |
257 | mips64vr | mips64vrel \ | 278 | mips64vr | mips64vrel \ |
258 | mips64orion | mips64orionel \ | |
259 | mips64vr4100 | mips64vr4100el \ | 279 | mips64vr4100 | mips64vr4100el \ |
260 | mips64vr4300 | mips64vr4300el \ | 280 | mips64vr4300 | mips64vr4300el \ |
261 | mips64vr5000 | mips64vr5000el \ | 281 | mips64vr5000 | mips64vr5000el \ |
262 | mips64vr5900 | mips64vr5900el \ | 282 | mips64vr5900 | mips64vr5900el \ |
263 | mipsisa32 | mipsisa32el \ | 283 | mipsisa32 | mipsisa32el \ |
264 | mipsisa32r2 | mipsisa32r2el \ | 284 | mipsisa32r2 | mipsisa32r2el \ |
265 | mipsisa64 | mipsisa64el \ | 285 | mipsisa64 | mipsisa64el \ |
266 | mipsisa64r2 | mipsisa64r2el \ | 286 | mipsisa64r2 | mipsisa64r2el \ |
267 | mipsisa64sb1 | mipsisa64sb1el \ | 287 | mipsisa64sb1 | mipsisa64sb1el \ |
268 | mipsisa64sr71k | mipsisa64sr71kel \ | 288 | mipsisa64sr71k | mipsisa64sr71kel \ |
289 | mipsr5900 | mipsr5900el \ | |
269 | mipstx39 | mipstx39el \ | 290 | mipstx39 | mipstx39el \ |
270 | mn10200 | mn10300 \ | 291 | mn10200 | mn10300 \ |
292 | moxie \ | |
271 | mt \ | 293 | mt \ |
272 | msp430 \ | 294 | msp430 \ |
273 | nios | nios2 \ | 295 | nds32 | nds32le | nds32be \ |
296 | nios | nios2 | nios2eb | nios2el \ | |
274 | ns16k | ns32k \ | 297 | ns16k | ns32k \ |
275 | or32 \ | 298 | open8 \ |
299 | or1k | or32 \ | |
276 | pdp10 | pdp11 | pj | pjl \ | 300 | pdp10 | pdp11 | pj | pjl \ |
277 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ | 301 | powerpc | powerpc64 | powerpc64le | powerpcle \ |
278 | pyramid \ | 302 | pyramid \ |
303 | rl78 | rx \ | |
279 | score \ | 304 | score \ |
280 | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ | 305 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ |
281 | sh64 | sh64le \ | 306 | sh64 | sh64le \ |
282 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ | 307 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ |
283 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ | 308 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ |
284 | spu | strongarm \ | 309 | spu \ |
285 | tahoe | thumb | tic4x | tic80 | tron \ | 310 | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \ |
286 | v850 | v850e \ | 311 | ubicom32 \ |
312 | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \ | |
287 | we32k \ | 313 | we32k \ |
288 | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \ | 314 | x86 | xc16x | xstormy16 | xtensa \ |
289 | z8k) | 315 | z8k | z80) |
290 basic_machine=$basic_machine-unknown | 316 basic_machine=$basic_machine-unknown |
291 ;; | 317 ;; |
292 m6811 | m68hc11 | m6812 | m68hc12) | 318 c54x) |
293 # Motorola 68HC11/12. | 319 basic_machine=tic54x-unknown |
320 ;; | |
321 c55x) | |
322 basic_machine=tic55x-unknown | |
323 ;; | |
324 c6x) | |
325 basic_machine=tic6x-unknown | |
326 ;; | |
327 m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip) | |
294 basic_machine=$basic_machine-unknown | 328 basic_machine=$basic_machine-unknown |
295 os=-none | 329 os=-none |
296 ;; | 330 ;; |
297 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) | 331 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) |
298 ;; | 332 ;; |
299 ms1) | 333 ms1) |
300 basic_machine=mt-unknown | 334 basic_machine=mt-unknown |
335 ;; | |
336 | |
337 strongarm | thumb | xscale) | |
338 basic_machine=arm-unknown | |
339 ;; | |
340 xgate) | |
341 basic_machine=$basic_machine-unknown | |
342 os=-none | |
343 ;; | |
344 xscaleeb) | |
345 basic_machine=armeb-unknown | |
346 ;; | |
347 | |
348 xscaleel) | |
349 basic_machine=armel-unknown | |
301 ;; | 350 ;; |
302 | 351 |
303 # We use `pc' rather than `unknown' | 352 # We use `pc' rather than `unknown' |
304 # because (1) that's what they normally are, and | 353 # because (1) that's what they normally are, and |
305 # (2) the word "unknown" tends to confuse beginning users. | 354 # (2) the word "unknown" tends to confuse beginning users. |
312 exit 1 | 361 exit 1 |
313 ;; | 362 ;; |
314 # Recognize the basic CPU types with company name. | 363 # Recognize the basic CPU types with company name. |
315 580-* \ | 364 580-* \ |
316 | a29k-* \ | 365 | a29k-* \ |
366 | aarch64-* | aarch64_be-* \ | |
317 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ | 367 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ |
318 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ | 368 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ |
319 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ | 369 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \ |
320 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ | 370 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ |
321 | avr-* | avr32-* \ | 371 | avr-* | avr32-* \ |
372 | be32-* | be64-* \ | |
322 | bfin-* | bs2000-* \ | 373 | bfin-* | bs2000-* \ |
323 | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ | 374 | c[123]* | c30-* | [cjt]90-* | c4x-* \ |
324 | clipper-* | craynv-* | cydra-* \ | 375 | clipper-* | craynv-* | cydra-* \ |
325 | d10v-* | d30v-* | dlx-* \ | 376 | d10v-* | d30v-* | dlx-* \ |
326 | elxsi-* \ | 377 | elxsi-* \ |
327 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ | 378 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ |
328 | h8300-* | h8500-* \ | 379 | h8300-* | h8500-* \ |
329 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ | 380 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ |
381 | hexagon-* \ | |
330 | i*86-* | i860-* | i960-* | ia64-* \ | 382 | i*86-* | i860-* | i960-* | ia64-* \ |
331 | ip2k-* | iq2000-* \ | 383 | ip2k-* | iq2000-* \ |
384 | le32-* | le64-* \ | |
385 | lm32-* \ | |
332 | m32c-* | m32r-* | m32rle-* \ | 386 | m32c-* | m32r-* | m32rle-* \ |
333 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ | 387 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ |
334 | m88110-* | m88k-* | maxq-* | mcore-* \ | 388 | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \ |
389 | microblaze-* | microblazeel-* \ | |
335 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ | 390 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ |
336 | mips16-* \ | 391 | mips16-* \ |
337 | mips64-* | mips64el-* \ | 392 | mips64-* | mips64el-* \ |
393 | mips64octeon-* | mips64octeonel-* \ | |
394 | mips64orion-* | mips64orionel-* \ | |
395 | mips64r5900-* | mips64r5900el-* \ | |
338 | mips64vr-* | mips64vrel-* \ | 396 | mips64vr-* | mips64vrel-* \ |
339 | mips64orion-* | mips64orionel-* \ | |
340 | mips64vr4100-* | mips64vr4100el-* \ | 397 | mips64vr4100-* | mips64vr4100el-* \ |
341 | mips64vr4300-* | mips64vr4300el-* \ | 398 | mips64vr4300-* | mips64vr4300el-* \ |
342 | mips64vr5000-* | mips64vr5000el-* \ | 399 | mips64vr5000-* | mips64vr5000el-* \ |
343 | mips64vr5900-* | mips64vr5900el-* \ | 400 | mips64vr5900-* | mips64vr5900el-* \ |
344 | mipsisa32-* | mipsisa32el-* \ | 401 | mipsisa32-* | mipsisa32el-* \ |
345 | mipsisa32r2-* | mipsisa32r2el-* \ | 402 | mipsisa32r2-* | mipsisa32r2el-* \ |
346 | mipsisa64-* | mipsisa64el-* \ | 403 | mipsisa64-* | mipsisa64el-* \ |
347 | mipsisa64r2-* | mipsisa64r2el-* \ | 404 | mipsisa64r2-* | mipsisa64r2el-* \ |
348 | mipsisa64sb1-* | mipsisa64sb1el-* \ | 405 | mipsisa64sb1-* | mipsisa64sb1el-* \ |
349 | mipsisa64sr71k-* | mipsisa64sr71kel-* \ | 406 | mipsisa64sr71k-* | mipsisa64sr71kel-* \ |
407 | mipsr5900-* | mipsr5900el-* \ | |
350 | mipstx39-* | mipstx39el-* \ | 408 | mipstx39-* | mipstx39el-* \ |
351 | mmix-* \ | 409 | mmix-* \ |
352 | mt-* \ | 410 | mt-* \ |
353 | msp430-* \ | 411 | msp430-* \ |
354 | nios-* | nios2-* \ | 412 | nds32-* | nds32le-* | nds32be-* \ |
413 | nios-* | nios2-* | nios2eb-* | nios2el-* \ | |
355 | none-* | np1-* | ns16k-* | ns32k-* \ | 414 | none-* | np1-* | ns16k-* | ns32k-* \ |
415 | open8-* \ | |
356 | orion-* \ | 416 | orion-* \ |
357 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ | 417 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ |
358 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ | 418 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \ |
359 | pyramid-* \ | 419 | pyramid-* \ |
360 | romp-* | rs6000-* \ | 420 | rl78-* | romp-* | rs6000-* | rx-* \ |
361 | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ | 421 | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ |
362 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ | 422 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ |
363 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ | 423 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ |
364 | sparclite-* \ | 424 | sparclite-* \ |
365 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \ | 425 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \ |
366 | tahoe-* | thumb-* \ | 426 | tahoe-* \ |
367 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ | 427 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ |
428 | tile*-* \ | |
368 | tron-* \ | 429 | tron-* \ |
369 | v850-* | v850e-* | vax-* \ | 430 | ubicom32-* \ |
431 | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \ | |
432 | vax-* \ | |
370 | we32k-* \ | 433 | we32k-* \ |
371 | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \ | 434 | x86-* | x86_64-* | xc16x-* | xps100-* \ |
372 | xstormy16-* | xtensa-* \ | 435 | xstormy16-* | xtensa*-* \ |
373 | ymp-* \ | 436 | ymp-* \ |
374 | z8k-*) | 437 | z8k-* | z80-*) |
438 ;; | |
439 # Recognize the basic CPU types without company name, with glob match. | |
440 xtensa*) | |
441 basic_machine=$basic_machine-unknown | |
375 ;; | 442 ;; |
376 # Recognize the various machine names and aliases which stand | 443 # Recognize the various machine names and aliases which stand |
377 # for a CPU type and a company and sometimes even an OS. | 444 # for a CPU type and a company and sometimes even an OS. |
378 386bsd) | 445 386bsd) |
379 basic_machine=i386-unknown | 446 basic_machine=i386-unknown |
387 ;; | 454 ;; |
388 a29khif) | 455 a29khif) |
389 basic_machine=a29k-amd | 456 basic_machine=a29k-amd |
390 os=-udi | 457 os=-udi |
391 ;; | 458 ;; |
392 abacus) | 459 abacus) |
393 basic_machine=abacus-unknown | 460 basic_machine=abacus-unknown |
394 ;; | 461 ;; |
395 adobe68k) | 462 adobe68k) |
396 basic_machine=m68010-adobe | 463 basic_machine=m68010-adobe |
397 os=-scout | 464 os=-scout |
433 ;; | 500 ;; |
434 apollo68bsd) | 501 apollo68bsd) |
435 basic_machine=m68k-apollo | 502 basic_machine=m68k-apollo |
436 os=-bsd | 503 os=-bsd |
437 ;; | 504 ;; |
505 aros) | |
506 basic_machine=i386-pc | |
507 os=-aros | |
508 ;; | |
438 aux) | 509 aux) |
439 basic_machine=m68k-apple | 510 basic_machine=m68k-apple |
440 os=-aux | 511 os=-aux |
441 ;; | 512 ;; |
442 balance) | 513 balance) |
443 basic_machine=ns32k-sequent | 514 basic_machine=ns32k-sequent |
444 os=-dynix | 515 os=-dynix |
445 ;; | 516 ;; |
517 blackfin) | |
518 basic_machine=bfin-unknown | |
519 os=-linux | |
520 ;; | |
521 blackfin-*) | |
522 basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` | |
523 os=-linux | |
524 ;; | |
525 bluegene*) | |
526 basic_machine=powerpc-ibm | |
527 os=-cnk | |
528 ;; | |
529 c54x-*) | |
530 basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'` | |
531 ;; | |
532 c55x-*) | |
533 basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'` | |
534 ;; | |
535 c6x-*) | |
536 basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'` | |
537 ;; | |
446 c90) | 538 c90) |
447 basic_machine=c90-cray | 539 basic_machine=c90-cray |
448 os=-unicos | 540 os=-unicos |
449 ;; | 541 ;; |
542 cegcc) | |
543 basic_machine=arm-unknown | |
544 os=-cegcc | |
545 ;; | |
450 convex-c1) | 546 convex-c1) |
451 basic_machine=c1-convex | 547 basic_machine=c1-convex |
452 os=-bsd | 548 os=-bsd |
453 ;; | 549 ;; |
454 convex-c2) | 550 convex-c2) |
473 ;; | 569 ;; |
474 craynv) | 570 craynv) |
475 basic_machine=craynv-cray | 571 basic_machine=craynv-cray |
476 os=-unicosmp | 572 os=-unicosmp |
477 ;; | 573 ;; |
478 cr16c) | 574 cr16 | cr16-*) |
479 basic_machine=cr16c-unknown | 575 basic_machine=cr16-unknown |
480 os=-elf | 576 os=-elf |
481 ;; | 577 ;; |
482 crds | unos) | 578 crds | unos) |
483 basic_machine=m68k-crds | 579 basic_machine=m68k-crds |
484 ;; | 580 ;; |
512 ;; | 608 ;; |
513 delta88) | 609 delta88) |
514 basic_machine=m88k-motorola | 610 basic_machine=m88k-motorola |
515 os=-sysv3 | 611 os=-sysv3 |
516 ;; | 612 ;; |
613 dicos) | |
614 basic_machine=i686-pc | |
615 os=-dicos | |
616 ;; | |
517 djgpp) | 617 djgpp) |
518 basic_machine=i586-pc | 618 basic_machine=i586-pc |
519 os=-msdosdjgpp | 619 os=-msdosdjgpp |
520 ;; | 620 ;; |
521 dpx20 | dpx20-*) | 621 dpx20 | dpx20-*) |
627 os=-proelf | 727 os=-proelf |
628 ;; | 728 ;; |
629 i370-ibm* | ibm*) | 729 i370-ibm* | ibm*) |
630 basic_machine=i370-ibm | 730 basic_machine=i370-ibm |
631 ;; | 731 ;; |
632 # I'm not sure what "Sysv32" means. Should this be sysv3.2? | |
633 i*86v32) | 732 i*86v32) |
634 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` | 733 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
635 os=-sysv32 | 734 os=-sysv32 |
636 ;; | 735 ;; |
637 i*86v4*) | 736 i*86v4*) |
666 ;; | 765 ;; |
667 isi68 | isi) | 766 isi68 | isi) |
668 basic_machine=m68k-isi | 767 basic_machine=m68k-isi |
669 os=-sysv | 768 os=-sysv |
670 ;; | 769 ;; |
770 m68knommu) | |
771 basic_machine=m68k-unknown | |
772 os=-linux | |
773 ;; | |
774 m68knommu-*) | |
775 basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` | |
776 os=-linux | |
777 ;; | |
671 m88k-omron*) | 778 m88k-omron*) |
672 basic_machine=m88k-omron | 779 basic_machine=m88k-omron |
673 ;; | 780 ;; |
674 magnum | m3230) | 781 magnum | m3230) |
675 basic_machine=mips-mips | 782 basic_machine=mips-mips |
677 ;; | 784 ;; |
678 merlin) | 785 merlin) |
679 basic_machine=ns32k-utek | 786 basic_machine=ns32k-utek |
680 os=-sysv | 787 os=-sysv |
681 ;; | 788 ;; |
789 microblaze*) | |
790 basic_machine=microblaze-xilinx | |
791 ;; | |
792 mingw64) | |
793 basic_machine=x86_64-pc | |
794 os=-mingw64 | |
795 ;; | |
682 mingw32) | 796 mingw32) |
683 basic_machine=i386-pc | 797 basic_machine=i386-pc |
684 os=-mingw32 | 798 os=-mingw32 |
685 ;; | 799 ;; |
800 mingw32ce) | |
801 basic_machine=arm-unknown | |
802 os=-mingw32ce | |
803 ;; | |
686 miniframe) | 804 miniframe) |
687 basic_machine=m68000-convergent | 805 basic_machine=m68000-convergent |
688 ;; | 806 ;; |
689 *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) | 807 *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) |
690 basic_machine=m68k-atari | 808 basic_machine=m68k-atari |
709 os=-msdos | 827 os=-msdos |
710 ;; | 828 ;; |
711 ms1-*) | 829 ms1-*) |
712 basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` | 830 basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` |
713 ;; | 831 ;; |
832 msys) | |
833 basic_machine=i386-pc | |
834 os=-msys | |
835 ;; | |
714 mvs) | 836 mvs) |
715 basic_machine=i370-ibm | 837 basic_machine=i370-ibm |
716 os=-mvs | 838 os=-mvs |
839 ;; | |
840 nacl) | |
841 basic_machine=le32-unknown | |
842 os=-nacl | |
717 ;; | 843 ;; |
718 ncr3000) | 844 ncr3000) |
719 basic_machine=i486-ncr | 845 basic_machine=i486-ncr |
720 os=-sysv4 | 846 os=-sysv4 |
721 ;; | 847 ;; |
777 os=-nonstopux | 903 os=-nonstopux |
778 ;; | 904 ;; |
779 np1) | 905 np1) |
780 basic_machine=np1-gould | 906 basic_machine=np1-gould |
781 ;; | 907 ;; |
908 neo-tandem) | |
909 basic_machine=neo-tandem | |
910 ;; | |
911 nse-tandem) | |
912 basic_machine=nse-tandem | |
913 ;; | |
782 nsr-tandem) | 914 nsr-tandem) |
783 basic_machine=nsr-tandem | 915 basic_machine=nsr-tandem |
784 ;; | 916 ;; |
785 op50n-* | op60c-*) | 917 op50n-* | op60c-*) |
786 basic_machine=hppa1.1-oki | 918 basic_machine=hppa1.1-oki |
807 ;; | 939 ;; |
808 paragon) | 940 paragon) |
809 basic_machine=i860-intel | 941 basic_machine=i860-intel |
810 os=-osf | 942 os=-osf |
811 ;; | 943 ;; |
944 parisc) | |
945 basic_machine=hppa-unknown | |
946 os=-linux | |
947 ;; | |
948 parisc-*) | |
949 basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` | |
950 os=-linux | |
951 ;; | |
812 pbd) | 952 pbd) |
813 basic_machine=sparc-tti | 953 basic_machine=sparc-tti |
814 ;; | 954 ;; |
815 pbb) | 955 pbb) |
816 basic_machine=m68k-tti | 956 basic_machine=m68k-tti |
851 pn) | 991 pn) |
852 basic_machine=pn-gould | 992 basic_machine=pn-gould |
853 ;; | 993 ;; |
854 power) basic_machine=power-ibm | 994 power) basic_machine=power-ibm |
855 ;; | 995 ;; |
856 ppc) basic_machine=powerpc-unknown | 996 ppc | ppcbe) basic_machine=powerpc-unknown |
857 ;; | 997 ;; |
858 ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` | 998 ppc-* | ppcbe-*) |
999 basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` | |
859 ;; | 1000 ;; |
860 ppcle | powerpclittle | ppc-le | powerpc-little) | 1001 ppcle | powerpclittle | ppc-le | powerpc-little) |
861 basic_machine=powerpcle-unknown | 1002 basic_machine=powerpcle-unknown |
862 ;; | 1003 ;; |
863 ppcle-* | powerpclittle-*) | 1004 ppcle-* | powerpclittle-*) |
878 ;; | 1019 ;; |
879 pw32) | 1020 pw32) |
880 basic_machine=i586-unknown | 1021 basic_machine=i586-unknown |
881 os=-pw32 | 1022 os=-pw32 |
882 ;; | 1023 ;; |
883 rdos) | 1024 rdos | rdos64) |
1025 basic_machine=x86_64-pc | |
1026 os=-rdos | |
1027 ;; | |
1028 rdos32) | |
884 basic_machine=i386-pc | 1029 basic_machine=i386-pc |
885 os=-rdos | 1030 os=-rdos |
886 ;; | 1031 ;; |
887 rom68k) | 1032 rom68k) |
888 basic_machine=m68k-rom68k | 1033 basic_machine=m68k-rom68k |
947 ;; | 1092 ;; |
948 stratus) | 1093 stratus) |
949 basic_machine=i860-stratus | 1094 basic_machine=i860-stratus |
950 os=-sysv4 | 1095 os=-sysv4 |
951 ;; | 1096 ;; |
1097 strongarm-* | thumb-*) | |
1098 basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'` | |
1099 ;; | |
952 sun2) | 1100 sun2) |
953 basic_machine=m68000-sun | 1101 basic_machine=m68000-sun |
954 ;; | 1102 ;; |
955 sun2os3) | 1103 sun2os3) |
956 basic_machine=m68000-sun | 1104 basic_machine=m68000-sun |
1003 ;; | 1151 ;; |
1004 t90) | 1152 t90) |
1005 basic_machine=t90-cray | 1153 basic_machine=t90-cray |
1006 os=-unicos | 1154 os=-unicos |
1007 ;; | 1155 ;; |
1008 tic54x | c54x*) | 1156 tile*) |
1009 basic_machine=tic54x-unknown | 1157 basic_machine=$basic_machine-unknown |
1010 os=-coff | 1158 os=-linux-gnu |
1011 ;; | |
1012 tic55x | c55x*) | |
1013 basic_machine=tic55x-unknown | |
1014 os=-coff | |
1015 ;; | |
1016 tic6x | c6x*) | |
1017 basic_machine=tic6x-unknown | |
1018 os=-coff | |
1019 ;; | 1159 ;; |
1020 tx39) | 1160 tx39) |
1021 basic_machine=mipstx39-unknown | 1161 basic_machine=mipstx39-unknown |
1022 ;; | 1162 ;; |
1023 tx39el) | 1163 tx39el) |
1082 os=-mingw32 | 1222 os=-mingw32 |
1083 ;; | 1223 ;; |
1084 xps | xps100) | 1224 xps | xps100) |
1085 basic_machine=xps100-honeywell | 1225 basic_machine=xps100-honeywell |
1086 ;; | 1226 ;; |
1227 xscale-* | xscalee[bl]-*) | |
1228 basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'` | |
1229 ;; | |
1087 ymp) | 1230 ymp) |
1088 basic_machine=ymp-cray | 1231 basic_machine=ymp-cray |
1089 os=-unicos | 1232 os=-unicos |
1090 ;; | 1233 ;; |
1091 z8k-*-coff) | 1234 z8k-*-coff) |
1092 basic_machine=z8k-unknown | 1235 basic_machine=z8k-unknown |
1236 os=-sim | |
1237 ;; | |
1238 z80-*-coff) | |
1239 basic_machine=z80-unknown | |
1093 os=-sim | 1240 os=-sim |
1094 ;; | 1241 ;; |
1095 none) | 1242 none) |
1096 basic_machine=none-none | 1243 basic_machine=none-none |
1097 os=-none | 1244 os=-none |
1128 basic_machine=pdp11-dec | 1275 basic_machine=pdp11-dec |
1129 ;; | 1276 ;; |
1130 we32k) | 1277 we32k) |
1131 basic_machine=we32k-att | 1278 basic_machine=we32k-att |
1132 ;; | 1279 ;; |
1133 sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele) | 1280 sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) |
1134 basic_machine=sh-unknown | 1281 basic_machine=sh-unknown |
1135 ;; | 1282 ;; |
1136 sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) | 1283 sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) |
1137 basic_machine=sparc-sun | 1284 basic_machine=sparc-sun |
1138 ;; | 1285 ;; |
1175 # Decode manufacturer-specific aliases for certain operating systems. | 1322 # Decode manufacturer-specific aliases for certain operating systems. |
1176 | 1323 |
1177 if [ x"$os" != x"" ] | 1324 if [ x"$os" != x"" ] |
1178 then | 1325 then |
1179 case $os in | 1326 case $os in |
1180 # First match some system type aliases | 1327 # First match some system type aliases |
1181 # that might get confused with valid system types. | 1328 # that might get confused with valid system types. |
1182 # -solaris* is a basic system type, with this one exception. | 1329 # -solaris* is a basic system type, with this one exception. |
1330 -auroraux) | |
1331 os=-auroraux | |
1332 ;; | |
1183 -solaris1 | -solaris1.*) | 1333 -solaris1 | -solaris1.*) |
1184 os=`echo $os | sed -e 's|solaris1|sunos4|'` | 1334 os=`echo $os | sed -e 's|solaris1|sunos4|'` |
1185 ;; | 1335 ;; |
1186 -solaris) | 1336 -solaris) |
1187 os=-solaris2 | 1337 os=-solaris2 |
1198 # First accept the basic system types. | 1348 # First accept the basic system types. |
1199 # The portable systems comes first. | 1349 # The portable systems comes first. |
1200 # Each alternative MUST END IN A *, to match a version number. | 1350 # Each alternative MUST END IN A *, to match a version number. |
1201 # -sysv* is not here because it comes later, after sysvr4. | 1351 # -sysv* is not here because it comes later, after sysvr4. |
1202 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ | 1352 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ |
1203 | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ | 1353 | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ |
1204 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ | 1354 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \ |
1355 | -sym* | -kopensolaris* | -plan9* \ | |
1205 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ | 1356 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ |
1206 | -aos* \ | 1357 | -aos* | -aros* \ |
1207 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ | 1358 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ |
1208 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ | 1359 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ |
1209 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ | 1360 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ |
1210 | -openbsd* | -solidbsd* \ | 1361 | -bitrig* | -openbsd* | -solidbsd* \ |
1211 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ | 1362 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ |
1212 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ | 1363 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ |
1213 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | 1364 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ |
1214 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ | 1365 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ |
1215 | -chorusos* | -chorusrdb* \ | 1366 | -chorusos* | -chorusrdb* | -cegcc* \ |
1216 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ | 1367 | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ |
1217 | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \ | 1368 | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \ |
1369 | -linux-newlib* | -linux-musl* | -linux-uclibc* \ | |
1218 | -uxpv* | -beos* | -mpeix* | -udk* \ | 1370 | -uxpv* | -beos* | -mpeix* | -udk* \ |
1219 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ | 1371 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ |
1220 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ | 1372 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ |
1221 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ | 1373 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ |
1222 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ | 1374 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ |
1223 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ | 1375 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ |
1224 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ | 1376 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ |
1225 | -skyos* | -haiku* | -rdos* | -toppers* | -drops*) | 1377 | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*) |
1226 # Remember, each alternative MUST END IN *, to match a version number. | 1378 # Remember, each alternative MUST END IN *, to match a version number. |
1227 ;; | 1379 ;; |
1228 -qnx*) | 1380 -qnx*) |
1229 case $basic_machine in | 1381 case $basic_machine in |
1230 x86-* | i*86-*) | 1382 x86-* | i*86-*) |
1259 os=`echo $os | sed -e 's|sunos6|solaris3|'` | 1411 os=`echo $os | sed -e 's|sunos6|solaris3|'` |
1260 ;; | 1412 ;; |
1261 -opened*) | 1413 -opened*) |
1262 os=-openedition | 1414 os=-openedition |
1263 ;; | 1415 ;; |
1264 -os400*) | 1416 -os400*) |
1265 os=-os400 | 1417 os=-os400 |
1266 ;; | 1418 ;; |
1267 -wince*) | 1419 -wince*) |
1268 os=-wince | 1420 os=-wince |
1269 ;; | 1421 ;; |
1308 os=`echo $os | sed -e 's|sinix|sysv|'` | 1460 os=`echo $os | sed -e 's|sinix|sysv|'` |
1309 ;; | 1461 ;; |
1310 -sinix*) | 1462 -sinix*) |
1311 os=-sysv4 | 1463 os=-sysv4 |
1312 ;; | 1464 ;; |
1313 -tpf*) | 1465 -tpf*) |
1314 os=-tpf | 1466 os=-tpf |
1315 ;; | 1467 ;; |
1316 -triton*) | 1468 -triton*) |
1317 os=-sysv3 | 1469 os=-sysv3 |
1318 ;; | 1470 ;; |
1344 os=-mint | 1496 os=-mint |
1345 ;; | 1497 ;; |
1346 -aros*) | 1498 -aros*) |
1347 os=-aros | 1499 os=-aros |
1348 ;; | 1500 ;; |
1349 -kaos*) | |
1350 os=-kaos | |
1351 ;; | |
1352 -zvmoe) | 1501 -zvmoe) |
1353 os=-zvmoe | 1502 os=-zvmoe |
1503 ;; | |
1504 -dicos*) | |
1505 os=-dicos | |
1506 ;; | |
1507 -nacl*) | |
1354 ;; | 1508 ;; |
1355 -none) | 1509 -none) |
1356 ;; | 1510 ;; |
1357 *) | 1511 *) |
1358 # Get rid of the `-' at the beginning of $os. | 1512 # Get rid of the `-' at the beginning of $os. |
1372 # that MANUFACTURER isn't an operating system. Otherwise, code above | 1526 # that MANUFACTURER isn't an operating system. Otherwise, code above |
1373 # will signal an error saying that MANUFACTURER isn't an operating | 1527 # will signal an error saying that MANUFACTURER isn't an operating |
1374 # system, and we'll never get to this point. | 1528 # system, and we'll never get to this point. |
1375 | 1529 |
1376 case $basic_machine in | 1530 case $basic_machine in |
1377 score-*) | 1531 score-*) |
1378 os=-elf | 1532 os=-elf |
1379 ;; | 1533 ;; |
1380 spu-*) | 1534 spu-*) |
1381 os=-elf | 1535 os=-elf |
1382 ;; | 1536 ;; |
1383 *-acorn) | 1537 *-acorn) |
1384 os=-riscix1.2 | 1538 os=-riscix1.2 |
1385 ;; | 1539 ;; |
1387 os=-linux | 1541 os=-linux |
1388 ;; | 1542 ;; |
1389 arm*-semi) | 1543 arm*-semi) |
1390 os=-aout | 1544 os=-aout |
1391 ;; | 1545 ;; |
1392 c4x-* | tic4x-*) | 1546 c4x-* | tic4x-*) |
1393 os=-coff | 1547 os=-coff |
1548 ;; | |
1549 hexagon-*) | |
1550 os=-elf | |
1551 ;; | |
1552 tic54x-*) | |
1553 os=-coff | |
1554 ;; | |
1555 tic55x-*) | |
1556 os=-coff | |
1557 ;; | |
1558 tic6x-*) | |
1559 os=-coff | |
1394 ;; | 1560 ;; |
1395 # This must come before the *-dec entry. | 1561 # This must come before the *-dec entry. |
1396 pdp10-*) | 1562 pdp10-*) |
1397 os=-tops20 | 1563 os=-tops20 |
1398 ;; | 1564 ;; |
1408 i386-sun) | 1574 i386-sun) |
1409 os=-sunos4.0.2 | 1575 os=-sunos4.0.2 |
1410 ;; | 1576 ;; |
1411 m68000-sun) | 1577 m68000-sun) |
1412 os=-sunos3 | 1578 os=-sunos3 |
1413 # This also exists in the configure program, but was not the | |
1414 # default. | |
1415 # os=-sunos4 | |
1416 ;; | 1579 ;; |
1417 m68*-cisco) | 1580 m68*-cisco) |
1418 os=-aout | 1581 os=-aout |
1419 ;; | 1582 ;; |
1420 mep-*) | 1583 mep-*) |
1421 os=-elf | 1584 os=-elf |
1422 ;; | 1585 ;; |
1423 mips*-cisco) | 1586 mips*-cisco) |
1424 os=-elf | 1587 os=-elf |
1425 ;; | 1588 ;; |
1426 mips*-*) | 1589 mips*-*) |
1427 os=-elf | 1590 os=-elf |
1428 ;; | 1591 ;; |
1592 or1k-*) | |
1593 os=-elf | |
1594 ;; | |
1429 or32-*) | 1595 or32-*) |
1430 os=-coff | 1596 os=-coff |
1431 ;; | 1597 ;; |
1432 *-tti) # must be before sparc entry or we get the wrong os. | 1598 *-tti) # must be before sparc entry or we get the wrong os. |
1433 os=-sysv3 | 1599 os=-sysv3 |
1442 os=-haiku | 1608 os=-haiku |
1443 ;; | 1609 ;; |
1444 *-ibm) | 1610 *-ibm) |
1445 os=-aix | 1611 os=-aix |
1446 ;; | 1612 ;; |
1447 *-knuth) | 1613 *-knuth) |
1448 os=-mmixware | 1614 os=-mmixware |
1449 ;; | 1615 ;; |
1450 *-wec) | 1616 *-wec) |
1451 os=-proelf | 1617 os=-proelf |
1452 ;; | 1618 ;; |
1547 vendor=acorn | 1713 vendor=acorn |
1548 ;; | 1714 ;; |
1549 -sunos*) | 1715 -sunos*) |
1550 vendor=sun | 1716 vendor=sun |
1551 ;; | 1717 ;; |
1552 -aix*) | 1718 -cnk*|-aix*) |
1553 vendor=ibm | 1719 vendor=ibm |
1554 ;; | 1720 ;; |
1555 -beos*) | 1721 -beos*) |
1556 vendor=be | 1722 vendor=be |
1557 ;; | 1723 ;; |