Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

config.sub 34 KB

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
  1. #! /bin/sh
  2. # Configuration validation subroutine script.
  3. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
  4. # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
  5. # 2011 Free Software Foundation, Inc.
  6. timestamp='2011-06-03'
  7. # This file is (in principle) common to ALL GNU software.
  8. # The presence of a machine in this file suggests that SOME GNU software
  9. # can handle that machine. It does not imply ALL GNU software can.
  10. #
  11. # This file is free software; you can redistribute it and/or modify
  12. # it under the terms of the GNU General Public License as published by
  13. # the Free Software Foundation; either version 2 of the License, or
  14. # (at your option) any later version.
  15. #
  16. # This program is distributed in the hope that it will be useful,
  17. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19. # GNU General Public License for more details.
  20. #
  21. # You should have received a copy of the GNU General Public License
  22. # along with this program; if not, write to the Free Software
  23. # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
  24. # 02110-1301, USA.
  25. #
  26. # As a special exception to the GNU General Public License, if you
  27. # distribute this file as part of a program that contains a
  28. # configuration script generated by Autoconf, you may include it under
  29. # the same distribution terms that you use for the rest of that program.
  30. # Please send patches to <config-patches@gnu.org>. Submit a context
  31. # diff and a properly formatted GNU ChangeLog entry.
  32. #
  33. # Configuration subroutine to validate and canonicalize a configuration type.
  34. # Supply the specified configuration type as an argument.
  35. # If it is invalid, we print an error message on stderr and exit with code 1.
  36. # Otherwise, we print the canonical config type on stdout and succeed.
  37. # You can get the latest version of this script from:
  38. # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
  39. # This file is supposed to be the same for all GNU packages
  40. # and recognize all the CPU types, system types and aliases
  41. # that are meaningful with *any* GNU software.
  42. # Each package is responsible for reporting which valid configurations
  43. # it does not support. The user should be able to distinguish
  44. # a failure to support a valid configuration from a meaningless
  45. # configuration.
  46. # The goal of this file is to map all the various variations of a given
  47. # machine specification into a single specification in the form:
  48. # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
  49. # or in some cases, the newer four-part form:
  50. # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
  51. # It is wrong to echo any other type of specification.
  52. me=`echo "$0" | sed -e 's,.*/,,'`
  53. usage="\
  54. Usage: $0 [OPTION] CPU-MFR-OPSYS
  55. $0 [OPTION] ALIAS
  56. Canonicalize a configuration name.
  57. Operation modes:
  58. -h, --help print this help, then exit
  59. -t, --time-stamp print date of last modification, then exit
  60. -v, --version print version number, then exit
  61. Report bugs and patches to <config-patches@gnu.org>."
  62. version="\
  63. GNU config.sub ($timestamp)
  64. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
  65. 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free
  66. Software Foundation, Inc.
  67. This is free software; see the source for copying conditions. There is NO
  68. warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  69. help="
  70. Try \`$me --help' for more information."
  71. # Parse command line
  72. while test $# -gt 0 ; do
  73. case $1 in
  74. --time-stamp | --time* | -t )
  75. echo "$timestamp" ; exit ;;
  76. --version | -v )
  77. echo "$version" ; exit ;;
  78. --help | --h* | -h )
  79. echo "$usage"; exit ;;
  80. -- ) # Stop option processing
  81. shift; break ;;
  82. - ) # Use stdin as input.
  83. break ;;
  84. -* )
  85. echo "$me: invalid option $1$help"
  86. exit 1 ;;
  87. *local*)
  88. # First pass through any local machine types.
  89. echo $1
  90. exit ;;
  91. * )
  92. break ;;
  93. esac
  94. done
  95. case $# in
  96. 0) echo "$me: missing argument$help" >&2
  97. exit 1;;
  98. 1) ;;
  99. *) echo "$me: too many arguments$help" >&2
  100. exit 1;;
  101. esac
  102. # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
  103. # Here we must recognize all the valid KERNEL-OS combinations.
  104. maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
  105. case $maybe_os in
  106. nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
  107. linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
  108. knetbsd*-gnu* | netbsd*-gnu* | \
  109. kopensolaris*-gnu* | \
  110. storm-chaos* | os2-emx* | rtmk-nova*)
  111. os=-$maybe_os
  112. basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
  113. ;;
  114. *)
  115. basic_machine=`echo $1 | sed 's/-[^-]*$//'`
  116. if [ $basic_machine != $1 ]
  117. then os=`echo $1 | sed 's/.*-/-/'`
  118. else os=; fi
  119. ;;
  120. esac
  121. ### Let's recognize common machines as not being operating systems so
  122. ### that things like config.sub decstation-3100 work. We also
  123. ### recognize some manufacturers as not being operating systems, so we
  124. ### can provide default operating systems below.
  125. case $os in
  126. -sun*os*)
  127. # Prevent following clause from handling this invalid input.
  128. ;;
  129. -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
  130. -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
  131. -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
  132. -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
  133. -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
  134. -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
  135. -apple | -axis | -knuth | -cray | -microblaze)
  136. os=
  137. basic_machine=$1
  138. ;;
  139. -bluegene*)
  140. os=-cnk
  141. ;;
  142. -sim | -cisco | -oki | -wec | -winbond)
  143. os=
  144. basic_machine=$1
  145. ;;
  146. -scout)
  147. ;;
  148. -wrs)
  149. os=-vxworks
  150. basic_machine=$1
  151. ;;
  152. -chorusos*)
  153. os=-chorusos
  154. basic_machine=$1
  155. ;;
  156. -chorusrdb)
  157. os=-chorusrdb
  158. basic_machine=$1
  159. ;;
  160. -hiux*)
  161. os=-hiuxwe2
  162. ;;
  163. -sco6)
  164. os=-sco5v6
  165. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  166. ;;
  167. -sco5)
  168. os=-sco3.2v5
  169. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  170. ;;
  171. -sco4)
  172. os=-sco3.2v4
  173. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  174. ;;
  175. -sco3.2.[4-9]*)
  176. os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
  177. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  178. ;;
  179. -sco3.2v[4-9]*)
  180. # Don't forget version if it is 3.2v4 or newer.
  181. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  182. ;;
  183. -sco5v6*)
  184. # Don't forget version if it is 3.2v4 or newer.
  185. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  186. ;;
  187. -sco*)
  188. os=-sco3.2v2
  189. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  190. ;;
  191. -udk*)
  192. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  193. ;;
  194. -isc)
  195. os=-isc2.2
  196. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  197. ;;
  198. -clix*)
  199. basic_machine=clipper-intergraph
  200. ;;
  201. -isc*)
  202. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  203. ;;
  204. -lynx*)
  205. os=-lynxos
  206. ;;
  207. -ptx*)
  208. basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
  209. ;;
  210. -windowsnt*)
  211. os=`echo $os | sed -e 's/windowsnt/winnt/'`
  212. ;;
  213. -psos*)
  214. os=-psos
  215. ;;
  216. -mint | -mint[0-9]*)
  217. basic_machine=m68k-atari
  218. os=-mint
  219. ;;
  220. esac
  221. # Decode aliases for certain CPU-COMPANY combinations.
  222. case $basic_machine in
  223. # Recognize the basic CPU types without company name.
  224. # Some are omitted here because they have special meanings below.
  225. 1750a | 580 \
  226. | a29k \
  227. | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
  228. | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
  229. | am33_2.0 \
  230. | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
  231. | bfin \
  232. | c4x | clipper \
  233. | d10v | d30v | dlx | dsp16xx \
  234. | fido | fr30 | frv \
  235. | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
  236. | i370 | i860 | i960 | ia64 \
  237. | ip2k | iq2000 \
  238. | lm32 \
  239. | m32c | m32r | m32rle | m68000 | m68k | m88k \
  240. | maxq | mb | microblaze | mcore | mep | metag \
  241. | mips | mipsbe | mipseb | mipsel | mipsle \
  242. | mips16 \
  243. | mips64 | mips64el \
  244. | mips64octeon | mips64octeonel \
  245. | mips64orion | mips64orionel \
  246. | mips64r5900 | mips64r5900el \
  247. | mips64vr | mips64vrel \
  248. | mips64vr4100 | mips64vr4100el \
  249. | mips64vr4300 | mips64vr4300el \
  250. | mips64vr5000 | mips64vr5000el \
  251. | mips64vr5900 | mips64vr5900el \
  252. | mipsisa32 | mipsisa32el \
  253. | mipsisa32r2 | mipsisa32r2el \
  254. | mipsisa64 | mipsisa64el \
  255. | mipsisa64r2 | mipsisa64r2el \
  256. | mipsisa64sb1 | mipsisa64sb1el \
  257. | mipsisa64sr71k | mipsisa64sr71kel \
  258. | mipstx39 | mipstx39el \
  259. | mn10200 | mn10300 \
  260. | moxie \
  261. | mt \
  262. | msp430 \
  263. | nds32 | nds32le | nds32be \
  264. | nios | nios2 \
  265. | ns16k | ns32k \
  266. | open8 \
  267. | or32 \
  268. | pdp10 | pdp11 | pj | pjl \
  269. | powerpc | powerpc64 | powerpc64le | powerpcle \
  270. | pyramid \
  271. | rx \
  272. | score \
  273. | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
  274. | sh64 | sh64le \
  275. | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
  276. | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
  277. | spu \
  278. | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
  279. | ubicom32 \
  280. | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
  281. | we32k \
  282. | x86 | xc16x | xstormy16 | xtensa \
  283. | z8k | z80)
  284. basic_machine=$basic_machine-unknown
  285. ;;
  286. c54x)
  287. basic_machine=tic54x-unknown
  288. ;;
  289. c55x)
  290. basic_machine=tic55x-unknown
  291. ;;
  292. c6x)
  293. basic_machine=tic6x-unknown
  294. ;;
  295. m6811 | m68hc11 | m6812 | m68hc12 | picochip)
  296. # Motorola 68HC11/12.
  297. basic_machine=$basic_machine-unknown
  298. os=-none
  299. ;;
  300. m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
  301. ;;
  302. ms1)
  303. basic_machine=mt-unknown
  304. ;;
  305. strongarm | thumb | xscale)
  306. basic_machine=arm-unknown
  307. ;;
  308. xscaleeb)
  309. basic_machine=armeb-unknown
  310. ;;
  311. xscaleel)
  312. basic_machine=armel-unknown
  313. ;;
  314. # We use `pc' rather than `unknown'
  315. # because (1) that's what they normally are, and
  316. # (2) the word "unknown" tends to confuse beginning users.
  317. i*86 | x86_64)
  318. basic_machine=$basic_machine-pc
  319. ;;
  320. # Object if more than one company name word.
  321. *-*-*)
  322. echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
  323. exit 1
  324. ;;
  325. # Recognize the basic CPU types with company name.
  326. 580-* \
  327. | a29k-* \
  328. | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
  329. | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
  330. | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
  331. | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
  332. | avr-* | avr32-* \
  333. | bfin-* | bs2000-* \
  334. | c[123]* | c30-* | [cjt]90-* | c4x-* \
  335. | clipper-* | craynv-* | cydra-* \
  336. | d10v-* | d30v-* | dlx-* \
  337. | elxsi-* \
  338. | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
  339. | h8300-* | h8500-* \
  340. | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
  341. | i*86-* | i860-* | i960-* | ia64-* \
  342. | ip2k-* | iq2000-* \
  343. | lm32-* \
  344. | m32c-* | m32r-* | m32rle-* \
  345. | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
  346. | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
  347. | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
  348. | mips16-* \
  349. | mips64-* | mips64el-* \
  350. | mips64octeon-* | mips64octeonel-* \
  351. | mips64orion-* | mips64orionel-* \
  352. | mips64r5900-* | mips64r5900el-* \
  353. | mips64vr-* | mips64vrel-* \
  354. | mips64vr4100-* | mips64vr4100el-* \
  355. | mips64vr4300-* | mips64vr4300el-* \
  356. | mips64vr5000-* | mips64vr5000el-* \
  357. | mips64vr5900-* | mips64vr5900el-* \
  358. | mipsisa32-* | mipsisa32el-* \
  359. | mipsisa32r2-* | mipsisa32r2el-* \
  360. | mipsisa64-* | mipsisa64el-* \
  361. | mipsisa64r2-* | mipsisa64r2el-* \
  362. | mipsisa64sb1-* | mipsisa64sb1el-* \
  363. | mipsisa64sr71k-* | mipsisa64sr71kel-* \
  364. | mipstx39-* | mipstx39el-* \
  365. | mmix-* \
  366. | mt-* \
  367. | msp430-* \
  368. | nds32-* | nds32le-* | nds32be-* \
  369. | nios-* | nios2-* \
  370. | none-* | np1-* | ns16k-* | ns32k-* \
  371. | open8-* \
  372. | orion-* \
  373. | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
  374. | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
  375. | pyramid-* \
  376. | romp-* | rs6000-* | rx-* \
  377. | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
  378. | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
  379. | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
  380. | sparclite-* \
  381. | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
  382. | tahoe-* \
  383. | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
  384. | tile*-* \
  385. | tron-* \
  386. | ubicom32-* \
  387. | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
  388. | vax-* \
  389. | we32k-* \
  390. | x86-* | x86_64-* | xc16x-* | xps100-* \
  391. | xstormy16-* | xtensa*-* \
  392. | ymp-* \
  393. | z8k-* | z80-*)
  394. ;;
  395. # Recognize the basic CPU types without company name, with glob match.
  396. xtensa*)
  397. basic_machine=$basic_machine-unknown
  398. ;;
  399. # Recognize the various machine names and aliases which stand
  400. # for a CPU type and a company and sometimes even an OS.
  401. 386bsd)
  402. basic_machine=i386-unknown
  403. os=-bsd
  404. ;;
  405. 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
  406. basic_machine=m68000-att
  407. ;;
  408. 3b*)
  409. basic_machine=we32k-att
  410. ;;
  411. a29khif)
  412. basic_machine=a29k-amd
  413. os=-udi
  414. ;;
  415. abacus)
  416. basic_machine=abacus-unknown
  417. ;;
  418. adobe68k)
  419. basic_machine=m68010-adobe
  420. os=-scout
  421. ;;
  422. alliant | fx80)
  423. basic_machine=fx80-alliant
  424. ;;
  425. altos | altos3068)
  426. basic_machine=m68k-altos
  427. ;;
  428. am29k)
  429. basic_machine=a29k-none
  430. os=-bsd
  431. ;;
  432. amd64)
  433. basic_machine=x86_64-pc
  434. ;;
  435. amd64-*)
  436. basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
  437. ;;
  438. amdahl)
  439. basic_machine=580-amdahl
  440. os=-sysv
  441. ;;
  442. amiga | amiga-*)
  443. basic_machine=m68k-unknown
  444. ;;
  445. amigaos | amigados)
  446. basic_machine=m68k-unknown
  447. os=-amigaos
  448. ;;
  449. amigaunix | amix)
  450. basic_machine=m68k-unknown
  451. os=-sysv4
  452. ;;
  453. apollo68)
  454. basic_machine=m68k-apollo
  455. os=-sysv
  456. ;;
  457. apollo68bsd)
  458. basic_machine=m68k-apollo
  459. os=-bsd
  460. ;;
  461. aros)
  462. basic_machine=i386-pc
  463. os=-aros
  464. ;;
  465. aux)
  466. basic_machine=m68k-apple
  467. os=-aux
  468. ;;
  469. balance)
  470. basic_machine=ns32k-sequent
  471. os=-dynix
  472. ;;
  473. blackfin)
  474. basic_machine=bfin-unknown
  475. os=-linux
  476. ;;
  477. blackfin-*)
  478. basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
  479. os=-linux
  480. ;;
  481. bluegene*)
  482. basic_machine=powerpc-ibm
  483. os=-cnk
  484. ;;
  485. c54x-*)
  486. basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
  487. ;;
  488. c55x-*)
  489. basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
  490. ;;
  491. c6x-*)
  492. basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
  493. ;;
  494. c90)
  495. basic_machine=c90-cray
  496. os=-unicos
  497. ;;
  498. cegcc)
  499. basic_machine=arm-unknown
  500. os=-cegcc
  501. ;;
  502. convex-c1)
  503. basic_machine=c1-convex
  504. os=-bsd
  505. ;;
  506. convex-c2)
  507. basic_machine=c2-convex
  508. os=-bsd
  509. ;;
  510. convex-c32)
  511. basic_machine=c32-convex
  512. os=-bsd
  513. ;;
  514. convex-c34)
  515. basic_machine=c34-convex
  516. os=-bsd
  517. ;;
  518. convex-c38)
  519. basic_machine=c38-convex
  520. os=-bsd
  521. ;;
  522. cray | j90)
  523. basic_machine=j90-cray
  524. os=-unicos
  525. ;;
  526. craynv)
  527. basic_machine=craynv-cray
  528. os=-unicosmp
  529. ;;
  530. cr16 | cr16-*)
  531. basic_machine=cr16-unknown
  532. os=-elf
  533. ;;
  534. crds | unos)
  535. basic_machine=m68k-crds
  536. ;;
  537. crisv32 | crisv32-* | etraxfs*)
  538. basic_machine=crisv32-axis
  539. ;;
  540. cris | cris-* | etrax*)
  541. basic_machine=cris-axis
  542. ;;
  543. crx)
  544. basic_machine=crx-unknown
  545. os=-elf
  546. ;;
  547. da30 | da30-*)
  548. basic_machine=m68k-da30
  549. ;;
  550. decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
  551. basic_machine=mips-dec
  552. ;;
  553. decsystem10* | dec10*)
  554. basic_machine=pdp10-dec
  555. os=-tops10
  556. ;;
  557. decsystem20* | dec20*)
  558. basic_machine=pdp10-dec
  559. os=-tops20
  560. ;;
  561. delta | 3300 | motorola-3300 | motorola-delta \
  562. | 3300-motorola | delta-motorola)
  563. basic_machine=m68k-motorola
  564. ;;
  565. delta88)
  566. basic_machine=m88k-motorola
  567. os=-sysv3
  568. ;;
  569. dicos)
  570. basic_machine=i686-pc
  571. os=-dicos
  572. ;;
  573. djgpp)
  574. basic_machine=i586-pc
  575. os=-msdosdjgpp
  576. ;;
  577. dpx20 | dpx20-*)
  578. basic_machine=rs6000-bull
  579. os=-bosx
  580. ;;
  581. dpx2* | dpx2*-bull)
  582. basic_machine=m68k-bull
  583. os=-sysv3
  584. ;;
  585. ebmon29k)
  586. basic_machine=a29k-amd
  587. os=-ebmon
  588. ;;
  589. elxsi)
  590. basic_machine=elxsi-elxsi
  591. os=-bsd
  592. ;;
  593. encore | umax | mmax)
  594. basic_machine=ns32k-encore
  595. ;;
  596. es1800 | OSE68k | ose68k | ose | OSE)
  597. basic_machine=m68k-ericsson
  598. os=-ose
  599. ;;
  600. fx2800)
  601. basic_machine=i860-alliant
  602. ;;
  603. genix)
  604. basic_machine=ns32k-ns
  605. ;;
  606. gmicro)
  607. basic_machine=tron-gmicro
  608. os=-sysv
  609. ;;
  610. go32)
  611. basic_machine=i386-pc
  612. os=-go32
  613. ;;
  614. h3050r* | hiux*)
  615. basic_machine=hppa1.1-hitachi
  616. os=-hiuxwe2
  617. ;;
  618. h8300hms)
  619. basic_machine=h8300-hitachi
  620. os=-hms
  621. ;;
  622. h8300xray)
  623. basic_machine=h8300-hitachi
  624. os=-xray
  625. ;;
  626. h8500hms)
  627. basic_machine=h8500-hitachi
  628. os=-hms
  629. ;;
  630. harris)
  631. basic_machine=m88k-harris
  632. os=-sysv3
  633. ;;
  634. hp300-*)
  635. basic_machine=m68k-hp
  636. ;;
  637. hp300bsd)
  638. basic_machine=m68k-hp
  639. os=-bsd
  640. ;;
  641. hp300hpux)
  642. basic_machine=m68k-hp
  643. os=-hpux
  644. ;;
  645. hp3k9[0-9][0-9] | hp9[0-9][0-9])
  646. basic_machine=hppa1.0-hp
  647. ;;
  648. hp9k2[0-9][0-9] | hp9k31[0-9])
  649. basic_machine=m68000-hp
  650. ;;
  651. hp9k3[2-9][0-9])
  652. basic_machine=m68k-hp
  653. ;;
  654. hp9k6[0-9][0-9] | hp6[0-9][0-9])
  655. basic_machine=hppa1.0-hp
  656. ;;
  657. hp9k7[0-79][0-9] | hp7[0-79][0-9])
  658. basic_machine=hppa1.1-hp
  659. ;;
  660. hp9k78[0-9] | hp78[0-9])
  661. # FIXME: really hppa2.0-hp
  662. basic_machine=hppa1.1-hp
  663. ;;
  664. hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
  665. # FIXME: really hppa2.0-hp
  666. basic_machine=hppa1.1-hp
  667. ;;
  668. hp9k8[0-9][13679] | hp8[0-9][13679])
  669. basic_machine=hppa1.1-hp
  670. ;;
  671. hp9k8[0-9][0-9] | hp8[0-9][0-9])
  672. basic_machine=hppa1.0-hp
  673. ;;
  674. hppa-next)
  675. os=-nextstep3
  676. ;;
  677. hppaosf)
  678. basic_machine=hppa1.1-hp
  679. os=-osf
  680. ;;
  681. hppro)
  682. basic_machine=hppa1.1-hp
  683. os=-proelf
  684. ;;
  685. i370-ibm* | ibm*)
  686. basic_machine=i370-ibm
  687. ;;
  688. # I'm not sure what "Sysv32" means. Should this be sysv3.2?
  689. i*86v32)
  690. basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
  691. os=-sysv32
  692. ;;
  693. i*86v4*)
  694. basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
  695. os=-sysv4
  696. ;;
  697. i*86v)
  698. basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
  699. os=-sysv
  700. ;;
  701. i*86sol2)
  702. basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
  703. os=-solaris2
  704. ;;
  705. i386mach)
  706. basic_machine=i386-mach
  707. os=-mach
  708. ;;
  709. i386-vsta | vsta)
  710. basic_machine=i386-unknown
  711. os=-vsta
  712. ;;
  713. iris | iris4d)
  714. basic_machine=mips-sgi
  715. case $os in
  716. -irix*)
  717. ;;
  718. *)
  719. os=-irix4
  720. ;;
  721. esac
  722. ;;
  723. isi68 | isi)
  724. basic_machine=m68k-isi
  725. os=-sysv
  726. ;;
  727. m68knommu)
  728. basic_machine=m68k-unknown
  729. os=-linux
  730. ;;
  731. m68knommu-*)
  732. basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
  733. os=-linux
  734. ;;
  735. m88k-omron*)
  736. basic_machine=m88k-omron
  737. ;;
  738. magnum | m3230)
  739. basic_machine=mips-mips
  740. os=-sysv
  741. ;;
  742. merlin)
  743. basic_machine=ns32k-utek
  744. os=-sysv
  745. ;;
  746. microblaze)
  747. basic_machine=microblaze-xilinx
  748. ;;
  749. mingw32)
  750. basic_machine=i386-pc
  751. os=-mingw32
  752. ;;
  753. mingw32ce)
  754. basic_machine=arm-unknown
  755. os=-mingw32ce
  756. ;;
  757. miniframe)
  758. basic_machine=m68000-convergent
  759. ;;
  760. *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
  761. basic_machine=m68k-atari
  762. os=-mint
  763. ;;
  764. mips3*-*)
  765. basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
  766. ;;
  767. mips3*)
  768. basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
  769. ;;
  770. monitor)
  771. basic_machine=m68k-rom68k
  772. os=-coff
  773. ;;
  774. morphos)
  775. basic_machine=powerpc-unknown
  776. os=-morphos
  777. ;;
  778. msdos)
  779. basic_machine=i386-pc
  780. os=-msdos
  781. ;;
  782. ms1-*)
  783. basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
  784. ;;
  785. mvs)
  786. basic_machine=i370-ibm
  787. os=-mvs
  788. ;;
  789. ncr3000)
  790. basic_machine=i486-ncr
  791. os=-sysv4
  792. ;;
  793. netbsd386)
  794. basic_machine=i386-unknown
  795. os=-netbsd
  796. ;;
  797. netwinder)
  798. basic_machine=armv4l-rebel
  799. os=-linux
  800. ;;
  801. news | news700 | news800 | news900)
  802. basic_machine=m68k-sony
  803. os=-newsos
  804. ;;
  805. news1000)
  806. basic_machine=m68030-sony
  807. os=-newsos
  808. ;;
  809. news-3600 | risc-news)
  810. basic_machine=mips-sony
  811. os=-newsos
  812. ;;
  813. necv70)
  814. basic_machine=v70-nec
  815. os=-sysv
  816. ;;
  817. next | m*-next )
  818. basic_machine=m68k-next
  819. case $os in
  820. -nextstep* )
  821. ;;
  822. -ns2*)
  823. os=-nextstep2
  824. ;;
  825. *)
  826. os=-nextstep3
  827. ;;
  828. esac
  829. ;;
  830. nh3000)
  831. basic_machine=m68k-harris
  832. os=-cxux
  833. ;;
  834. nh[45]000)
  835. basic_machine=m88k-harris
  836. os=-cxux
  837. ;;
  838. nindy960)
  839. basic_machine=i960-intel
  840. os=-nindy
  841. ;;
  842. mon960)
  843. basic_machine=i960-intel
  844. os=-mon960
  845. ;;
  846. nonstopux)
  847. basic_machine=mips-compaq
  848. os=-nonstopux
  849. ;;
  850. np1)
  851. basic_machine=np1-gould
  852. ;;
  853. neo-tandem)
  854. basic_machine=neo-tandem
  855. ;;
  856. nse-tandem)
  857. basic_machine=nse-tandem
  858. ;;
  859. nsr-tandem)
  860. basic_machine=nsr-tandem
  861. ;;
  862. op50n-* | op60c-*)
  863. basic_machine=hppa1.1-oki
  864. os=-proelf
  865. ;;
  866. openrisc | openrisc-*)
  867. basic_machine=or32-unknown
  868. ;;
  869. os400)
  870. basic_machine=powerpc-ibm
  871. os=-os400
  872. ;;
  873. OSE68000 | ose68000)
  874. basic_machine=m68000-ericsson
  875. os=-ose
  876. ;;
  877. os68k)
  878. basic_machine=m68k-none
  879. os=-os68k
  880. ;;
  881. pa-hitachi)
  882. basic_machine=hppa1.1-hitachi
  883. os=-hiuxwe2
  884. ;;
  885. paragon)
  886. basic_machine=i860-intel
  887. os=-osf
  888. ;;
  889. parisc)
  890. basic_machine=hppa-unknown
  891. os=-linux
  892. ;;
  893. parisc-*)
  894. basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
  895. os=-linux
  896. ;;
  897. pbd)
  898. basic_machine=sparc-tti
  899. ;;
  900. pbb)
  901. basic_machine=m68k-tti
  902. ;;
  903. pc532 | pc532-*)
  904. basic_machine=ns32k-pc532
  905. ;;
  906. pc98)
  907. basic_machine=i386-pc
  908. ;;
  909. pc98-*)
  910. basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
  911. ;;
  912. pentium | p5 | k5 | k6 | nexgen | viac3)
  913. basic_machine=i586-pc
  914. ;;
  915. pentiumpro | p6 | 6x86 | athlon | athlon_*)
  916. basic_machine=i686-pc
  917. ;;
  918. pentiumii | pentium2 | pentiumiii | pentium3)
  919. basic_machine=i686-pc
  920. ;;
  921. pentium4)
  922. basic_machine=i786-pc
  923. ;;
  924. pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
  925. basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
  926. ;;
  927. pentiumpro-* | p6-* | 6x86-* | athlon-*)
  928. basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
  929. ;;
  930. pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
  931. basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
  932. ;;
  933. pentium4-*)
  934. basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
  935. ;;
  936. pn)
  937. basic_machine=pn-gould
  938. ;;
  939. power) basic_machine=power-ibm
  940. ;;
  941. ppc | ppcbe) basic_machine=powerpc-unknown
  942. ;;
  943. ppc-* | ppcbe-*)
  944. basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
  945. ;;
  946. ppcle | powerpclittle | ppc-le | powerpc-little)
  947. basic_machine=powerpcle-unknown
  948. ;;
  949. ppcle-* | powerpclittle-*)
  950. basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
  951. ;;
  952. ppc64) basic_machine=powerpc64-unknown
  953. ;;
  954. ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
  955. ;;
  956. ppc64le | powerpc64little | ppc64-le | powerpc64-little)
  957. basic_machine=powerpc64le-unknown
  958. ;;
  959. ppc64le-* | powerpc64little-*)
  960. basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
  961. ;;
  962. ps2)
  963. basic_machine=i386-ibm
  964. ;;
  965. pw32)
  966. basic_machine=i586-unknown
  967. os=-pw32
  968. ;;
  969. rdos)
  970. basic_machine=i386-pc
  971. os=-rdos
  972. ;;
  973. rom68k)
  974. basic_machine=m68k-rom68k
  975. os=-coff
  976. ;;
  977. rm[46]00)
  978. basic_machine=mips-siemens
  979. ;;
  980. rtpc | rtpc-*)
  981. basic_machine=romp-ibm
  982. ;;
  983. s390 | s390-*)
  984. basic_machine=s390-ibm
  985. ;;
  986. s390x | s390x-*)
  987. basic_machine=s390x-ibm
  988. ;;
  989. sa29200)
  990. basic_machine=a29k-amd
  991. os=-udi
  992. ;;
  993. sb1)
  994. basic_machine=mipsisa64sb1-unknown
  995. ;;
  996. sb1el)
  997. basic_machine=mipsisa64sb1el-unknown
  998. ;;
  999. sde)
  1000. basic_machine=mipsisa32-sde
  1001. os=-elf
  1002. ;;
  1003. sei)
  1004. basic_machine=mips-sei
  1005. os=-seiux
  1006. ;;
  1007. sequent)
  1008. basic_machine=i386-sequent
  1009. ;;
  1010. sh)
  1011. basic_machine=sh-hitachi
  1012. os=-hms
  1013. ;;
  1014. sh5el)
  1015. basic_machine=sh5le-unknown
  1016. ;;
  1017. sh64)
  1018. basic_machine=sh64-unknown
  1019. ;;
  1020. sparclite-wrs | simso-wrs)
  1021. basic_machine=sparclite-wrs
  1022. os=-vxworks
  1023. ;;
  1024. sps7)
  1025. basic_machine=m68k-bull
  1026. os=-sysv2
  1027. ;;
  1028. spur)
  1029. basic_machine=spur-unknown
  1030. ;;
  1031. st2000)
  1032. basic_machine=m68k-tandem
  1033. ;;
  1034. stratus)
  1035. basic_machine=i860-stratus
  1036. os=-sysv4
  1037. ;;
  1038. strongarm-* | thumb-*)
  1039. basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
  1040. ;;
  1041. sun2)
  1042. basic_machine=m68000-sun
  1043. ;;
  1044. sun2os3)
  1045. basic_machine=m68000-sun
  1046. os=-sunos3
  1047. ;;
  1048. sun2os4)
  1049. basic_machine=m68000-sun
  1050. os=-sunos4
  1051. ;;
  1052. sun3os3)
  1053. basic_machine=m68k-sun
  1054. os=-sunos3
  1055. ;;
  1056. sun3os4)
  1057. basic_machine=m68k-sun
  1058. os=-sunos4
  1059. ;;
  1060. sun4os3)
  1061. basic_machine=sparc-sun
  1062. os=-sunos3
  1063. ;;
  1064. sun4os4)
  1065. basic_machine=sparc-sun
  1066. os=-sunos4
  1067. ;;
  1068. sun4sol2)
  1069. basic_machine=sparc-sun
  1070. os=-solaris2
  1071. ;;
  1072. sun3 | sun3-*)
  1073. basic_machine=m68k-sun
  1074. ;;
  1075. sun4)
  1076. basic_machine=sparc-sun
  1077. ;;
  1078. sun386 | sun386i | roadrunner)
  1079. basic_machine=i386-sun
  1080. ;;
  1081. sv1)
  1082. basic_machine=sv1-cray
  1083. os=-unicos
  1084. ;;
  1085. symmetry)
  1086. basic_machine=i386-sequent
  1087. os=-dynix
  1088. ;;
  1089. t3e)
  1090. basic_machine=alphaev5-cray
  1091. os=-unicos
  1092. ;;
  1093. t90)
  1094. basic_machine=t90-cray
  1095. os=-unicos
  1096. ;;
  1097. tile*)
  1098. basic_machine=$basic_machine-unknown
  1099. os=-linux-gnu
  1100. ;;
  1101. tx39)
  1102. basic_machine=mipstx39-unknown
  1103. ;;
  1104. tx39el)
  1105. basic_machine=mipstx39el-unknown
  1106. ;;
  1107. toad1)
  1108. basic_machine=pdp10-xkl
  1109. os=-tops20
  1110. ;;
  1111. tower | tower-32)
  1112. basic_machine=m68k-ncr
  1113. ;;
  1114. tpf)
  1115. basic_machine=s390x-ibm
  1116. os=-tpf
  1117. ;;
  1118. udi29k)
  1119. basic_machine=a29k-amd
  1120. os=-udi
  1121. ;;
  1122. ultra3)
  1123. basic_machine=a29k-nyu
  1124. os=-sym1
  1125. ;;
  1126. v810 | necv810)
  1127. basic_machine=v810-nec
  1128. os=-none
  1129. ;;
  1130. vaxv)
  1131. basic_machine=vax-dec
  1132. os=-sysv
  1133. ;;
  1134. vms)
  1135. basic_machine=vax-dec
  1136. os=-vms
  1137. ;;
  1138. vpp*|vx|vx-*)
  1139. basic_machine=f301-fujitsu
  1140. ;;
  1141. vxworks960)
  1142. basic_machine=i960-wrs
  1143. os=-vxworks
  1144. ;;
  1145. vxworks68)
  1146. basic_machine=m68k-wrs
  1147. os=-vxworks
  1148. ;;
  1149. vxworks29k)
  1150. basic_machine=a29k-wrs
  1151. os=-vxworks
  1152. ;;
  1153. w65*)
  1154. basic_machine=w65-wdc
  1155. os=-none
  1156. ;;
  1157. w89k-*)
  1158. basic_machine=hppa1.1-winbond
  1159. os=-proelf
  1160. ;;
  1161. xbox)
  1162. basic_machine=i686-pc
  1163. os=-mingw32
  1164. ;;
  1165. xps | xps100)
  1166. basic_machine=xps100-honeywell
  1167. ;;
  1168. xscale-* | xscalee[bl]-*)
  1169. basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
  1170. ;;
  1171. ymp)
  1172. basic_machine=ymp-cray
  1173. os=-unicos
  1174. ;;
  1175. z8k-*-coff)
  1176. basic_machine=z8k-unknown
  1177. os=-sim
  1178. ;;
  1179. z80-*-coff)
  1180. basic_machine=z80-unknown
  1181. os=-sim
  1182. ;;
  1183. none)
  1184. basic_machine=none-none
  1185. os=-none
  1186. ;;
  1187. # Here we handle the default manufacturer of certain CPU types. It is in
  1188. # some cases the only manufacturer, in others, it is the most popular.
  1189. w89k)
  1190. basic_machine=hppa1.1-winbond
  1191. ;;
  1192. op50n)
  1193. basic_machine=hppa1.1-oki
  1194. ;;
  1195. op60c)
  1196. basic_machine=hppa1.1-oki
  1197. ;;
  1198. romp)
  1199. basic_machine=romp-ibm
  1200. ;;
  1201. mmix)
  1202. basic_machine=mmix-knuth
  1203. ;;
  1204. rs6000)
  1205. basic_machine=rs6000-ibm
  1206. ;;
  1207. vax)
  1208. basic_machine=vax-dec
  1209. ;;
  1210. pdp10)
  1211. # there are many clones, so DEC is not a safe bet
  1212. basic_machine=pdp10-unknown
  1213. ;;
  1214. pdp11)
  1215. basic_machine=pdp11-dec
  1216. ;;
  1217. we32k)
  1218. basic_machine=we32k-att
  1219. ;;
  1220. sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
  1221. basic_machine=sh-unknown
  1222. ;;
  1223. sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
  1224. basic_machine=sparc-sun
  1225. ;;
  1226. cydra)
  1227. basic_machine=cydra-cydrome
  1228. ;;
  1229. orion)
  1230. basic_machine=orion-highlevel
  1231. ;;
  1232. orion105)
  1233. basic_machine=clipper-highlevel
  1234. ;;
  1235. mac | mpw | mac-mpw)
  1236. basic_machine=m68k-apple
  1237. ;;
  1238. pmac | pmac-mpw)
  1239. basic_machine=powerpc-apple
  1240. ;;
  1241. *-unknown)
  1242. # Make sure to match an already-canonicalized machine name.
  1243. ;;
  1244. *)
  1245. echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
  1246. exit 1
  1247. ;;
  1248. esac
  1249. # Here we canonicalize certain aliases for manufacturers.
  1250. case $basic_machine in
  1251. *-digital*)
  1252. basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
  1253. ;;
  1254. *-commodore*)
  1255. basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
  1256. ;;
  1257. *)
  1258. ;;
  1259. esac
  1260. # Decode manufacturer-specific aliases for certain operating systems.
  1261. if [ x"$os" != x"" ]
  1262. then
  1263. case $os in
  1264. # First match some system type aliases
  1265. # that might get confused with valid system types.
  1266. # -solaris* is a basic system type, with this one exception.
  1267. -auroraux)
  1268. os=-auroraux
  1269. ;;
  1270. -solaris1 | -solaris1.*)
  1271. os=`echo $os | sed -e 's|solaris1|sunos4|'`
  1272. ;;
  1273. -solaris)
  1274. os=-solaris2
  1275. ;;
  1276. -svr4*)
  1277. os=-sysv4
  1278. ;;
  1279. -unixware*)
  1280. os=-sysv4.2uw
  1281. ;;
  1282. -gnu/linux*)
  1283. os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
  1284. ;;
  1285. # First accept the basic system types.
  1286. # The portable systems comes first.
  1287. # Each alternative MUST END IN A *, to match a version number.
  1288. # -sysv* is not here because it comes later, after sysvr4.
  1289. -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
  1290. | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
  1291. | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
  1292. | -sym* | -kopensolaris* \
  1293. | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
  1294. | -aos* | -aros* \
  1295. | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
  1296. | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
  1297. | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
  1298. | -openbsd* | -solidbsd* \
  1299. | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
  1300. | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
  1301. | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
  1302. | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
  1303. | -chorusos* | -chorusrdb* | -cegcc* \
  1304. | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
  1305. | -mingw32* | -linux-gnu* | -linux-android* \
  1306. | -linux-newlib* | -linux-uclibc* \
  1307. | -uxpv* | -beos* | -mpeix* | -udk* \
  1308. | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
  1309. | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
  1310. | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
  1311. | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
  1312. | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
  1313. | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
  1314. | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
  1315. # Remember, each alternative MUST END IN *, to match a version number.
  1316. ;;
  1317. -qnx*)
  1318. case $basic_machine in
  1319. x86-* | i*86-*)
  1320. ;;
  1321. *)
  1322. os=-nto$os
  1323. ;;
  1324. esac
  1325. ;;
  1326. -nto-qnx*)
  1327. ;;
  1328. -nto*)
  1329. os=`echo $os | sed -e 's|nto|nto-qnx|'`
  1330. ;;
  1331. -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
  1332. | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
  1333. | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
  1334. ;;
  1335. -mac*)
  1336. os=`echo $os | sed -e 's|mac|macos|'`
  1337. ;;
  1338. -linux-dietlibc)
  1339. os=-linux-dietlibc
  1340. ;;
  1341. -linux*)
  1342. os=`echo $os | sed -e 's|linux|linux-gnu|'`
  1343. ;;
  1344. -sunos5*)
  1345. os=`echo $os | sed -e 's|sunos5|solaris2|'`
  1346. ;;
  1347. -sunos6*)
  1348. os=`echo $os | sed -e 's|sunos6|solaris3|'`
  1349. ;;
  1350. -opened*)
  1351. os=-openedition
  1352. ;;
  1353. -os400*)
  1354. os=-os400
  1355. ;;
  1356. -wince*)
  1357. os=-wince
  1358. ;;
  1359. -osfrose*)
  1360. os=-osfrose
  1361. ;;
  1362. -osf*)
  1363. os=-osf
  1364. ;;
  1365. -utek*)
  1366. os=-bsd
  1367. ;;
  1368. -dynix*)
  1369. os=-bsd
  1370. ;;
  1371. -acis*)
  1372. os=-aos
  1373. ;;
  1374. -atheos*)
  1375. os=-atheos
  1376. ;;
  1377. -syllable*)
  1378. os=-syllable
  1379. ;;
  1380. -386bsd)
  1381. os=-bsd
  1382. ;;
  1383. -ctix* | -uts*)
  1384. os=-sysv
  1385. ;;
  1386. -nova*)
  1387. os=-rtmk-nova
  1388. ;;
  1389. -ns2 )
  1390. os=-nextstep2
  1391. ;;
  1392. -nsk*)
  1393. os=-nsk
  1394. ;;
  1395. # Preserve the version number of sinix5.
  1396. -sinix5.*)
  1397. os=`echo $os | sed -e 's|sinix|sysv|'`
  1398. ;;
  1399. -sinix*)
  1400. os=-sysv4
  1401. ;;
  1402. -tpf*)
  1403. os=-tpf
  1404. ;;
  1405. -triton*)
  1406. os=-sysv3
  1407. ;;
  1408. -oss*)
  1409. os=-sysv3
  1410. ;;
  1411. -svr4)
  1412. os=-sysv4
  1413. ;;
  1414. -svr3)
  1415. os=-sysv3
  1416. ;;
  1417. -sysvr4)
  1418. os=-sysv4
  1419. ;;
  1420. # This must come after -sysvr4.
  1421. -sysv*)
  1422. ;;
  1423. -ose*)
  1424. os=-ose
  1425. ;;
  1426. -es1800*)
  1427. os=-ose
  1428. ;;
  1429. -xenix)
  1430. os=-xenix
  1431. ;;
  1432. -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
  1433. os=-mint
  1434. ;;
  1435. -aros*)
  1436. os=-aros
  1437. ;;
  1438. -kaos*)
  1439. os=-kaos
  1440. ;;
  1441. -zvmoe)
  1442. os=-zvmoe
  1443. ;;
  1444. -dicos*)
  1445. os=-dicos
  1446. ;;
  1447. -nacl*)
  1448. ;;
  1449. -none)
  1450. ;;
  1451. *)
  1452. # Get rid of the `-' at the beginning of $os.
  1453. os=`echo $os | sed 's/[^-]*-//'`
  1454. echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
  1455. exit 1
  1456. ;;
  1457. esac
  1458. else
  1459. # Here we handle the default operating systems that come with various machines.
  1460. # The value should be what the vendor currently ships out the door with their
  1461. # machine or put another way, the most popular os provided with the machine.
  1462. # Note that if you're going to try to match "-MANUFACTURER" here (say,
  1463. # "-sun"), then you have to tell the case statement up towards the top
  1464. # that MANUFACTURER isn't an operating system. Otherwise, code above
  1465. # will signal an error saying that MANUFACTURER isn't an operating
  1466. # system, and we'll never get to this point.
  1467. case $basic_machine in
  1468. score-*)
  1469. os=-elf
  1470. ;;
  1471. spu-*)
  1472. os=-elf
  1473. ;;
  1474. *-acorn)
  1475. os=-riscix1.2
  1476. ;;
  1477. arm*-rebel)
  1478. os=-linux
  1479. ;;
  1480. arm*-semi)
  1481. os=-aout
  1482. ;;
  1483. c4x-* | tic4x-*)
  1484. os=-coff
  1485. ;;
  1486. tic54x-*)
  1487. os=-coff
  1488. ;;
  1489. tic55x-*)
  1490. os=-coff
  1491. ;;
  1492. tic6x-*)
  1493. os=-coff
  1494. ;;
  1495. # This must come before the *-dec entry.
  1496. pdp10-*)
  1497. os=-tops20
  1498. ;;
  1499. pdp11-*)
  1500. os=-none
  1501. ;;
  1502. *-dec | vax-*)
  1503. os=-ultrix4.2
  1504. ;;
  1505. m68*-apollo)
  1506. os=-domain
  1507. ;;
  1508. i386-sun)
  1509. os=-sunos4.0.2
  1510. ;;
  1511. m68000-sun)
  1512. os=-sunos3
  1513. # This also exists in the configure program, but was not the
  1514. # default.
  1515. # os=-sunos4
  1516. ;;
  1517. m68*-cisco)
  1518. os=-aout
  1519. ;;
  1520. mep-*)
  1521. os=-elf
  1522. ;;
  1523. mips*-cisco)
  1524. os=-elf
  1525. ;;
  1526. mips*-*)
  1527. os=-elf
  1528. ;;
  1529. or32-*)
  1530. os=-coff
  1531. ;;
  1532. *-tti) # must be before sparc entry or we get the wrong os.
  1533. os=-sysv3
  1534. ;;
  1535. sparc-* | *-sun)
  1536. os=-sunos4.1.1
  1537. ;;
  1538. *-be)
  1539. os=-beos
  1540. ;;
  1541. *-haiku)
  1542. os=-haiku
  1543. ;;
  1544. *-ibm)
  1545. os=-aix
  1546. ;;
  1547. *-knuth)
  1548. os=-mmixware
  1549. ;;
  1550. *-wec)
  1551. os=-proelf
  1552. ;;
  1553. *-winbond)
  1554. os=-proelf
  1555. ;;
  1556. *-oki)
  1557. os=-proelf
  1558. ;;
  1559. *-hp)
  1560. os=-hpux
  1561. ;;
  1562. *-hitachi)
  1563. os=-hiux
  1564. ;;
  1565. i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
  1566. os=-sysv
  1567. ;;
  1568. *-cbm)
  1569. os=-amigaos
  1570. ;;
  1571. *-dg)
  1572. os=-dgux
  1573. ;;
  1574. *-dolphin)
  1575. os=-sysv3
  1576. ;;
  1577. m68k-ccur)
  1578. os=-rtu
  1579. ;;
  1580. m88k-omron*)
  1581. os=-luna
  1582. ;;
  1583. *-next )
  1584. os=-nextstep
  1585. ;;
  1586. *-sequent)
  1587. os=-ptx
  1588. ;;
  1589. *-crds)
  1590. os=-unos
  1591. ;;
  1592. *-ns)
  1593. os=-genix
  1594. ;;
  1595. i370-*)
  1596. os=-mvs
  1597. ;;
  1598. *-next)
  1599. os=-nextstep3
  1600. ;;
  1601. *-gould)
  1602. os=-sysv
  1603. ;;
  1604. *-highlevel)
  1605. os=-bsd
  1606. ;;
  1607. *-encore)
  1608. os=-bsd
  1609. ;;
  1610. *-sgi)
  1611. os=-irix
  1612. ;;
  1613. *-siemens)
  1614. os=-sysv4
  1615. ;;
  1616. *-masscomp)
  1617. os=-rtu
  1618. ;;
  1619. f30[01]-fujitsu | f700-fujitsu)
  1620. os=-uxpv
  1621. ;;
  1622. *-rom68k)
  1623. os=-coff
  1624. ;;
  1625. *-*bug)
  1626. os=-coff
  1627. ;;
  1628. *-apple)
  1629. os=-macos
  1630. ;;
  1631. *-atari*)
  1632. os=-mint
  1633. ;;
  1634. *)
  1635. os=-none
  1636. ;;
  1637. esac
  1638. fi
  1639. # Here we handle the case where we know the os, and the CPU type, but not the
  1640. # manufacturer. We pick the logical manufacturer.
  1641. vendor=unknown
  1642. case $basic_machine in
  1643. *-unknown)
  1644. case $os in
  1645. -riscix*)
  1646. vendor=acorn
  1647. ;;
  1648. -sunos*)
  1649. vendor=sun
  1650. ;;
  1651. -cnk*|-aix*)
  1652. vendor=ibm
  1653. ;;
  1654. -beos*)
  1655. vendor=be
  1656. ;;
  1657. -hpux*)
  1658. vendor=hp
  1659. ;;
  1660. -mpeix*)
  1661. vendor=hp
  1662. ;;
  1663. -hiux*)
  1664. vendor=hitachi
  1665. ;;
  1666. -unos*)
  1667. vendor=crds
  1668. ;;
  1669. -dgux*)
  1670. vendor=dg
  1671. ;;
  1672. -luna*)
  1673. vendor=omron
  1674. ;;
  1675. -genix*)
  1676. vendor=ns
  1677. ;;
  1678. -mvs* | -opened*)
  1679. vendor=ibm
  1680. ;;
  1681. -os400*)
  1682. vendor=ibm
  1683. ;;
  1684. -ptx*)
  1685. vendor=sequent
  1686. ;;
  1687. -tpf*)
  1688. vendor=ibm
  1689. ;;
  1690. -vxsim* | -vxworks* | -windiss*)
  1691. vendor=wrs
  1692. ;;
  1693. -aux*)
  1694. vendor=apple
  1695. ;;
  1696. -hms*)
  1697. vendor=hitachi
  1698. ;;
  1699. -mpw* | -macos*)
  1700. vendor=apple
  1701. ;;
  1702. -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
  1703. vendor=atari
  1704. ;;
  1705. -vos*)
  1706. vendor=stratus
  1707. ;;
  1708. esac
  1709. basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
  1710. ;;
  1711. esac
  1712. echo $basic_machine$os
  1713. exit
  1714. # Local variables:
  1715. # eval: (add-hook 'write-file-hooks 'time-stamp)
  1716. # time-stamp-start: "timestamp='"
  1717. # time-stamp-format: "%:y-%02m-%02d"
  1718. # time-stamp-end: "'"
  1719. # End:
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...