1 |
#! /bin/sh |
#! /bin/sh |
2 |
# Configuration validation subroutine script. |
# Configuration validation subroutine script. |
3 |
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 |
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, |
4 |
# Free Software Foundation, Inc. |
# 2000, 2001, 2002 Free Software Foundation, Inc. |
5 |
|
|
6 |
timestamp='2001-08-23' |
timestamp='2002-03-07' |
7 |
|
|
8 |
# This file is (in principle) common to ALL GNU software. |
# This file is (in principle) common to ALL GNU software. |
9 |
# The presence of a machine in this file suggests that SOME GNU software |
# The presence of a machine in this file suggests that SOME GNU software |
29 |
# configuration script generated by Autoconf, you may include it under |
# configuration script generated by Autoconf, you may include it under |
30 |
# the same distribution terms that you use for the rest of that program. |
# the same distribution terms that you use for the rest of that program. |
31 |
|
|
32 |
# Please send patches to <config-patches@gnu.org>. |
# Please send patches to <config-patches@gnu.org>. Submit a context |
33 |
|
# diff and a properly formatted ChangeLog entry. |
34 |
# |
# |
35 |
# Configuration subroutine to validate and canonicalize a configuration type. |
# Configuration subroutine to validate and canonicalize a configuration type. |
36 |
# Supply the specified configuration type as an argument. |
# Supply the specified configuration type as an argument. |
118 |
# Here we must recognize all the valid KERNEL-OS combinations. |
# Here we must recognize all the valid KERNEL-OS combinations. |
119 |
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` |
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` |
120 |
case $maybe_os in |
case $maybe_os in |
121 |
nto-qnx* | linux-gnu* | storm-chaos* | os2-emx* | windows32-*) |
nto-qnx* | linux-gnu* | storm-chaos* | os2-emx* | windows32-* | rtmk-nova*) |
122 |
os=-$maybe_os |
os=-$maybe_os |
123 |
basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` |
basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` |
124 |
;; |
;; |
227 |
1750a | 580 \ |
1750a | 580 \ |
228 |
| a29k \ |
| a29k \ |
229 |
| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ |
| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ |
230 |
|
| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ |
231 |
| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ |
| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ |
232 |
| c4x | clipper \ |
| c4x | clipper \ |
233 |
| d10v | d30v | dsp16xx \ |
| d10v | d30v | dsp16xx \ |
235 |
| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ |
| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ |
236 |
| i370 | i860 | i960 | ia64 \ |
| i370 | i860 | i960 | ia64 \ |
237 |
| m32r | m68000 | m68k | m88k | mcore \ |
| m32r | m68000 | m68k | m88k | mcore \ |
238 |
| mips16 | mips64 | mips64el | mips64orion | mips64orionel \ |
| mips | mips16 | mips64 | mips64el | mips64orion | mips64orionel \ |
239 |
| mips64vr4100 | mips64vr4100el | mips64vr4300 \ |
| mips64vr4100 | mips64vr4100el | mips64vr4300 \ |
240 |
| mips64vr4300el | mips64vr5000 | mips64vr5000el \ |
| mips64vr4300el | mips64vr5000 | mips64vr5000el \ |
241 |
| mipsbe | mipsel | mipsle | mipstx39 | mipstx39el \ |
| mipsbe | mipseb | mipsel | mipsle | mipstx39 | mipstx39el \ |
242 |
|
| mipsisa32 | mipsisa64 \ |
243 |
| mn10200 | mn10300 \ |
| mn10200 | mn10300 \ |
244 |
| ns16k | ns32k \ |
| ns16k | ns32k \ |
245 |
| openrisc \ |
| openrisc | or32 \ |
246 |
| pdp10 | pdp11 | pj | pjl \ |
| pdp10 | pdp11 | pj | pjl \ |
247 |
| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ |
| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ |
248 |
| pyramid \ |
| pyramid \ |
249 |
| s390 | s390x \ |
| sh | sh[34] | sh[34]eb | shbe | shle | sh64 \ |
250 |
| sh | sh[34] | sh[34]eb | shbe | shle \ |
| sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \ |
251 |
| sparc | sparc64 | sparclet | sparclite | sparcv9 | sparcv9b \ |
| strongarm \ |
|
| stormy16 | strongarm \ |
|
252 |
| tahoe | thumb | tic80 | tron \ |
| tahoe | thumb | tic80 | tron \ |
253 |
| v850 \ |
| v850 | v850e \ |
254 |
| we32k \ |
| we32k \ |
255 |
| x86 | xscale \ |
| x86 | xscale | xstormy16 | xtensa \ |
256 |
| z8k) |
| z8k) |
257 |
basic_machine=$basic_machine-unknown |
basic_machine=$basic_machine-unknown |
258 |
;; |
;; |
279 |
580-* \ |
580-* \ |
280 |
| a29k-* \ |
| a29k-* \ |
281 |
| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ |
| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ |
282 |
| alphapca5[67]-* | arc-* \ |
| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ |
283 |
|
| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ |
284 |
| arm-* | armbe-* | armle-* | armv*-* \ |
| arm-* | armbe-* | armle-* | armv*-* \ |
285 |
|
| avr-* \ |
286 |
| bs2000-* \ |
| bs2000-* \ |
287 |
| c[123]* | c30-* | [cjt]90-* | c54x-* \ |
| c[123]* | c30-* | [cjt]90-* | c54x-* \ |
288 |
| clipper-* | cray2-* | cydra-* \ |
| clipper-* | cydra-* \ |
289 |
| d10v-* | d30v-* \ |
| d10v-* | d30v-* \ |
290 |
| elxsi-* \ |
| elxsi-* \ |
291 |
| f30[01]-* | f700-* | fr30-* | fx80-* \ |
| f30[01]-* | f700-* | fr30-* | fx80-* \ |
293 |
| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ |
| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ |
294 |
| i*86-* | i860-* | i960-* | ia64-* \ |
| i*86-* | i860-* | i960-* | ia64-* \ |
295 |
| m32r-* \ |
| m32r-* \ |
296 |
| m68000-* | m680[01234]0-* | m68360-* | m683?2-* | m68k-* \ |
| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ |
297 |
| m88110-* | m88k-* | mcore-* \ |
| m88110-* | m88k-* | mcore-* \ |
298 |
| mips-* | mips16-* | mips64-* | mips64el-* | mips64orion-* \ |
| mips-* | mips16-* | mips64-* | mips64el-* | mips64orion-* \ |
299 |
| mips64orionel-* | mips64vr4100-* | mips64vr4100el-* \ |
| mips64orionel-* | mips64vr4100-* | mips64vr4100el-* \ |
300 |
| mips64vr4300-* | mips64vr4300el-* | mipsbe-* | mipsel-* \ |
| mips64vr4300-* | mips64vr4300el-* | mipsbe-* | mipseb-* \ |
301 |
| mipsle-* | mipstx39-* | mipstx39el-* \ |
| mipsle-* | mipsel-* | mipstx39-* | mipstx39el-* \ |
302 |
| none-* | np1-* | ns16k-* | ns32k-* \ |
| none-* | np1-* | ns16k-* | ns32k-* \ |
303 |
| orion-* \ |
| orion-* \ |
304 |
| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ |
| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ |
305 |
| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ |
| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ |
306 |
| pyramid-* \ |
| pyramid-* \ |
307 |
| romp-* | rs6000-* \ |
| romp-* | rs6000-* \ |
308 |
| s390-* | s390x-* \ |
| sh-* | sh[34]-* | sh[34]eb-* | shbe-* | shle-* | sh64-* \ |
309 |
| sh-* | sh[34]-* | sh[34]eb-* | shbe-* | shle-* \ |
| sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \ |
310 |
| sparc-* | sparc64-* | sparc86x-* | sparclite-* \ |
| sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ |
311 |
| sparcv9-* | sparcv9b-* | stormy16-* | strongarm-* | sv1-* \ |
| tahoe-* | thumb-* | tic30-* | tic54x-* | tic80-* | tron-* \ |
312 |
| t3e-* | tahoe-* | thumb-* | tic30-* | tic54x-* | tic80-* | tron-* \ |
| v850-* | v850e-* | vax-* \ |
|
| v850-* | vax-* \ |
|
313 |
| we32k-* \ |
| we32k-* \ |
314 |
| x86-* | x86_64-* | xmp-* | xps100-* | xscale-* \ |
| x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \ |
315 |
|
| xtensa-* \ |
316 |
| ymp-* \ |
| ymp-* \ |
317 |
| z8k-*) |
| z8k-*) |
318 |
;; |
;; |
377 |
basic_machine=ns32k-sequent |
basic_machine=ns32k-sequent |
378 |
os=-dynix |
os=-dynix |
379 |
;; |
;; |
380 |
|
c90) |
381 |
|
basic_machine=c90-cray |
382 |
|
os=-unicos |
383 |
|
;; |
384 |
convex-c1) |
convex-c1) |
385 |
basic_machine=c1-convex |
basic_machine=c1-convex |
386 |
os=-bsd |
os=-bsd |
401 |
basic_machine=c38-convex |
basic_machine=c38-convex |
402 |
os=-bsd |
os=-bsd |
403 |
;; |
;; |
404 |
cray | ymp) |
cray | j90) |
405 |
basic_machine=ymp-cray |
basic_machine=j90-cray |
|
os=-unicos |
|
|
;; |
|
|
cray2) |
|
|
basic_machine=cray2-cray |
|
|
os=-unicos |
|
|
;; |
|
|
[cjt]90) |
|
|
basic_machine=${basic_machine}-cray |
|
406 |
os=-unicos |
os=-unicos |
407 |
;; |
;; |
408 |
crds | unos) |
crds | unos) |
417 |
decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) |
decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) |
418 |
basic_machine=mips-dec |
basic_machine=mips-dec |
419 |
;; |
;; |
420 |
|
decsystem10* | dec10*) |
421 |
|
basic_machine=pdp10-dec |
422 |
|
os=-tops10 |
423 |
|
;; |
424 |
|
decsystem20* | dec20*) |
425 |
|
basic_machine=pdp10-dec |
426 |
|
os=-tops20 |
427 |
|
;; |
428 |
delta | 3300 | motorola-3300 | motorola-delta \ |
delta | 3300 | motorola-3300 | motorola-delta \ |
429 |
| 3300-motorola | delta-motorola) |
| 3300-motorola | delta-motorola) |
430 |
basic_machine=m68k-motorola |
basic_machine=m68k-motorola |
605 |
basic_machine=m68k-atari |
basic_machine=m68k-atari |
606 |
os=-mint |
os=-mint |
607 |
;; |
;; |
|
mipsel*-linux*) |
|
|
basic_machine=mipsel-unknown |
|
|
os=-linux-gnu |
|
|
;; |
|
|
mips*-linux*) |
|
|
basic_machine=mips-unknown |
|
|
os=-linux-gnu |
|
|
;; |
|
608 |
mips3*-*) |
mips3*-*) |
609 |
basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` |
basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` |
610 |
;; |
;; |
619 |
basic_machine=m68k-rom68k |
basic_machine=m68k-rom68k |
620 |
os=-coff |
os=-coff |
621 |
;; |
;; |
622 |
|
morphos) |
623 |
|
basic_machine=powerpc-unknown |
624 |
|
os=-morphos |
625 |
|
;; |
626 |
msdos) |
msdos) |
627 |
basic_machine=i386-pc |
basic_machine=i386-pc |
628 |
os=-msdos |
os=-msdos |
702 |
basic_machine=hppa1.1-oki |
basic_machine=hppa1.1-oki |
703 |
os=-proelf |
os=-proelf |
704 |
;; |
;; |
705 |
|
or32 | or32-*) |
706 |
|
basic_machine=or32-unknown |
707 |
|
os=-coff |
708 |
|
;; |
709 |
OSE68000 | ose68000) |
OSE68000 | ose68000) |
710 |
basic_machine=m68000-ericsson |
basic_machine=m68000-ericsson |
711 |
os=-ose |
os=-ose |
731 |
pc532 | pc532-*) |
pc532 | pc532-*) |
732 |
basic_machine=ns32k-pc532 |
basic_machine=ns32k-pc532 |
733 |
;; |
;; |
734 |
pentium | p5 | k5 | k6 | nexgen) |
pentium | p5 | k5 | k6 | nexgen | viac3) |
735 |
basic_machine=i586-pc |
basic_machine=i586-pc |
736 |
;; |
;; |
737 |
pentiumpro | p6 | 6x86 | athlon) |
pentiumpro | p6 | 6x86 | athlon) |
740 |
pentiumii | pentium2) |
pentiumii | pentium2) |
741 |
basic_machine=i686-pc |
basic_machine=i686-pc |
742 |
;; |
;; |
743 |
pentium-* | p5-* | k5-* | k6-* | nexgen-*) |
pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) |
744 |
basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` |
basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` |
745 |
;; |
;; |
746 |
pentiumpro-* | p6-* | 6x86-* | athlon-*) |
pentiumpro-* | p6-* | 6x86-* | athlon-*) |
791 |
rtpc | rtpc-*) |
rtpc | rtpc-*) |
792 |
basic_machine=romp-ibm |
basic_machine=romp-ibm |
793 |
;; |
;; |
794 |
|
s390 | s390-*) |
795 |
|
basic_machine=s390-ibm |
796 |
|
;; |
797 |
|
s390x | s390x-*) |
798 |
|
basic_machine=s390x-ibm |
799 |
|
;; |
800 |
sa29200) |
sa29200) |
801 |
basic_machine=a29k-amd |
basic_machine=a29k-amd |
802 |
os=-udi |
os=-udi |
808 |
basic_machine=sh-hitachi |
basic_machine=sh-hitachi |
809 |
os=-hms |
os=-hms |
810 |
;; |
;; |
811 |
sparclite-wrs) |
sparclite-wrs | simso-wrs) |
812 |
basic_machine=sparclite-wrs |
basic_machine=sparclite-wrs |
813 |
os=-vxworks |
os=-vxworks |
814 |
;; |
;; |
866 |
sun386 | sun386i | roadrunner) |
sun386 | sun386i | roadrunner) |
867 |
basic_machine=i386-sun |
basic_machine=i386-sun |
868 |
;; |
;; |
869 |
sv1) |
sv1) |
870 |
basic_machine=sv1-cray |
basic_machine=sv1-cray |
871 |
os=-unicos |
os=-unicos |
872 |
;; |
;; |
874 |
basic_machine=i386-sequent |
basic_machine=i386-sequent |
875 |
os=-dynix |
os=-dynix |
876 |
;; |
;; |
877 |
|
t3d) |
878 |
|
basic_machine=alpha-cray |
879 |
|
os=-unicos |
880 |
|
;; |
881 |
t3e) |
t3e) |
882 |
basic_machine=t3e-cray |
basic_machine=alphaev5-cray |
883 |
|
os=-unicos |
884 |
|
;; |
885 |
|
t90) |
886 |
|
basic_machine=t90-cray |
887 |
os=-unicos |
os=-unicos |
888 |
;; |
;; |
889 |
tic54x | c54x*) |
tic54x | c54x*) |
896 |
tx39el) |
tx39el) |
897 |
basic_machine=mipstx39el-unknown |
basic_machine=mipstx39el-unknown |
898 |
;; |
;; |
899 |
|
toad1) |
900 |
|
basic_machine=pdp10-xkl |
901 |
|
os=-tops20 |
902 |
|
;; |
903 |
tower | tower-32) |
tower | tower-32) |
904 |
basic_machine=m68k-ncr |
basic_machine=m68k-ncr |
905 |
;; |
;; |
950 |
basic_machine=i386-pc |
basic_machine=i386-pc |
951 |
os=-windows32-msvcrt |
os=-windows32-msvcrt |
952 |
;; |
;; |
|
xmp) |
|
|
basic_machine=xmp-cray |
|
|
os=-unicos |
|
|
;; |
|
953 |
xps | xps100) |
xps | xps100) |
954 |
basic_machine=xps100-honeywell |
basic_machine=xps100-honeywell |
955 |
;; |
;; |
956 |
|
ymp) |
957 |
|
basic_machine=ymp-cray |
958 |
|
os=-unicos |
959 |
|
;; |
960 |
z8k-*-coff) |
z8k-*-coff) |
961 |
basic_machine=z8k-unknown |
basic_machine=z8k-unknown |
962 |
os=-sim |
os=-sim |
977 |
op60c) |
op60c) |
978 |
basic_machine=hppa1.1-oki |
basic_machine=hppa1.1-oki |
979 |
;; |
;; |
|
mips) |
|
|
if [ x$os = x-linux-gnu ]; then |
|
|
basic_machine=mips-unknown |
|
|
else |
|
|
basic_machine=mips-mips |
|
|
fi |
|
|
;; |
|
980 |
romp) |
romp) |
981 |
basic_machine=romp-ibm |
basic_machine=romp-ibm |
982 |
;; |
;; |
999 |
sh3 | sh4 | sh3eb | sh4eb) |
sh3 | sh4 | sh3eb | sh4eb) |
1000 |
basic_machine=sh-unknown |
basic_machine=sh-unknown |
1001 |
;; |
;; |
1002 |
|
sh64) |
1003 |
|
basic_machine=sh64-unknown |
1004 |
|
;; |
1005 |
sparc | sparcv9 | sparcv9b) |
sparc | sparcv9 | sparcv9b) |
1006 |
basic_machine=sparc-sun |
basic_machine=sparc-sun |
1007 |
;; |
;; |
1089 |
| -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \ |
| -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \ |
1090 |
| -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ |
| -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ |
1091 |
| -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ |
| -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ |
1092 |
| -os2* | -vos*) |
| -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ |
1093 |
|
| -morphos* | -superux* | -rtmk* | -rtmk-nova*) |
1094 |
# Remember, each alternative MUST END IN *, to match a version number. |
# Remember, each alternative MUST END IN *, to match a version number. |
1095 |
;; |
;; |
1096 |
-qnx*) |
-qnx*) |
1142 |
-acis*) |
-acis*) |
1143 |
os=-aos |
os=-aos |
1144 |
;; |
;; |
1145 |
|
-atheos*) |
1146 |
|
os=-atheos |
1147 |
|
;; |
1148 |
-386bsd) |
-386bsd) |
1149 |
os=-bsd |
os=-bsd |
1150 |
;; |
;; |
1151 |
-ctix* | -uts*) |
-ctix* | -uts*) |
1152 |
os=-sysv |
os=-sysv |
1153 |
;; |
;; |
1154 |
|
-nova*) |
1155 |
|
os=-rtmk-nova |
1156 |
|
;; |
1157 |
-ns2 ) |
-ns2 ) |
1158 |
os=-nextstep2 |
os=-nextstep2 |
1159 |
;; |
;; |
1228 |
arm*-semi) |
arm*-semi) |
1229 |
os=-aout |
os=-aout |
1230 |
;; |
;; |
1231 |
|
# This must come before the *-dec entry. |
1232 |
pdp10-*) |
pdp10-*) |
1233 |
os=-tops20 |
os=-tops20 |
1234 |
;; |
;; |
1259 |
mips*-*) |
mips*-*) |
1260 |
os=-elf |
os=-elf |
1261 |
;; |
;; |
1262 |
|
or32-*) |
1263 |
|
os=-coff |
1264 |
|
;; |
1265 |
*-tti) # must be before sparc entry or we get the wrong os. |
*-tti) # must be before sparc entry or we get the wrong os. |
1266 |
os=-sysv3 |
os=-sysv3 |
1267 |
;; |
;; |