1 | #! /bin/sh |
1 | #! /bin/sh |
2 | # Configuration validation subroutine script. |
2 | # Configuration validation subroutine script. |
3 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, |
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 Free Software Foundation, |
|
|
5 | # Inc. |
5 | |
6 | |
6 | timestamp='2006-02-23' |
7 | timestamp='2006-07-02' |
7 | |
8 | |
8 | # This file is (in principle) common to ALL GNU software. |
9 | # This file is (in principle) common to ALL GNU software. |
9 | # The presence of a machine in this file suggests that SOME GNU software |
10 | # The presence of a machine in this file suggests that SOME GNU software |
10 | # can handle that machine. It does not imply ALL GNU software can. |
11 | # can handle that machine. It does not imply ALL GNU software can. |
11 | # |
12 | # |
… | |
… | |
238 | 1750a | 580 \ |
239 | 1750a | 580 \ |
239 | | a29k \ |
240 | | a29k \ |
240 | | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ |
241 | | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ |
241 | | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ |
242 | | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ |
242 | | am33_2.0 \ |
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 | | bfin \ |
245 | | bfin \ |
245 | | c4x | clipper \ |
246 | | c4x | clipper \ |
246 | | d10v | d30v | dlx | dsp16xx \ |
247 | | d10v | d30v | dlx | dsp16xx \ |
247 | | fr30 | frv \ |
248 | | fr30 | frv \ |
248 | | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ |
249 | | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ |
249 | | i370 | i860 | i960 | ia64 \ |
250 | | i370 | i860 | i960 | ia64 \ |
250 | | ip2k | iq2000 \ |
251 | | ip2k | iq2000 \ |
251 | | m32r | m32rle | m68000 | m68k | m88k | maxq | mb | microblaze | mcore \ |
252 | | m32c | m32r | m32rle | m68000 | m68k | m88k \ |
|
|
253 | | maxq | mb | microblaze | mcore \ |
252 | | mips | mipsbe | mipseb | mipsel | mipsle \ |
254 | | mips | mipsbe | mipseb | mipsel | mipsle \ |
253 | | mips16 \ |
255 | | mips16 \ |
254 | | mips64 | mips64el \ |
256 | | mips64 | mips64el \ |
255 | | mips64vr | mips64vrel \ |
257 | | mips64vr | mips64vrel \ |
256 | | mips64orion | mips64orionel \ |
258 | | mips64orion | mips64orionel \ |
… | |
… | |
272 | | ns16k | ns32k \ |
274 | | ns16k | ns32k \ |
273 | | or32 \ |
275 | | or32 \ |
274 | | pdp10 | pdp11 | pj | pjl \ |
276 | | pdp10 | pdp11 | pj | pjl \ |
275 | | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ |
277 | | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ |
276 | | pyramid \ |
278 | | pyramid \ |
277 | | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ |
279 | | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ |
278 | | sh64 | sh64le \ |
280 | | sh64 | sh64le \ |
279 | | sparc | sparc64 | sparc64b | sparc86x | sparclet | sparclite \ |
281 | | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ |
280 | | sparcv8 | sparcv9 | sparcv9b \ |
282 | | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ |
281 | | strongarm \ |
283 | | spu | strongarm \ |
282 | | tahoe | thumb | tic4x | tic80 | tron \ |
284 | | tahoe | thumb | tic4x | tic80 | tron \ |
283 | | v850 | v850e \ |
285 | | v850 | v850e \ |
284 | | we32k \ |
286 | | we32k \ |
285 | | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \ |
287 | | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \ |
286 | | z8k) |
288 | | z8k) |
287 | basic_machine=$basic_machine-unknown |
|
|
288 | ;; |
|
|
289 | m32c) |
|
|
290 | basic_machine=$basic_machine-unknown |
289 | basic_machine=$basic_machine-unknown |
291 | ;; |
290 | ;; |
292 | m6811 | m68hc11 | m6812 | m68hc12) |
291 | m6811 | m68hc11 | m6812 | m68hc12) |
293 | # Motorola 68HC11/12. |
292 | # Motorola 68HC11/12. |
294 | basic_machine=$basic_machine-unknown |
293 | basic_machine=$basic_machine-unknown |
… | |
… | |
316 | | a29k-* \ |
315 | | a29k-* \ |
317 | | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ |
316 | | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ |
318 | | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ |
317 | | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ |
319 | | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ |
318 | | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ |
320 | | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ |
319 | | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ |
321 | | avr-* \ |
320 | | avr-* | avr32-* \ |
322 | | bfin-* | bs2000-* \ |
321 | | bfin-* | bs2000-* \ |
323 | | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ |
322 | | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ |
324 | | clipper-* | craynv-* | cydra-* \ |
323 | | clipper-* | craynv-* | cydra-* \ |
325 | | d10v-* | d30v-* | dlx-* \ |
324 | | d10v-* | d30v-* | dlx-* \ |
326 | | elxsi-* \ |
325 | | elxsi-* \ |
327 | | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \ |
326 | | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \ |
328 | | h8300-* | h8500-* \ |
327 | | h8300-* | h8500-* \ |
329 | | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ |
328 | | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ |
330 | | i*86-* | i860-* | i960-* | ia64-* \ |
329 | | i*86-* | i860-* | i960-* | ia64-* \ |
331 | | ip2k-* | iq2000-* \ |
330 | | ip2k-* | iq2000-* \ |
332 | | m32r-* | m32rle-* \ |
331 | | m32c-* | m32r-* | m32rle-* \ |
333 | | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ |
332 | | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ |
334 | | m88110-* | m88k-* | maxq-* | mcore-* \ |
333 | | m88110-* | m88k-* | maxq-* | mcore-* \ |
335 | | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ |
334 | | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ |
336 | | mips16-* \ |
335 | | mips16-* \ |
337 | | mips64-* | mips64el-* \ |
336 | | mips64-* | mips64el-* \ |
… | |
… | |
356 | | orion-* \ |
355 | | orion-* \ |
357 | | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ |
356 | | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ |
358 | | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ |
357 | | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ |
359 | | pyramid-* \ |
358 | | pyramid-* \ |
360 | | romp-* | rs6000-* \ |
359 | | romp-* | rs6000-* \ |
361 | | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | shbe-* \ |
360 | | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ |
362 | | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ |
361 | | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ |
363 | | sparc-* | sparc64-* | sparc64b-* | sparc86x-* | sparclet-* \ |
362 | | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ |
364 | | sparclite-* \ |
363 | | sparclite-* \ |
365 | | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ |
364 | | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \ |
366 | | tahoe-* | thumb-* \ |
365 | | tahoe-* | thumb-* \ |
367 | | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ |
366 | | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ |
368 | | tron-* \ |
367 | | tron-* \ |
369 | | v850-* | v850e-* | vax-* \ |
368 | | v850-* | v850e-* | vax-* \ |
370 | | we32k-* \ |
369 | | we32k-* \ |
371 | | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \ |
370 | | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \ |
372 | | xstormy16-* | xtensa-* \ |
371 | | xstormy16-* | xtensa-* \ |
373 | | ymp-* \ |
372 | | ymp-* \ |
374 | | z8k-*) |
373 | | z8k-*) |
375 | ;; |
|
|
376 | m32c-*) |
|
|
377 | ;; |
374 | ;; |
378 | # Recognize the various machine names and aliases which stand |
375 | # Recognize the various machine names and aliases which stand |
379 | # for a CPU type and a company and sometimes even an OS. |
376 | # for a CPU type and a company and sometimes even an OS. |
380 | 386bsd) |
377 | 386bsd) |
381 | basic_machine=i386-unknown |
378 | basic_machine=i386-unknown |
… | |
… | |
1126 | basic_machine=we32k-att |
1123 | basic_machine=we32k-att |
1127 | ;; |
1124 | ;; |
1128 | sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele) |
1125 | sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele) |
1129 | basic_machine=sh-unknown |
1126 | basic_machine=sh-unknown |
1130 | ;; |
1127 | ;; |
1131 | sparc | sparcv8 | sparcv9 | sparcv9b) |
1128 | sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) |
1132 | basic_machine=sparc-sun |
1129 | basic_machine=sparc-sun |
1133 | ;; |
1130 | ;; |
1134 | cydra) |
1131 | cydra) |
1135 | basic_machine=cydra-cydrome |
1132 | basic_machine=cydra-cydrome |
1136 | ;; |
1133 | ;; |
… | |
… | |
1215 | | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ |
1212 | | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ |
1216 | | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ |
1213 | | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ |
1217 | | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ |
1214 | | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ |
1218 | | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ |
1215 | | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ |
1219 | | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ |
1216 | | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ |
1220 | | -skyos* | -haiku* | -rdos*) |
1217 | | -skyos* | -haiku* | -rdos* | -toppers*) |
1221 | # Remember, each alternative MUST END IN *, to match a version number. |
1218 | # Remember, each alternative MUST END IN *, to match a version number. |
1222 | ;; |
1219 | ;; |
1223 | -qnx*) |
1220 | -qnx*) |
1224 | case $basic_machine in |
1221 | case $basic_machine in |
1225 | x86-* | i*86-*) |
1222 | x86-* | i*86-*) |
… | |
… | |
1367 | # that MANUFACTURER isn't an operating system. Otherwise, code above |
1364 | # that MANUFACTURER isn't an operating system. Otherwise, code above |
1368 | # will signal an error saying that MANUFACTURER isn't an operating |
1365 | # will signal an error saying that MANUFACTURER isn't an operating |
1369 | # system, and we'll never get to this point. |
1366 | # system, and we'll never get to this point. |
1370 | |
1367 | |
1371 | case $basic_machine in |
1368 | case $basic_machine in |
|
|
1369 | spu-*) |
|
|
1370 | os=-elf |
|
|
1371 | ;; |
1372 | *-acorn) |
1372 | *-acorn) |
1373 | os=-riscix1.2 |
1373 | os=-riscix1.2 |
1374 | ;; |
1374 | ;; |
1375 | arm*-rebel) |
1375 | arm*-rebel) |
1376 | os=-linux |
1376 | os=-linux |
1377 | ;; |
1377 | ;; |
1378 | arm*-semi) |
1378 | arm*-semi) |
1379 | os=-aout |
1379 | os=-aout |
1380 | ;; |
1380 | ;; |
1381 | c4x-* | tic4x-*) |
1381 | c4x-* | tic4x-*) |
1382 | os=-coff |
1382 | os=-coff |
1383 | ;; |
1383 | ;; |
1384 | # This must come before the *-dec entry. |
1384 | # This must come before the *-dec entry. |
1385 | pdp10-*) |
1385 | pdp10-*) |
1386 | os=-tops20 |
1386 | os=-tops20 |
1387 | ;; |
1387 | ;; |
1388 | pdp11-*) |
1388 | pdp11-*) |