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, 2007, 2008, 2009, 2010, |
|
|
5 | # 2011 Free Software Foundation, Inc. |
5 | |
6 | |
6 | timestamp='2005-07-08' |
7 | timestamp='2011-11-11' |
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 | # |
… | |
… | |
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. |
31 | |
32 | |
32 | |
33 | |
33 | # Please send patches to <config-patches@gnu.org>. Submit a context |
34 | # Please send patches to <config-patches@gnu.org>. Submit a context |
34 | # diff and a properly formatted ChangeLog entry. |
35 | # diff and a properly formatted GNU ChangeLog entry. |
35 | # |
36 | # |
36 | # Configuration subroutine to validate and canonicalize a configuration type. |
37 | # Configuration subroutine to validate and canonicalize a configuration type. |
37 | # Supply the specified configuration type as an argument. |
38 | # Supply the specified configuration type as an argument. |
38 | # If it is invalid, we print an error message on stderr and exit with code 1. |
39 | # If it is invalid, we print an error message on stderr and exit with code 1. |
39 | # Otherwise, we print the canonical config type on stdout and succeed. |
40 | # Otherwise, we print the canonical config type on stdout and succeed. |
|
|
41 | |
|
|
42 | # You can get the latest version of this script from: |
|
|
43 | # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD |
40 | |
44 | |
41 | # This file is supposed to be the same for all GNU packages |
45 | # This file is supposed to be the same for all GNU packages |
42 | # and recognize all the CPU types, system types and aliases |
46 | # and recognize all the CPU types, system types and aliases |
43 | # that are meaningful with *any* GNU software. |
47 | # that are meaningful with *any* GNU software. |
44 | # Each package is responsible for reporting which valid configurations |
48 | # Each package is responsible for reporting which valid configurations |
… | |
… | |
69 | Report bugs and patches to <config-patches@gnu.org>." |
73 | Report bugs and patches to <config-patches@gnu.org>." |
70 | |
74 | |
71 | version="\ |
75 | version="\ |
72 | GNU config.sub ($timestamp) |
76 | GNU config.sub ($timestamp) |
73 | |
77 | |
74 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 |
78 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, |
|
|
79 | 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free |
75 | Free Software Foundation, Inc. |
80 | Software Foundation, Inc. |
76 | |
81 | |
77 | 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 |
78 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
83 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
79 | |
84 | |
80 | help=" |
85 | help=" |
… | |
… | |
117 | |
122 | |
118 | # 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). |
119 | # Here we must recognize all the valid KERNEL-OS combinations. |
124 | # Here we must recognize all the valid KERNEL-OS combinations. |
120 | maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` |
125 | maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` |
121 | case $maybe_os in |
126 | case $maybe_os in |
122 | nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \ |
127 | nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ |
123 | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*) |
128 | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ |
|
|
129 | knetbsd*-gnu* | netbsd*-gnu* | \ |
|
|
130 | kopensolaris*-gnu* | \ |
|
|
131 | storm-chaos* | os2-emx* | rtmk-nova*) |
124 | os=-$maybe_os |
132 | os=-$maybe_os |
125 | basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` |
133 | basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` |
126 | ;; |
134 | ;; |
127 | *) |
135 | *) |
128 | basic_machine=`echo $1 | sed 's/-[^-]*$//'` |
136 | basic_machine=`echo $1 | sed 's/-[^-]*$//'` |
… | |
… | |
144 | -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ |
152 | -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ |
145 | -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ |
153 | -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ |
146 | -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ |
154 | -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ |
147 | -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ |
155 | -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ |
148 | -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ |
156 | -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ |
149 | -apple | -axis | -knuth | -cray) |
157 | -apple | -axis | -knuth | -cray | -microblaze) |
150 | os= |
158 | os= |
151 | basic_machine=$1 |
159 | basic_machine=$1 |
|
|
160 | ;; |
|
|
161 | -bluegene*) |
|
|
162 | os=-cnk |
152 | ;; |
163 | ;; |
153 | -sim | -cisco | -oki | -wec | -winbond) |
164 | -sim | -cisco | -oki | -wec | -winbond) |
154 | os= |
165 | os= |
155 | basic_machine=$1 |
166 | basic_machine=$1 |
156 | ;; |
167 | ;; |
… | |
… | |
162 | ;; |
173 | ;; |
163 | -chorusos*) |
174 | -chorusos*) |
164 | os=-chorusos |
175 | os=-chorusos |
165 | basic_machine=$1 |
176 | basic_machine=$1 |
166 | ;; |
177 | ;; |
167 | -chorusrdb) |
178 | -chorusrdb) |
168 | os=-chorusrdb |
179 | os=-chorusrdb |
169 | basic_machine=$1 |
180 | basic_machine=$1 |
170 | ;; |
181 | ;; |
171 | -hiux*) |
182 | -hiux*) |
172 | os=-hiuxwe2 |
183 | os=-hiuxwe2 |
|
|
184 | ;; |
|
|
185 | -sco6) |
|
|
186 | os=-sco5v6 |
|
|
187 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
173 | ;; |
188 | ;; |
174 | -sco5) |
189 | -sco5) |
175 | os=-sco3.2v5 |
190 | os=-sco3.2v5 |
176 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
191 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
177 | ;; |
192 | ;; |
… | |
… | |
182 | -sco3.2.[4-9]*) |
197 | -sco3.2.[4-9]*) |
183 | os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` |
198 | os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` |
184 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
199 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
185 | ;; |
200 | ;; |
186 | -sco3.2v[4-9]*) |
201 | -sco3.2v[4-9]*) |
|
|
202 | # Don't forget version if it is 3.2v4 or newer. |
|
|
203 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
|
|
204 | ;; |
|
|
205 | -sco5v6*) |
187 | # Don't forget version if it is 3.2v4 or newer. |
206 | # Don't forget version if it is 3.2v4 or newer. |
188 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
207 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
189 | ;; |
208 | ;; |
190 | -sco*) |
209 | -sco*) |
191 | os=-sco3.2v2 |
210 | os=-sco3.2v2 |
… | |
… | |
229 | 1750a | 580 \ |
248 | 1750a | 580 \ |
230 | | a29k \ |
249 | | a29k \ |
231 | | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ |
250 | | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ |
232 | | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ |
251 | | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ |
233 | | am33_2.0 \ |
252 | | am33_2.0 \ |
234 | | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ |
253 | | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ |
|
|
254 | | be32 | be64 \ |
235 | | bfin \ |
255 | | bfin \ |
236 | | c4x | clipper \ |
256 | | c4x | clipper \ |
237 | | d10v | d30v | dlx | dsp16xx \ |
257 | | d10v | d30v | dlx | dsp16xx \ |
|
|
258 | | epiphany \ |
238 | | fr30 | frv \ |
259 | | fido | fr30 | frv \ |
239 | | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ |
260 | | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ |
|
|
261 | | hexagon \ |
240 | | i370 | i860 | i960 | ia64 \ |
262 | | i370 | i860 | i960 | ia64 \ |
241 | | ip2k | iq2000 \ |
263 | | ip2k | iq2000 \ |
|
|
264 | | le32 | le64 \ |
|
|
265 | | lm32 \ |
242 | | m32r | m32rle | m68000 | m68k | m88k | maxq | mcore \ |
266 | | m32c | m32r | m32rle | m68000 | m68k | m88k \ |
|
|
267 | | maxq | mb | microblaze | mcore | mep | metag \ |
243 | | mips | mipsbe | mipseb | mipsel | mipsle \ |
268 | | mips | mipsbe | mipseb | mipsel | mipsle \ |
244 | | mips16 \ |
269 | | mips16 \ |
245 | | mips64 | mips64el \ |
270 | | mips64 | mips64el \ |
|
|
271 | | mips64octeon | mips64octeonel \ |
|
|
272 | | mips64orion | mips64orionel \ |
|
|
273 | | mips64r5900 | mips64r5900el \ |
246 | | mips64vr | mips64vrel \ |
274 | | mips64vr | mips64vrel \ |
247 | | mips64orion | mips64orionel \ |
|
|
248 | | mips64vr4100 | mips64vr4100el \ |
275 | | mips64vr4100 | mips64vr4100el \ |
249 | | mips64vr4300 | mips64vr4300el \ |
276 | | mips64vr4300 | mips64vr4300el \ |
250 | | mips64vr5000 | mips64vr5000el \ |
277 | | mips64vr5000 | mips64vr5000el \ |
251 | | mips64vr5900 | mips64vr5900el \ |
278 | | mips64vr5900 | mips64vr5900el \ |
252 | | mipsisa32 | mipsisa32el \ |
279 | | mipsisa32 | mipsisa32el \ |
… | |
… | |
255 | | mipsisa64r2 | mipsisa64r2el \ |
282 | | mipsisa64r2 | mipsisa64r2el \ |
256 | | mipsisa64sb1 | mipsisa64sb1el \ |
283 | | mipsisa64sb1 | mipsisa64sb1el \ |
257 | | mipsisa64sr71k | mipsisa64sr71kel \ |
284 | | mipsisa64sr71k | mipsisa64sr71kel \ |
258 | | mipstx39 | mipstx39el \ |
285 | | mipstx39 | mipstx39el \ |
259 | | mn10200 | mn10300 \ |
286 | | mn10200 | mn10300 \ |
|
|
287 | | moxie \ |
260 | | ms1 \ |
288 | | mt \ |
261 | | msp430 \ |
289 | | msp430 \ |
|
|
290 | | nds32 | nds32le | nds32be \ |
|
|
291 | | nios | nios2 \ |
262 | | ns16k | ns32k \ |
292 | | ns16k | ns32k \ |
|
|
293 | | open8 \ |
263 | | or32 \ |
294 | | or32 \ |
264 | | pdp10 | pdp11 | pj | pjl \ |
295 | | pdp10 | pdp11 | pj | pjl \ |
265 | | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ |
296 | | powerpc | powerpc64 | powerpc64le | powerpcle \ |
266 | | pyramid \ |
297 | | pyramid \ |
|
|
298 | | rl78 | rx \ |
|
|
299 | | score \ |
267 | | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ |
300 | | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ |
268 | | sh64 | sh64le \ |
301 | | sh64 | sh64le \ |
269 | | sparc | sparc64 | sparc64b | sparc86x | sparclet | sparclite \ |
302 | | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ |
270 | | sparcv8 | sparcv9 | sparcv9b \ |
303 | | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ |
271 | | strongarm \ |
304 | | spu \ |
272 | | tahoe | thumb | tic4x | tic80 | tron \ |
305 | | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \ |
273 | | v850 | v850e \ |
306 | | ubicom32 \ |
|
|
307 | | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \ |
274 | | we32k \ |
308 | | we32k \ |
275 | | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \ |
309 | | x86 | xc16x | xstormy16 | xtensa \ |
276 | | z8k) |
310 | | z8k | z80) |
277 | basic_machine=$basic_machine-unknown |
311 | basic_machine=$basic_machine-unknown |
278 | ;; |
312 | ;; |
279 | m32c) |
313 | c54x) |
|
|
314 | basic_machine=tic54x-unknown |
|
|
315 | ;; |
|
|
316 | c55x) |
|
|
317 | basic_machine=tic55x-unknown |
|
|
318 | ;; |
|
|
319 | c6x) |
280 | basic_machine=$basic_machine-unknown |
320 | basic_machine=tic6x-unknown |
281 | ;; |
321 | ;; |
282 | m6811 | m68hc11 | m6812 | m68hc12) |
322 | m6811 | m68hc11 | m6812 | m68hc12 | picochip) |
283 | # Motorola 68HC11/12. |
323 | # Motorola 68HC11/12. |
284 | basic_machine=$basic_machine-unknown |
324 | basic_machine=$basic_machine-unknown |
285 | os=-none |
325 | os=-none |
286 | ;; |
326 | ;; |
287 | m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) |
327 | m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) |
|
|
328 | ;; |
|
|
329 | ms1) |
|
|
330 | basic_machine=mt-unknown |
|
|
331 | ;; |
|
|
332 | |
|
|
333 | strongarm | thumb | xscale) |
|
|
334 | basic_machine=arm-unknown |
|
|
335 | ;; |
|
|
336 | |
|
|
337 | xscaleeb) |
|
|
338 | basic_machine=armeb-unknown |
|
|
339 | ;; |
|
|
340 | |
|
|
341 | xscaleel) |
|
|
342 | basic_machine=armel-unknown |
288 | ;; |
343 | ;; |
289 | |
344 | |
290 | # We use `pc' rather than `unknown' |
345 | # We use `pc' rather than `unknown' |
291 | # because (1) that's what they normally are, and |
346 | # because (1) that's what they normally are, and |
292 | # (2) the word "unknown" tends to confuse beginning users. |
347 | # (2) the word "unknown" tends to confuse beginning users. |
… | |
… | |
303 | | a29k-* \ |
358 | | a29k-* \ |
304 | | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ |
359 | | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ |
305 | | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ |
360 | | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ |
306 | | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ |
361 | | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ |
307 | | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ |
362 | | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ |
308 | | avr-* \ |
363 | | avr-* | avr32-* \ |
|
|
364 | | be32-* | be64-* \ |
309 | | bfin-* | bs2000-* \ |
365 | | bfin-* | bs2000-* \ |
310 | | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ |
366 | | c[123]* | c30-* | [cjt]90-* | c4x-* \ |
311 | | clipper-* | craynv-* | cydra-* \ |
367 | | clipper-* | craynv-* | cydra-* \ |
312 | | d10v-* | d30v-* | dlx-* \ |
368 | | d10v-* | d30v-* | dlx-* \ |
313 | | elxsi-* \ |
369 | | elxsi-* \ |
314 | | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \ |
370 | | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ |
315 | | h8300-* | h8500-* \ |
371 | | h8300-* | h8500-* \ |
316 | | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ |
372 | | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ |
|
|
373 | | hexagon-* \ |
317 | | i*86-* | i860-* | i960-* | ia64-* \ |
374 | | i*86-* | i860-* | i960-* | ia64-* \ |
318 | | ip2k-* | iq2000-* \ |
375 | | ip2k-* | iq2000-* \ |
|
|
376 | | le32-* | le64-* \ |
|
|
377 | | lm32-* \ |
319 | | m32r-* | m32rle-* \ |
378 | | m32c-* | m32r-* | m32rle-* \ |
320 | | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ |
379 | | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ |
321 | | m88110-* | m88k-* | maxq-* | mcore-* \ |
380 | | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \ |
322 | | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ |
381 | | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ |
323 | | mips16-* \ |
382 | | mips16-* \ |
324 | | mips64-* | mips64el-* \ |
383 | | mips64-* | mips64el-* \ |
|
|
384 | | mips64octeon-* | mips64octeonel-* \ |
|
|
385 | | mips64orion-* | mips64orionel-* \ |
|
|
386 | | mips64r5900-* | mips64r5900el-* \ |
325 | | mips64vr-* | mips64vrel-* \ |
387 | | mips64vr-* | mips64vrel-* \ |
326 | | mips64orion-* | mips64orionel-* \ |
|
|
327 | | mips64vr4100-* | mips64vr4100el-* \ |
388 | | mips64vr4100-* | mips64vr4100el-* \ |
328 | | mips64vr4300-* | mips64vr4300el-* \ |
389 | | mips64vr4300-* | mips64vr4300el-* \ |
329 | | mips64vr5000-* | mips64vr5000el-* \ |
390 | | mips64vr5000-* | mips64vr5000el-* \ |
330 | | mips64vr5900-* | mips64vr5900el-* \ |
391 | | mips64vr5900-* | mips64vr5900el-* \ |
331 | | mipsisa32-* | mipsisa32el-* \ |
392 | | mipsisa32-* | mipsisa32el-* \ |
… | |
… | |
334 | | mipsisa64r2-* | mipsisa64r2el-* \ |
395 | | mipsisa64r2-* | mipsisa64r2el-* \ |
335 | | mipsisa64sb1-* | mipsisa64sb1el-* \ |
396 | | mipsisa64sb1-* | mipsisa64sb1el-* \ |
336 | | mipsisa64sr71k-* | mipsisa64sr71kel-* \ |
397 | | mipsisa64sr71k-* | mipsisa64sr71kel-* \ |
337 | | mipstx39-* | mipstx39el-* \ |
398 | | mipstx39-* | mipstx39el-* \ |
338 | | mmix-* \ |
399 | | mmix-* \ |
339 | | ms1-* \ |
400 | | mt-* \ |
340 | | msp430-* \ |
401 | | msp430-* \ |
|
|
402 | | nds32-* | nds32le-* | nds32be-* \ |
|
|
403 | | nios-* | nios2-* \ |
341 | | none-* | np1-* | ns16k-* | ns32k-* \ |
404 | | none-* | np1-* | ns16k-* | ns32k-* \ |
|
|
405 | | open8-* \ |
342 | | orion-* \ |
406 | | orion-* \ |
343 | | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ |
407 | | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ |
344 | | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ |
408 | | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \ |
345 | | pyramid-* \ |
409 | | pyramid-* \ |
346 | | romp-* | rs6000-* \ |
410 | | rl78-* | romp-* | rs6000-* | rx-* \ |
347 | | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | shbe-* \ |
411 | | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ |
348 | | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ |
412 | | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ |
349 | | sparc-* | sparc64-* | sparc64b-* | sparc86x-* | sparclet-* \ |
413 | | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ |
350 | | sparclite-* \ |
414 | | sparclite-* \ |
351 | | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ |
415 | | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \ |
352 | | tahoe-* | thumb-* \ |
416 | | tahoe-* \ |
353 | | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ |
417 | | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ |
|
|
418 | | tile*-* \ |
354 | | tron-* \ |
419 | | tron-* \ |
355 | | v850-* | v850e-* | vax-* \ |
420 | | ubicom32-* \ |
|
|
421 | | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \ |
|
|
422 | | vax-* \ |
356 | | we32k-* \ |
423 | | we32k-* \ |
357 | | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \ |
424 | | x86-* | x86_64-* | xc16x-* | xps100-* \ |
358 | | xstormy16-* | xtensa-* \ |
425 | | xstormy16-* | xtensa*-* \ |
359 | | ymp-* \ |
426 | | ymp-* \ |
360 | | z8k-*) |
427 | | z8k-* | z80-*) |
361 | ;; |
428 | ;; |
362 | m32c-*) |
429 | # Recognize the basic CPU types without company name, with glob match. |
|
|
430 | xtensa*) |
|
|
431 | basic_machine=$basic_machine-unknown |
363 | ;; |
432 | ;; |
364 | # Recognize the various machine names and aliases which stand |
433 | # Recognize the various machine names and aliases which stand |
365 | # for a CPU type and a company and sometimes even an OS. |
434 | # for a CPU type and a company and sometimes even an OS. |
366 | 386bsd) |
435 | 386bsd) |
367 | basic_machine=i386-unknown |
436 | basic_machine=i386-unknown |
… | |
… | |
375 | ;; |
444 | ;; |
376 | a29khif) |
445 | a29khif) |
377 | basic_machine=a29k-amd |
446 | basic_machine=a29k-amd |
378 | os=-udi |
447 | os=-udi |
379 | ;; |
448 | ;; |
380 | abacus) |
449 | abacus) |
381 | basic_machine=abacus-unknown |
450 | basic_machine=abacus-unknown |
382 | ;; |
451 | ;; |
383 | adobe68k) |
452 | adobe68k) |
384 | basic_machine=m68010-adobe |
453 | basic_machine=m68010-adobe |
385 | os=-scout |
454 | os=-scout |
… | |
… | |
421 | ;; |
490 | ;; |
422 | apollo68bsd) |
491 | apollo68bsd) |
423 | basic_machine=m68k-apollo |
492 | basic_machine=m68k-apollo |
424 | os=-bsd |
493 | os=-bsd |
425 | ;; |
494 | ;; |
|
|
495 | aros) |
|
|
496 | basic_machine=i386-pc |
|
|
497 | os=-aros |
|
|
498 | ;; |
426 | aux) |
499 | aux) |
427 | basic_machine=m68k-apple |
500 | basic_machine=m68k-apple |
428 | os=-aux |
501 | os=-aux |
429 | ;; |
502 | ;; |
430 | balance) |
503 | balance) |
431 | basic_machine=ns32k-sequent |
504 | basic_machine=ns32k-sequent |
432 | os=-dynix |
505 | os=-dynix |
433 | ;; |
506 | ;; |
|
|
507 | blackfin) |
|
|
508 | basic_machine=bfin-unknown |
|
|
509 | os=-linux |
|
|
510 | ;; |
|
|
511 | blackfin-*) |
|
|
512 | basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` |
|
|
513 | os=-linux |
|
|
514 | ;; |
|
|
515 | bluegene*) |
|
|
516 | basic_machine=powerpc-ibm |
|
|
517 | os=-cnk |
|
|
518 | ;; |
|
|
519 | c54x-*) |
|
|
520 | basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'` |
|
|
521 | ;; |
|
|
522 | c55x-*) |
|
|
523 | basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'` |
|
|
524 | ;; |
|
|
525 | c6x-*) |
|
|
526 | basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'` |
|
|
527 | ;; |
434 | c90) |
528 | c90) |
435 | basic_machine=c90-cray |
529 | basic_machine=c90-cray |
436 | os=-unicos |
530 | os=-unicos |
437 | ;; |
531 | ;; |
|
|
532 | cegcc) |
|
|
533 | basic_machine=arm-unknown |
|
|
534 | os=-cegcc |
|
|
535 | ;; |
438 | convex-c1) |
536 | convex-c1) |
439 | basic_machine=c1-convex |
537 | basic_machine=c1-convex |
440 | os=-bsd |
538 | os=-bsd |
441 | ;; |
539 | ;; |
442 | convex-c2) |
540 | convex-c2) |
… | |
… | |
461 | ;; |
559 | ;; |
462 | craynv) |
560 | craynv) |
463 | basic_machine=craynv-cray |
561 | basic_machine=craynv-cray |
464 | os=-unicosmp |
562 | os=-unicosmp |
465 | ;; |
563 | ;; |
466 | cr16c) |
564 | cr16 | cr16-*) |
467 | basic_machine=cr16c-unknown |
565 | basic_machine=cr16-unknown |
468 | os=-elf |
566 | os=-elf |
469 | ;; |
567 | ;; |
470 | crds | unos) |
568 | crds | unos) |
471 | basic_machine=m68k-crds |
569 | basic_machine=m68k-crds |
472 | ;; |
570 | ;; |
… | |
… | |
499 | basic_machine=m68k-motorola |
597 | basic_machine=m68k-motorola |
500 | ;; |
598 | ;; |
501 | delta88) |
599 | delta88) |
502 | basic_machine=m88k-motorola |
600 | basic_machine=m88k-motorola |
503 | os=-sysv3 |
601 | os=-sysv3 |
|
|
602 | ;; |
|
|
603 | dicos) |
|
|
604 | basic_machine=i686-pc |
|
|
605 | os=-dicos |
504 | ;; |
606 | ;; |
505 | djgpp) |
607 | djgpp) |
506 | basic_machine=i586-pc |
608 | basic_machine=i586-pc |
507 | os=-msdosdjgpp |
609 | os=-msdosdjgpp |
508 | ;; |
610 | ;; |
… | |
… | |
654 | ;; |
756 | ;; |
655 | isi68 | isi) |
757 | isi68 | isi) |
656 | basic_machine=m68k-isi |
758 | basic_machine=m68k-isi |
657 | os=-sysv |
759 | os=-sysv |
658 | ;; |
760 | ;; |
|
|
761 | m68knommu) |
|
|
762 | basic_machine=m68k-unknown |
|
|
763 | os=-linux |
|
|
764 | ;; |
|
|
765 | m68knommu-*) |
|
|
766 | basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` |
|
|
767 | os=-linux |
|
|
768 | ;; |
659 | m88k-omron*) |
769 | m88k-omron*) |
660 | basic_machine=m88k-omron |
770 | basic_machine=m88k-omron |
661 | ;; |
771 | ;; |
662 | magnum | m3230) |
772 | magnum | m3230) |
663 | basic_machine=mips-mips |
773 | basic_machine=mips-mips |
… | |
… | |
665 | ;; |
775 | ;; |
666 | merlin) |
776 | merlin) |
667 | basic_machine=ns32k-utek |
777 | basic_machine=ns32k-utek |
668 | os=-sysv |
778 | os=-sysv |
669 | ;; |
779 | ;; |
|
|
780 | microblaze) |
|
|
781 | basic_machine=microblaze-xilinx |
|
|
782 | ;; |
670 | mingw32) |
783 | mingw32) |
671 | basic_machine=i386-pc |
784 | basic_machine=i386-pc |
672 | os=-mingw32 |
785 | os=-mingw32 |
673 | ;; |
786 | ;; |
|
|
787 | mingw32ce) |
|
|
788 | basic_machine=arm-unknown |
|
|
789 | os=-mingw32ce |
|
|
790 | ;; |
674 | miniframe) |
791 | miniframe) |
675 | basic_machine=m68000-convergent |
792 | basic_machine=m68000-convergent |
676 | ;; |
793 | ;; |
677 | *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) |
794 | *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) |
678 | basic_machine=m68k-atari |
795 | basic_machine=m68k-atari |
… | |
… | |
694 | ;; |
811 | ;; |
695 | msdos) |
812 | msdos) |
696 | basic_machine=i386-pc |
813 | basic_machine=i386-pc |
697 | os=-msdos |
814 | os=-msdos |
698 | ;; |
815 | ;; |
|
|
816 | ms1-*) |
|
|
817 | basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` |
|
|
818 | ;; |
|
|
819 | msys) |
|
|
820 | basic_machine=i386-pc |
|
|
821 | os=-msys |
|
|
822 | ;; |
699 | mvs) |
823 | mvs) |
700 | basic_machine=i370-ibm |
824 | basic_machine=i370-ibm |
701 | os=-mvs |
825 | os=-mvs |
|
|
826 | ;; |
|
|
827 | nacl) |
|
|
828 | basic_machine=le32-unknown |
|
|
829 | os=-nacl |
702 | ;; |
830 | ;; |
703 | ncr3000) |
831 | ncr3000) |
704 | basic_machine=i486-ncr |
832 | basic_machine=i486-ncr |
705 | os=-sysv4 |
833 | os=-sysv4 |
706 | ;; |
834 | ;; |
… | |
… | |
762 | os=-nonstopux |
890 | os=-nonstopux |
763 | ;; |
891 | ;; |
764 | np1) |
892 | np1) |
765 | basic_machine=np1-gould |
893 | basic_machine=np1-gould |
766 | ;; |
894 | ;; |
|
|
895 | neo-tandem) |
|
|
896 | basic_machine=neo-tandem |
|
|
897 | ;; |
|
|
898 | nse-tandem) |
|
|
899 | basic_machine=nse-tandem |
|
|
900 | ;; |
767 | nsr-tandem) |
901 | nsr-tandem) |
768 | basic_machine=nsr-tandem |
902 | basic_machine=nsr-tandem |
769 | ;; |
903 | ;; |
770 | op50n-* | op60c-*) |
904 | op50n-* | op60c-*) |
771 | basic_machine=hppa1.1-oki |
905 | basic_machine=hppa1.1-oki |
… | |
… | |
792 | ;; |
926 | ;; |
793 | paragon) |
927 | paragon) |
794 | basic_machine=i860-intel |
928 | basic_machine=i860-intel |
795 | os=-osf |
929 | os=-osf |
796 | ;; |
930 | ;; |
|
|
931 | parisc) |
|
|
932 | basic_machine=hppa-unknown |
|
|
933 | os=-linux |
|
|
934 | ;; |
|
|
935 | parisc-*) |
|
|
936 | basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` |
|
|
937 | os=-linux |
|
|
938 | ;; |
797 | pbd) |
939 | pbd) |
798 | basic_machine=sparc-tti |
940 | basic_machine=sparc-tti |
799 | ;; |
941 | ;; |
800 | pbb) |
942 | pbb) |
801 | basic_machine=m68k-tti |
943 | basic_machine=m68k-tti |
802 | ;; |
944 | ;; |
803 | pc532 | pc532-*) |
945 | pc532 | pc532-*) |
804 | basic_machine=ns32k-pc532 |
946 | basic_machine=ns32k-pc532 |
805 | ;; |
947 | ;; |
|
|
948 | pc98) |
|
|
949 | basic_machine=i386-pc |
|
|
950 | ;; |
|
|
951 | pc98-*) |
|
|
952 | basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` |
|
|
953 | ;; |
806 | pentium | p5 | k5 | k6 | nexgen | viac3) |
954 | pentium | p5 | k5 | k6 | nexgen | viac3) |
807 | basic_machine=i586-pc |
955 | basic_machine=i586-pc |
808 | ;; |
956 | ;; |
809 | pentiumpro | p6 | 6x86 | athlon | athlon_*) |
957 | pentiumpro | p6 | 6x86 | athlon | athlon_*) |
810 | basic_machine=i686-pc |
958 | basic_machine=i686-pc |
… | |
… | |
830 | pn) |
978 | pn) |
831 | basic_machine=pn-gould |
979 | basic_machine=pn-gould |
832 | ;; |
980 | ;; |
833 | power) basic_machine=power-ibm |
981 | power) basic_machine=power-ibm |
834 | ;; |
982 | ;; |
835 | ppc) basic_machine=powerpc-unknown |
983 | ppc | ppcbe) basic_machine=powerpc-unknown |
836 | ;; |
984 | ;; |
|
|
985 | ppc-* | ppcbe-*) |
837 | ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` |
986 | basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` |
838 | ;; |
987 | ;; |
839 | ppcle | powerpclittle | ppc-le | powerpc-little) |
988 | ppcle | powerpclittle | ppc-le | powerpc-little) |
840 | basic_machine=powerpcle-unknown |
989 | basic_machine=powerpcle-unknown |
841 | ;; |
990 | ;; |
842 | ppcle-* | powerpclittle-*) |
991 | ppcle-* | powerpclittle-*) |
… | |
… | |
857 | ;; |
1006 | ;; |
858 | pw32) |
1007 | pw32) |
859 | basic_machine=i586-unknown |
1008 | basic_machine=i586-unknown |
860 | os=-pw32 |
1009 | os=-pw32 |
861 | ;; |
1010 | ;; |
|
|
1011 | rdos) |
|
|
1012 | basic_machine=i386-pc |
|
|
1013 | os=-rdos |
|
|
1014 | ;; |
862 | rom68k) |
1015 | rom68k) |
863 | basic_machine=m68k-rom68k |
1016 | basic_machine=m68k-rom68k |
864 | os=-coff |
1017 | os=-coff |
865 | ;; |
1018 | ;; |
866 | rm[46]00) |
1019 | rm[46]00) |
… | |
… | |
883 | basic_machine=mipsisa64sb1-unknown |
1036 | basic_machine=mipsisa64sb1-unknown |
884 | ;; |
1037 | ;; |
885 | sb1el) |
1038 | sb1el) |
886 | basic_machine=mipsisa64sb1el-unknown |
1039 | basic_machine=mipsisa64sb1el-unknown |
887 | ;; |
1040 | ;; |
|
|
1041 | sde) |
|
|
1042 | basic_machine=mipsisa32-sde |
|
|
1043 | os=-elf |
|
|
1044 | ;; |
888 | sei) |
1045 | sei) |
889 | basic_machine=mips-sei |
1046 | basic_machine=mips-sei |
890 | os=-seiux |
1047 | os=-seiux |
891 | ;; |
1048 | ;; |
892 | sequent) |
1049 | sequent) |
… | |
… | |
894 | ;; |
1051 | ;; |
895 | sh) |
1052 | sh) |
896 | basic_machine=sh-hitachi |
1053 | basic_machine=sh-hitachi |
897 | os=-hms |
1054 | os=-hms |
898 | ;; |
1055 | ;; |
|
|
1056 | sh5el) |
|
|
1057 | basic_machine=sh5le-unknown |
|
|
1058 | ;; |
899 | sh64) |
1059 | sh64) |
900 | basic_machine=sh64-unknown |
1060 | basic_machine=sh64-unknown |
901 | ;; |
1061 | ;; |
902 | sparclite-wrs | simso-wrs) |
1062 | sparclite-wrs | simso-wrs) |
903 | basic_machine=sparclite-wrs |
1063 | basic_machine=sparclite-wrs |
… | |
… | |
915 | ;; |
1075 | ;; |
916 | stratus) |
1076 | stratus) |
917 | basic_machine=i860-stratus |
1077 | basic_machine=i860-stratus |
918 | os=-sysv4 |
1078 | os=-sysv4 |
919 | ;; |
1079 | ;; |
|
|
1080 | strongarm-* | thumb-*) |
|
|
1081 | basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'` |
|
|
1082 | ;; |
920 | sun2) |
1083 | sun2) |
921 | basic_machine=m68000-sun |
1084 | basic_machine=m68000-sun |
922 | ;; |
1085 | ;; |
923 | sun2os3) |
1086 | sun2os3) |
924 | basic_machine=m68000-sun |
1087 | basic_machine=m68000-sun |
… | |
… | |
971 | ;; |
1134 | ;; |
972 | t90) |
1135 | t90) |
973 | basic_machine=t90-cray |
1136 | basic_machine=t90-cray |
974 | os=-unicos |
1137 | os=-unicos |
975 | ;; |
1138 | ;; |
976 | tic54x | c54x*) |
1139 | tile*) |
977 | basic_machine=tic54x-unknown |
|
|
978 | os=-coff |
|
|
979 | ;; |
|
|
980 | tic55x | c55x*) |
|
|
981 | basic_machine=tic55x-unknown |
|
|
982 | os=-coff |
|
|
983 | ;; |
|
|
984 | tic6x | c6x*) |
|
|
985 | basic_machine=tic6x-unknown |
1140 | basic_machine=$basic_machine-unknown |
986 | os=-coff |
1141 | os=-linux-gnu |
987 | ;; |
1142 | ;; |
988 | tx39) |
1143 | tx39) |
989 | basic_machine=mipstx39-unknown |
1144 | basic_machine=mipstx39-unknown |
990 | ;; |
1145 | ;; |
991 | tx39el) |
1146 | tx39el) |
… | |
… | |
1050 | os=-mingw32 |
1205 | os=-mingw32 |
1051 | ;; |
1206 | ;; |
1052 | xps | xps100) |
1207 | xps | xps100) |
1053 | basic_machine=xps100-honeywell |
1208 | basic_machine=xps100-honeywell |
1054 | ;; |
1209 | ;; |
|
|
1210 | xscale-* | xscalee[bl]-*) |
|
|
1211 | basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'` |
|
|
1212 | ;; |
1055 | ymp) |
1213 | ymp) |
1056 | basic_machine=ymp-cray |
1214 | basic_machine=ymp-cray |
1057 | os=-unicos |
1215 | os=-unicos |
1058 | ;; |
1216 | ;; |
1059 | z8k-*-coff) |
1217 | z8k-*-coff) |
1060 | basic_machine=z8k-unknown |
1218 | basic_machine=z8k-unknown |
|
|
1219 | os=-sim |
|
|
1220 | ;; |
|
|
1221 | z80-*-coff) |
|
|
1222 | basic_machine=z80-unknown |
1061 | os=-sim |
1223 | os=-sim |
1062 | ;; |
1224 | ;; |
1063 | none) |
1225 | none) |
1064 | basic_machine=none-none |
1226 | basic_machine=none-none |
1065 | os=-none |
1227 | os=-none |
… | |
… | |
1096 | basic_machine=pdp11-dec |
1258 | basic_machine=pdp11-dec |
1097 | ;; |
1259 | ;; |
1098 | we32k) |
1260 | we32k) |
1099 | basic_machine=we32k-att |
1261 | basic_machine=we32k-att |
1100 | ;; |
1262 | ;; |
1101 | sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele) |
1263 | sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) |
1102 | basic_machine=sh-unknown |
1264 | basic_machine=sh-unknown |
1103 | ;; |
1265 | ;; |
1104 | sparc | sparcv8 | sparcv9 | sparcv9b) |
1266 | sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) |
1105 | basic_machine=sparc-sun |
1267 | basic_machine=sparc-sun |
1106 | ;; |
1268 | ;; |
1107 | cydra) |
1269 | cydra) |
1108 | basic_machine=cydra-cydrome |
1270 | basic_machine=cydra-cydrome |
1109 | ;; |
1271 | ;; |
… | |
… | |
1143 | # Decode manufacturer-specific aliases for certain operating systems. |
1305 | # Decode manufacturer-specific aliases for certain operating systems. |
1144 | |
1306 | |
1145 | if [ x"$os" != x"" ] |
1307 | if [ x"$os" != x"" ] |
1146 | then |
1308 | then |
1147 | case $os in |
1309 | case $os in |
1148 | # First match some system type aliases |
1310 | # First match some system type aliases |
1149 | # that might get confused with valid system types. |
1311 | # that might get confused with valid system types. |
1150 | # -solaris* is a basic system type, with this one exception. |
1312 | # -solaris* is a basic system type, with this one exception. |
|
|
1313 | -auroraux) |
|
|
1314 | os=-auroraux |
|
|
1315 | ;; |
1151 | -solaris1 | -solaris1.*) |
1316 | -solaris1 | -solaris1.*) |
1152 | os=`echo $os | sed -e 's|solaris1|sunos4|'` |
1317 | os=`echo $os | sed -e 's|solaris1|sunos4|'` |
1153 | ;; |
1318 | ;; |
1154 | -solaris) |
1319 | -solaris) |
1155 | os=-solaris2 |
1320 | os=-solaris2 |
… | |
… | |
1166 | # First accept the basic system types. |
1331 | # First accept the basic system types. |
1167 | # The portable systems comes first. |
1332 | # The portable systems comes first. |
1168 | # Each alternative MUST END IN A *, to match a version number. |
1333 | # Each alternative MUST END IN A *, to match a version number. |
1169 | # -sysv* is not here because it comes later, after sysvr4. |
1334 | # -sysv* is not here because it comes later, after sysvr4. |
1170 | -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ |
1335 | -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ |
1171 | | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ |
1336 | | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ |
1172 | | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ |
1337 | | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \ |
|
|
1338 | | -sym* | -kopensolaris* \ |
1173 | | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ |
1339 | | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ |
1174 | | -aos* \ |
1340 | | -aos* | -aros* \ |
1175 | | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ |
1341 | | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ |
1176 | | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ |
1342 | | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ |
1177 | | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \ |
1343 | | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ |
|
|
1344 | | -openbsd* | -solidbsd* \ |
1178 | | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ |
1345 | | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ |
1179 | | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ |
1346 | | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ |
1180 | | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ |
1347 | | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ |
1181 | | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ |
1348 | | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ |
1182 | | -chorusos* | -chorusrdb* \ |
1349 | | -chorusos* | -chorusrdb* | -cegcc* \ |
1183 | | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ |
1350 | | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ |
1184 | | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \ |
1351 | | -mingw32* | -linux-gnu* | -linux-android* \ |
|
|
1352 | | -linux-newlib* | -linux-uclibc* \ |
|
|
1353 | | -uxpv* | -beos* | -mpeix* | -udk* \ |
1185 | | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ |
1354 | | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ |
1186 | | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ |
1355 | | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ |
1187 | | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ |
1356 | | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ |
1188 | | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ |
1357 | | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ |
1189 | | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ |
1358 | | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ |
1190 | | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ |
1359 | | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ |
1191 | | -skyos* | -haiku*) |
1360 | | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*) |
1192 | # Remember, each alternative MUST END IN *, to match a version number. |
1361 | # Remember, each alternative MUST END IN *, to match a version number. |
1193 | ;; |
1362 | ;; |
1194 | -qnx*) |
1363 | -qnx*) |
1195 | case $basic_machine in |
1364 | case $basic_machine in |
1196 | x86-* | i*86-*) |
1365 | x86-* | i*86-*) |
… | |
… | |
1225 | os=`echo $os | sed -e 's|sunos6|solaris3|'` |
1394 | os=`echo $os | sed -e 's|sunos6|solaris3|'` |
1226 | ;; |
1395 | ;; |
1227 | -opened*) |
1396 | -opened*) |
1228 | os=-openedition |
1397 | os=-openedition |
1229 | ;; |
1398 | ;; |
1230 | -os400*) |
1399 | -os400*) |
1231 | os=-os400 |
1400 | os=-os400 |
1232 | ;; |
1401 | ;; |
1233 | -wince*) |
1402 | -wince*) |
1234 | os=-wince |
1403 | os=-wince |
1235 | ;; |
1404 | ;; |
… | |
… | |
1274 | os=`echo $os | sed -e 's|sinix|sysv|'` |
1443 | os=`echo $os | sed -e 's|sinix|sysv|'` |
1275 | ;; |
1444 | ;; |
1276 | -sinix*) |
1445 | -sinix*) |
1277 | os=-sysv4 |
1446 | os=-sysv4 |
1278 | ;; |
1447 | ;; |
1279 | -tpf*) |
1448 | -tpf*) |
1280 | os=-tpf |
1449 | os=-tpf |
1281 | ;; |
1450 | ;; |
1282 | -triton*) |
1451 | -triton*) |
1283 | os=-sysv3 |
1452 | os=-sysv3 |
1284 | ;; |
1453 | ;; |
… | |
… | |
1315 | -kaos*) |
1484 | -kaos*) |
1316 | os=-kaos |
1485 | os=-kaos |
1317 | ;; |
1486 | ;; |
1318 | -zvmoe) |
1487 | -zvmoe) |
1319 | os=-zvmoe |
1488 | os=-zvmoe |
|
|
1489 | ;; |
|
|
1490 | -dicos*) |
|
|
1491 | os=-dicos |
|
|
1492 | ;; |
|
|
1493 | -nacl*) |
1320 | ;; |
1494 | ;; |
1321 | -none) |
1495 | -none) |
1322 | ;; |
1496 | ;; |
1323 | *) |
1497 | *) |
1324 | # Get rid of the `-' at the beginning of $os. |
1498 | # Get rid of the `-' at the beginning of $os. |
… | |
… | |
1338 | # that MANUFACTURER isn't an operating system. Otherwise, code above |
1512 | # that MANUFACTURER isn't an operating system. Otherwise, code above |
1339 | # will signal an error saying that MANUFACTURER isn't an operating |
1513 | # will signal an error saying that MANUFACTURER isn't an operating |
1340 | # system, and we'll never get to this point. |
1514 | # system, and we'll never get to this point. |
1341 | |
1515 | |
1342 | case $basic_machine in |
1516 | case $basic_machine in |
|
|
1517 | score-*) |
|
|
1518 | os=-elf |
|
|
1519 | ;; |
|
|
1520 | spu-*) |
|
|
1521 | os=-elf |
|
|
1522 | ;; |
1343 | *-acorn) |
1523 | *-acorn) |
1344 | os=-riscix1.2 |
1524 | os=-riscix1.2 |
1345 | ;; |
1525 | ;; |
1346 | arm*-rebel) |
1526 | arm*-rebel) |
1347 | os=-linux |
1527 | os=-linux |
1348 | ;; |
1528 | ;; |
1349 | arm*-semi) |
1529 | arm*-semi) |
1350 | os=-aout |
1530 | os=-aout |
1351 | ;; |
1531 | ;; |
1352 | c4x-* | tic4x-*) |
1532 | c4x-* | tic4x-*) |
1353 | os=-coff |
1533 | os=-coff |
1354 | ;; |
1534 | ;; |
|
|
1535 | tic54x-*) |
|
|
1536 | os=-coff |
|
|
1537 | ;; |
|
|
1538 | tic55x-*) |
|
|
1539 | os=-coff |
|
|
1540 | ;; |
|
|
1541 | tic6x-*) |
|
|
1542 | os=-coff |
|
|
1543 | ;; |
1355 | # This must come before the *-dec entry. |
1544 | # This must come before the *-dec entry. |
1356 | pdp10-*) |
1545 | pdp10-*) |
1357 | os=-tops20 |
1546 | os=-tops20 |
1358 | ;; |
1547 | ;; |
1359 | pdp11-*) |
1548 | pdp11-*) |
… | |
… | |
1375 | # os=-sunos4 |
1564 | # os=-sunos4 |
1376 | ;; |
1565 | ;; |
1377 | m68*-cisco) |
1566 | m68*-cisco) |
1378 | os=-aout |
1567 | os=-aout |
1379 | ;; |
1568 | ;; |
|
|
1569 | mep-*) |
|
|
1570 | os=-elf |
|
|
1571 | ;; |
1380 | mips*-cisco) |
1572 | mips*-cisco) |
1381 | os=-elf |
1573 | os=-elf |
1382 | ;; |
1574 | ;; |
1383 | mips*-*) |
1575 | mips*-*) |
1384 | os=-elf |
1576 | os=-elf |
… | |
… | |
1399 | os=-haiku |
1591 | os=-haiku |
1400 | ;; |
1592 | ;; |
1401 | *-ibm) |
1593 | *-ibm) |
1402 | os=-aix |
1594 | os=-aix |
1403 | ;; |
1595 | ;; |
1404 | *-knuth) |
1596 | *-knuth) |
1405 | os=-mmixware |
1597 | os=-mmixware |
1406 | ;; |
1598 | ;; |
1407 | *-wec) |
1599 | *-wec) |
1408 | os=-proelf |
1600 | os=-proelf |
1409 | ;; |
1601 | ;; |
… | |
… | |
1504 | vendor=acorn |
1696 | vendor=acorn |
1505 | ;; |
1697 | ;; |
1506 | -sunos*) |
1698 | -sunos*) |
1507 | vendor=sun |
1699 | vendor=sun |
1508 | ;; |
1700 | ;; |
1509 | -aix*) |
1701 | -cnk*|-aix*) |
1510 | vendor=ibm |
1702 | vendor=ibm |
1511 | ;; |
1703 | ;; |
1512 | -beos*) |
1704 | -beos*) |
1513 | vendor=be |
1705 | vendor=be |
1514 | ;; |
1706 | ;; |