Source
1
1
#! /bin/sh
2
2
# Configuration validation subroutine script.
3
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, 2004, 2005, 2006, 2007, 2008
5
+
# Free Software Foundation, Inc.
5
6
6
-
timestamp='2005-12-11'
7
+
timestamp='2008-01-16'
7
8
8
9
# This file is (in principle) common to ALL GNU software.
9
10
# The presence of a machine in this file suggests that SOME GNU software
10
11
# can handle that machine. It does not imply ALL GNU software can.
11
12
#
12
13
# This file is free software; you can redistribute it and/or modify
13
14
# it under the terms of the GNU General Public License as published by
14
15
# the Free Software Foundation; either version 2 of the License, or
15
16
# (at your option) any later version.
16
17
#
64
65
Operation modes:
65
66
-h, --help print this help, then exit
66
67
-t, --time-stamp print date of last modification, then exit
67
68
-v, --version print version number, then exit
68
69
69
70
Report bugs and patches to <config-patches@gnu.org>."
70
71
71
72
version="\
72
73
GNU config.sub ($timestamp)
73
74
74
-
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
75
-
Free Software Foundation, Inc.
75
+
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
76
+
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
76
77
77
78
This is free software; see the source for copying conditions. There is NO
78
79
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
79
80
80
81
help="
81
82
Try \`$me --help' for more information."
82
83
83
84
# Parse command line
84
85
while test $# -gt 0 ; do
85
86
case $1 in
233
234
234
235
# Decode aliases for certain CPU-COMPANY combinations.
235
236
case $basic_machine in
236
237
# Recognize the basic CPU types without company name.
237
238
# Some are omitted here because they have special meanings below.
238
239
1750a | 580 \
239
240
| a29k \
240
241
| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
241
242
| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
242
243
| am33_2.0 \
243
-
| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
244
+
| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
244
245
| bfin \
245
246
| c4x | clipper \
246
247
| d10v | d30v | dlx | dsp16xx \
247
-
| fr30 | frv \
248
+
| fido | fr30 | frv \
248
249
| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
249
250
| i370 | i860 | i960 | ia64 \
250
251
| ip2k | iq2000 \
251
-
| m32r | m32rle | m68000 | m68k | m88k | maxq | mcore \
252
+
| m32c | m32r | m32rle | m68000 | m68k | m88k \
253
+
| maxq | mb | microblaze | mcore | mep \
252
254
| mips | mipsbe | mipseb | mipsel | mipsle \
253
255
| mips16 \
254
256
| mips64 | mips64el \
255
257
| mips64vr | mips64vrel \
256
258
| mips64orion | mips64orionel \
257
259
| mips64vr4100 | mips64vr4100el \
258
260
| mips64vr4300 | mips64vr4300el \
259
261
| mips64vr5000 | mips64vr5000el \
260
262
| mips64vr5900 | mips64vr5900el \
261
263
| mipsisa32 | mipsisa32el \
262
264
| mipsisa32r2 | mipsisa32r2el \
263
265
| mipsisa64 | mipsisa64el \
264
266
| mipsisa64r2 | mipsisa64r2el \
265
267
| mipsisa64sb1 | mipsisa64sb1el \
266
268
| mipsisa64sr71k | mipsisa64sr71kel \
267
269
| mipstx39 | mipstx39el \
268
270
| mn10200 | mn10300 \
269
271
| mt \
270
272
| msp430 \
273
+
| nios | nios2 \
271
274
| ns16k | ns32k \
272
275
| or32 \
273
276
| pdp10 | pdp11 | pj | pjl \
274
277
| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
275
278
| pyramid \
276
-
| sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
279
+
| score \
280
+
| sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
277
281
| sh64 | sh64le \
278
-
| sparc | sparc64 | sparc64b | sparc86x | sparclet | sparclite \
279
-
| sparcv8 | sparcv9 | sparcv9b \
280
-
| strongarm \
282
+
| sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
283
+
| sparcv8 | sparcv9 | sparcv9b | sparcv9v \
284
+
| spu | strongarm \
281
285
| tahoe | thumb | tic4x | tic80 | tron \
282
286
| v850 | v850e \
283
287
| we32k \
284
-
| x86 | xscale | xscalee[bl] | xstormy16 | xtensa \
288
+
| x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
285
289
| z8k)
286
290
basic_machine=$basic_machine-unknown
287
291
;;
288
-
m32c)
289
-
basic_machine=$basic_machine-unknown
290
-
;;
291
292
m6811 | m68hc11 | m6812 | m68hc12)
292
293
# Motorola 68HC11/12.
293
294
basic_machine=$basic_machine-unknown
294
295
os=-none
295
296
;;
296
297
m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
297
298
;;
298
299
ms1)
299
300
basic_machine=mt-unknown
300
301
;;
310
311
echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
311
312
exit 1
312
313
;;
313
314
# Recognize the basic CPU types with company name.
314
315
580-* \
315
316
| a29k-* \
316
317
| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
317
318
| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
318
319
| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
319
320
| arm-* | armbe-* | armle-* | armeb-* | armv*-* \
320
-
| avr-* \
321
+
| avr-* | avr32-* \
321
322
| bfin-* | bs2000-* \
322
323
| c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
323
324
| clipper-* | craynv-* | cydra-* \
324
325
| d10v-* | d30v-* | dlx-* \
325
326
| elxsi-* \
326
-
| f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
327
+
| f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
327
328
| h8300-* | h8500-* \
328
329
| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
329
330
| i*86-* | i860-* | i960-* | ia64-* \
330
331
| ip2k-* | iq2000-* \
331
-
| m32r-* | m32rle-* \
332
+
| m32c-* | m32r-* | m32rle-* \
332
333
| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
333
334
| m88110-* | m88k-* | maxq-* | mcore-* \
334
335
| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
335
336
| mips16-* \
336
337
| mips64-* | mips64el-* \
337
338
| mips64vr-* | mips64vrel-* \
338
339
| mips64orion-* | mips64orionel-* \
339
340
| mips64vr4100-* | mips64vr4100el-* \
340
341
| mips64vr4300-* | mips64vr4300el-* \
341
342
| mips64vr5000-* | mips64vr5000el-* \
343
344
| mipsisa32-* | mipsisa32el-* \
344
345
| mipsisa32r2-* | mipsisa32r2el-* \
345
346
| mipsisa64-* | mipsisa64el-* \
346
347
| mipsisa64r2-* | mipsisa64r2el-* \
347
348
| mipsisa64sb1-* | mipsisa64sb1el-* \
348
349
| mipsisa64sr71k-* | mipsisa64sr71kel-* \
349
350
| mipstx39-* | mipstx39el-* \
350
351
| mmix-* \
351
352
| mt-* \
352
353
| msp430-* \
354
+
| nios-* | nios2-* \
353
355
| none-* | np1-* | ns16k-* | ns32k-* \
354
356
| orion-* \
355
357
| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
356
358
| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
357
359
| pyramid-* \
358
360
| romp-* | rs6000-* \
359
-
| sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | shbe-* \
361
+
| sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
360
362
| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
361
-
| sparc-* | sparc64-* | sparc64b-* | sparc86x-* | sparclet-* \
363
+
| sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
362
364
| sparclite-* \
363
-
| sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
365
+
| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
364
366
| tahoe-* | thumb-* \
365
367
| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
366
368
| tron-* \
367
369
| v850-* | v850e-* | vax-* \
368
370
| we32k-* \
369
-
| x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \
370
-
| xstormy16-* | xtensa-* \
371
+
| x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
372
+
| xstormy16-* | xtensa*-* \
371
373
| ymp-* \
372
374
| z8k-*)
373
375
;;
374
-
m32c-*)
376
+
# Recognize the basic CPU types without company name, with glob match.
377
+
xtensa*)
378
+
basic_machine=$basic_machine-unknown
375
379
;;
376
380
# Recognize the various machine names and aliases which stand
377
381
# for a CPU type and a company and sometimes even an OS.
378
382
386bsd)
379
383
basic_machine=i386-unknown
380
384
os=-bsd
381
385
;;
382
386
3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
383
387
basic_machine=m68000-att
384
388
;;
436
440
os=-bsd
437
441
;;
438
442
aux)
439
443
basic_machine=m68k-apple
440
444
os=-aux
441
445
;;
442
446
balance)
443
447
basic_machine=ns32k-sequent
444
448
os=-dynix
445
449
;;
450
+
blackfin)
451
+
basic_machine=bfin-unknown
452
+
os=-linux
453
+
;;
454
+
blackfin-*)
455
+
basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
456
+
os=-linux
457
+
;;
446
458
c90)
447
459
basic_machine=c90-cray
448
460
os=-unicos
449
461
;;
450
462
convex-c1)
451
463
basic_machine=c1-convex
452
464
os=-bsd
453
465
;;
454
466
convex-c2)
455
467
basic_machine=c2-convex
468
480
os=-bsd
469
481
;;
470
482
cray | j90)
471
483
basic_machine=j90-cray
472
484
os=-unicos
473
485
;;
474
486
craynv)
475
487
basic_machine=craynv-cray
476
488
os=-unicosmp
477
489
;;
478
-
cr16c)
479
-
basic_machine=cr16c-unknown
490
+
cr16)
491
+
basic_machine=cr16-unknown
480
492
os=-elf
481
493
;;
482
494
crds | unos)
483
495
basic_machine=m68k-crds
484
496
;;
485
497
crisv32 | crisv32-* | etraxfs*)
486
498
basic_machine=crisv32-axis
487
499
;;
488
500
cris | cris-* | etrax*)
489
501
basic_machine=cris-axis
661
673
;;
662
674
*)
663
675
os=-irix4
664
676
;;
665
677
esac
666
678
;;
667
679
isi68 | isi)
668
680
basic_machine=m68k-isi
669
681
os=-sysv
670
682
;;
683
+
m68knommu)
684
+
basic_machine=m68k-unknown
685
+
os=-linux
686
+
;;
687
+
m68knommu-*)
688
+
basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
689
+
os=-linux
690
+
;;
671
691
m88k-omron*)
672
692
basic_machine=m88k-omron
673
693
;;
674
694
magnum | m3230)
675
695
basic_machine=mips-mips
676
696
os=-sysv
677
697
;;
678
698
merlin)
679
699
basic_machine=ns32k-utek
680
700
os=-sysv
681
701
;;
682
702
mingw32)
683
703
basic_machine=i386-pc
684
704
os=-mingw32
685
705
;;
706
+
mingw32ce)
707
+
basic_machine=arm-unknown
708
+
os=-mingw32ce
709
+
;;
686
710
miniframe)
687
711
basic_machine=m68000-convergent
688
712
;;
689
713
*mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
690
714
basic_machine=m68k-atari
691
715
os=-mint
692
716
;;
693
717
mips3*-*)
694
718
basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
695
719
;;
802
826
os=-os68k
803
827
;;
804
828
pa-hitachi)
805
829
basic_machine=hppa1.1-hitachi
806
830
os=-hiuxwe2
807
831
;;
808
832
paragon)
809
833
basic_machine=i860-intel
810
834
os=-osf
811
835
;;
836
+
parisc)
837
+
basic_machine=hppa-unknown
838
+
os=-linux
839
+
;;
840
+
parisc-*)
841
+
basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
842
+
os=-linux
843
+
;;
812
844
pbd)
813
845
basic_machine=sparc-tti
814
846
;;
815
847
pbb)
816
848
basic_machine=m68k-tti
817
849
;;
818
850
pc532 | pc532-*)
819
851
basic_machine=ns32k-pc532
820
852
;;
853
+
pc98)
854
+
basic_machine=i386-pc
855
+
;;
856
+
pc98-*)
857
+
basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
858
+
;;
821
859
pentium | p5 | k5 | k6 | nexgen | viac3)
822
860
basic_machine=i586-pc
823
861
;;
824
862
pentiumpro | p6 | 6x86 | athlon | athlon_*)
825
863
basic_machine=i686-pc
826
864
;;
827
865
pentiumii | pentium2 | pentiumiii | pentium3)
828
866
basic_machine=i686-pc
829
867
;;
830
868
pentium4)
897
935
sa29200)
898
936
basic_machine=a29k-amd
899
937
os=-udi
900
938
;;
901
939
sb1)
902
940
basic_machine=mipsisa64sb1-unknown
903
941
;;
904
942
sb1el)
905
943
basic_machine=mipsisa64sb1el-unknown
906
944
;;
945
+
sde)
946
+
basic_machine=mipsisa32-sde
947
+
os=-elf
948
+
;;
907
949
sei)
908
950
basic_machine=mips-sei
909
951
os=-seiux
910
952
;;
911
953
sequent)
912
954
basic_machine=i386-sequent
913
955
;;
914
956
sh)
915
957
basic_machine=sh-hitachi
916
958
os=-hms
917
959
;;
960
+
sh5el)
961
+
basic_machine=sh5le-unknown
962
+
;;
918
963
sh64)
919
964
basic_machine=sh64-unknown
920
965
;;
921
966
sparclite-wrs | simso-wrs)
922
967
basic_machine=sparclite-wrs
923
968
os=-vxworks
924
969
;;
925
970
sps7)
926
971
basic_machine=m68k-bull
927
972
os=-sysv2
997
1042
os=-coff
998
1043
;;
999
1044
tic55x | c55x*)
1000
1045
basic_machine=tic55x-unknown
1001
1046
os=-coff
1002
1047
;;
1003
1048
tic6x | c6x*)
1004
1049
basic_machine=tic6x-unknown
1005
1050
os=-coff
1006
1051
;;
1052
+
tile*)
1053
+
basic_machine=tile-unknown
1054
+
os=-linux-gnu
1055
+
;;
1007
1056
tx39)
1008
1057
basic_machine=mipstx39-unknown
1009
1058
;;
1010
1059
tx39el)
1011
1060
basic_machine=mipstx39el-unknown
1012
1061
;;
1013
1062
toad1)
1014
1063
basic_machine=pdp10-xkl
1015
1064
os=-tops20
1016
1065
;;
1113
1162
;;
1114
1163
pdp11)
1115
1164
basic_machine=pdp11-dec
1116
1165
;;
1117
1166
we32k)
1118
1167
basic_machine=we32k-att
1119
1168
;;
1120
1169
sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
1121
1170
basic_machine=sh-unknown
1122
1171
;;
1123
-
sparc | sparcv8 | sparcv9 | sparcv9b)
1172
+
sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
1124
1173
basic_machine=sparc-sun
1125
1174
;;
1126
1175
cydra)
1127
1176
basic_machine=cydra-cydrome
1128
1177
;;
1129
1178
orion)
1130
1179
basic_machine=orion-highlevel
1131
1180
;;
1132
1181
orion105)
1133
1182
basic_machine=clipper-highlevel
1186
1235
# The portable systems comes first.
1187
1236
# Each alternative MUST END IN A *, to match a version number.
1188
1237
# -sysv* is not here because it comes later, after sysvr4.
1189
1238
-gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1190
1239
| -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
1191
1240
| -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
1192
1241
| -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1193
1242
| -aos* \
1194
1243
| -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1195
1244
| -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1196
-
| -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \
1245
+
| -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1246
+
| -openbsd* | -solidbsd* \
1197
1247
| -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1198
1248
| -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1199
1249
| -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1200
1250
| -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1201
1251
| -chorusos* | -chorusrdb* \
1202
1252
| -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1203
1253
| -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
1204
1254
| -uxpv* | -beos* | -mpeix* | -udk* \
1205
1255
| -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1206
1256
| -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1207
1257
| -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1208
1258
| -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1209
1259
| -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1210
1260
| -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1211
-
| -skyos* | -haiku* | -rdos*)
1261
+
| -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
1212
1262
# Remember, each alternative MUST END IN *, to match a version number.
1213
1263
;;
1214
1264
-qnx*)
1215
1265
case $basic_machine in
1216
1266
x86-* | i*86-*)
1217
1267
;;
1218
1268
*)
1219
1269
os=-nto$os
1220
1270
;;
1221
1271
esac
1353
1403
# The value should be what the vendor currently ships out the door with their
1354
1404
# machine or put another way, the most popular os provided with the machine.
1355
1405
1356
1406
# Note that if you're going to try to match "-MANUFACTURER" here (say,
1357
1407
# "-sun"), then you have to tell the case statement up towards the top
1358
1408
# that MANUFACTURER isn't an operating system. Otherwise, code above
1359
1409
# will signal an error saying that MANUFACTURER isn't an operating
1360
1410
# system, and we'll never get to this point.
1361
1411
1362
1412
case $basic_machine in
1413
+
score-*)
1414
+
os=-elf
1415
+
;;
1416
+
spu-*)
1417
+
os=-elf
1418
+
;;
1363
1419
*-acorn)
1364
1420
os=-riscix1.2
1365
1421
;;
1366
1422
arm*-rebel)
1367
1423
os=-linux
1368
1424
;;
1369
1425
arm*-semi)
1370
1426
os=-aout
1371
1427
;;
1372
-
c4x-* | tic4x-*)
1373
-
os=-coff
1374
-
;;
1428
+
c4x-* | tic4x-*)
1429
+
os=-coff
1430
+
;;
1375
1431
# This must come before the *-dec entry.
1376
1432
pdp10-*)
1377
1433
os=-tops20
1378
1434
;;
1379
1435
pdp11-*)
1380
1436
os=-none
1381
1437
;;
1382
1438
*-dec | vax-*)
1383
1439
os=-ultrix4.2
1384
1440
;;
1390
1446
;;
1391
1447
m68000-sun)
1392
1448
os=-sunos3
1393
1449
# This also exists in the configure program, but was not the
1394
1450
# default.
1395
1451
# os=-sunos4
1396
1452
;;
1397
1453
m68*-cisco)
1398
1454
os=-aout
1399
1455
;;
1456
+
mep-*)
1457
+
os=-elf
1458
+
;;
1400
1459
mips*-cisco)
1401
1460
os=-elf
1402
1461
;;
1403
1462
mips*-*)
1404
1463
os=-elf
1405
1464
;;
1406
1465
or32-*)
1407
1466
os=-coff
1408
1467
;;
1409
1468
*-tti) # must be before sparc entry or we get the wrong os.