comparison config.sub @ 1458:f12d7e208b43 trunk

[svn] Update FSF address in copyright notices. Update autotools templates.
author chainsaw
date Wed, 02 Aug 2006 15:44:07 -0700
parents 0828a314e901
children 7a4fcf84a34f
comparison
equal deleted inserted replaced
1457:bbd5869239e5 1458:f12d7e208b43
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 5 # Inc.
6 timestamp='2005-02-10' 6
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 #
19 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 # GNU General Public License for more details. 21 # GNU General Public License for more details.
21 # 22 #
22 # You should have received a copy of the GNU General Public License 23 # You should have received a copy of the GNU General Public License
23 # along with this program; if not, write to the Free Software 24 # along with this program; if not, write to the Free Software
24 # Foundation, Inc., 59 Temple Place - Suite 330, 25 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
25 # Boston, MA 02111-1307, USA. 26 # 02110-1301, USA.
26 27 #
27 # As a special exception to the GNU General Public License, if you 28 # As a special exception to the GNU General Public License, if you
28 # distribute this file as part of a program that contains a 29 # distribute this file as part of a program that contains a
29 # configuration script generated by Autoconf, you may include it under 30 # configuration script generated by Autoconf, you may include it under
30 # the same distribution terms that you use for the rest of that program. 31 # the same distribution terms that you use for the rest of that program.
32
31 33
32 # Please send patches to <config-patches@gnu.org>. Submit a context 34 # Please send patches to <config-patches@gnu.org>. Submit a context
33 # diff and a properly formatted ChangeLog entry. 35 # diff and a properly formatted ChangeLog entry.
34 # 36 #
35 # Configuration subroutine to validate and canonicalize a configuration type. 37 # Configuration subroutine to validate and canonicalize a configuration type.
81 83
82 # Parse command line 84 # Parse command line
83 while test $# -gt 0 ; do 85 while test $# -gt 0 ; do
84 case $1 in 86 case $1 in
85 --time-stamp | --time* | -t ) 87 --time-stamp | --time* | -t )
86 echo "$timestamp" ; exit 0 ;; 88 echo "$timestamp" ; exit ;;
87 --version | -v ) 89 --version | -v )
88 echo "$version" ; exit 0 ;; 90 echo "$version" ; exit ;;
89 --help | --h* | -h ) 91 --help | --h* | -h )
90 echo "$usage"; exit 0 ;; 92 echo "$usage"; exit ;;
91 -- ) # Stop option processing 93 -- ) # Stop option processing
92 shift; break ;; 94 shift; break ;;
93 - ) # Use stdin as input. 95 - ) # Use stdin as input.
94 break ;; 96 break ;;
95 -* ) 97 -* )
97 exit 1 ;; 99 exit 1 ;;
98 100
99 *local*) 101 *local*)
100 # First pass through any local machine types. 102 # First pass through any local machine types.
101 echo $1 103 echo $1
102 exit 0;; 104 exit ;;
103 105
104 * ) 106 * )
105 break ;; 107 break ;;
106 esac 108 esac
107 done 109 done
116 118
117 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). 119 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
118 # Here we must recognize all the valid KERNEL-OS combinations. 120 # Here we must recognize all the valid KERNEL-OS combinations.
119 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` 121 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
120 case $maybe_os in 122 case $maybe_os in
121 nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \ 123 nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
122 kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*) 124 uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
125 storm-chaos* | os2-emx* | rtmk-nova*)
123 os=-$maybe_os 126 os=-$maybe_os
124 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` 127 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
125 ;; 128 ;;
126 *) 129 *)
127 basic_machine=`echo $1 | sed 's/-[^-]*$//'` 130 basic_machine=`echo $1 | sed 's/-[^-]*$//'`
168 basic_machine=$1 171 basic_machine=$1
169 ;; 172 ;;
170 -hiux*) 173 -hiux*)
171 os=-hiuxwe2 174 os=-hiuxwe2
172 ;; 175 ;;
176 -sco6)
177 os=-sco5v6
178 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
179 ;;
173 -sco5) 180 -sco5)
174 os=-sco3.2v5 181 os=-sco3.2v5
175 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 182 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
176 ;; 183 ;;
177 -sco4) 184 -sco4)
181 -sco3.2.[4-9]*) 188 -sco3.2.[4-9]*)
182 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` 189 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
183 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 190 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
184 ;; 191 ;;
185 -sco3.2v[4-9]*) 192 -sco3.2v[4-9]*)
193 # Don't forget version if it is 3.2v4 or newer.
194 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
195 ;;
196 -sco5v6*)
186 # Don't forget version if it is 3.2v4 or newer. 197 # Don't forget version if it is 3.2v4 or newer.
187 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 198 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
188 ;; 199 ;;
189 -sco*) 200 -sco*)
190 os=-sco3.2v2 201 os=-sco3.2v2
228 1750a | 580 \ 239 1750a | 580 \
229 | a29k \ 240 | a29k \
230 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ 241 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
231 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ 242 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
232 | am33_2.0 \ 243 | am33_2.0 \
233 | 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 \
245 | bfin \
234 | c4x | clipper \ 246 | c4x | clipper \
235 | d10v | d30v | dlx | dsp16xx \ 247 | d10v | d30v | dlx | dsp16xx | dvp \
236 | fr30 | frv \ 248 | fr30 | frv \
237 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ 249 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
238 | i370 | i860 | i960 | ia64 \ 250 | i370 | i860 | i960 | ia64 \
239 | ip2k | iq2000 \ 251 | ip2k | iq2000 \
240 | m32r | m32rle | m68000 | m68k | m88k | maxq | mcore \ 252 | m32c | m32r | m32rle | m68000 | m68k | m88k \
253 | maxq | mb | microblaze | mcore \
241 | mips | mipsbe | mipseb | mipsel | mipsle \ 254 | mips | mipsbe | mipseb | mipsel | mipsle \
242 | mips16 \ 255 | mips16 \
243 | mips64 | mips64el \ 256 | mips64 | mips64el \
244 | mips64vr | mips64vrel \ 257 | mips64vr | mips64vrel \
245 | mips64orion | mips64orionel \ 258 | mips64orion | mips64orionel \
246 | mips64vr4100 | mips64vr4100el \ 259 | mips64vr4100 | mips64vr4100el \
247 | mips64vr4300 | mips64vr4300el \ 260 | mips64vr4300 | mips64vr4300el \
248 | mips64vr5000 | mips64vr5000el \ 261 | mips64vr5000 | mips64vr5000el \
262 | mips64vr5900 | mips64vr5900el \
249 | mipsisa32 | mipsisa32el \ 263 | mipsisa32 | mipsisa32el \
250 | mipsisa32r2 | mipsisa32r2el \ 264 | mipsisa32r2 | mipsisa32r2el \
251 | mipsisa64 | mipsisa64el \ 265 | mipsisa64 | mipsisa64el \
252 | mipsisa64r2 | mipsisa64r2el \ 266 | mipsisa64r2 | mipsisa64r2el \
253 | mipsisa64sb1 | mipsisa64sb1el \ 267 | mipsisa64sb1 | mipsisa64sb1el \
254 | mipsisa64sr71k | mipsisa64sr71kel \ 268 | mipsisa64sr71k | mipsisa64sr71kel \
255 | mipstx39 | mipstx39el \ 269 | mipstx39 | mipstx39el \
256 | mips64r5900 | mips64r5900el \
257 | mn10200 | mn10300 \ 270 | mn10200 | mn10300 \
271 | mt \
258 | msp430 \ 272 | msp430 \
273 | nios | nios2 \
259 | ns16k | ns32k \ 274 | ns16k | ns32k \
260 | openrisc | or32 \ 275 | or32 \
261 | pdp10 | pdp11 | pj | pjl \ 276 | pdp10 | pdp11 | pj | pjl \
262 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ 277 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
263 | pyramid \ 278 | pyramid \
264 | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ 279 | sh | sh[1234] | sh[24]a | sh[24]a*eb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
265 | sh64 | sh64le \ 280 | sh64 | sh64le \
266 | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv8 | sparcv9 | sparcv9b \ 281 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
267 | strongarm \ 282 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
268 | tahoe | dvp | thumb | tic4x | tic80 | tron \ 283 | spu | strongarm \
284 | tahoe | thumb | tic4x | tic80 | tron \
269 | v850 | v850e \ 285 | v850 | v850e \
270 | we32k \ 286 | we32k \
271 | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \ 287 | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \
272 | z8k) 288 | z8k)
273 basic_machine=$basic_machine-unknown 289 basic_machine=$basic_machine-unknown
276 # Motorola 68HC11/12. 292 # Motorola 68HC11/12.
277 basic_machine=$basic_machine-unknown 293 basic_machine=$basic_machine-unknown
278 os=-none 294 os=-none
279 ;; 295 ;;
280 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) 296 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
297 ;;
298 ms1)
299 basic_machine=mt-unknown
281 ;; 300 ;;
282 301
283 # We use `pc' rather than `unknown' 302 # We use `pc' rather than `unknown'
284 # because (1) that's what they normally are, and 303 # because (1) that's what they normally are, and
285 # (2) the word "unknown" tends to confuse beginning users. 304 # (2) the word "unknown" tends to confuse beginning users.
296 | a29k-* \ 315 | a29k-* \
297 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ 316 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
298 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ 317 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
299 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ 318 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
300 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ 319 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
301 | avr-* \ 320 | avr-* | avr32-* \
302 | bs2000-* \ 321 | bfin-* | bs2000-* \
303 | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ 322 | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
304 | clipper-* | craynv-* | cydra-* \ 323 | clipper-* | craynv-* | cydra-* \
305 | d10v-* | d30v-* | dlx-* \ 324 | d10v-* | d30v-* | dlx-* \
306 | elxsi-* \ 325 | elxsi-* \
307 | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \ 326 | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
308 | h8300-* | h8500-* \ 327 | h8300-* | h8500-* \
309 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ 328 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
310 | i*86-* | i860-* | i960-* | ia64-* \ 329 | i*86-* | i860-* | i960-* | ia64-* \
311 | ip2k-* | iq2000-* \ 330 | ip2k-* | iq2000-* \
312 | m32r-* | m32rle-* \ 331 | m32c-* | m32r-* | m32rle-* \
313 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ 332 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
314 | m88110-* | m88k-* | maxq-* | mcore-* \ 333 | m88110-* | m88k-* | maxq-* | mcore-* \
315 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ 334 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
316 | mips16-* \ 335 | mips16-* \
317 | mips64-* | mips64el-* \ 336 | mips64-* | mips64el-* \
318 | mips64vr-* | mips64vrel-* \ 337 | mips64vr-* | mips64vrel-* \
319 | mips64orion-* | mips64orionel-* \ 338 | mips64orion-* | mips64orionel-* \
320 | mips64vr4100-* | mips64vr4100el-* \ 339 | mips64vr4100-* | mips64vr4100el-* \
321 | mips64vr4300-* | mips64vr4300el-* \ 340 | mips64vr4300-* | mips64vr4300el-* \
322 | mips64vr5000-* | mips64vr5000el-* \ 341 | mips64vr5000-* | mips64vr5000el-* \
342 | mips64vr5900-* | mips64vr5900el-* \
323 | mipsisa32-* | mipsisa32el-* \ 343 | mipsisa32-* | mipsisa32el-* \
324 | mipsisa32r2-* | mipsisa32r2el-* \ 344 | mipsisa32r2-* | mipsisa32r2el-* \
325 | mipsisa64-* | mipsisa64el-* \ 345 | mipsisa64-* | mipsisa64el-* \
326 | mipsisa64r2-* | mipsisa64r2el-* \ 346 | mipsisa64r2-* | mipsisa64r2el-* \
327 | mipsisa64sb1-* | mipsisa64sb1el-* \ 347 | mipsisa64sb1-* | mipsisa64sb1el-* \
328 | mipsisa64sr71k-* | mipsisa64sr71kel-* \ 348 | mipsisa64sr71k-* | mipsisa64sr71kel-* \
329 | mipstx39-* | mipstx39el-* \ 349 | mipstx39-* | mipstx39el-* \
330 | mips64r5900-* | mips64r5900el-* \
331 | mmix-* \ 350 | mmix-* \
351 | mt-* \
332 | msp430-* \ 352 | msp430-* \
353 | nios-* | nios2-* \
333 | none-* | np1-* | ns16k-* | ns32k-* \ 354 | none-* | np1-* | ns16k-* | ns32k-* \
334 | orion-* \ 355 | orion-* \
335 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ 356 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
336 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ 357 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
337 | pyramid-* \ 358 | pyramid-* \
338 | romp-* | rs6000-* \ 359 | romp-* | rs6000-* \
339 | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \ 360 | sh-* | sh[1234]-* | sh[24]a-* | sh[24]a*eb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
340 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ 361 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
341 | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \ 362 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
342 | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ 363 | sparclite-* \
364 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
343 | tahoe-* | thumb-* \ 365 | tahoe-* | thumb-* \
344 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ 366 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
345 | tron-* \ 367 | tron-* \
346 | v850-* | v850e-* | vax-* \ 368 | v850-* | v850e-* | vax-* \
347 | we32k-* \ 369 | we32k-* \
700 os=-morphos 722 os=-morphos
701 ;; 723 ;;
702 msdos) 724 msdos)
703 basic_machine=i386-pc 725 basic_machine=i386-pc
704 os=-msdos 726 os=-msdos
727 ;;
728 ms1-*)
729 basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
705 ;; 730 ;;
706 mvs) 731 mvs)
707 basic_machine=i370-ibm 732 basic_machine=i370-ibm
708 os=-mvs 733 os=-mvs
709 ;; 734 ;;
776 ;; 801 ;;
777 op50n-* | op60c-*) 802 op50n-* | op60c-*)
778 basic_machine=hppa1.1-oki 803 basic_machine=hppa1.1-oki
779 os=-proelf 804 os=-proelf
780 ;; 805 ;;
781 or32 | or32-*) 806 openrisc | openrisc-*)
782 basic_machine=or32-unknown 807 basic_machine=or32-unknown
783 os=-coff
784 ;; 808 ;;
785 os400) 809 os400)
786 basic_machine=powerpc-ibm 810 basic_machine=powerpc-ibm
787 os=-os400 811 os=-os400
788 ;; 812 ;;
809 basic_machine=m68k-tti 833 basic_machine=m68k-tti
810 ;; 834 ;;
811 pc532 | pc532-*) 835 pc532 | pc532-*)
812 basic_machine=ns32k-pc532 836 basic_machine=ns32k-pc532
813 ;; 837 ;;
838 pc98)
839 basic_machine=i386-pc
840 ;;
841 pc98-*)
842 basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
843 ;;
814 pentium | p5 | k5 | k6 | nexgen | viac3) 844 pentium | p5 | k5 | k6 | nexgen | viac3)
815 basic_machine=i586-pc 845 basic_machine=i586-pc
816 ;; 846 ;;
817 pentiumpro | p6 | 6x86 | athlon | athlon_*) 847 pentiumpro | p6 | 6x86 | athlon | athlon_*)
818 basic_machine=i686-pc 848 basic_machine=i686-pc
864 basic_machine=i386-ibm 894 basic_machine=i386-ibm
865 ;; 895 ;;
866 pw32) 896 pw32)
867 basic_machine=i586-unknown 897 basic_machine=i586-unknown
868 os=-pw32 898 os=-pw32
899 ;;
900 rdos)
901 basic_machine=i386-pc
902 os=-rdos
869 ;; 903 ;;
870 rom68k) 904 rom68k)
871 basic_machine=m68k-rom68k 905 basic_machine=m68k-rom68k
872 os=-coff 906 os=-coff
873 ;; 907 ;;
1104 basic_machine=pdp11-dec 1138 basic_machine=pdp11-dec
1105 ;; 1139 ;;
1106 we32k) 1140 we32k)
1107 basic_machine=we32k-att 1141 basic_machine=we32k-att
1108 ;; 1142 ;;
1109 sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele) 1143 sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
1110 basic_machine=sh-unknown 1144 basic_machine=sh-unknown
1111 ;; 1145 ;;
1112 sh64) 1146 sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
1113 basic_machine=sh64-unknown
1114 ;;
1115 sparc | sparcv8 | sparcv9 | sparcv9b)
1116 basic_machine=sparc-sun 1147 basic_machine=sparc-sun
1117 ;; 1148 ;;
1118 cydra) 1149 cydra)
1119 basic_machine=cydra-cydrome 1150 basic_machine=cydra-cydrome
1120 ;; 1151 ;;
1183 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ 1214 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
1184 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ 1215 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1185 | -aos* \ 1216 | -aos* \
1186 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ 1217 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1187 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ 1218 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1188 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \ 1219 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1220 | -openbsd* | -solidbsd* \
1189 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ 1221 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1190 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ 1222 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1191 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ 1223 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1192 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ 1224 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1193 | -chorusos* | -chorusrdb* \ 1225 | -chorusos* | -chorusrdb* \
1194 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ 1226 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1195 | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \ 1227 | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
1228 | -uxpv* | -beos* | -mpeix* | -udk* \
1196 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ 1229 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1197 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ 1230 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1198 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ 1231 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1199 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ 1232 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1200 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ 1233 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1201 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* | -irx*) 1234 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1235 | -skyos* | -haiku* | -rdos* | -toppers* | -irx*)
1202 # Remember, each alternative MUST END IN *, to match a version number. 1236 # Remember, each alternative MUST END IN *, to match a version number.
1203 ;; 1237 ;;
1204 -qnx*) 1238 -qnx*)
1205 case $basic_machine in 1239 case $basic_machine in
1206 x86-* | i*86-*) 1240 x86-* | i*86-*)
1214 ;; 1248 ;;
1215 -nto*) 1249 -nto*)
1216 os=`echo $os | sed -e 's|nto|nto-qnx|'` 1250 os=`echo $os | sed -e 's|nto|nto-qnx|'`
1217 ;; 1251 ;;
1218 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ 1252 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
1219 | -windows* | -osx | -abug | -netware* | -os9* | -beos* \ 1253 | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
1220 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) 1254 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
1221 ;; 1255 ;;
1222 -mac*) 1256 -mac*)
1223 os=`echo $os | sed -e 's|mac|macos|'` 1257 os=`echo $os | sed -e 's|mac|macos|'`
1224 ;; 1258 ;;
1348 # that MANUFACTURER isn't an operating system. Otherwise, code above 1382 # that MANUFACTURER isn't an operating system. Otherwise, code above
1349 # will signal an error saying that MANUFACTURER isn't an operating 1383 # will signal an error saying that MANUFACTURER isn't an operating
1350 # system, and we'll never get to this point. 1384 # system, and we'll never get to this point.
1351 1385
1352 case $basic_machine in 1386 case $basic_machine in
1387 spu-*)
1388 os=-elf
1389 ;;
1353 *-acorn) 1390 *-acorn)
1354 os=-riscix1.2 1391 os=-riscix1.2
1355 ;; 1392 ;;
1356 arm*-rebel) 1393 arm*-rebel)
1357 os=-linux 1394 os=-linux
1358 ;; 1395 ;;
1359 arm*-semi) 1396 arm*-semi)
1360 os=-aout 1397 os=-aout
1361 ;; 1398 ;;
1362 c4x-* | tic4x-*) 1399 c4x-* | tic4x-*)
1363 os=-coff 1400 os=-coff
1364 ;; 1401 ;;
1365 # This must come before the *-dec entry. 1402 # This must come before the *-dec entry.
1366 pdp10-*) 1403 pdp10-*)
1367 os=-tops20 1404 os=-tops20
1368 ;; 1405 ;;
1369 pdp11-*) 1406 pdp11-*)
1402 sparc-* | *-sun) 1439 sparc-* | *-sun)
1403 os=-sunos4.1.1 1440 os=-sunos4.1.1
1404 ;; 1441 ;;
1405 *-be) 1442 *-be)
1406 os=-beos 1443 os=-beos
1444 ;;
1445 *-haiku)
1446 os=-haiku
1407 ;; 1447 ;;
1408 *-ibm) 1448 *-ibm)
1409 os=-aix 1449 os=-aix
1410 ;; 1450 ;;
1411 *-knuth) 1451 *-knuth)
1574 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` 1614 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
1575 ;; 1615 ;;
1576 esac 1616 esac
1577 1617
1578 echo $basic_machine$os 1618 echo $basic_machine$os
1579 exit 0 1619 exit
1580 1620
1581 # Local variables: 1621 # Local variables:
1582 # eval: (add-hook 'write-file-hooks 'time-stamp) 1622 # eval: (add-hook 'write-file-hooks 'time-stamp)
1583 # time-stamp-start: "timestamp='" 1623 # time-stamp-start: "timestamp='"
1584 # time-stamp-format: "%:y-%02m-%02d" 1624 # time-stamp-format: "%:y-%02m-%02d"