summaryrefslogtreecommitdiff
path: root/config.sub
diff options
context:
space:
mode:
Diffstat (limited to 'config.sub')
-rwxr-xr-xconfig.sub105
1 files changed, 69 insertions, 36 deletions
diff --git a/config.sub b/config.sub
index 463186dbf..519f2cd00 100755
--- a/config.sub
+++ b/config.sub
@@ -1,9 +1,9 @@
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 Free Software Foundation, Inc. 4# 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
5 5
6timestamp='2004-01-05' 6timestamp='2005-05-12'
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
@@ -21,14 +21,15 @@ timestamp='2004-01-05'
21# 21#
22# You should have received a copy of the GNU General Public License 22# You should have received a copy of the GNU General Public License
23# along with this program; if not, write to the Free Software 23# along with this program; if not, write to the Free Software
24# Foundation, Inc., 59 Temple Place - Suite 330, 24# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
25# Boston, MA 02111-1307, USA. 25# 02110-1301, USA.
26 26#
27# As a special exception to the GNU General Public License, if you 27# As a special exception to the GNU General Public License, if you
28# distribute this file as part of a program that contains a 28# distribute this file as part of a program that contains a
29# configuration script generated by Autoconf, you may include it under 29# configuration script generated by Autoconf, you may include it under
30# the same distribution terms that you use for the rest of that program. 30# the same distribution terms that you use for the rest of that program.
31 31
32
32# Please send patches to <config-patches@gnu.org>. Submit a context 33# Please send patches to <config-patches@gnu.org>. Submit a context
33# diff and a properly formatted ChangeLog entry. 34# diff and a properly formatted ChangeLog entry.
34# 35#
@@ -70,7 +71,7 @@ Report bugs and patches to <config-patches@gnu.org>."
70version="\ 71version="\
71GNU config.sub ($timestamp) 72GNU config.sub ($timestamp)
72 73
73Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 74Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
74Free Software Foundation, Inc. 75Free Software Foundation, Inc.
75 76
76This is free software; see the source for copying conditions. There is NO 77This is free software; see the source for copying conditions. There is NO
@@ -83,11 +84,11 @@ Try \`$me --help' for more information."
83while test $# -gt 0 ; do 84while test $# -gt 0 ; do
84 case $1 in 85 case $1 in
85 --time-stamp | --time* | -t ) 86 --time-stamp | --time* | -t )
86 echo "$timestamp" ; exit 0 ;; 87 echo "$timestamp" ; exit ;;
87 --version | -v ) 88 --version | -v )
88 echo "$version" ; exit 0 ;; 89 echo "$version" ; exit ;;
89 --help | --h* | -h ) 90 --help | --h* | -h )
90 echo "$usage"; exit 0 ;; 91 echo "$usage"; exit ;;
91 -- ) # Stop option processing 92 -- ) # Stop option processing
92 shift; break ;; 93 shift; break ;;
93 - ) # Use stdin as input. 94 - ) # Use stdin as input.
@@ -99,7 +100,7 @@ while test $# -gt 0 ; do
99 *local*) 100 *local*)
100 # First pass through any local machine types. 101 # First pass through any local machine types.
101 echo $1 102 echo $1
102 exit 0;; 103 exit ;;
103 104
104 * ) 105 * )
105 break ;; 106 break ;;
@@ -145,7 +146,7 @@ case $os in
145 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ 146 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
146 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ 147 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
147 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ 148 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
148 -apple | -axis) 149 -apple | -axis | -knuth | -cray)
149 os= 150 os=
150 basic_machine=$1 151 basic_machine=$1
151 ;; 152 ;;
@@ -231,13 +232,14 @@ case $basic_machine in
231 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ 232 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
232 | am33_2.0 \ 233 | am33_2.0 \
233 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ 234 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
235 | bfin \
234 | c4x | clipper \ 236 | c4x | clipper \
235 | d10v | d30v | dlx | dsp16xx \ 237 | d10v | d30v | dlx | dsp16xx \
236 | fr30 | frv \ 238 | fr30 | frv \
237 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ 239 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
238 | i370 | i860 | i960 | ia64 \ 240 | i370 | i860 | i960 | ia64 \
239 | ip2k | iq2000 \ 241 | ip2k | iq2000 \
240 | m32r | m68000 | m68k | m88k | mcore \ 242 | m32r | m32rle | m68000 | m68k | m88k | maxq | mcore \
241 | mips | mipsbe | mipseb | mipsel | mipsle \ 243 | mips | mipsbe | mipseb | mipsel | mipsle \
242 | mips16 \ 244 | mips16 \
243 | mips64 | mips64el \ 245 | mips64 | mips64el \
@@ -262,12 +264,13 @@ case $basic_machine in
262 | pyramid \ 264 | pyramid \
263 | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ 265 | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
264 | sh64 | sh64le \ 266 | sh64 | sh64le \
265 | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \ 267 | sparc | sparc64 | sparc64b | sparc86x | sparclet | sparclite \
268 | sparcv8 | sparcv9 | sparcv9b \
266 | strongarm \ 269 | strongarm \
267 | tahoe | thumb | tic4x | tic80 | tron \ 270 | tahoe | thumb | tic4x | tic80 | tron \
268 | v850 | v850e \ 271 | v850 | v850e \
269 | we32k \ 272 | we32k \
270 | x86 | xscale | xstormy16 | xtensa \ 273 | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \
271 | z8k) 274 | z8k)
272 basic_machine=$basic_machine-unknown 275 basic_machine=$basic_machine-unknown
273 ;; 276 ;;
@@ -298,9 +301,9 @@ case $basic_machine in
298 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ 301 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
299 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ 302 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
300 | avr-* \ 303 | avr-* \
301 | bs2000-* \ 304 | bfin-* | bs2000-* \
302 | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ 305 | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
303 | clipper-* | cydra-* \ 306 | clipper-* | craynv-* | cydra-* \
304 | d10v-* | d30v-* | dlx-* \ 307 | d10v-* | d30v-* | dlx-* \
305 | elxsi-* \ 308 | elxsi-* \
306 | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \ 309 | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
@@ -308,9 +311,9 @@ case $basic_machine in
308 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ 311 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
309 | i*86-* | i860-* | i960-* | ia64-* \ 312 | i*86-* | i860-* | i960-* | ia64-* \
310 | ip2k-* | iq2000-* \ 313 | ip2k-* | iq2000-* \
311 | m32r-* \ 314 | m32r-* | m32rle-* \
312 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ 315 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
313 | m88110-* | m88k-* | mcore-* \ 316 | m88110-* | m88k-* | maxq-* | mcore-* \
314 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ 317 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
315 | mips16-* \ 318 | mips16-* \
316 | mips64-* | mips64el-* \ 319 | mips64-* | mips64el-* \
@@ -326,8 +329,9 @@ case $basic_machine in
326 | mipsisa64sb1-* | mipsisa64sb1el-* \ 329 | mipsisa64sb1-* | mipsisa64sb1el-* \
327 | mipsisa64sr71k-* | mipsisa64sr71kel-* \ 330 | mipsisa64sr71k-* | mipsisa64sr71kel-* \
328 | mipstx39-* | mipstx39el-* \ 331 | mipstx39-* | mipstx39el-* \
332 | mmix-* \
329 | msp430-* \ 333 | msp430-* \
330 | none-* | np1-* | nv1-* | ns16k-* | ns32k-* \ 334 | none-* | np1-* | ns16k-* | ns32k-* \
331 | orion-* \ 335 | orion-* \
332 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ 336 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
333 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ 337 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
@@ -335,15 +339,16 @@ case $basic_machine in
335 | romp-* | rs6000-* \ 339 | romp-* | rs6000-* \
336 | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \ 340 | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
337 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ 341 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
338 | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \ 342 | sparc-* | sparc64-* | sparc64b-* | sparc86x-* | sparclet-* \
339 | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ 343 | sparclite-* \
344 | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
340 | tahoe-* | thumb-* \ 345 | tahoe-* | thumb-* \
341 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ 346 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
342 | tron-* \ 347 | tron-* \
343 | v850-* | v850e-* | vax-* \ 348 | v850-* | v850e-* | vax-* \
344 | we32k-* \ 349 | we32k-* \
345 | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \ 350 | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \
346 | xtensa-* \ 351 | xstormy16-* | xtensa-* \
347 | ymp-* \ 352 | ymp-* \
348 | z8k-*) 353 | z8k-*)
349 ;; 354 ;;
@@ -363,6 +368,9 @@ case $basic_machine in
363 basic_machine=a29k-amd 368 basic_machine=a29k-amd
364 os=-udi 369 os=-udi
365 ;; 370 ;;
371 abacus)
372 basic_machine=abacus-unknown
373 ;;
366 adobe68k) 374 adobe68k)
367 basic_machine=m68010-adobe 375 basic_machine=m68010-adobe
368 os=-scout 376 os=-scout
@@ -442,12 +450,27 @@ case $basic_machine in
442 basic_machine=j90-cray 450 basic_machine=j90-cray
443 os=-unicos 451 os=-unicos
444 ;; 452 ;;
453 craynv)
454 basic_machine=craynv-cray
455 os=-unicosmp
456 ;;
457 cr16c)
458 basic_machine=cr16c-unknown
459 os=-elf
460 ;;
445 crds | unos) 461 crds | unos)
446 basic_machine=m68k-crds 462 basic_machine=m68k-crds
447 ;; 463 ;;
464 crisv32 | crisv32-* | etraxfs*)
465 basic_machine=crisv32-axis
466 ;;
448 cris | cris-* | etrax*) 467 cris | cris-* | etrax*)
449 basic_machine=cris-axis 468 basic_machine=cris-axis
450 ;; 469 ;;
470 crx)
471 basic_machine=crx-unknown
472 os=-elf
473 ;;
451 da30 | da30-*) 474 da30 | da30-*)
452 basic_machine=m68k-da30 475 basic_machine=m68k-da30
453 ;; 476 ;;
@@ -470,6 +493,10 @@ case $basic_machine in
470 basic_machine=m88k-motorola 493 basic_machine=m88k-motorola
471 os=-sysv3 494 os=-sysv3
472 ;; 495 ;;
496 djgpp)
497 basic_machine=i586-pc
498 os=-msdosdjgpp
499 ;;
473 dpx20 | dpx20-*) 500 dpx20 | dpx20-*)
474 basic_machine=rs6000-bull 501 basic_machine=rs6000-bull
475 os=-bosx 502 os=-bosx
@@ -648,10 +675,6 @@ case $basic_machine in
648 mips3*) 675 mips3*)
649 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown 676 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
650 ;; 677 ;;
651 mmix*)
652 basic_machine=mmix-knuth
653 os=-mmixware
654 ;;
655 monitor) 678 monitor)
656 basic_machine=m68k-rom68k 679 basic_machine=m68k-rom68k
657 os=-coff 680 os=-coff
@@ -732,10 +755,6 @@ case $basic_machine in
732 np1) 755 np1)
733 basic_machine=np1-gould 756 basic_machine=np1-gould
734 ;; 757 ;;
735 nv1)
736 basic_machine=nv1-cray
737 os=-unicosmp
738 ;;
739 nsr-tandem) 758 nsr-tandem)
740 basic_machine=nsr-tandem 759 basic_machine=nsr-tandem
741 ;; 760 ;;
@@ -1018,6 +1037,10 @@ case $basic_machine in
1018 basic_machine=hppa1.1-winbond 1037 basic_machine=hppa1.1-winbond
1019 os=-proelf 1038 os=-proelf
1020 ;; 1039 ;;
1040 xbox)
1041 basic_machine=i686-pc
1042 os=-mingw32
1043 ;;
1021 xps | xps100) 1044 xps | xps100)
1022 basic_machine=xps100-honeywell 1045 basic_machine=xps100-honeywell
1023 ;; 1046 ;;
@@ -1048,6 +1071,9 @@ case $basic_machine in
1048 romp) 1071 romp)
1049 basic_machine=romp-ibm 1072 basic_machine=romp-ibm
1050 ;; 1073 ;;
1074 mmix)
1075 basic_machine=mmix-knuth
1076 ;;
1051 rs6000) 1077 rs6000)
1052 basic_machine=rs6000-ibm 1078 basic_machine=rs6000-ibm
1053 ;; 1079 ;;
@@ -1070,7 +1096,7 @@ case $basic_machine in
1070 sh64) 1096 sh64)
1071 basic_machine=sh64-unknown 1097 basic_machine=sh64-unknown
1072 ;; 1098 ;;
1073 sparc | sparcv9 | sparcv9b) 1099 sparc | sparcv8 | sparcv9 | sparcv9b)
1074 basic_machine=sparc-sun 1100 basic_machine=sparc-sun
1075 ;; 1101 ;;
1076 cydra) 1102 cydra)
@@ -1143,8 +1169,9 @@ case $os in
1143 | -aos* \ 1169 | -aos* \
1144 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ 1170 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1145 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ 1171 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1146 | -hiux* | -386bsd* | -knetbsd* | -netbsd* | -openbsd* | -kfreebsd* | -freebsd* | -riscix* \ 1172 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \
1147 | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ 1173 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1174 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1148 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ 1175 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1149 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ 1176 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1150 | -chorusos* | -chorusrdb* \ 1177 | -chorusos* | -chorusrdb* \
@@ -1155,7 +1182,7 @@ case $os in
1155 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ 1182 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1156 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ 1183 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1157 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ 1184 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1158 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*) 1185 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* | -skyos*)
1159 # Remember, each alternative MUST END IN *, to match a version number. 1186 # Remember, each alternative MUST END IN *, to match a version number.
1160 ;; 1187 ;;
1161 -qnx*) 1188 -qnx*)
@@ -1282,6 +1309,9 @@ case $os in
1282 -kaos*) 1309 -kaos*)
1283 os=-kaos 1310 os=-kaos
1284 ;; 1311 ;;
1312 -zvmoe)
1313 os=-zvmoe
1314 ;;
1285 -none) 1315 -none)
1286 ;; 1316 ;;
1287 *) 1317 *)
@@ -1362,6 +1392,9 @@ case $basic_machine in
1362 *-ibm) 1392 *-ibm)
1363 os=-aix 1393 os=-aix
1364 ;; 1394 ;;
1395 *-knuth)
1396 os=-mmixware
1397 ;;
1365 *-wec) 1398 *-wec)
1366 os=-proelf 1399 os=-proelf
1367 ;; 1400 ;;
@@ -1527,7 +1560,7 @@ case $basic_machine in
1527esac 1560esac
1528 1561
1529echo $basic_machine$os 1562echo $basic_machine$os
1530exit 0 1563exit
1531 1564
1532# Local variables: 1565# Local variables:
1533# eval: (add-hook 'write-file-hooks 'time-stamp) 1566# eval: (add-hook 'write-file-hooks 'time-stamp)