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 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
215
224
case $basic_machine in
216
225
# Recognize the basic CPU types without company name.
217
226
# 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 \
229
| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
230
| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
232
| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
234
| d10v | d30v | dlx | dsp16xx \
236
| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
237
| i370 | i860 | i960 | ia64 \
239
| m32r | m68000 | m68k | m88k | mcore \
240
| mips | mipsbe | mipseb | mipsel | mipsle \
242
| mips64 | mips64el \
243
| mips64vr | mips64vrel \
244
| mips64orion | mips64orionel \
245
| mips64vr4100 | mips64vr4100el \
246
| mips64vr4300 | mips64vr4300el \
247
| mips64vr5000 | mips64vr5000el \
248
| mipsisa32 | mipsisa32el \
249
| mipsisa32r2 | mipsisa32r2el \
250
| mipsisa64 | mipsisa64el \
251
| mipsisa64sb1 | mipsisa64sb1el \
252
| mipsisa64sr71k | mipsisa64sr71kel \
253
| mipstx39 | mipstx39el \
254
| mn10200 | mn10300 \
258
| pdp10 | pdp11 | pj | pjl \
259
| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
261
| sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
263
| sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \
265
| tahoe | thumb | tic4x | tic80 | tron \
268
| x86 | xscale | xstormy16 | xtensa \
238
270
basic_machine=$basic_machine-unknown
240
272
m6811 | m68hc11 | m6812 | m68hc12)
259
291
# 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-*)
294
| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
295
| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
296
| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
297
| arm-* | armbe-* | armle-* | armeb-* | armv*-* \
300
| c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
301
| clipper-* | cydra-* \
302
| d10v-* | d30v-* | dlx-* \
304
| f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
305
| h8300-* | h8500-* \
306
| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
307
| i*86-* | i860-* | i960-* | ia64-* \
308
| ip2k-* | iq2000-* \
310
| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
311
| m88110-* | m88k-* | mcore-* \
312
| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
314
| mips64-* | mips64el-* \
315
| mips64vr-* | mips64vrel-* \
316
| mips64orion-* | mips64orionel-* \
317
| mips64vr4100-* | mips64vr4100el-* \
318
| mips64vr4300-* | mips64vr4300el-* \
319
| mips64vr5000-* | mips64vr5000el-* \
320
| mipsisa32-* | mipsisa32el-* \
321
| mipsisa32r2-* | mipsisa32r2el-* \
322
| mipsisa64-* | mipsisa64el-* \
323
| mipsisa64sb1-* | mipsisa64sb1el-* \
324
| mipsisa64sr71k-* | mipsisa64sr71kel-* \
325
| mipstx39-* | mipstx39el-* \
327
| none-* | np1-* | nv1-* | ns16k-* | ns32k-* \
329
| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
330
| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
332
| romp-* | rs6000-* \
333
| sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
334
| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
335
| sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
336
| sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
337
| tahoe-* | thumb-* \
338
| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
340
| v850-* | v850e-* | vax-* \
342
| x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \
286
347
# Recognize the various machine names and aliases which stand
287
348
# for a CPU type and a company and sometimes even an OS.
692
764
basic_machine=m68k-tti
695
767
basic_machine=ns32k-pc532
697
pentium | p5 | k5 | k6 | nexgen)
769
pentium | p5 | k5 | k6 | nexgen | viac3)
698
770
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-*)
772
pentiumpro | p6 | 6x86 | athlon | athlon_*)
773
basic_machine=i686-pc
775
pentiumii | pentium2 | pentiumiii | pentium3)
776
basic_machine=i686-pc
779
basic_machine=i786-pc
781
pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
707
782
basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
709
784
pentiumpro-* | p6-* | 6x86-* | athlon-*)
710
785
basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
712
pentiumii-* | pentium2-*)
787
pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
713
788
basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
791
basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
716
794
basic_machine=pn-gould
718
796
power) basic_machine=power-ibm
720
798
ppc) basic_machine=powerpc-unknown
722
800
ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
724
802
ppcle | powerpclittle | ppc-le | powerpc-little)
725
803
basic_machine=powerpcle-unknown
727
805
ppcle-* | powerpclittle-*)
728
806
basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
808
ppc64) basic_machine=powerpc64-unknown
810
ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
812
ppc64le | powerpc64little | ppc64-le | powerpc64-little)
813
basic_machine=powerpc64le-unknown
815
ppc64le-* | powerpc64little-*)
816
basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
731
819
basic_machine=i386-ibm
1015
1130
| -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1016
1131
| -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1017
| -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
1132
| -hiux* | -386bsd* | -netbsd* | -openbsd* | -kfreebsd* | -freebsd* | -riscix* \
1018
1133
| -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1019
1134
| -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1020
1135
| -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1136
| -chorusos* | -chorusrdb* \
1021
1137
| -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1022
1138
| -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
1023
| -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \
1139
| -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1024
1140
| -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1025
| -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* | -os2*)
1141
| -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1142
| -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1143
| -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1144
| -powermax* | -dnix* | -nx6 | -nx7 | -sei*)
1026
1145
# Remember, each alternative MUST END IN *, to match a version number.