2
2
# Configuration validation subroutine script.
3
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
4
# Free Software Foundation, Inc.
3
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4
# 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
8
8
# This file is (in principle) common to ALL GNU software.
9
9
# The presence of a machine in this file suggests that SOME GNU software
70
71
GNU config.sub ($timestamp)
72
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
73
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
73
74
Free Software Foundation, Inc.
75
76
This is free software; see the source for copying conditions. There is NO
215
225
case $basic_machine in
216
226
# Recognize the basic CPU types without company name.
217
227
# Some are omitted here because they have special meanings below.
218
tahoe | i860 | ia64 | m32r | m68k | m68000 | m88k | ns32k | arc \
219
| arm | arme[lb] | arm[bl]e | armv[2345] | armv[345][lb] | strongarm | xscale \
220
| pyramid | mn10200 | mn10300 | tron | a29k \
221
| 580 | i960 | h8300 \
222
| x86 | ppcbe | mipsbe | mipsle | shbe | shle \
223
| hppa | hppa1.0 | hppa1.1 | hppa2.0 | hppa2.0w | hppa2.0n \
225
| alpha | alphaev[4-8] | alphaev56 | alphapca5[67] \
227
| we32k | ns16k | clipper | i370 | sh | sh[34] \
228
| powerpc | powerpcle \
229
| 1750a | dsp16xx | pdp10 | pdp11 \
230
| mips16 | mips64 | mipsel | mips64el \
231
| mips64orion | mips64orionel | mipstx39 | mipstx39el \
232
| mips64vr4300 | mips64vr4300el | mips64vr4100 | mips64vr4100el \
233
| mips64vr5000 | miprs64vr5000el | mcore | s390 | s390x \
234
| sparc | sparclet | sparclite | sparc64 | sparcv9 | sparcv9b \
236
| thumb | d10v | d30v | fr30 | avr | openrisc | tic80 \
230
| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
231
| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
233
| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
235
| d10v | d30v | dlx | dsp16xx \
237
| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
238
| i370 | i860 | i960 | ia64 \
240
| m32r | m32rle | m68000 | m68k | m88k | maxq | mcore \
241
| mips | mipsbe | mipseb | mipsel | mipsle \
243
| mips64 | mips64el \
244
| mips64vr | mips64vrel \
245
| mips64orion | mips64orionel \
246
| mips64vr4100 | mips64vr4100el \
247
| mips64vr4300 | mips64vr4300el \
248
| mips64vr5000 | mips64vr5000el \
249
| mipsisa32 | mipsisa32el \
250
| mipsisa32r2 | mipsisa32r2el \
251
| mipsisa64 | mipsisa64el \
252
| mipsisa64r2 | mipsisa64r2el \
253
| mipsisa64sb1 | mipsisa64sb1el \
254
| mipsisa64sr71k | mipsisa64sr71kel \
255
| mipstx39 | mipstx39el \
256
| mn10200 | mn10300 \
260
| pdp10 | pdp11 | pj | pjl \
261
| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
263
| sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
265
| sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv8 | sparcv9 | sparcv9b \
267
| tahoe | thumb | tic4x | tic80 | tron \
270
| x86 | xscale | xscalee[bl] | xstormy16 | xtensa \
238
272
basic_machine=$basic_machine-unknown
240
274
m6811 | m68hc11 | m6812 | m68hc12)
259
293
# Recognize the basic CPU types with company name.
260
# FIXME: clean up the formatting here.
261
vax-* | tahoe-* | i*86-* | i860-* | ia64-* | m32r-* | m68k-* | m68000-* \
262
| m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | c[123]* \
263
| arm-* | armbe-* | armle-* | armv*-* | strongarm-* | xscale-* \
264
| mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \
265
| power-* | none-* | 580-* | cray2-* | h8300-* | h8500-* | i960-* \
267
| x86-* | ppcbe-* | mipsbe-* | mipsle-* | shbe-* | shle-* \
268
| hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* | hppa2.0w-* \
269
| hppa2.0n-* | hppa64-* \
270
| alpha-* | alphaev[4-8]-* | alphaev56-* | alphapca5[67]-* \
272
| we32k-* | cydra-* | ns16k-* | pn-* | np1-* | xps100-* \
273
| clipper-* | orion-* \
274
| sparclite-* | pdp10-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \
275
| sparc64-* | sparcv9-* | sparcv9b-* | sparc86x-* \
276
| mips16-* | mips64-* | mipsel-* \
277
| mips64el-* | mips64orion-* | mips64orionel-* \
278
| mips64vr4100-* | mips64vr4100el-* | mips64vr4300-* | mips64vr4300el-* \
279
| mipstx39-* | mipstx39el-* | mcore-* \
280
| f30[01]-* | f700-* | s390-* | s390x-* | sv1-* | t3e-* \
282
| m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | d10v-* \
283
| thumb-* | v850-* | d30v-* | tic30-* | tic80-* | c30-* | fr30-* \
284
| bs2000-* | tic54x-* | c54x-* | x86_64-* | pj-* | pjl-*)
296
| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
297
| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
298
| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
299
| arm-* | armbe-* | armle-* | armeb-* | armv*-* \
302
| c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
303
| clipper-* | craynv-* | cydra-* \
304
| d10v-* | d30v-* | dlx-* \
306
| f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
307
| h8300-* | h8500-* \
308
| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
309
| i*86-* | i860-* | i960-* | ia64-* \
310
| ip2k-* | iq2000-* \
311
| m32r-* | m32rle-* \
312
| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
313
| m88110-* | m88k-* | maxq-* | mcore-* \
314
| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
316
| mips64-* | mips64el-* \
317
| mips64vr-* | mips64vrel-* \
318
| mips64orion-* | mips64orionel-* \
319
| mips64vr4100-* | mips64vr4100el-* \
320
| mips64vr4300-* | mips64vr4300el-* \
321
| mips64vr5000-* | mips64vr5000el-* \
322
| mipsisa32-* | mipsisa32el-* \
323
| mipsisa32r2-* | mipsisa32r2el-* \
324
| mipsisa64-* | mipsisa64el-* \
325
| mipsisa64r2-* | mipsisa64r2el-* \
326
| mipsisa64sb1-* | mipsisa64sb1el-* \
327
| mipsisa64sr71k-* | mipsisa64sr71kel-* \
328
| mipstx39-* | mipstx39el-* \
331
| none-* | np1-* | ns16k-* | ns32k-* \
333
| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
334
| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
336
| romp-* | rs6000-* \
337
| sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
338
| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
339
| sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
340
| sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
341
| tahoe-* | thumb-* \
342
| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
344
| v850-* | v850e-* | vax-* \
346
| x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \
347
| xstormy16-* | xtensa-* \
286
351
# Recognize the various machine names and aliases which stand
287
352
# for a CPU type and a company and sometimes even an OS.
364
442
basic_machine=c38-convex
368
basic_machine=ymp-cray
372
basic_machine=cray2-cray
376
basic_machine=${basic_machine}-cray
446
basic_machine=j90-cray
450
basic_machine=craynv-cray
454
basic_machine=cr16c-unknown
380
458
basic_machine=m68k-crds
460
crisv32 | crisv32-* | etraxfs*)
461
basic_machine=crisv32-axis
382
463
cris | cris-* | etrax*)
383
464
basic_machine=cris-axis
467
basic_machine=crx-unknown
386
471
basic_machine=m68k-da30
388
473
decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
389
474
basic_machine=mips-dec
476
decsystem10* | dec10*)
477
basic_machine=pdp10-dec
480
decsystem20* | dec20*)
481
basic_machine=pdp10-dec
391
484
delta | 3300 | motorola-3300 | motorola-delta \
392
485
| 3300-motorola | delta-motorola)
393
486
basic_machine=m68k-motorola
692
789
basic_machine=m68k-tti
695
792
basic_machine=ns32k-pc532
697
pentium | p5 | k5 | k6 | nexgen)
794
pentium | p5 | k5 | k6 | nexgen | viac3)
698
795
basic_machine=i586-pc
700
pentiumpro | p6 | 6x86 | athlon)
701
basic_machine=i686-pc
703
pentiumii | pentium2)
704
basic_machine=i686-pc
706
pentium-* | p5-* | k5-* | k6-* | nexgen-*)
797
pentiumpro | p6 | 6x86 | athlon | athlon_*)
798
basic_machine=i686-pc
800
pentiumii | pentium2 | pentiumiii | pentium3)
801
basic_machine=i686-pc
804
basic_machine=i786-pc
806
pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
707
807
basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
709
809
pentiumpro-* | p6-* | 6x86-* | athlon-*)
710
810
basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
712
pentiumii-* | pentium2-*)
812
pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
713
813
basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
816
basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
716
819
basic_machine=pn-gould
718
821
power) basic_machine=power-ibm
720
823
ppc) basic_machine=powerpc-unknown
722
825
ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
724
827
ppcle | powerpclittle | ppc-le | powerpc-little)
725
828
basic_machine=powerpcle-unknown
727
830
ppcle-* | powerpclittle-*)
728
831
basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
833
ppc64) basic_machine=powerpc64-unknown
835
ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
837
ppc64le | powerpc64little | ppc64-le | powerpc64-little)
838
basic_machine=powerpc64le-unknown
840
ppc64le-* | powerpc64little-*)
841
basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
731
844
basic_machine=i386-ibm
1015
1166
| -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1016
1167
| -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1017
| -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
1018
| -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1168
| -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \
1169
| -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1170
| -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1019
1171
| -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1020
1172
| -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1173
| -chorusos* | -chorusrdb* \
1021
1174
| -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1022
| -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
1023
| -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \
1175
| -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \
1176
| -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1024
1177
| -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1025
| -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* | -os2*)
1178
| -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1179
| -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1180
| -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1181
| -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*)
1026
1182
# Remember, each alternative MUST END IN *, to match a version number.