2
2
# Configuration validation subroutine script.
3
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4
# 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
3
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
4
# 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
71
70
GNU config.sub ($timestamp)
73
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
72
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
74
73
Free Software Foundation, Inc.
76
75
This is free software; see the source for copying conditions. There is NO
225
215
case $basic_machine in
226
216
# Recognize the basic CPU types without company name.
227
217
# Some are omitted here because they have special meanings below.
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 | 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 | xstormy16 | xtensa \
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 \
234
| sparc | sparclet | sparclite | sparc64 | sparcv9 | v850 | c4x \
235
| thumb | d10v | d30v | fr30 | avr | openrisc)
272
236
basic_machine=$basic_machine-unknown
274
238
m6811 | m68hc11 | m6812 | m68hc12)
293
257
# Recognize the basic CPU types with company name.
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-* | 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-* | xstormy16-* \
258
# FIXME: clean up the formatting here.
259
vax-* | tahoe-* | i[234567]86-* | i860-* | ia64-* | m32r-* | m68k-* | m68000-* \
260
| m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | c[123]* \
261
| arm-* | armbe-* | armle-* | armv*-* | strongarm-* | xscale-* \
262
| mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \
263
| power-* | none-* | 580-* | cray2-* | h8300-* | h8500-* | i960-* \
265
| x86-* | ppcbe-* | mipsbe-* | mipsle-* | shbe-* | shle-* \
266
| hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* | hppa2.0w-* \
267
| hppa2.0n-* | hppa64-* \
268
| alpha-* | alphaev[4-8]-* | alphaev56-* | alphapca5[67]-* \
270
| we32k-* | cydra-* | ns16k-* | pn-* | np1-* | xps100-* \
271
| clipper-* | orion-* \
272
| sparclite-* | pdp10-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \
273
| sparc64-* | sparcv9-* | sparc86x-* | mips16-* | mips64-* | mipsel-* \
274
| mips64el-* | mips64orion-* | mips64orionel-* \
275
| mips64vr4100-* | mips64vr4100el-* | mips64vr4300-* | mips64vr4300el-* \
276
| mipstx39-* | mipstx39el-* | mcore-* \
277
| f30[01]-* | f700-* | s390-* | sv1-* | t3e-* \
278
| m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | d10v-* \
279
| thumb-* | v850-* | d30v-* | tic30-* | c30-* | fr30-* \
280
| bs2000-* | tic54x-* | c54x-* | x86_64-*)
351
282
# Recognize the various machine names and aliases which stand
352
283
# for a CPU type and a company and sometimes even an OS.
782
688
basic_machine=m68k-tti
785
691
basic_machine=ns32k-pc532
787
pentium | p5 | k5 | k6 | nexgen | viac3)
693
pentium | p5 | k5 | k6 | nexgen)
788
694
basic_machine=i586-pc
790
pentiumpro | p6 | 6x86 | athlon | athlon_*)
791
basic_machine=i686-pc
793
pentiumii | pentium2 | pentiumiii | pentium3)
794
basic_machine=i686-pc
797
basic_machine=i786-pc
799
pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
696
pentiumpro | p6 | 6x86 | athlon)
697
basic_machine=i686-pc
699
pentiumii | pentium2)
700
basic_machine=i686-pc
702
pentium-* | p5-* | k5-* | k6-* | nexgen-*)
800
703
basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
802
705
pentiumpro-* | p6-* | 6x86-* | athlon-*)
803
706
basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
805
pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
708
pentiumii-* | pentium2-*)
806
709
basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
809
basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
812
712
basic_machine=pn-gould
814
714
power) basic_machine=power-ibm
816
716
ppc) basic_machine=powerpc-unknown
818
718
ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
820
720
ppcle | powerpclittle | ppc-le | powerpc-little)
821
721
basic_machine=powerpcle-unknown
823
723
ppcle-* | powerpclittle-*)
824
724
basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
826
ppc64) basic_machine=powerpc64-unknown
828
ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
830
ppc64le | powerpc64little | ppc64-le | powerpc64-little)
831
basic_machine=powerpc64le-unknown
833
ppc64le-* | powerpc64little-*)
834
basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
837
727
basic_machine=i386-ibm
1155
1008
| -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1156
1009
| -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1157
| -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \
1158
| -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1159
| -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1010
| -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
1011
| -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1160
1012
| -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1161
1013
| -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1162
| -chorusos* | -chorusrdb* \
1163
1014
| -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1164
| -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \
1165
| -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1015
| -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
1016
| -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \
1166
1017
| -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1167
| -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1168
| -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1169
| -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1170
| -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*)
1018
| -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* | -os2*)
1171
1019
# Remember, each alternative MUST END IN *, to match a version number.
1174
1022
case $basic_machine in
1023
x86-* | i[34567]86-*)
1185
os=`echo $os | sed -e 's|nto|nto-qnx|'`
1187
1033
-sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
1188
1034
| -windows* | -osx | -abug | -netware* | -os9* | -beos* \