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 Free Software Foundation, Inc. |
5 | |
5 | |
6 | timestamp='2005-07-08' |
6 | timestamp='2006-02-23' |
7 | |
7 | |
8 | # This file is (in principle) common to ALL GNU software. |
8 | # This file is (in principle) common to ALL GNU software. |
9 | # The presence of a machine in this file suggests that SOME GNU software |
9 | # 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. |
10 | # can handle that machine. It does not imply ALL GNU software can. |
11 | # |
11 | # |
… | |
… | |
117 | |
117 | |
118 | # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). |
118 | # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). |
119 | # Here we must recognize all the valid KERNEL-OS combinations. |
119 | # Here we must recognize all the valid KERNEL-OS combinations. |
120 | maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` |
120 | maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` |
121 | case $maybe_os in |
121 | case $maybe_os in |
122 | nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \ |
122 | nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \ |
123 | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*) |
123 | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \ |
|
|
124 | storm-chaos* | os2-emx* | rtmk-nova*) |
124 | os=-$maybe_os |
125 | os=-$maybe_os |
125 | basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` |
126 | basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` |
126 | ;; |
127 | ;; |
127 | *) |
128 | *) |
128 | basic_machine=`echo $1 | sed 's/-[^-]*$//'` |
129 | basic_machine=`echo $1 | sed 's/-[^-]*$//'` |
… | |
… | |
169 | basic_machine=$1 |
170 | basic_machine=$1 |
170 | ;; |
171 | ;; |
171 | -hiux*) |
172 | -hiux*) |
172 | os=-hiuxwe2 |
173 | os=-hiuxwe2 |
173 | ;; |
174 | ;; |
|
|
175 | -sco6) |
|
|
176 | os=-sco5v6 |
|
|
177 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
|
|
178 | ;; |
174 | -sco5) |
179 | -sco5) |
175 | os=-sco3.2v5 |
180 | os=-sco3.2v5 |
176 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
181 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
177 | ;; |
182 | ;; |
178 | -sco4) |
183 | -sco4) |
… | |
… | |
182 | -sco3.2.[4-9]*) |
187 | -sco3.2.[4-9]*) |
183 | os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` |
188 | os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` |
184 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
189 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
185 | ;; |
190 | ;; |
186 | -sco3.2v[4-9]*) |
191 | -sco3.2v[4-9]*) |
|
|
192 | # Don't forget version if it is 3.2v4 or newer. |
|
|
193 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
|
|
194 | ;; |
|
|
195 | -sco5v6*) |
187 | # Don't forget version if it is 3.2v4 or newer. |
196 | # Don't forget version if it is 3.2v4 or newer. |
188 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
197 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
189 | ;; |
198 | ;; |
190 | -sco*) |
199 | -sco*) |
191 | os=-sco3.2v2 |
200 | os=-sco3.2v2 |
… | |
… | |
237 | | d10v | d30v | dlx | dsp16xx \ |
246 | | d10v | d30v | dlx | dsp16xx \ |
238 | | fr30 | frv \ |
247 | | fr30 | frv \ |
239 | | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ |
248 | | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ |
240 | | i370 | i860 | i960 | ia64 \ |
249 | | i370 | i860 | i960 | ia64 \ |
241 | | ip2k | iq2000 \ |
250 | | ip2k | iq2000 \ |
242 | | m32r | m32rle | m68000 | m68k | m88k | maxq | mcore \ |
251 | | m32r | m32rle | m68000 | m68k | m88k | maxq | mb | microblaze | mcore \ |
243 | | mips | mipsbe | mipseb | mipsel | mipsle \ |
252 | | mips | mipsbe | mipseb | mipsel | mipsle \ |
244 | | mips16 \ |
253 | | mips16 \ |
245 | | mips64 | mips64el \ |
254 | | mips64 | mips64el \ |
246 | | mips64vr | mips64vrel \ |
255 | | mips64vr | mips64vrel \ |
247 | | mips64orion | mips64orionel \ |
256 | | mips64orion | mips64orionel \ |
… | |
… | |
255 | | mipsisa64r2 | mipsisa64r2el \ |
264 | | mipsisa64r2 | mipsisa64r2el \ |
256 | | mipsisa64sb1 | mipsisa64sb1el \ |
265 | | mipsisa64sb1 | mipsisa64sb1el \ |
257 | | mipsisa64sr71k | mipsisa64sr71kel \ |
266 | | mipsisa64sr71k | mipsisa64sr71kel \ |
258 | | mipstx39 | mipstx39el \ |
267 | | mipstx39 | mipstx39el \ |
259 | | mn10200 | mn10300 \ |
268 | | mn10200 | mn10300 \ |
260 | | ms1 \ |
269 | | mt \ |
261 | | msp430 \ |
270 | | msp430 \ |
|
|
271 | | nios | nios2 \ |
262 | | ns16k | ns32k \ |
272 | | ns16k | ns32k \ |
263 | | or32 \ |
273 | | or32 \ |
264 | | pdp10 | pdp11 | pj | pjl \ |
274 | | pdp10 | pdp11 | pj | pjl \ |
265 | | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ |
275 | | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ |
266 | | pyramid \ |
276 | | pyramid \ |
… | |
… | |
283 | # Motorola 68HC11/12. |
293 | # Motorola 68HC11/12. |
284 | basic_machine=$basic_machine-unknown |
294 | basic_machine=$basic_machine-unknown |
285 | os=-none |
295 | os=-none |
286 | ;; |
296 | ;; |
287 | m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) |
297 | m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) |
|
|
298 | ;; |
|
|
299 | ms1) |
|
|
300 | basic_machine=mt-unknown |
288 | ;; |
301 | ;; |
289 | |
302 | |
290 | # We use `pc' rather than `unknown' |
303 | # We use `pc' rather than `unknown' |
291 | # because (1) that's what they normally are, and |
304 | # because (1) that's what they normally are, and |
292 | # (2) the word "unknown" tends to confuse beginning users. |
305 | # (2) the word "unknown" tends to confuse beginning users. |
… | |
… | |
334 | | mipsisa64r2-* | mipsisa64r2el-* \ |
347 | | mipsisa64r2-* | mipsisa64r2el-* \ |
335 | | mipsisa64sb1-* | mipsisa64sb1el-* \ |
348 | | mipsisa64sb1-* | mipsisa64sb1el-* \ |
336 | | mipsisa64sr71k-* | mipsisa64sr71kel-* \ |
349 | | mipsisa64sr71k-* | mipsisa64sr71kel-* \ |
337 | | mipstx39-* | mipstx39el-* \ |
350 | | mipstx39-* | mipstx39el-* \ |
338 | | mmix-* \ |
351 | | mmix-* \ |
339 | | ms1-* \ |
352 | | mt-* \ |
340 | | msp430-* \ |
353 | | msp430-* \ |
|
|
354 | | nios-* | nios2-* \ |
341 | | none-* | np1-* | ns16k-* | ns32k-* \ |
355 | | none-* | np1-* | ns16k-* | ns32k-* \ |
342 | | orion-* \ |
356 | | orion-* \ |
343 | | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ |
357 | | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ |
344 | | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ |
358 | | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ |
345 | | pyramid-* \ |
359 | | pyramid-* \ |
… | |
… | |
694 | ;; |
708 | ;; |
695 | msdos) |
709 | msdos) |
696 | basic_machine=i386-pc |
710 | basic_machine=i386-pc |
697 | os=-msdos |
711 | os=-msdos |
698 | ;; |
712 | ;; |
|
|
713 | ms1-*) |
|
|
714 | basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` |
|
|
715 | ;; |
699 | mvs) |
716 | mvs) |
700 | basic_machine=i370-ibm |
717 | basic_machine=i370-ibm |
701 | os=-mvs |
718 | os=-mvs |
702 | ;; |
719 | ;; |
703 | ncr3000) |
720 | ncr3000) |
… | |
… | |
801 | basic_machine=m68k-tti |
818 | basic_machine=m68k-tti |
802 | ;; |
819 | ;; |
803 | pc532 | pc532-*) |
820 | pc532 | pc532-*) |
804 | basic_machine=ns32k-pc532 |
821 | basic_machine=ns32k-pc532 |
805 | ;; |
822 | ;; |
|
|
823 | pc98) |
|
|
824 | basic_machine=i386-pc |
|
|
825 | ;; |
|
|
826 | pc98-*) |
|
|
827 | basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` |
|
|
828 | ;; |
806 | pentium | p5 | k5 | k6 | nexgen | viac3) |
829 | pentium | p5 | k5 | k6 | nexgen | viac3) |
807 | basic_machine=i586-pc |
830 | basic_machine=i586-pc |
808 | ;; |
831 | ;; |
809 | pentiumpro | p6 | 6x86 | athlon | athlon_*) |
832 | pentiumpro | p6 | 6x86 | athlon | athlon_*) |
810 | basic_machine=i686-pc |
833 | basic_machine=i686-pc |
… | |
… | |
856 | basic_machine=i386-ibm |
879 | basic_machine=i386-ibm |
857 | ;; |
880 | ;; |
858 | pw32) |
881 | pw32) |
859 | basic_machine=i586-unknown |
882 | basic_machine=i586-unknown |
860 | os=-pw32 |
883 | os=-pw32 |
|
|
884 | ;; |
|
|
885 | rdos) |
|
|
886 | basic_machine=i386-pc |
|
|
887 | os=-rdos |
861 | ;; |
888 | ;; |
862 | rom68k) |
889 | rom68k) |
863 | basic_machine=m68k-rom68k |
890 | basic_machine=m68k-rom68k |
864 | os=-coff |
891 | os=-coff |
865 | ;; |
892 | ;; |
… | |
… | |
1172 | | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ |
1199 | | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ |
1173 | | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ |
1200 | | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ |
1174 | | -aos* \ |
1201 | | -aos* \ |
1175 | | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ |
1202 | | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ |
1176 | | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ |
1203 | | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ |
1177 | | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \ |
1204 | | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ |
|
|
1205 | | -openbsd* | -solidbsd* \ |
1178 | | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ |
1206 | | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ |
1179 | | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ |
1207 | | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ |
1180 | | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ |
1208 | | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ |
1181 | | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ |
1209 | | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ |
1182 | | -chorusos* | -chorusrdb* \ |
1210 | | -chorusos* | -chorusrdb* \ |
1183 | | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ |
1211 | | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ |
1184 | | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \ |
1212 | | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \ |
|
|
1213 | | -uxpv* | -beos* | -mpeix* | -udk* \ |
1185 | | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ |
1214 | | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ |
1186 | | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ |
1215 | | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ |
1187 | | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ |
1216 | | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ |
1188 | | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ |
1217 | | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ |
1189 | | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ |
1218 | | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ |
1190 | | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ |
1219 | | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ |
1191 | | -skyos* | -haiku*) |
1220 | | -skyos* | -haiku* | -rdos*) |
1192 | # Remember, each alternative MUST END IN *, to match a version number. |
1221 | # Remember, each alternative MUST END IN *, to match a version number. |
1193 | ;; |
1222 | ;; |
1194 | -qnx*) |
1223 | -qnx*) |
1195 | case $basic_machine in |
1224 | case $basic_machine in |
1196 | x86-* | i*86-*) |
1225 | x86-* | i*86-*) |