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 (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, |
4 | # 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. |
4 | # 2000, 2001, 2002, 2003 Free Software Foundation, Inc. |
5 | |
5 | |
6 | timestamp='2005-04-22' |
6 | timestamp='2004-03-12' |
7 | |
7 | |
8 | # This file is (in principle) common to ALL GNU software. |
8 | # This file is (in principle) common to ALL GNU software. |
9 | # The presence of a machine in this file suggests that SOME GNU software |
9 | # The presence of a machine in this file suggests that SOME GNU software |
10 | # can handle that machine. It does not imply ALL GNU software can. |
10 | # can handle that machine. It does not imply ALL GNU software can. |
11 | # |
11 | # |
… | |
… | |
68 | Report bugs and patches to <config-patches@gnu.org>." |
68 | Report bugs and patches to <config-patches@gnu.org>." |
69 | |
69 | |
70 | version="\ |
70 | version="\ |
71 | GNU config.sub ($timestamp) |
71 | GNU config.sub ($timestamp) |
72 | |
72 | |
73 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 |
73 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 |
74 | Free Software Foundation, Inc. |
74 | Free Software Foundation, Inc. |
75 | |
75 | |
76 | This is free software; see the source for copying conditions. There is NO |
76 | This is free software; see the source for copying conditions. There is NO |
77 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
77 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
78 | |
78 | |
… | |
… | |
143 | -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ |
143 | -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ |
144 | -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ |
144 | -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ |
145 | -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ |
145 | -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ |
146 | -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ |
146 | -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ |
147 | -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ |
147 | -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ |
148 | -apple | -axis | -knuth | -cray) |
148 | -apple | -axis) |
149 | os= |
149 | os= |
150 | basic_machine=$1 |
150 | basic_machine=$1 |
151 | ;; |
151 | ;; |
152 | -sim | -cisco | -oki | -wec | -winbond) |
152 | -sim | -cisco | -oki | -wec | -winbond) |
153 | os= |
153 | os= |
… | |
… | |
229 | | a29k \ |
229 | | a29k \ |
230 | | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ |
230 | | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ |
231 | | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ |
231 | | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ |
232 | | am33_2.0 \ |
232 | | am33_2.0 \ |
233 | | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ |
233 | | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ |
234 | | bfin \ |
|
|
235 | | c4x | clipper \ |
234 | | c4x | clipper \ |
236 | | d10v | d30v | dlx | dsp16xx \ |
235 | | d10v | d30v | dlx | dsp16xx \ |
237 | | fr30 | frv \ |
236 | | fr30 | frv \ |
238 | | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ |
237 | | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ |
239 | | i370 | i860 | i960 | ia64 \ |
238 | | i370 | i860 | i960 | ia64 \ |
240 | | ip2k | iq2000 \ |
239 | | ip2k | iq2000 \ |
241 | | m32r | m32rle | m68000 | m68k | m88k | maxq | mcore \ |
240 | | m32r | m32rle | m68000 | m68k | m88k | mcore \ |
242 | | mips | mipsbe | mipseb | mipsel | mipsle \ |
241 | | mips | mipsbe | mipseb | mipsel | mipsle \ |
243 | | mips16 \ |
242 | | mips16 \ |
244 | | mips64 | mips64el \ |
243 | | mips64 | mips64el \ |
245 | | mips64vr | mips64vrel \ |
244 | | mips64vr | mips64vrel \ |
246 | | mips64orion | mips64orionel \ |
245 | | mips64orion | mips64orionel \ |
… | |
… | |
261 | | pdp10 | pdp11 | pj | pjl \ |
260 | | pdp10 | pdp11 | pj | pjl \ |
262 | | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ |
261 | | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ |
263 | | pyramid \ |
262 | | pyramid \ |
264 | | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ |
263 | | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ |
265 | | sh64 | sh64le \ |
264 | | sh64 | sh64le \ |
266 | | sparc | sparc64 | sparc64b | sparc86x | sparclet | sparclite \ |
265 | | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv8 | sparcv9 | sparcv9b \ |
267 | | sparcv8 | sparcv9 | sparcv9b \ |
|
|
268 | | strongarm \ |
266 | | strongarm \ |
269 | | tahoe | thumb | tic4x | tic80 | tron \ |
267 | | tahoe | thumb | tic4x | tic80 | tron \ |
270 | | v850 | v850e \ |
268 | | v850 | v850e \ |
271 | | we32k \ |
269 | | we32k \ |
272 | | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \ |
270 | | x86 | xscale | xstormy16 | xtensa \ |
273 | | z8k) |
271 | | z8k) |
274 | basic_machine=$basic_machine-unknown |
272 | basic_machine=$basic_machine-unknown |
275 | ;; |
273 | ;; |
276 | m6811 | m68hc11 | m6812 | m68hc12) |
274 | m6811 | m68hc11 | m6812 | m68hc12) |
277 | # Motorola 68HC11/12. |
275 | # Motorola 68HC11/12. |
… | |
… | |
298 | | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ |
296 | | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ |
299 | | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ |
297 | | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ |
300 | | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ |
298 | | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ |
301 | | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ |
299 | | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ |
302 | | avr-* \ |
300 | | avr-* \ |
303 | | bfin-* | bs2000-* \ |
301 | | bs2000-* \ |
304 | | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ |
302 | | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ |
305 | | clipper-* | craynv-* | cydra-* \ |
303 | | clipper-* | cydra-* \ |
306 | | d10v-* | d30v-* | dlx-* \ |
304 | | d10v-* | d30v-* | dlx-* \ |
307 | | elxsi-* \ |
305 | | elxsi-* \ |
308 | | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \ |
306 | | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \ |
309 | | h8300-* | h8500-* \ |
307 | | h8300-* | h8500-* \ |
310 | | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ |
308 | | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ |
311 | | i*86-* | i860-* | i960-* | ia64-* \ |
309 | | i*86-* | i860-* | i960-* | ia64-* \ |
312 | | ip2k-* | iq2000-* \ |
310 | | ip2k-* | iq2000-* \ |
313 | | m32r-* | m32rle-* \ |
311 | | m32r-* | m32rle-* \ |
314 | | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ |
312 | | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ |
315 | | m88110-* | m88k-* | maxq-* | mcore-* \ |
313 | | m88110-* | m88k-* | mcore-* \ |
316 | | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ |
314 | | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ |
317 | | mips16-* \ |
315 | | mips16-* \ |
318 | | mips64-* | mips64el-* \ |
316 | | mips64-* | mips64el-* \ |
319 | | mips64vr-* | mips64vrel-* \ |
317 | | mips64vr-* | mips64vrel-* \ |
320 | | mips64orion-* | mips64orionel-* \ |
318 | | mips64orion-* | mips64orionel-* \ |
… | |
… | |
326 | | mipsisa64-* | mipsisa64el-* \ |
324 | | mipsisa64-* | mipsisa64el-* \ |
327 | | mipsisa64r2-* | mipsisa64r2el-* \ |
325 | | mipsisa64r2-* | mipsisa64r2el-* \ |
328 | | mipsisa64sb1-* | mipsisa64sb1el-* \ |
326 | | mipsisa64sb1-* | mipsisa64sb1el-* \ |
329 | | mipsisa64sr71k-* | mipsisa64sr71kel-* \ |
327 | | mipsisa64sr71k-* | mipsisa64sr71kel-* \ |
330 | | mipstx39-* | mipstx39el-* \ |
328 | | mipstx39-* | mipstx39el-* \ |
331 | | mmix-* \ |
|
|
332 | | msp430-* \ |
329 | | msp430-* \ |
333 | | none-* | np1-* | ns16k-* | ns32k-* \ |
330 | | none-* | np1-* | nv1-* | ns16k-* | ns32k-* \ |
334 | | orion-* \ |
331 | | orion-* \ |
335 | | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ |
332 | | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ |
336 | | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ |
333 | | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ |
337 | | pyramid-* \ |
334 | | pyramid-* \ |
338 | | romp-* | rs6000-* \ |
335 | | romp-* | rs6000-* \ |
339 | | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \ |
336 | | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \ |
340 | | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ |
337 | | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ |
341 | | sparc-* | sparc64-* | sparc64b-* | sparc86x-* | sparclet-* \ |
338 | | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \ |
342 | | sparclite-* \ |
|
|
343 | | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ |
339 | | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ |
344 | | tahoe-* | thumb-* \ |
340 | | tahoe-* | thumb-* \ |
345 | | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ |
341 | | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ |
346 | | tron-* \ |
342 | | tron-* \ |
347 | | v850-* | v850e-* | vax-* \ |
343 | | v850-* | v850e-* | vax-* \ |
348 | | we32k-* \ |
344 | | we32k-* \ |
349 | | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \ |
345 | | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \ |
350 | | xstormy16-* | xtensa-* \ |
346 | | xtensa-* \ |
351 | | ymp-* \ |
347 | | ymp-* \ |
352 | | z8k-*) |
348 | | z8k-*) |
353 | ;; |
349 | ;; |
354 | # Recognize the various machine names and aliases which stand |
350 | # Recognize the various machine names and aliases which stand |
355 | # for a CPU type and a company and sometimes even an OS. |
351 | # for a CPU type and a company and sometimes even an OS. |
… | |
… | |
447 | ;; |
443 | ;; |
448 | cray | j90) |
444 | cray | j90) |
449 | basic_machine=j90-cray |
445 | basic_machine=j90-cray |
450 | os=-unicos |
446 | os=-unicos |
451 | ;; |
447 | ;; |
452 | craynv) |
|
|
453 | basic_machine=craynv-cray |
|
|
454 | os=-unicosmp |
|
|
455 | ;; |
|
|
456 | cr16c) |
448 | cr16c) |
457 | basic_machine=cr16c-unknown |
449 | basic_machine=cr16c-unknown |
458 | os=-elf |
450 | os=-elf |
459 | ;; |
451 | ;; |
460 | crds | unos) |
452 | crds | unos) |
461 | basic_machine=m68k-crds |
453 | basic_machine=m68k-crds |
462 | ;; |
454 | ;; |
463 | crisv32 | crisv32-* | etraxfs*) |
|
|
464 | basic_machine=crisv32-axis |
|
|
465 | ;; |
|
|
466 | cris | cris-* | etrax*) |
455 | cris | cris-* | etrax*) |
467 | basic_machine=cris-axis |
456 | basic_machine=cris-axis |
468 | ;; |
457 | ;; |
469 | crx) |
458 | crx) |
470 | basic_machine=crx-unknown |
459 | basic_machine=crx-unknown |
… | |
… | |
489 | basic_machine=m68k-motorola |
478 | basic_machine=m68k-motorola |
490 | ;; |
479 | ;; |
491 | delta88) |
480 | delta88) |
492 | basic_machine=m88k-motorola |
481 | basic_machine=m88k-motorola |
493 | os=-sysv3 |
482 | os=-sysv3 |
494 | ;; |
|
|
495 | djgpp) |
|
|
496 | basic_machine=i586-pc |
|
|
497 | os=-msdosdjgpp |
|
|
498 | ;; |
483 | ;; |
499 | dpx20 | dpx20-*) |
484 | dpx20 | dpx20-*) |
500 | basic_machine=rs6000-bull |
485 | basic_machine=rs6000-bull |
501 | os=-bosx |
486 | os=-bosx |
502 | ;; |
487 | ;; |
… | |
… | |
671 | mips3*-*) |
656 | mips3*-*) |
672 | basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` |
657 | basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` |
673 | ;; |
658 | ;; |
674 | mips3*) |
659 | mips3*) |
675 | basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown |
660 | basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown |
|
|
661 | ;; |
|
|
662 | mmix*) |
|
|
663 | basic_machine=mmix-knuth |
|
|
664 | os=-mmixware |
676 | ;; |
665 | ;; |
677 | monitor) |
666 | monitor) |
678 | basic_machine=m68k-rom68k |
667 | basic_machine=m68k-rom68k |
679 | os=-coff |
668 | os=-coff |
680 | ;; |
669 | ;; |
… | |
… | |
752 | os=-nonstopux |
741 | os=-nonstopux |
753 | ;; |
742 | ;; |
754 | np1) |
743 | np1) |
755 | basic_machine=np1-gould |
744 | basic_machine=np1-gould |
756 | ;; |
745 | ;; |
|
|
746 | nv1) |
|
|
747 | basic_machine=nv1-cray |
|
|
748 | os=-unicosmp |
|
|
749 | ;; |
757 | nsr-tandem) |
750 | nsr-tandem) |
758 | basic_machine=nsr-tandem |
751 | basic_machine=nsr-tandem |
759 | ;; |
752 | ;; |
760 | op50n-* | op60c-*) |
753 | op50n-* | op60c-*) |
761 | basic_machine=hppa1.1-oki |
754 | basic_machine=hppa1.1-oki |
… | |
… | |
1033 | os=-none |
1026 | os=-none |
1034 | ;; |
1027 | ;; |
1035 | w89k-*) |
1028 | w89k-*) |
1036 | basic_machine=hppa1.1-winbond |
1029 | basic_machine=hppa1.1-winbond |
1037 | os=-proelf |
1030 | os=-proelf |
1038 | ;; |
|
|
1039 | xbox) |
|
|
1040 | basic_machine=i686-pc |
|
|
1041 | os=-mingw32 |
|
|
1042 | ;; |
1031 | ;; |
1043 | xps | xps100) |
1032 | xps | xps100) |
1044 | basic_machine=xps100-honeywell |
1033 | basic_machine=xps100-honeywell |
1045 | ;; |
1034 | ;; |
1046 | ymp) |
1035 | ymp) |
… | |
… | |
1067 | op60c) |
1056 | op60c) |
1068 | basic_machine=hppa1.1-oki |
1057 | basic_machine=hppa1.1-oki |
1069 | ;; |
1058 | ;; |
1070 | romp) |
1059 | romp) |
1071 | basic_machine=romp-ibm |
1060 | basic_machine=romp-ibm |
1072 | ;; |
|
|
1073 | mmix) |
|
|
1074 | basic_machine=mmix-knuth |
|
|
1075 | ;; |
1061 | ;; |
1076 | rs6000) |
1062 | rs6000) |
1077 | basic_machine=rs6000-ibm |
1063 | basic_machine=rs6000-ibm |
1078 | ;; |
1064 | ;; |
1079 | vax) |
1065 | vax) |
… | |
… | |
1306 | os=-aros |
1292 | os=-aros |
1307 | ;; |
1293 | ;; |
1308 | -kaos*) |
1294 | -kaos*) |
1309 | os=-kaos |
1295 | os=-kaos |
1310 | ;; |
1296 | ;; |
1311 | -zvmoe) |
|
|
1312 | os=-zvmoe |
|
|
1313 | ;; |
|
|
1314 | -none) |
1297 | -none) |
1315 | ;; |
1298 | ;; |
1316 | *) |
1299 | *) |
1317 | # Get rid of the `-' at the beginning of $os. |
1300 | # Get rid of the `-' at the beginning of $os. |
1318 | os=`echo $os | sed 's/[^-]*-//'` |
1301 | os=`echo $os | sed 's/[^-]*-//'` |
… | |
… | |
1388 | *-be) |
1371 | *-be) |
1389 | os=-beos |
1372 | os=-beos |
1390 | ;; |
1373 | ;; |
1391 | *-ibm) |
1374 | *-ibm) |
1392 | os=-aix |
1375 | os=-aix |
1393 | ;; |
|
|
1394 | *-knuth) |
|
|
1395 | os=-mmixware |
|
|
1396 | ;; |
1376 | ;; |
1397 | *-wec) |
1377 | *-wec) |
1398 | os=-proelf |
1378 | os=-proelf |
1399 | ;; |
1379 | ;; |
1400 | *-winbond) |
1380 | *-winbond) |