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 | # Inc. |
5 | |
6 | |
6 | timestamp='2005-04-22' |
7 | timestamp='2006-09-20' |
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 \ |
234 | | bfin \ |
245 | | bfin \ |
235 | | c4x | clipper \ |
246 | | c4x | clipper \ |
236 | | d10v | d30v | dlx | dsp16xx \ |
247 | | d10v | d30v | dlx | dsp16xx \ |
237 | | fr30 | frv \ |
248 | | fr30 | frv \ |
238 | | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ |
249 | | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ |
239 | | i370 | i860 | i960 | ia64 \ |
250 | | i370 | i860 | i960 | ia64 \ |
240 | | ip2k | iq2000 \ |
251 | | ip2k | iq2000 \ |
241 | | m32r | m32rle | m68000 | m68k | m88k | maxq | mcore \ |
252 | | m32c | m32r | m32rle | m68000 | m68k | m88k \ |
|
|
253 | | maxq | mb | microblaze | mcore \ |
242 | | mips | mipsbe | mipseb | mipsel | mipsle \ |
254 | | mips | mipsbe | mipseb | mipsel | mipsle \ |
243 | | mips16 \ |
255 | | mips16 \ |
244 | | mips64 | mips64el \ |
256 | | mips64 | mips64el \ |
245 | | mips64vr | mips64vrel \ |
257 | | mips64vr | mips64vrel \ |
246 | | mips64orion | mips64orionel \ |
258 | | mips64orion | mips64orionel \ |
247 | | mips64vr4100 | mips64vr4100el \ |
259 | | mips64vr4100 | mips64vr4100el \ |
248 | | mips64vr4300 | mips64vr4300el \ |
260 | | mips64vr4300 | mips64vr4300el \ |
249 | | mips64vr5000 | mips64vr5000el \ |
261 | | mips64vr5000 | mips64vr5000el \ |
|
|
262 | | mips64vr5900 | mips64vr5900el \ |
250 | | mipsisa32 | mipsisa32el \ |
263 | | mipsisa32 | mipsisa32el \ |
251 | | mipsisa32r2 | mipsisa32r2el \ |
264 | | mipsisa32r2 | mipsisa32r2el \ |
252 | | mipsisa64 | mipsisa64el \ |
265 | | mipsisa64 | mipsisa64el \ |
253 | | mipsisa64r2 | mipsisa64r2el \ |
266 | | mipsisa64r2 | mipsisa64r2el \ |
254 | | mipsisa64sb1 | mipsisa64sb1el \ |
267 | | mipsisa64sb1 | mipsisa64sb1el \ |
255 | | mipsisa64sr71k | mipsisa64sr71kel \ |
268 | | mipsisa64sr71k | mipsisa64sr71kel \ |
256 | | mipstx39 | mipstx39el \ |
269 | | mipstx39 | mipstx39el \ |
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 \ |
|
|
279 | | score \ |
264 | | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ |
280 | | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ |
265 | | sh64 | sh64le \ |
281 | | sh64 | sh64le \ |
266 | | sparc | sparc64 | sparc64b | sparc86x | sparclet | sparclite \ |
282 | | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ |
267 | | sparcv8 | sparcv9 | sparcv9b \ |
283 | | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ |
268 | | strongarm \ |
284 | | spu | strongarm \ |
269 | | tahoe | thumb | tic4x | tic80 | tron \ |
285 | | tahoe | thumb | tic4x | tic80 | tron \ |
270 | | v850 | v850e \ |
286 | | v850 | v850e \ |
271 | | we32k \ |
287 | | we32k \ |
272 | | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \ |
288 | | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \ |
273 | | z8k) |
289 | | z8k) |
274 | basic_machine=$basic_machine-unknown |
290 | basic_machine=$basic_machine-unknown |
275 | ;; |
291 | ;; |
276 | m6811 | m68hc11 | m6812 | m68hc12) |
292 | m6811 | m68hc11 | m6812 | m68hc12) |
277 | # Motorola 68HC11/12. |
293 | # Motorola 68HC11/12. |
278 | basic_machine=$basic_machine-unknown |
294 | basic_machine=$basic_machine-unknown |
279 | os=-none |
295 | os=-none |
280 | ;; |
296 | ;; |
281 | m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) |
297 | m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) |
|
|
298 | ;; |
|
|
299 | ms1) |
|
|
300 | basic_machine=mt-unknown |
282 | ;; |
301 | ;; |
283 | |
302 | |
284 | # We use `pc' rather than `unknown' |
303 | # We use `pc' rather than `unknown' |
285 | # because (1) that's what they normally are, and |
304 | # because (1) that's what they normally are, and |
286 | # (2) the word "unknown" tends to confuse beginning users. |
305 | # (2) the word "unknown" tends to confuse beginning users. |
… | |
… | |
297 | | a29k-* \ |
316 | | a29k-* \ |
298 | | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ |
317 | | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ |
299 | | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ |
318 | | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ |
300 | | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ |
319 | | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ |
301 | | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ |
320 | | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ |
302 | | avr-* \ |
321 | | avr-* | avr32-* \ |
303 | | bfin-* | bs2000-* \ |
322 | | bfin-* | bs2000-* \ |
304 | | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ |
323 | | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ |
305 | | clipper-* | craynv-* | cydra-* \ |
324 | | clipper-* | craynv-* | cydra-* \ |
306 | | d10v-* | d30v-* | dlx-* \ |
325 | | d10v-* | d30v-* | dlx-* \ |
307 | | elxsi-* \ |
326 | | elxsi-* \ |
308 | | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \ |
327 | | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \ |
309 | | h8300-* | h8500-* \ |
328 | | h8300-* | h8500-* \ |
310 | | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ |
329 | | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ |
311 | | i*86-* | i860-* | i960-* | ia64-* \ |
330 | | i*86-* | i860-* | i960-* | ia64-* \ |
312 | | ip2k-* | iq2000-* \ |
331 | | ip2k-* | iq2000-* \ |
313 | | m32r-* | m32rle-* \ |
332 | | m32c-* | m32r-* | m32rle-* \ |
314 | | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ |
333 | | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ |
315 | | m88110-* | m88k-* | maxq-* | mcore-* \ |
334 | | m88110-* | m88k-* | maxq-* | mcore-* \ |
316 | | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ |
335 | | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ |
317 | | mips16-* \ |
336 | | mips16-* \ |
318 | | mips64-* | mips64el-* \ |
337 | | mips64-* | mips64el-* \ |
319 | | mips64vr-* | mips64vrel-* \ |
338 | | mips64vr-* | mips64vrel-* \ |
320 | | mips64orion-* | mips64orionel-* \ |
339 | | mips64orion-* | mips64orionel-* \ |
321 | | mips64vr4100-* | mips64vr4100el-* \ |
340 | | mips64vr4100-* | mips64vr4100el-* \ |
322 | | mips64vr4300-* | mips64vr4300el-* \ |
341 | | mips64vr4300-* | mips64vr4300el-* \ |
323 | | mips64vr5000-* | mips64vr5000el-* \ |
342 | | mips64vr5000-* | mips64vr5000el-* \ |
|
|
343 | | mips64vr5900-* | mips64vr5900el-* \ |
324 | | mipsisa32-* | mipsisa32el-* \ |
344 | | mipsisa32-* | mipsisa32el-* \ |
325 | | mipsisa32r2-* | mipsisa32r2el-* \ |
345 | | mipsisa32r2-* | mipsisa32r2el-* \ |
326 | | mipsisa64-* | mipsisa64el-* \ |
346 | | mipsisa64-* | mipsisa64el-* \ |
327 | | mipsisa64r2-* | mipsisa64r2el-* \ |
347 | | mipsisa64r2-* | mipsisa64r2el-* \ |
328 | | mipsisa64sb1-* | mipsisa64sb1el-* \ |
348 | | mipsisa64sb1-* | mipsisa64sb1el-* \ |
329 | | mipsisa64sr71k-* | mipsisa64sr71kel-* \ |
349 | | mipsisa64sr71k-* | mipsisa64sr71kel-* \ |
330 | | mipstx39-* | mipstx39el-* \ |
350 | | mipstx39-* | mipstx39el-* \ |
331 | | mmix-* \ |
351 | | mmix-* \ |
|
|
352 | | mt-* \ |
332 | | msp430-* \ |
353 | | msp430-* \ |
|
|
354 | | nios-* | nios2-* \ |
333 | | none-* | np1-* | ns16k-* | ns32k-* \ |
355 | | none-* | np1-* | ns16k-* | ns32k-* \ |
334 | | orion-* \ |
356 | | orion-* \ |
335 | | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ |
357 | | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ |
336 | | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ |
358 | | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ |
337 | | pyramid-* \ |
359 | | pyramid-* \ |
338 | | romp-* | rs6000-* \ |
360 | | romp-* | rs6000-* \ |
339 | | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \ |
361 | | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ |
340 | | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ |
362 | | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ |
341 | | sparc-* | sparc64-* | sparc64b-* | sparc86x-* | sparclet-* \ |
363 | | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ |
342 | | sparclite-* \ |
364 | | sparclite-* \ |
343 | | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ |
365 | | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \ |
344 | | tahoe-* | thumb-* \ |
366 | | tahoe-* | thumb-* \ |
345 | | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ |
367 | | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ |
346 | | tron-* \ |
368 | | tron-* \ |
347 | | v850-* | v850e-* | vax-* \ |
369 | | v850-* | v850e-* | vax-* \ |
348 | | we32k-* \ |
370 | | we32k-* \ |
349 | | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \ |
371 | | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \ |
350 | | xstormy16-* | xtensa-* \ |
372 | | xstormy16-* | xtensa-* \ |
351 | | ymp-* \ |
373 | | ymp-* \ |
352 | | z8k-*) |
374 | | z8k-*) |
353 | ;; |
375 | ;; |
354 | # Recognize the various machine names and aliases which stand |
376 | # Recognize the various machine names and aliases which stand |
… | |
… | |
683 | os=-morphos |
705 | os=-morphos |
684 | ;; |
706 | ;; |
685 | msdos) |
707 | msdos) |
686 | basic_machine=i386-pc |
708 | basic_machine=i386-pc |
687 | os=-msdos |
709 | os=-msdos |
|
|
710 | ;; |
|
|
711 | ms1-*) |
|
|
712 | basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` |
688 | ;; |
713 | ;; |
689 | mvs) |
714 | mvs) |
690 | basic_machine=i370-ibm |
715 | basic_machine=i370-ibm |
691 | os=-mvs |
716 | os=-mvs |
692 | ;; |
717 | ;; |
… | |
… | |
759 | ;; |
784 | ;; |
760 | op50n-* | op60c-*) |
785 | op50n-* | op60c-*) |
761 | basic_machine=hppa1.1-oki |
786 | basic_machine=hppa1.1-oki |
762 | os=-proelf |
787 | os=-proelf |
763 | ;; |
788 | ;; |
764 | or32 | or32-*) |
789 | openrisc | openrisc-*) |
765 | basic_machine=or32-unknown |
790 | basic_machine=or32-unknown |
766 | os=-coff |
|
|
767 | ;; |
791 | ;; |
768 | os400) |
792 | os400) |
769 | basic_machine=powerpc-ibm |
793 | basic_machine=powerpc-ibm |
770 | os=-os400 |
794 | os=-os400 |
771 | ;; |
795 | ;; |
… | |
… | |
792 | basic_machine=m68k-tti |
816 | basic_machine=m68k-tti |
793 | ;; |
817 | ;; |
794 | pc532 | pc532-*) |
818 | pc532 | pc532-*) |
795 | basic_machine=ns32k-pc532 |
819 | basic_machine=ns32k-pc532 |
796 | ;; |
820 | ;; |
|
|
821 | pc98) |
|
|
822 | basic_machine=i386-pc |
|
|
823 | ;; |
|
|
824 | pc98-*) |
|
|
825 | basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` |
|
|
826 | ;; |
797 | pentium | p5 | k5 | k6 | nexgen | viac3) |
827 | pentium | p5 | k5 | k6 | nexgen | viac3) |
798 | basic_machine=i586-pc |
828 | basic_machine=i586-pc |
799 | ;; |
829 | ;; |
800 | pentiumpro | p6 | 6x86 | athlon | athlon_*) |
830 | pentiumpro | p6 | 6x86 | athlon | athlon_*) |
801 | basic_machine=i686-pc |
831 | basic_machine=i686-pc |
… | |
… | |
848 | ;; |
878 | ;; |
849 | pw32) |
879 | pw32) |
850 | basic_machine=i586-unknown |
880 | basic_machine=i586-unknown |
851 | os=-pw32 |
881 | os=-pw32 |
852 | ;; |
882 | ;; |
|
|
883 | rdos) |
|
|
884 | basic_machine=i386-pc |
|
|
885 | os=-rdos |
|
|
886 | ;; |
853 | rom68k) |
887 | rom68k) |
854 | basic_machine=m68k-rom68k |
888 | basic_machine=m68k-rom68k |
855 | os=-coff |
889 | os=-coff |
856 | ;; |
890 | ;; |
857 | rm[46]00) |
891 | rm[46]00) |
… | |
… | |
873 | sb1) |
907 | sb1) |
874 | basic_machine=mipsisa64sb1-unknown |
908 | basic_machine=mipsisa64sb1-unknown |
875 | ;; |
909 | ;; |
876 | sb1el) |
910 | sb1el) |
877 | basic_machine=mipsisa64sb1el-unknown |
911 | basic_machine=mipsisa64sb1el-unknown |
|
|
912 | ;; |
|
|
913 | sde) |
|
|
914 | basic_machine=mipsisa32-sde |
|
|
915 | os=-elf |
878 | ;; |
916 | ;; |
879 | sei) |
917 | sei) |
880 | basic_machine=mips-sei |
918 | basic_machine=mips-sei |
881 | os=-seiux |
919 | os=-seiux |
882 | ;; |
920 | ;; |
… | |
… | |
1087 | basic_machine=pdp11-dec |
1125 | basic_machine=pdp11-dec |
1088 | ;; |
1126 | ;; |
1089 | we32k) |
1127 | we32k) |
1090 | basic_machine=we32k-att |
1128 | basic_machine=we32k-att |
1091 | ;; |
1129 | ;; |
1092 | sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele) |
1130 | sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele) |
1093 | basic_machine=sh-unknown |
1131 | basic_machine=sh-unknown |
1094 | ;; |
1132 | ;; |
1095 | sh64) |
|
|
1096 | basic_machine=sh64-unknown |
|
|
1097 | ;; |
|
|
1098 | sparc | sparcv8 | sparcv9 | sparcv9b) |
1133 | sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) |
1099 | basic_machine=sparc-sun |
1134 | basic_machine=sparc-sun |
1100 | ;; |
1135 | ;; |
1101 | cydra) |
1136 | cydra) |
1102 | basic_machine=cydra-cydrome |
1137 | basic_machine=cydra-cydrome |
1103 | ;; |
1138 | ;; |
… | |
… | |
1166 | | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ |
1201 | | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ |
1167 | | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ |
1202 | | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ |
1168 | | -aos* \ |
1203 | | -aos* \ |
1169 | | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ |
1204 | | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ |
1170 | | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ |
1205 | | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ |
1171 | | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \ |
1206 | | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ |
|
|
1207 | | -openbsd* | -solidbsd* \ |
1172 | | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ |
1208 | | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ |
1173 | | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ |
1209 | | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ |
1174 | | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ |
1210 | | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ |
1175 | | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ |
1211 | | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ |
1176 | | -chorusos* | -chorusrdb* \ |
1212 | | -chorusos* | -chorusrdb* \ |
1177 | | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ |
1213 | | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ |
1178 | | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \ |
1214 | | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \ |
|
|
1215 | | -uxpv* | -beos* | -mpeix* | -udk* \ |
1179 | | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ |
1216 | | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ |
1180 | | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ |
1217 | | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ |
1181 | | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ |
1218 | | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ |
1182 | | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ |
1219 | | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ |
1183 | | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ |
1220 | | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ |
1184 | | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*) |
1221 | | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ |
|
|
1222 | | -skyos* | -haiku* | -rdos* | -toppers*) |
1185 | # Remember, each alternative MUST END IN *, to match a version number. |
1223 | # Remember, each alternative MUST END IN *, to match a version number. |
1186 | ;; |
1224 | ;; |
1187 | -qnx*) |
1225 | -qnx*) |
1188 | case $basic_machine in |
1226 | case $basic_machine in |
1189 | x86-* | i*86-*) |
1227 | x86-* | i*86-*) |
… | |
… | |
1197 | ;; |
1235 | ;; |
1198 | -nto*) |
1236 | -nto*) |
1199 | os=`echo $os | sed -e 's|nto|nto-qnx|'` |
1237 | os=`echo $os | sed -e 's|nto|nto-qnx|'` |
1200 | ;; |
1238 | ;; |
1201 | -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ |
1239 | -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ |
1202 | | -windows* | -osx | -abug | -netware* | -os9* | -beos* \ |
1240 | | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ |
1203 | | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) |
1241 | | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) |
1204 | ;; |
1242 | ;; |
1205 | -mac*) |
1243 | -mac*) |
1206 | os=`echo $os | sed -e 's|mac|macos|'` |
1244 | os=`echo $os | sed -e 's|mac|macos|'` |
1207 | ;; |
1245 | ;; |
… | |
… | |
1331 | # that MANUFACTURER isn't an operating system. Otherwise, code above |
1369 | # that MANUFACTURER isn't an operating system. Otherwise, code above |
1332 | # will signal an error saying that MANUFACTURER isn't an operating |
1370 | # will signal an error saying that MANUFACTURER isn't an operating |
1333 | # system, and we'll never get to this point. |
1371 | # system, and we'll never get to this point. |
1334 | |
1372 | |
1335 | case $basic_machine in |
1373 | case $basic_machine in |
|
|
1374 | score-*) |
|
|
1375 | os=-elf |
|
|
1376 | ;; |
|
|
1377 | spu-*) |
|
|
1378 | os=-elf |
|
|
1379 | ;; |
1336 | *-acorn) |
1380 | *-acorn) |
1337 | os=-riscix1.2 |
1381 | os=-riscix1.2 |
1338 | ;; |
1382 | ;; |
1339 | arm*-rebel) |
1383 | arm*-rebel) |
1340 | os=-linux |
1384 | os=-linux |
1341 | ;; |
1385 | ;; |
1342 | arm*-semi) |
1386 | arm*-semi) |
1343 | os=-aout |
1387 | os=-aout |
1344 | ;; |
1388 | ;; |
1345 | c4x-* | tic4x-*) |
1389 | c4x-* | tic4x-*) |
1346 | os=-coff |
1390 | os=-coff |
1347 | ;; |
1391 | ;; |
1348 | # This must come before the *-dec entry. |
1392 | # This must come before the *-dec entry. |
1349 | pdp10-*) |
1393 | pdp10-*) |
1350 | os=-tops20 |
1394 | os=-tops20 |
1351 | ;; |
1395 | ;; |
1352 | pdp11-*) |
1396 | pdp11-*) |
… | |
… | |
1385 | sparc-* | *-sun) |
1429 | sparc-* | *-sun) |
1386 | os=-sunos4.1.1 |
1430 | os=-sunos4.1.1 |
1387 | ;; |
1431 | ;; |
1388 | *-be) |
1432 | *-be) |
1389 | os=-beos |
1433 | os=-beos |
|
|
1434 | ;; |
|
|
1435 | *-haiku) |
|
|
1436 | os=-haiku |
1390 | ;; |
1437 | ;; |
1391 | *-ibm) |
1438 | *-ibm) |
1392 | os=-aix |
1439 | os=-aix |
1393 | ;; |
1440 | ;; |
1394 | *-knuth) |
1441 | *-knuth) |
… | |
… | |
1557 | basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` |
1604 | basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` |
1558 | ;; |
1605 | ;; |
1559 | esac |
1606 | esac |
1560 | |
1607 | |
1561 | echo $basic_machine$os |
1608 | echo $basic_machine$os |
1562 | exit 0 |
1609 | exit |
1563 | |
1610 | |
1564 | # Local variables: |
1611 | # Local variables: |
1565 | # eval: (add-hook 'write-file-hooks 'time-stamp) |
1612 | # eval: (add-hook 'write-file-hooks 'time-stamp) |
1566 | # time-stamp-start: "timestamp='" |
1613 | # time-stamp-start: "timestamp='" |
1567 | # time-stamp-format: "%:y-%02m-%02d" |
1614 | # time-stamp-format: "%:y-%02m-%02d" |