comparison config.sub @ 47:ba203b170476

Use uw_streq(); update to newer Autoconf
author Adam Chlipala <adam@chlipala.net>
date Tue, 19 Jul 2011 09:27:10 -0400
parents 3c209338e596
children
comparison
equal deleted inserted replaced
46:72e942423f26 47:ba203b170476
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, 2006, 2007, 2008, 2009, 2010 4 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
5 # Free Software Foundation, Inc. 5 # 2011 Free Software Foundation, Inc.
6 6
7 timestamp='2010-01-22' 7 timestamp='2011-03-23'
8 8
9 # This file is (in principle) common to ALL GNU software. 9 # This file is (in principle) common to ALL GNU software.
10 # 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
11 # 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.
12 # 12 #
74 74
75 version="\ 75 version="\
76 GNU config.sub ($timestamp) 76 GNU config.sub ($timestamp)
77 77
78 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 78 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
79 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free 79 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free
80 Software Foundation, Inc. 80 Software Foundation, Inc.
81 81
82 This is free software; see the source for copying conditions. There is NO 82 This is free software; see the source for copying conditions. There is NO
83 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." 83 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
84 84
122 122
123 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). 123 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
124 # Here we must recognize all the valid KERNEL-OS combinations. 124 # Here we must recognize all the valid KERNEL-OS combinations.
125 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` 125 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
126 case $maybe_os in 126 case $maybe_os in
127 nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \ 127 nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
128 uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \ 128 linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
129 knetbsd*-gnu* | netbsd*-gnu* | \
129 kopensolaris*-gnu* | \ 130 kopensolaris*-gnu* | \
130 storm-chaos* | os2-emx* | rtmk-nova*) 131 storm-chaos* | os2-emx* | rtmk-nova*)
131 os=-$maybe_os 132 os=-$maybe_os
132 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` 133 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
133 ;; 134 ;;
155 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ 156 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
156 -apple | -axis | -knuth | -cray | -microblaze) 157 -apple | -axis | -knuth | -cray | -microblaze)
157 os= 158 os=
158 basic_machine=$1 159 basic_machine=$1
159 ;; 160 ;;
160 -bluegene*) 161 -bluegene*)
161 os=-cnk 162 os=-cnk
162 ;; 163 ;;
163 -sim | -cisco | -oki | -wec | -winbond) 164 -sim | -cisco | -oki | -wec | -winbond)
164 os= 165 os=
165 basic_machine=$1 166 basic_machine=$1
166 ;; 167 ;;
172 ;; 173 ;;
173 -chorusos*) 174 -chorusos*)
174 os=-chorusos 175 os=-chorusos
175 basic_machine=$1 176 basic_machine=$1
176 ;; 177 ;;
177 -chorusrdb) 178 -chorusrdb)
178 os=-chorusrdb 179 os=-chorusrdb
179 basic_machine=$1 180 basic_machine=$1
180 ;; 181 ;;
181 -hiux*) 182 -hiux*)
182 os=-hiuxwe2 183 os=-hiuxwe2
183 ;; 184 ;;
184 -sco6) 185 -sco6)
185 os=-sco5v6 186 os=-sco5v6
280 | mipstx39 | mipstx39el \ 281 | mipstx39 | mipstx39el \
281 | mn10200 | mn10300 \ 282 | mn10200 | mn10300 \
282 | moxie \ 283 | moxie \
283 | mt \ 284 | mt \
284 | msp430 \ 285 | msp430 \
286 | nds32 | nds32le | nds32be \
285 | nios | nios2 \ 287 | nios | nios2 \
286 | ns16k | ns32k \ 288 | ns16k | ns32k \
289 | open8 \
287 | or32 \ 290 | or32 \
288 | pdp10 | pdp11 | pj | pjl \ 291 | pdp10 | pdp11 | pj | pjl \
289 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ 292 | powerpc | powerpc64 | powerpc64le | powerpcle \
290 | pyramid \ 293 | pyramid \
291 | rx \ 294 | rx \
292 | score \ 295 | score \
293 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ 296 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
294 | sh64 | sh64le \ 297 | sh64 | sh64le \
295 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ 298 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
296 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ 299 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
297 | spu | strongarm \ 300 | spu \
298 | tahoe | thumb | tic4x | tic80 | tron \ 301 | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
299 | ubicom32 \ 302 | ubicom32 \
300 | v850 | v850e \ 303 | v850 | v850e \
301 | we32k \ 304 | we32k \
302 | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \ 305 | x86 | xc16x | xstormy16 | xtensa \
303 | z8k | z80) 306 | z8k | z80)
304 basic_machine=$basic_machine-unknown 307 basic_machine=$basic_machine-unknown
308 ;;
309 c54x)
310 basic_machine=tic54x-unknown
311 ;;
312 c55x)
313 basic_machine=tic55x-unknown
314 ;;
315 c6x)
316 basic_machine=tic6x-unknown
305 ;; 317 ;;
306 m6811 | m68hc11 | m6812 | m68hc12 | picochip) 318 m6811 | m68hc11 | m6812 | m68hc12 | picochip)
307 # Motorola 68HC11/12. 319 # Motorola 68HC11/12.
308 basic_machine=$basic_machine-unknown 320 basic_machine=$basic_machine-unknown
309 os=-none 321 os=-none
310 ;; 322 ;;
311 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) 323 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
312 ;; 324 ;;
313 ms1) 325 ms1)
314 basic_machine=mt-unknown 326 basic_machine=mt-unknown
327 ;;
328
329 strongarm | thumb | xscale)
330 basic_machine=arm-unknown
331 ;;
332
333 xscaleeb)
334 basic_machine=armeb-unknown
335 ;;
336
337 xscaleel)
338 basic_machine=armel-unknown
315 ;; 339 ;;
316 340
317 # We use `pc' rather than `unknown' 341 # We use `pc' rather than `unknown'
318 # because (1) that's what they normally are, and 342 # because (1) that's what they normally are, and
319 # (2) the word "unknown" tends to confuse beginning users. 343 # (2) the word "unknown" tends to confuse beginning users.
332 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ 356 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
333 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ 357 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
334 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ 358 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
335 | avr-* | avr32-* \ 359 | avr-* | avr32-* \
336 | bfin-* | bs2000-* \ 360 | bfin-* | bs2000-* \
337 | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ 361 | c[123]* | c30-* | [cjt]90-* | c4x-* \
338 | clipper-* | craynv-* | cydra-* \ 362 | clipper-* | craynv-* | cydra-* \
339 | d10v-* | d30v-* | dlx-* \ 363 | d10v-* | d30v-* | dlx-* \
340 | elxsi-* \ 364 | elxsi-* \
341 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ 365 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
342 | h8300-* | h8500-* \ 366 | h8300-* | h8500-* \
366 | mipsisa64sr71k-* | mipsisa64sr71kel-* \ 390 | mipsisa64sr71k-* | mipsisa64sr71kel-* \
367 | mipstx39-* | mipstx39el-* \ 391 | mipstx39-* | mipstx39el-* \
368 | mmix-* \ 392 | mmix-* \
369 | mt-* \ 393 | mt-* \
370 | msp430-* \ 394 | msp430-* \
395 | nds32-* | nds32le-* | nds32be-* \
371 | nios-* | nios2-* \ 396 | nios-* | nios2-* \
372 | none-* | np1-* | ns16k-* | ns32k-* \ 397 | none-* | np1-* | ns16k-* | ns32k-* \
398 | open8-* \
373 | orion-* \ 399 | orion-* \
374 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ 400 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
375 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ 401 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
376 | pyramid-* \ 402 | pyramid-* \
377 | romp-* | rs6000-* | rx-* \ 403 | romp-* | rs6000-* | rx-* \
378 | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ 404 | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
379 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ 405 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
380 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ 406 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
381 | sparclite-* \ 407 | sparclite-* \
382 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \ 408 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
383 | tahoe-* | thumb-* \ 409 | tahoe-* \
384 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ 410 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
385 | tile-* | tilegx-* \ 411 | tile-* | tilegx-* \
386 | tron-* \ 412 | tron-* \
387 | ubicom32-* \ 413 | ubicom32-* \
388 | v850-* | v850e-* | vax-* \ 414 | v850-* | v850e-* | vax-* \
389 | we32k-* \ 415 | we32k-* \
390 | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \ 416 | x86-* | x86_64-* | xc16x-* | xps100-* \
391 | xstormy16-* | xtensa*-* \ 417 | xstormy16-* | xtensa*-* \
392 | ymp-* \ 418 | ymp-* \
393 | z8k-* | z80-*) 419 | z8k-* | z80-*)
394 ;; 420 ;;
395 # Recognize the basic CPU types without company name, with glob match. 421 # Recognize the basic CPU types without company name, with glob match.
410 ;; 436 ;;
411 a29khif) 437 a29khif)
412 basic_machine=a29k-amd 438 basic_machine=a29k-amd
413 os=-udi 439 os=-udi
414 ;; 440 ;;
415 abacus) 441 abacus)
416 basic_machine=abacus-unknown 442 basic_machine=abacus-unknown
417 ;; 443 ;;
418 adobe68k) 444 adobe68k)
419 basic_machine=m68010-adobe 445 basic_machine=m68010-adobe
420 os=-scout 446 os=-scout
480 ;; 506 ;;
481 bluegene*) 507 bluegene*)
482 basic_machine=powerpc-ibm 508 basic_machine=powerpc-ibm
483 os=-cnk 509 os=-cnk
484 ;; 510 ;;
511 c54x-*)
512 basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
513 ;;
514 c55x-*)
515 basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
516 ;;
517 c6x-*)
518 basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
519 ;;
485 c90) 520 c90)
486 basic_machine=c90-cray 521 basic_machine=c90-cray
487 os=-unicos 522 os=-unicos
488 ;; 523 ;;
489 cegcc) 524 cegcc)
490 basic_machine=arm-unknown 525 basic_machine=arm-unknown
491 os=-cegcc 526 os=-cegcc
492 ;; 527 ;;
493 convex-c1) 528 convex-c1)
494 basic_machine=c1-convex 529 basic_machine=c1-convex
516 ;; 551 ;;
517 craynv) 552 craynv)
518 basic_machine=craynv-cray 553 basic_machine=craynv-cray
519 os=-unicosmp 554 os=-unicosmp
520 ;; 555 ;;
521 cr16) 556 cr16 | cr16-*)
522 basic_machine=cr16-unknown 557 basic_machine=cr16-unknown
523 os=-elf 558 os=-elf
524 ;; 559 ;;
525 crds | unos) 560 crds | unos)
526 basic_machine=m68k-crds 561 basic_machine=m68k-crds
732 ;; 767 ;;
733 merlin) 768 merlin)
734 basic_machine=ns32k-utek 769 basic_machine=ns32k-utek
735 os=-sysv 770 os=-sysv
736 ;; 771 ;;
737 microblaze) 772 microblaze)
738 basic_machine=microblaze-xilinx 773 basic_machine=microblaze-xilinx
739 ;; 774 ;;
740 mingw32) 775 mingw32)
741 basic_machine=i386-pc 776 basic_machine=i386-pc
742 os=-mingw32 777 os=-mingw32
839 os=-nonstopux 874 os=-nonstopux
840 ;; 875 ;;
841 np1) 876 np1)
842 basic_machine=np1-gould 877 basic_machine=np1-gould
843 ;; 878 ;;
879 neo-tandem)
880 basic_machine=neo-tandem
881 ;;
882 nse-tandem)
883 basic_machine=nse-tandem
884 ;;
844 nsr-tandem) 885 nsr-tandem)
845 basic_machine=nsr-tandem 886 basic_machine=nsr-tandem
846 ;; 887 ;;
847 op50n-* | op60c-*) 888 op50n-* | op60c-*)
848 basic_machine=hppa1.1-oki 889 basic_machine=hppa1.1-oki
921 pn) 962 pn)
922 basic_machine=pn-gould 963 basic_machine=pn-gould
923 ;; 964 ;;
924 power) basic_machine=power-ibm 965 power) basic_machine=power-ibm
925 ;; 966 ;;
926 ppc) basic_machine=powerpc-unknown 967 ppc | ppcbe) basic_machine=powerpc-unknown
927 ;; 968 ;;
928 ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` 969 ppc-* | ppcbe-*)
970 basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
929 ;; 971 ;;
930 ppcle | powerpclittle | ppc-le | powerpc-little) 972 ppcle | powerpclittle | ppc-le | powerpc-little)
931 basic_machine=powerpcle-unknown 973 basic_machine=powerpcle-unknown
932 ;; 974 ;;
933 ppcle-* | powerpclittle-*) 975 ppcle-* | powerpclittle-*)
1017 ;; 1059 ;;
1018 stratus) 1060 stratus)
1019 basic_machine=i860-stratus 1061 basic_machine=i860-stratus
1020 os=-sysv4 1062 os=-sysv4
1021 ;; 1063 ;;
1064 strongarm-* | thumb-*)
1065 basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
1066 ;;
1022 sun2) 1067 sun2)
1023 basic_machine=m68000-sun 1068 basic_machine=m68000-sun
1024 ;; 1069 ;;
1025 sun2os3) 1070 sun2os3)
1026 basic_machine=m68000-sun 1071 basic_machine=m68000-sun
1073 ;; 1118 ;;
1074 t90) 1119 t90)
1075 basic_machine=t90-cray 1120 basic_machine=t90-cray
1076 os=-unicos 1121 os=-unicos
1077 ;; 1122 ;;
1078 tic54x | c54x*) 1123 # This must be matched before tile*.
1079 basic_machine=tic54x-unknown 1124 tilegx*)
1080 os=-coff
1081 ;;
1082 tic55x | c55x*)
1083 basic_machine=tic55x-unknown
1084 os=-coff
1085 ;;
1086 tic6x | c6x*)
1087 basic_machine=tic6x-unknown
1088 os=-coff
1089 ;;
1090 # This must be matched before tile*.
1091 tilegx*)
1092 basic_machine=tilegx-unknown 1125 basic_machine=tilegx-unknown
1093 os=-linux-gnu 1126 os=-linux-gnu
1094 ;; 1127 ;;
1095 tile*) 1128 tile*)
1096 basic_machine=tile-unknown 1129 basic_machine=tile-unknown
1160 basic_machine=i686-pc 1193 basic_machine=i686-pc
1161 os=-mingw32 1194 os=-mingw32
1162 ;; 1195 ;;
1163 xps | xps100) 1196 xps | xps100)
1164 basic_machine=xps100-honeywell 1197 basic_machine=xps100-honeywell
1198 ;;
1199 xscale-* | xscalee[bl]-*)
1200 basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
1165 ;; 1201 ;;
1166 ymp) 1202 ymp)
1167 basic_machine=ymp-cray 1203 basic_machine=ymp-cray
1168 os=-unicos 1204 os=-unicos
1169 ;; 1205 ;;
1258 # Decode manufacturer-specific aliases for certain operating systems. 1294 # Decode manufacturer-specific aliases for certain operating systems.
1259 1295
1260 if [ x"$os" != x"" ] 1296 if [ x"$os" != x"" ]
1261 then 1297 then
1262 case $os in 1298 case $os in
1263 # First match some system type aliases 1299 # First match some system type aliases
1264 # that might get confused with valid system types. 1300 # that might get confused with valid system types.
1265 # -solaris* is a basic system type, with this one exception. 1301 # -solaris* is a basic system type, with this one exception.
1266 -auroraux) 1302 -auroraux)
1267 os=-auroraux 1303 os=-auroraux
1268 ;; 1304 ;;
1269 -solaris1 | -solaris1.*) 1305 -solaris1 | -solaris1.*)
1270 os=`echo $os | sed -e 's|solaris1|sunos4|'` 1306 os=`echo $os | sed -e 's|solaris1|sunos4|'`
1271 ;; 1307 ;;
1272 -solaris) 1308 -solaris)
1299 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ 1335 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1300 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ 1336 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1301 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ 1337 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1302 | -chorusos* | -chorusrdb* | -cegcc* \ 1338 | -chorusos* | -chorusrdb* | -cegcc* \
1303 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ 1339 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1304 | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \ 1340 | -mingw32* | -linux-gnu* | -linux-android* \
1341 | -linux-newlib* | -linux-uclibc* \
1305 | -uxpv* | -beos* | -mpeix* | -udk* \ 1342 | -uxpv* | -beos* | -mpeix* | -udk* \
1306 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ 1343 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1307 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ 1344 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1308 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ 1345 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1309 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ 1346 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1346 os=`echo $os | sed -e 's|sunos6|solaris3|'` 1383 os=`echo $os | sed -e 's|sunos6|solaris3|'`
1347 ;; 1384 ;;
1348 -opened*) 1385 -opened*)
1349 os=-openedition 1386 os=-openedition
1350 ;; 1387 ;;
1351 -os400*) 1388 -os400*)
1352 os=-os400 1389 os=-os400
1353 ;; 1390 ;;
1354 -wince*) 1391 -wince*)
1355 os=-wince 1392 os=-wince
1356 ;; 1393 ;;
1395 os=`echo $os | sed -e 's|sinix|sysv|'` 1432 os=`echo $os | sed -e 's|sinix|sysv|'`
1396 ;; 1433 ;;
1397 -sinix*) 1434 -sinix*)
1398 os=-sysv4 1435 os=-sysv4
1399 ;; 1436 ;;
1400 -tpf*) 1437 -tpf*)
1401 os=-tpf 1438 os=-tpf
1402 ;; 1439 ;;
1403 -triton*) 1440 -triton*)
1404 os=-sysv3 1441 os=-sysv3
1405 ;; 1442 ;;
1440 os=-zvmoe 1477 os=-zvmoe
1441 ;; 1478 ;;
1442 -dicos*) 1479 -dicos*)
1443 os=-dicos 1480 os=-dicos
1444 ;; 1481 ;;
1445 -nacl*) 1482 -nacl*)
1446 ;; 1483 ;;
1447 -none) 1484 -none)
1448 ;; 1485 ;;
1449 *) 1486 *)
1450 # Get rid of the `-' at the beginning of $os. 1487 # Get rid of the `-' at the beginning of $os.
1451 os=`echo $os | sed 's/[^-]*-//'` 1488 os=`echo $os | sed 's/[^-]*-//'`
1464 # that MANUFACTURER isn't an operating system. Otherwise, code above 1501 # that MANUFACTURER isn't an operating system. Otherwise, code above
1465 # will signal an error saying that MANUFACTURER isn't an operating 1502 # will signal an error saying that MANUFACTURER isn't an operating
1466 # system, and we'll never get to this point. 1503 # system, and we'll never get to this point.
1467 1504
1468 case $basic_machine in 1505 case $basic_machine in
1469 score-*) 1506 score-*)
1470 os=-elf 1507 os=-elf
1471 ;; 1508 ;;
1472 spu-*) 1509 spu-*)
1473 os=-elf 1510 os=-elf
1474 ;; 1511 ;;
1475 *-acorn) 1512 *-acorn)
1476 os=-riscix1.2 1513 os=-riscix1.2
1477 ;; 1514 ;;
1479 os=-linux 1516 os=-linux
1480 ;; 1517 ;;
1481 arm*-semi) 1518 arm*-semi)
1482 os=-aout 1519 os=-aout
1483 ;; 1520 ;;
1484 c4x-* | tic4x-*) 1521 c4x-* | tic4x-*)
1485 os=-coff 1522 os=-coff
1523 ;;
1524 tic54x-*)
1525 os=-coff
1526 ;;
1527 tic55x-*)
1528 os=-coff
1529 ;;
1530 tic6x-*)
1531 os=-coff
1486 ;; 1532 ;;
1487 # This must come before the *-dec entry. 1533 # This must come before the *-dec entry.
1488 pdp10-*) 1534 pdp10-*)
1489 os=-tops20 1535 os=-tops20
1490 ;; 1536 ;;
1507 # os=-sunos4 1553 # os=-sunos4
1508 ;; 1554 ;;
1509 m68*-cisco) 1555 m68*-cisco)
1510 os=-aout 1556 os=-aout
1511 ;; 1557 ;;
1512 mep-*) 1558 mep-*)
1513 os=-elf 1559 os=-elf
1514 ;; 1560 ;;
1515 mips*-cisco) 1561 mips*-cisco)
1516 os=-elf 1562 os=-elf
1517 ;; 1563 ;;
1534 os=-haiku 1580 os=-haiku
1535 ;; 1581 ;;
1536 *-ibm) 1582 *-ibm)
1537 os=-aix 1583 os=-aix
1538 ;; 1584 ;;
1539 *-knuth) 1585 *-knuth)
1540 os=-mmixware 1586 os=-mmixware
1541 ;; 1587 ;;
1542 *-wec) 1588 *-wec)
1543 os=-proelf 1589 os=-proelf
1544 ;; 1590 ;;