2
2
# Configuration validation subroutine script.
3
3
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4
# 2000, 2001, 2002 Free Software Foundation, Inc.
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
71
71
GNU config.sub ($timestamp)
73
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
74
74
Free Software Foundation, Inc.
76
76
This is free software; see the source for copying conditions. There is NO
118
118
# Here we must recognize all the valid KERNEL-OS combinations.
119
119
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
120
120
case $maybe_os in
121
nto-qnx* | linux-gnu* | storm-chaos* | os2-emx* | windows32-* | rtmk-nova*)
121
nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \
122
kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
123
124
basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
229
230
| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
230
231
| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
231
233
| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
232
234
| c4x | clipper \
233
| d10v | d30v | dsp16xx \
235
| d10v | d30v | dlx | dsp16xx \
235
237
| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
236
238
| i370 | i860 | i960 | ia64 \
237
| m32r | m68000 | m68k | m88k | mcore \
238
| mips16 | mips64 | mips64el | mips64orion | mips64orionel \
239
| mips64vr4100 | mips64vr4100el | mips64vr4300 \
240
| mips64vr4300el | mips64vr5000 | mips64vr5000el \
241
| mipsbe | mipseb | mipsel | mipsle | mipstx39 | mipstx39el \
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 \
243
256
| mn10200 | mn10300 \
244
258
| ns16k | ns32k \
245
259
| openrisc | or32 \
246
260
| pdp10 | pdp11 | pj | pjl \
247
261
| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
249
| sh | sh[34] | sh[34]eb | shbe | shle | sh64 \
250
| sparc | sparc64 | sparclet | sparclite | sparcv9 | sparcv9b \
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 \
252
| tahoe | thumb | tic80 | tron \
267
| tahoe | thumb | tic4x | tic80 | tron \
255
| x86 | xscale | xstormy16 | xtensa \
270
| x86 | xscale | xscalee[bl] | xstormy16 | xtensa \
257
272
basic_machine=$basic_machine-unknown
281
296
| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
282
297
| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
283
298
| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
284
| arm-* | armbe-* | armle-* | armv*-* \
299
| arm-* | armbe-* | armle-* | armeb-* | armv*-* \
287
| c[123]* | c30-* | [cjt]90-* | c54x-* \
288
| clipper-* | cydra-* \
302
| c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
303
| clipper-* | craynv-* | cydra-* \
304
| d10v-* | d30v-* | dlx-* \
291
| f30[01]-* | f700-* | fr30-* | fx80-* \
306
| f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
292
307
| h8300-* | h8500-* \
293
308
| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
294
309
| i*86-* | i860-* | i960-* | ia64-* \
310
| ip2k-* | iq2000-* \
311
| m32r-* | m32rle-* \
296
312
| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
297
313
| m88110-* | m88k-* | mcore-* \
298
| mips-* | mips16-* | mips64-* | mips64el-* | mips64orion-* \
299
| mips64orionel-* | mips64vr4100-* | mips64vr4100el-* \
300
| mips64vr4300-* | mips64vr4300el-* | mipsbe-* | mipseb-* \
301
| mipsle-* | mipsel-* | mipstx39-* | mipstx39el-* \
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-* \
302
331
| none-* | np1-* | ns16k-* | ns32k-* \
304
333
| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
305
334
| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
307
336
| romp-* | rs6000-* \
308
| sh-* | sh[34]-* | sh[34]eb-* | shbe-* | shle-* | sh64-* \
309
| sparc-* | sparc64-* | sparc86x-* | sparclite-* \
310
| sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
311
| tahoe-* | thumb-* | tic30-* | tic54x-* | tic80-* | tron-* \
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-* \
312
344
| v850-* | v850e-* | vax-* \
314
| x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \
346
| x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \
347
| xstormy16-* | xtensa-* \
737
789
basic_machine=m68k-tti
740
792
basic_machine=ns32k-pc532
742
794
pentium | p5 | k5 | k6 | nexgen | viac3)
743
795
basic_machine=i586-pc
745
pentiumpro | p6 | 6x86 | athlon)
746
basic_machine=i686-pc
748
pentiumii | pentium2)
749
basic_machine=i686-pc
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
751
806
pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
752
807
basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
754
809
pentiumpro-* | p6-* | 6x86-* | athlon-*)
755
810
basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
757
pentiumii-* | pentium2-*)
812
pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
758
813
basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
816
basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
761
819
basic_machine=pn-gould
763
821
power) basic_machine=power-ibm
765
823
ppc) basic_machine=powerpc-unknown
767
825
ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
769
827
ppcle | powerpclittle | ppc-le | powerpc-little)
770
828
basic_machine=powerpcle-unknown
772
830
ppcle-* | powerpclittle-*)
773
831
basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
775
833
ppc64) basic_machine=powerpc64-unknown
777
835
ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
779
837
ppc64le | powerpc64little | ppc64-le | powerpc64-little)
780
838
basic_machine=powerpc64le-unknown
782
840
ppc64le-* | powerpc64little-*)
783
841
basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
1095
1166
| -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1096
1167
| -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1097
| -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
1098
| -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* \
1099
1171
| -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1100
1172
| -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1101
1173
| -chorusos* | -chorusrdb* \
1102
1174
| -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1103
| -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
1104
| -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \
1175
| -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \
1176
| -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1105
1177
| -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1106
1178
| -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1107
1179
| -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1108
| -morphos* | -superux* | -rtmk* | -rtmk-nova*)
1180
| -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1181
| -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*)
1109
1182
# Remember, each alternative MUST END IN *, to match a version number.