1 | #! /bin/sh |
1 | #! /bin/sh |
2 | # Attempt to guess a canonical system name. |
2 | # Attempt to guess a canonical system name. |
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 Free Software Foundation, |
4 | # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, |
5 | # Inc. |
5 | # 2011 Free Software Foundation, Inc. |
6 | |
6 | |
7 | timestamp='2007-07-22' |
7 | timestamp='2011-02-02' |
8 | |
8 | |
9 | # This file is free software; you can redistribute it and/or modify it |
9 | # This file is free software; you can redistribute it and/or modify it |
10 | # under the terms of the GNU General Public License as published by |
10 | # under the terms of the GNU General Public License as published by |
11 | # the Free Software Foundation; either version 2 of the License, or |
11 | # the Free Software Foundation; either version 2 of the License, or |
12 | # (at your option) any later version. |
12 | # (at your option) any later version. |
… | |
… | |
25 | # distribute this file as part of a program that contains a |
25 | # distribute this file as part of a program that contains a |
26 | # configuration script generated by Autoconf, you may include it under |
26 | # configuration script generated by Autoconf, you may include it under |
27 | # the same distribution terms that you use for the rest of that program. |
27 | # the same distribution terms that you use for the rest of that program. |
28 | |
28 | |
29 | |
29 | |
30 | # Originally written by Per Bothner <per@bothner.com>. |
30 | # Originally written by Per Bothner. Please send patches (context |
31 | # Please send patches to <config-patches@gnu.org>. Submit a context |
31 | # diff format) to <config-patches@gnu.org> and include a ChangeLog |
32 | # diff and a properly formatted ChangeLog entry. |
32 | # entry. |
33 | # |
33 | # |
34 | # This script attempts to guess a canonical system name similar to |
34 | # This script attempts to guess a canonical system name similar to |
35 | # config.sub. If it succeeds, it prints the system name on stdout, and |
35 | # config.sub. If it succeeds, it prints the system name on stdout, and |
36 | # exits with 0. Otherwise, it exits with 1. |
36 | # exits with 0. Otherwise, it exits with 1. |
37 | # |
37 | # |
38 | # The plan is that this can be called by configure scripts if you |
38 | # You can get the latest version of this script from: |
39 | # don't specify an explicit build system type. |
39 | # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD |
40 | |
40 | |
41 | me=`echo "$0" | sed -e 's,.*/,,'` |
41 | me=`echo "$0" | sed -e 's,.*/,,'` |
42 | |
42 | |
43 | usage="\ |
43 | usage="\ |
44 | Usage: $0 [OPTION] |
44 | Usage: $0 [OPTION] |
… | |
… | |
54 | |
54 | |
55 | version="\ |
55 | version="\ |
56 | GNU config.guess ($timestamp) |
56 | GNU config.guess ($timestamp) |
57 | |
57 | |
58 | Originally written by Per Bothner. |
58 | Originally written by Per Bothner. |
59 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 |
59 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, |
|
|
60 | 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free |
60 | Free Software Foundation, Inc. |
61 | Software Foundation, Inc. |
61 | |
62 | |
62 | This is free software; see the source for copying conditions. There is NO |
63 | This is free software; see the source for copying conditions. There is NO |
63 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
64 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
64 | |
65 | |
65 | help=" |
66 | help=" |
… | |
… | |
168 | # to ELF recently, or will in the future. |
169 | # to ELF recently, or will in the future. |
169 | case "${UNAME_MACHINE_ARCH}" in |
170 | case "${UNAME_MACHINE_ARCH}" in |
170 | arm*|i386|m68k|ns32k|sh3*|sparc|vax) |
171 | arm*|i386|m68k|ns32k|sh3*|sparc|vax) |
171 | eval $set_cc_for_build |
172 | eval $set_cc_for_build |
172 | if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ |
173 | if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ |
173 | | grep __ELF__ >/dev/null |
174 | | grep -q __ELF__ |
174 | then |
175 | then |
175 | # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). |
176 | # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). |
176 | # Return netbsd for either. FIX? |
177 | # Return netbsd for either. FIX? |
177 | os=netbsd |
178 | os=netbsd |
178 | else |
179 | else |
179 | os=netbsdelf |
180 | os=netbsdelf |
180 | fi |
181 | fi |
181 | ;; |
182 | ;; |
182 | *) |
183 | *) |
183 | os=netbsd |
184 | os=netbsd |
184 | ;; |
185 | ;; |
185 | esac |
186 | esac |
186 | # The OS release |
187 | # The OS release |
187 | # Debian GNU/NetBSD machines have a different userland, and |
188 | # Debian GNU/NetBSD machines have a different userland, and |
188 | # thus, need a distinct triplet. However, they do not need |
189 | # thus, need a distinct triplet. However, they do not need |
… | |
… | |
221 | case $UNAME_RELEASE in |
222 | case $UNAME_RELEASE in |
222 | *4.0) |
223 | *4.0) |
223 | UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` |
224 | UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` |
224 | ;; |
225 | ;; |
225 | *5.*) |
226 | *5.*) |
226 | UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` |
227 | UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` |
227 | ;; |
228 | ;; |
228 | esac |
229 | esac |
229 | # According to Compaq, /usr/sbin/psrinfo has been available on |
230 | # According to Compaq, /usr/sbin/psrinfo has been available on |
230 | # OSF/1 and Tru64 systems produced since 1995. I hope that |
231 | # OSF/1 and Tru64 systems produced since 1995. I hope that |
231 | # covers most systems running today. This code pipes the CPU |
232 | # covers most systems running today. This code pipes the CPU |
… | |
… | |
267 | # A Vn.n version is a released version. |
268 | # A Vn.n version is a released version. |
268 | # A Tn.n version is a released field test version. |
269 | # A Tn.n version is a released field test version. |
269 | # A Xn.n version is an unreleased experimental baselevel. |
270 | # A Xn.n version is an unreleased experimental baselevel. |
270 | # 1.2 uses "1.2" for uname -r. |
271 | # 1.2 uses "1.2" for uname -r. |
271 | echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` |
272 | echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` |
272 | exit ;; |
273 | # Reset EXIT trap before exiting to avoid spurious non-zero exit code. |
|
|
274 | exitcode=$? |
|
|
275 | trap '' 0 |
|
|
276 | exit $exitcode ;; |
273 | Alpha\ *:Windows_NT*:*) |
277 | Alpha\ *:Windows_NT*:*) |
274 | # How do we know it's Interix rather than the generic POSIX subsystem? |
278 | # How do we know it's Interix rather than the generic POSIX subsystem? |
275 | # Should we change UNAME_MACHINE based on the output of uname instead |
279 | # Should we change UNAME_MACHINE based on the output of uname instead |
276 | # of the specific Alpha model? |
280 | # of the specific Alpha model? |
277 | echo alpha-pc-interix |
281 | echo alpha-pc-interix |
… | |
… | |
293 | exit ;; |
297 | exit ;; |
294 | *:z/VM:*:*) |
298 | *:z/VM:*:*) |
295 | echo s390-ibm-zvmoe |
299 | echo s390-ibm-zvmoe |
296 | exit ;; |
300 | exit ;; |
297 | *:OS400:*:*) |
301 | *:OS400:*:*) |
298 | echo powerpc-ibm-os400 |
302 | echo powerpc-ibm-os400 |
299 | exit ;; |
303 | exit ;; |
300 | arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) |
304 | arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) |
301 | echo arm-acorn-riscix${UNAME_RELEASE} |
305 | echo arm-acorn-riscix${UNAME_RELEASE} |
302 | exit ;; |
306 | exit ;; |
303 | arm:riscos:*:*|arm:RISCOS:*:*) |
307 | arm:riscos:*:*|arm:RISCOS:*:*) |
… | |
… | |
322 | exit ;; |
326 | exit ;; |
323 | DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) |
327 | DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) |
324 | case `/usr/bin/uname -p` in |
328 | case `/usr/bin/uname -p` in |
325 | sparc) echo sparc-icl-nx7; exit ;; |
329 | sparc) echo sparc-icl-nx7; exit ;; |
326 | esac ;; |
330 | esac ;; |
|
|
331 | s390x:SunOS:*:*) |
|
|
332 | echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
|
|
333 | exit ;; |
327 | sun4H:SunOS:5.*:*) |
334 | sun4H:SunOS:5.*:*) |
328 | echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
335 | echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
329 | exit ;; |
336 | exit ;; |
330 | sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) |
337 | sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) |
331 | echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
338 | echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
332 | exit ;; |
339 | exit ;; |
|
|
340 | i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) |
|
|
341 | echo i386-pc-auroraux${UNAME_RELEASE} |
|
|
342 | exit ;; |
333 | i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) |
343 | i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) |
|
|
344 | eval $set_cc_for_build |
|
|
345 | SUN_ARCH="i386" |
|
|
346 | # If there is a compiler, see if it is configured for 64-bit objects. |
|
|
347 | # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. |
|
|
348 | # This test works for both compilers. |
|
|
349 | if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then |
|
|
350 | if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ |
|
|
351 | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ |
|
|
352 | grep IS_64BIT_ARCH >/dev/null |
|
|
353 | then |
|
|
354 | SUN_ARCH="x86_64" |
|
|
355 | fi |
|
|
356 | fi |
334 | echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
357 | echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
335 | exit ;; |
358 | exit ;; |
336 | sun4*:SunOS:6*:*) |
359 | sun4*:SunOS:6*:*) |
337 | # According to config.sub, this is the proper way to canonicalize |
360 | # According to config.sub, this is the proper way to canonicalize |
338 | # SunOS6. Hard to guess exactly what SunOS6 will be like, but |
361 | # SunOS6. Hard to guess exactly what SunOS6 will be like, but |
339 | # it's likely to be more like Solaris than SunOS4. |
362 | # it's likely to be more like Solaris than SunOS4. |
… | |
… | |
373 | # to the lowercase version "mint" (or "freemint"). Finally |
396 | # to the lowercase version "mint" (or "freemint"). Finally |
374 | # the system name "TOS" denotes a system which is actually not |
397 | # the system name "TOS" denotes a system which is actually not |
375 | # MiNT. But MiNT is downward compatible to TOS, so this should |
398 | # MiNT. But MiNT is downward compatible to TOS, so this should |
376 | # be no problem. |
399 | # be no problem. |
377 | atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) |
400 | atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) |
378 | echo m68k-atari-mint${UNAME_RELEASE} |
401 | echo m68k-atari-mint${UNAME_RELEASE} |
379 | exit ;; |
402 | exit ;; |
380 | atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) |
403 | atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) |
381 | echo m68k-atari-mint${UNAME_RELEASE} |
404 | echo m68k-atari-mint${UNAME_RELEASE} |
382 | exit ;; |
405 | exit ;; |
383 | *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) |
406 | *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) |
384 | echo m68k-atari-mint${UNAME_RELEASE} |
407 | echo m68k-atari-mint${UNAME_RELEASE} |
385 | exit ;; |
408 | exit ;; |
386 | milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) |
409 | milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) |
387 | echo m68k-milan-mint${UNAME_RELEASE} |
410 | echo m68k-milan-mint${UNAME_RELEASE} |
388 | exit ;; |
411 | exit ;; |
389 | hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) |
412 | hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) |
390 | echo m68k-hades-mint${UNAME_RELEASE} |
413 | echo m68k-hades-mint${UNAME_RELEASE} |
391 | exit ;; |
414 | exit ;; |
392 | *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) |
415 | *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) |
393 | echo m68k-unknown-mint${UNAME_RELEASE} |
416 | echo m68k-unknown-mint${UNAME_RELEASE} |
394 | exit ;; |
417 | exit ;; |
395 | m68k:machten:*:*) |
418 | m68k:machten:*:*) |
396 | echo m68k-apple-machten${UNAME_RELEASE} |
419 | echo m68k-apple-machten${UNAME_RELEASE} |
397 | exit ;; |
420 | exit ;; |
398 | powerpc:machten:*:*) |
421 | powerpc:machten:*:*) |
399 | echo powerpc-apple-machten${UNAME_RELEASE} |
422 | echo powerpc-apple-machten${UNAME_RELEASE} |
… | |
… | |
459 | exit ;; |
482 | exit ;; |
460 | m88k:*:3*:R3*) |
483 | m88k:*:3*:R3*) |
461 | echo m88k-motorola-sysv3 |
484 | echo m88k-motorola-sysv3 |
462 | exit ;; |
485 | exit ;; |
463 | AViiON:dgux:*:*) |
486 | AViiON:dgux:*:*) |
464 | # DG/UX returns AViiON for all architectures |
487 | # DG/UX returns AViiON for all architectures |
465 | UNAME_PROCESSOR=`/usr/bin/uname -p` |
488 | UNAME_PROCESSOR=`/usr/bin/uname -p` |
466 | if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] |
489 | if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] |
467 | then |
490 | then |
468 | if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ |
491 | if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ |
469 | [ ${TARGET_BINARY_INTERFACE}x = x ] |
492 | [ ${TARGET_BINARY_INTERFACE}x = x ] |
470 | then |
493 | then |
… | |
… | |
473 | echo m88k-dg-dguxbcs${UNAME_RELEASE} |
496 | echo m88k-dg-dguxbcs${UNAME_RELEASE} |
474 | fi |
497 | fi |
475 | else |
498 | else |
476 | echo i586-dg-dgux${UNAME_RELEASE} |
499 | echo i586-dg-dgux${UNAME_RELEASE} |
477 | fi |
500 | fi |
478 | exit ;; |
501 | exit ;; |
479 | M88*:DolphinOS:*:*) # DolphinOS (SVR3) |
502 | M88*:DolphinOS:*:*) # DolphinOS (SVR3) |
480 | echo m88k-dolphin-sysv3 |
503 | echo m88k-dolphin-sysv3 |
481 | exit ;; |
504 | exit ;; |
482 | M88*:*:R3*:*) |
505 | M88*:*:R3*:*) |
483 | # Delta 88k system running SVR3 |
506 | # Delta 88k system running SVR3 |
… | |
… | |
530 | echo rs6000-ibm-aix3.2.4 |
553 | echo rs6000-ibm-aix3.2.4 |
531 | else |
554 | else |
532 | echo rs6000-ibm-aix3.2 |
555 | echo rs6000-ibm-aix3.2 |
533 | fi |
556 | fi |
534 | exit ;; |
557 | exit ;; |
535 | *:AIX:*:[45]) |
558 | *:AIX:*:[4567]) |
536 | IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` |
559 | IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` |
537 | if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then |
560 | if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then |
538 | IBM_ARCH=rs6000 |
561 | IBM_ARCH=rs6000 |
539 | else |
562 | else |
540 | IBM_ARCH=powerpc |
563 | IBM_ARCH=powerpc |
… | |
… | |
573 | 9000/31? ) HP_ARCH=m68000 ;; |
596 | 9000/31? ) HP_ARCH=m68000 ;; |
574 | 9000/[34]?? ) HP_ARCH=m68k ;; |
597 | 9000/[34]?? ) HP_ARCH=m68k ;; |
575 | 9000/[678][0-9][0-9]) |
598 | 9000/[678][0-9][0-9]) |
576 | if [ -x /usr/bin/getconf ]; then |
599 | if [ -x /usr/bin/getconf ]; then |
577 | sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` |
600 | sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` |
578 | sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` |
601 | sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` |
579 | case "${sc_cpu_version}" in |
602 | case "${sc_cpu_version}" in |
580 | 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 |
603 | 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 |
581 | 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 |
604 | 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 |
582 | 532) # CPU_PA_RISC2_0 |
605 | 532) # CPU_PA_RISC2_0 |
583 | case "${sc_kernel_bits}" in |
606 | case "${sc_kernel_bits}" in |
584 | 32) HP_ARCH="hppa2.0n" ;; |
607 | 32) HP_ARCH="hppa2.0n" ;; |
585 | 64) HP_ARCH="hppa2.0w" ;; |
608 | 64) HP_ARCH="hppa2.0w" ;; |
586 | '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 |
609 | '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 |
587 | esac ;; |
610 | esac ;; |
588 | esac |
611 | esac |
589 | fi |
612 | fi |
590 | if [ "${HP_ARCH}" = "" ]; then |
613 | if [ "${HP_ARCH}" = "" ]; then |
591 | eval $set_cc_for_build |
614 | eval $set_cc_for_build |
592 | sed 's/^ //' << EOF >$dummy.c |
615 | sed 's/^ //' << EOF >$dummy.c |
593 | |
616 | |
594 | #define _HPUX_SOURCE |
617 | #define _HPUX_SOURCE |
595 | #include <stdlib.h> |
618 | #include <stdlib.h> |
596 | #include <unistd.h> |
619 | #include <unistd.h> |
597 | |
620 | |
598 | int main () |
621 | int main () |
599 | { |
622 | { |
600 | #if defined(_SC_KERNEL_BITS) |
623 | #if defined(_SC_KERNEL_BITS) |
601 | long bits = sysconf(_SC_KERNEL_BITS); |
624 | long bits = sysconf(_SC_KERNEL_BITS); |
602 | #endif |
625 | #endif |
603 | long cpu = sysconf (_SC_CPU_VERSION); |
626 | long cpu = sysconf (_SC_CPU_VERSION); |
604 | |
627 | |
605 | switch (cpu) |
628 | switch (cpu) |
606 | { |
629 | { |
607 | case CPU_PA_RISC1_0: puts ("hppa1.0"); break; |
630 | case CPU_PA_RISC1_0: puts ("hppa1.0"); break; |
608 | case CPU_PA_RISC1_1: puts ("hppa1.1"); break; |
631 | case CPU_PA_RISC1_1: puts ("hppa1.1"); break; |
609 | case CPU_PA_RISC2_0: |
632 | case CPU_PA_RISC2_0: |
610 | #if defined(_SC_KERNEL_BITS) |
633 | #if defined(_SC_KERNEL_BITS) |
611 | switch (bits) |
634 | switch (bits) |
612 | { |
635 | { |
613 | case 64: puts ("hppa2.0w"); break; |
636 | case 64: puts ("hppa2.0w"); break; |
614 | case 32: puts ("hppa2.0n"); break; |
637 | case 32: puts ("hppa2.0n"); break; |
615 | default: puts ("hppa2.0"); break; |
638 | default: puts ("hppa2.0"); break; |
616 | } break; |
639 | } break; |
617 | #else /* !defined(_SC_KERNEL_BITS) */ |
640 | #else /* !defined(_SC_KERNEL_BITS) */ |
618 | puts ("hppa2.0"); break; |
641 | puts ("hppa2.0"); break; |
619 | #endif |
642 | #endif |
620 | default: puts ("hppa1.0"); break; |
643 | default: puts ("hppa1.0"); break; |
621 | } |
644 | } |
622 | exit (0); |
645 | exit (0); |
623 | } |
646 | } |
624 | EOF |
647 | EOF |
625 | (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` |
648 | (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` |
626 | test -z "$HP_ARCH" && HP_ARCH=hppa |
649 | test -z "$HP_ARCH" && HP_ARCH=hppa |
627 | fi ;; |
650 | fi ;; |
628 | esac |
651 | esac |
… | |
… | |
638 | # => hppa2.0w-hp-hpux11.23 |
661 | # => hppa2.0w-hp-hpux11.23 |
639 | # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess |
662 | # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess |
640 | # => hppa64-hp-hpux11.23 |
663 | # => hppa64-hp-hpux11.23 |
641 | |
664 | |
642 | if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | |
665 | if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | |
643 | grep __LP64__ >/dev/null |
666 | grep -q __LP64__ |
644 | then |
667 | then |
645 | HP_ARCH="hppa2.0w" |
668 | HP_ARCH="hppa2.0w" |
646 | else |
669 | else |
647 | HP_ARCH="hppa64" |
670 | HP_ARCH="hppa64" |
648 | fi |
671 | fi |
… | |
… | |
709 | parisc*:Lites*:*:*) |
732 | parisc*:Lites*:*:*) |
710 | echo hppa1.1-hp-lites |
733 | echo hppa1.1-hp-lites |
711 | exit ;; |
734 | exit ;; |
712 | C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) |
735 | C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) |
713 | echo c1-convex-bsd |
736 | echo c1-convex-bsd |
714 | exit ;; |
737 | exit ;; |
715 | C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) |
738 | C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) |
716 | if getsysinfo -f scalar_acc |
739 | if getsysinfo -f scalar_acc |
717 | then echo c32-convex-bsd |
740 | then echo c32-convex-bsd |
718 | else echo c2-convex-bsd |
741 | else echo c2-convex-bsd |
719 | fi |
742 | fi |
720 | exit ;; |
743 | exit ;; |
721 | C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) |
744 | C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) |
722 | echo c34-convex-bsd |
745 | echo c34-convex-bsd |
723 | exit ;; |
746 | exit ;; |
724 | C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) |
747 | C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) |
725 | echo c38-convex-bsd |
748 | echo c38-convex-bsd |
726 | exit ;; |
749 | exit ;; |
727 | C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) |
750 | C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) |
728 | echo c4-convex-bsd |
751 | echo c4-convex-bsd |
729 | exit ;; |
752 | exit ;; |
730 | CRAY*Y-MP:*:*:*) |
753 | CRAY*Y-MP:*:*:*) |
731 | echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' |
754 | echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' |
732 | exit ;; |
755 | exit ;; |
733 | CRAY*[A-Z]90:*:*:*) |
756 | CRAY*[A-Z]90:*:*:*) |
734 | echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ |
757 | echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ |
… | |
… | |
748 | *:UNICOS/mp:*:*) |
771 | *:UNICOS/mp:*:*) |
749 | echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' |
772 | echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' |
750 | exit ;; |
773 | exit ;; |
751 | F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) |
774 | F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) |
752 | FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` |
775 | FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` |
753 | FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` |
776 | FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` |
754 | FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` |
777 | FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` |
755 | echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" |
778 | echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" |
756 | exit ;; |
779 | exit ;; |
757 | 5000:UNIX_System_V:4.*:*) |
780 | 5000:UNIX_System_V:4.*:*) |
758 | FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` |
781 | FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` |
759 | FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` |
782 | FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` |
760 | echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" |
783 | echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" |
761 | exit ;; |
784 | exit ;; |
762 | i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) |
785 | i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) |
763 | echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} |
786 | echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} |
764 | exit ;; |
787 | exit ;; |
765 | sparc*:BSD/OS:*:*) |
788 | sparc*:BSD/OS:*:*) |
… | |
… | |
783 | exit ;; |
806 | exit ;; |
784 | *:MINGW*:*) |
807 | *:MINGW*:*) |
785 | echo ${UNAME_MACHINE}-pc-mingw32 |
808 | echo ${UNAME_MACHINE}-pc-mingw32 |
786 | exit ;; |
809 | exit ;; |
787 | i*:windows32*:*) |
810 | i*:windows32*:*) |
788 | # uname -m includes "-pc" on this system. |
811 | # uname -m includes "-pc" on this system. |
789 | echo ${UNAME_MACHINE}-mingw32 |
812 | echo ${UNAME_MACHINE}-mingw32 |
790 | exit ;; |
813 | exit ;; |
791 | i*:PW*:*) |
814 | i*:PW*:*) |
792 | echo ${UNAME_MACHINE}-pc-pw32 |
815 | echo ${UNAME_MACHINE}-pc-pw32 |
793 | exit ;; |
816 | exit ;; |
794 | *:Interix*:[3456]*) |
817 | *:Interix*:*) |
795 | case ${UNAME_MACHINE} in |
818 | case ${UNAME_MACHINE} in |
796 | x86) |
819 | x86) |
797 | echo i586-pc-interix${UNAME_RELEASE} |
820 | echo i586-pc-interix${UNAME_RELEASE} |
798 | exit ;; |
821 | exit ;; |
799 | EM64T | authenticamd) |
822 | authenticamd | genuineintel | EM64T) |
800 | echo x86_64-unknown-interix${UNAME_RELEASE} |
823 | echo x86_64-unknown-interix${UNAME_RELEASE} |
|
|
824 | exit ;; |
|
|
825 | IA64) |
|
|
826 | echo ia64-unknown-interix${UNAME_RELEASE} |
801 | exit ;; |
827 | exit ;; |
802 | esac ;; |
828 | esac ;; |
803 | [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) |
829 | [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) |
804 | echo i${UNAME_MACHINE}-pc-mks |
830 | echo i${UNAME_MACHINE}-pc-mks |
|
|
831 | exit ;; |
|
|
832 | 8664:Windows_NT:*) |
|
|
833 | echo x86_64-pc-mks |
805 | exit ;; |
834 | exit ;; |
806 | i*:Windows_NT*:* | Pentium*:Windows_NT*:*) |
835 | i*:Windows_NT*:* | Pentium*:Windows_NT*:*) |
807 | # How do we know it's Interix rather than the generic POSIX subsystem? |
836 | # How do we know it's Interix rather than the generic POSIX subsystem? |
808 | # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we |
837 | # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we |
809 | # UNAME_MACHINE based on the output of uname instead of i386? |
838 | # UNAME_MACHINE based on the output of uname instead of i386? |
… | |
… | |
829 | # other systems with GNU libc and userland |
858 | # other systems with GNU libc and userland |
830 | echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu |
859 | echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu |
831 | exit ;; |
860 | exit ;; |
832 | i*86:Minix:*:*) |
861 | i*86:Minix:*:*) |
833 | echo ${UNAME_MACHINE}-pc-minix |
862 | echo ${UNAME_MACHINE}-pc-minix |
834 | exit ;; |
|
|
835 | arm*:Linux:*:*) |
|
|
836 | echo ${UNAME_MACHINE}-unknown-linux-gnu |
|
|
837 | exit ;; |
|
|
838 | avr32*:Linux:*:*) |
|
|
839 | echo ${UNAME_MACHINE}-unknown-linux-gnu |
|
|
840 | exit ;; |
|
|
841 | cris:Linux:*:*) |
|
|
842 | echo cris-axis-linux-gnu |
|
|
843 | exit ;; |
|
|
844 | crisv32:Linux:*:*) |
|
|
845 | echo crisv32-axis-linux-gnu |
|
|
846 | exit ;; |
|
|
847 | frv:Linux:*:*) |
|
|
848 | echo frv-unknown-linux-gnu |
|
|
849 | exit ;; |
|
|
850 | ia64:Linux:*:*) |
|
|
851 | echo ${UNAME_MACHINE}-unknown-linux-gnu |
|
|
852 | exit ;; |
|
|
853 | m32r*:Linux:*:*) |
|
|
854 | echo ${UNAME_MACHINE}-unknown-linux-gnu |
|
|
855 | exit ;; |
|
|
856 | m68*:Linux:*:*) |
|
|
857 | echo ${UNAME_MACHINE}-unknown-linux-gnu |
|
|
858 | exit ;; |
|
|
859 | mips:Linux:*:*) |
|
|
860 | eval $set_cc_for_build |
|
|
861 | sed 's/^ //' << EOF >$dummy.c |
|
|
862 | #undef CPU |
|
|
863 | #undef mips |
|
|
864 | #undef mipsel |
|
|
865 | #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) |
|
|
866 | CPU=mipsel |
|
|
867 | #else |
|
|
868 | #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) |
|
|
869 | CPU=mips |
|
|
870 | #else |
|
|
871 | CPU= |
|
|
872 | #endif |
|
|
873 | #endif |
|
|
874 | EOF |
|
|
875 | eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' |
|
|
876 | /^CPU/{ |
|
|
877 | s: ::g |
|
|
878 | p |
|
|
879 | }'`" |
|
|
880 | test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } |
|
|
881 | ;; |
|
|
882 | mips64:Linux:*:*) |
|
|
883 | eval $set_cc_for_build |
|
|
884 | sed 's/^ //' << EOF >$dummy.c |
|
|
885 | #undef CPU |
|
|
886 | #undef mips64 |
|
|
887 | #undef mips64el |
|
|
888 | #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) |
|
|
889 | CPU=mips64el |
|
|
890 | #else |
|
|
891 | #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) |
|
|
892 | CPU=mips64 |
|
|
893 | #else |
|
|
894 | CPU= |
|
|
895 | #endif |
|
|
896 | #endif |
|
|
897 | EOF |
|
|
898 | eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' |
|
|
899 | /^CPU/{ |
|
|
900 | s: ::g |
|
|
901 | p |
|
|
902 | }'`" |
|
|
903 | test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } |
|
|
904 | ;; |
|
|
905 | or32:Linux:*:*) |
|
|
906 | echo or32-unknown-linux-gnu |
|
|
907 | exit ;; |
|
|
908 | ppc:Linux:*:*) |
|
|
909 | echo powerpc-unknown-linux-gnu |
|
|
910 | exit ;; |
|
|
911 | ppc64:Linux:*:*) |
|
|
912 | echo powerpc64-unknown-linux-gnu |
|
|
913 | exit ;; |
863 | exit ;; |
914 | alpha:Linux:*:*) |
864 | alpha:Linux:*:*) |
915 | case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in |
865 | case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in |
916 | EV5) UNAME_MACHINE=alphaev5 ;; |
866 | EV5) UNAME_MACHINE=alphaev5 ;; |
917 | EV56) UNAME_MACHINE=alphaev56 ;; |
867 | EV56) UNAME_MACHINE=alphaev56 ;; |
918 | PCA56) UNAME_MACHINE=alphapca56 ;; |
868 | PCA56) UNAME_MACHINE=alphapca56 ;; |
919 | PCA57) UNAME_MACHINE=alphapca56 ;; |
869 | PCA57) UNAME_MACHINE=alphapca56 ;; |
920 | EV6) UNAME_MACHINE=alphaev6 ;; |
870 | EV6) UNAME_MACHINE=alphaev6 ;; |
921 | EV67) UNAME_MACHINE=alphaev67 ;; |
871 | EV67) UNAME_MACHINE=alphaev67 ;; |
922 | EV68*) UNAME_MACHINE=alphaev68 ;; |
872 | EV68*) UNAME_MACHINE=alphaev68 ;; |
923 | esac |
873 | esac |
924 | objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null |
874 | objdump --private-headers /bin/sh | grep -q ld.so.1 |
925 | if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi |
875 | if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi |
926 | echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} |
876 | echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} |
|
|
877 | exit ;; |
|
|
878 | arm*:Linux:*:*) |
|
|
879 | eval $set_cc_for_build |
|
|
880 | if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ |
|
|
881 | | grep -q __ARM_EABI__ |
|
|
882 | then |
|
|
883 | echo ${UNAME_MACHINE}-unknown-linux-gnu |
|
|
884 | else |
|
|
885 | echo ${UNAME_MACHINE}-unknown-linux-gnueabi |
|
|
886 | fi |
|
|
887 | exit ;; |
|
|
888 | avr32*:Linux:*:*) |
|
|
889 | echo ${UNAME_MACHINE}-unknown-linux-gnu |
|
|
890 | exit ;; |
|
|
891 | cris:Linux:*:*) |
|
|
892 | echo cris-axis-linux-gnu |
|
|
893 | exit ;; |
|
|
894 | crisv32:Linux:*:*) |
|
|
895 | echo crisv32-axis-linux-gnu |
|
|
896 | exit ;; |
|
|
897 | frv:Linux:*:*) |
|
|
898 | echo frv-unknown-linux-gnu |
|
|
899 | exit ;; |
|
|
900 | i*86:Linux:*:*) |
|
|
901 | LIBC=gnu |
|
|
902 | eval $set_cc_for_build |
|
|
903 | sed 's/^ //' << EOF >$dummy.c |
|
|
904 | #ifdef __dietlibc__ |
|
|
905 | LIBC=dietlibc |
|
|
906 | #endif |
|
|
907 | EOF |
|
|
908 | eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'` |
|
|
909 | echo "${UNAME_MACHINE}-pc-linux-${LIBC}" |
|
|
910 | exit ;; |
|
|
911 | ia64:Linux:*:*) |
|
|
912 | echo ${UNAME_MACHINE}-unknown-linux-gnu |
|
|
913 | exit ;; |
|
|
914 | m32r*:Linux:*:*) |
|
|
915 | echo ${UNAME_MACHINE}-unknown-linux-gnu |
|
|
916 | exit ;; |
|
|
917 | m68*:Linux:*:*) |
|
|
918 | echo ${UNAME_MACHINE}-unknown-linux-gnu |
|
|
919 | exit ;; |
|
|
920 | mips:Linux:*:* | mips64:Linux:*:*) |
|
|
921 | eval $set_cc_for_build |
|
|
922 | sed 's/^ //' << EOF >$dummy.c |
|
|
923 | #undef CPU |
|
|
924 | #undef ${UNAME_MACHINE} |
|
|
925 | #undef ${UNAME_MACHINE}el |
|
|
926 | #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) |
|
|
927 | CPU=${UNAME_MACHINE}el |
|
|
928 | #else |
|
|
929 | #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) |
|
|
930 | CPU=${UNAME_MACHINE} |
|
|
931 | #else |
|
|
932 | CPU= |
|
|
933 | #endif |
|
|
934 | #endif |
|
|
935 | EOF |
|
|
936 | eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` |
|
|
937 | test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } |
|
|
938 | ;; |
|
|
939 | or32:Linux:*:*) |
|
|
940 | echo or32-unknown-linux-gnu |
|
|
941 | exit ;; |
|
|
942 | padre:Linux:*:*) |
|
|
943 | echo sparc-unknown-linux-gnu |
|
|
944 | exit ;; |
|
|
945 | parisc64:Linux:*:* | hppa64:Linux:*:*) |
|
|
946 | echo hppa64-unknown-linux-gnu |
927 | exit ;; |
947 | exit ;; |
928 | parisc:Linux:*:* | hppa:Linux:*:*) |
948 | parisc:Linux:*:* | hppa:Linux:*:*) |
929 | # Look for CPU level |
949 | # Look for CPU level |
930 | case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in |
950 | case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in |
931 | PA7*) echo hppa1.1-unknown-linux-gnu ;; |
951 | PA7*) echo hppa1.1-unknown-linux-gnu ;; |
932 | PA8*) echo hppa2.0-unknown-linux-gnu ;; |
952 | PA8*) echo hppa2.0-unknown-linux-gnu ;; |
933 | *) echo hppa-unknown-linux-gnu ;; |
953 | *) echo hppa-unknown-linux-gnu ;; |
934 | esac |
954 | esac |
935 | exit ;; |
955 | exit ;; |
936 | parisc64:Linux:*:* | hppa64:Linux:*:*) |
956 | ppc64:Linux:*:*) |
937 | echo hppa64-unknown-linux-gnu |
957 | echo powerpc64-unknown-linux-gnu |
|
|
958 | exit ;; |
|
|
959 | ppc:Linux:*:*) |
|
|
960 | echo powerpc-unknown-linux-gnu |
938 | exit ;; |
961 | exit ;; |
939 | s390:Linux:*:* | s390x:Linux:*:*) |
962 | s390:Linux:*:* | s390x:Linux:*:*) |
940 | echo ${UNAME_MACHINE}-ibm-linux |
963 | echo ${UNAME_MACHINE}-ibm-linux |
941 | exit ;; |
964 | exit ;; |
942 | sh64*:Linux:*:*) |
965 | sh64*:Linux:*:*) |
943 | echo ${UNAME_MACHINE}-unknown-linux-gnu |
966 | echo ${UNAME_MACHINE}-unknown-linux-gnu |
944 | exit ;; |
967 | exit ;; |
945 | sh*:Linux:*:*) |
968 | sh*:Linux:*:*) |
946 | echo ${UNAME_MACHINE}-unknown-linux-gnu |
969 | echo ${UNAME_MACHINE}-unknown-linux-gnu |
947 | exit ;; |
970 | exit ;; |
948 | sparc:Linux:*:* | sparc64:Linux:*:*) |
971 | sparc:Linux:*:* | sparc64:Linux:*:*) |
949 | echo ${UNAME_MACHINE}-unknown-linux-gnu |
972 | echo ${UNAME_MACHINE}-unknown-linux-gnu |
950 | exit ;; |
973 | exit ;; |
|
|
974 | tile*:Linux:*:*) |
|
|
975 | echo ${UNAME_MACHINE}-tilera-linux-gnu |
|
|
976 | exit ;; |
951 | vax:Linux:*:*) |
977 | vax:Linux:*:*) |
952 | echo ${UNAME_MACHINE}-dec-linux-gnu |
978 | echo ${UNAME_MACHINE}-dec-linux-gnu |
953 | exit ;; |
979 | exit ;; |
954 | x86_64:Linux:*:*) |
980 | x86_64:Linux:*:*) |
955 | echo x86_64-unknown-linux-gnu |
981 | echo x86_64-unknown-linux-gnu |
956 | exit ;; |
982 | exit ;; |
957 | xtensa:Linux:*:*) |
983 | xtensa*:Linux:*:*) |
958 | echo xtensa-unknown-linux-gnu |
|
|
959 | exit ;; |
|
|
960 | i*86:Linux:*:*) |
|
|
961 | # The BFD linker knows what the default object file format is, so |
|
|
962 | # first see if it will tell us. cd to the root directory to prevent |
|
|
963 | # problems with other programs or directories called `ld' in the path. |
|
|
964 | # Set LC_ALL=C to ensure ld outputs messages in English. |
|
|
965 | ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \ |
|
|
966 | | sed -ne '/supported targets:/!d |
|
|
967 | s/[ ][ ]*/ /g |
|
|
968 | s/.*supported targets: *// |
|
|
969 | s/ .*// |
|
|
970 | p'` |
|
|
971 | case "$ld_supported_targets" in |
|
|
972 | elf32-i386) |
|
|
973 | TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" |
|
|
974 | ;; |
|
|
975 | a.out-i386-linux) |
|
|
976 | echo "${UNAME_MACHINE}-pc-linux-gnuaout" |
984 | echo ${UNAME_MACHINE}-unknown-linux-gnu |
977 | exit ;; |
985 | exit ;; |
978 | coff-i386) |
|
|
979 | echo "${UNAME_MACHINE}-pc-linux-gnucoff" |
|
|
980 | exit ;; |
|
|
981 | "") |
|
|
982 | # Either a pre-BFD a.out linker (linux-gnuoldld) or |
|
|
983 | # one that does not give us useful --help. |
|
|
984 | echo "${UNAME_MACHINE}-pc-linux-gnuoldld" |
|
|
985 | exit ;; |
|
|
986 | esac |
|
|
987 | # Determine whether the default compiler is a.out or elf |
|
|
988 | eval $set_cc_for_build |
|
|
989 | sed 's/^ //' << EOF >$dummy.c |
|
|
990 | #include <features.h> |
|
|
991 | #ifdef __ELF__ |
|
|
992 | # ifdef __GLIBC__ |
|
|
993 | # if __GLIBC__ >= 2 |
|
|
994 | LIBC=gnu |
|
|
995 | # else |
|
|
996 | LIBC=gnulibc1 |
|
|
997 | # endif |
|
|
998 | # else |
|
|
999 | LIBC=gnulibc1 |
|
|
1000 | # endif |
|
|
1001 | #else |
|
|
1002 | #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC) |
|
|
1003 | LIBC=gnu |
|
|
1004 | #else |
|
|
1005 | LIBC=gnuaout |
|
|
1006 | #endif |
|
|
1007 | #endif |
|
|
1008 | #ifdef __dietlibc__ |
|
|
1009 | LIBC=dietlibc |
|
|
1010 | #endif |
|
|
1011 | EOF |
|
|
1012 | eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' |
|
|
1013 | /^LIBC/{ |
|
|
1014 | s: ::g |
|
|
1015 | p |
|
|
1016 | }'`" |
|
|
1017 | test x"${LIBC}" != x && { |
|
|
1018 | echo "${UNAME_MACHINE}-pc-linux-${LIBC}" |
|
|
1019 | exit |
|
|
1020 | } |
|
|
1021 | test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; } |
|
|
1022 | ;; |
|
|
1023 | i*86:DYNIX/ptx:4*:*) |
986 | i*86:DYNIX/ptx:4*:*) |
1024 | # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. |
987 | # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. |
1025 | # earlier versions are messed up and put the nodename in both |
988 | # earlier versions are messed up and put the nodename in both |
1026 | # sysname and nodename. |
989 | # sysname and nodename. |
1027 | echo i386-sequent-sysv4 |
990 | echo i386-sequent-sysv4 |
1028 | exit ;; |
991 | exit ;; |
1029 | i*86:UNIX_SV:4.2MP:2.*) |
992 | i*86:UNIX_SV:4.2MP:2.*) |
1030 | # Unixware is an offshoot of SVR4, but it has its own version |
993 | # Unixware is an offshoot of SVR4, but it has its own version |
1031 | # number series starting with 2... |
994 | # number series starting with 2... |
1032 | # I am not positive that other SVR4 systems won't match this, |
995 | # I am not positive that other SVR4 systems won't match this, |
1033 | # I just have to hope. -- rms. |
996 | # I just have to hope. -- rms. |
1034 | # Use sysv4.2uw... so that sysv4* matches it. |
997 | # Use sysv4.2uw... so that sysv4* matches it. |
1035 | echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} |
998 | echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} |
1036 | exit ;; |
999 | exit ;; |
1037 | i*86:OS/2:*:*) |
1000 | i*86:OS/2:*:*) |
1038 | # If we were able to find `uname', then EMX Unix compatibility |
1001 | # If we were able to find `uname', then EMX Unix compatibility |
1039 | # is probably installed. |
1002 | # is probably installed. |
… | |
… | |
1046 | echo ${UNAME_MACHINE}-unknown-atheos |
1009 | echo ${UNAME_MACHINE}-unknown-atheos |
1047 | exit ;; |
1010 | exit ;; |
1048 | i*86:syllable:*:*) |
1011 | i*86:syllable:*:*) |
1049 | echo ${UNAME_MACHINE}-pc-syllable |
1012 | echo ${UNAME_MACHINE}-pc-syllable |
1050 | exit ;; |
1013 | exit ;; |
1051 | i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) |
1014 | i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) |
1052 | echo i386-unknown-lynxos${UNAME_RELEASE} |
1015 | echo i386-unknown-lynxos${UNAME_RELEASE} |
1053 | exit ;; |
1016 | exit ;; |
1054 | i*86:*DOS:*:*) |
1017 | i*86:*DOS:*:*) |
1055 | echo ${UNAME_MACHINE}-pc-msdosdjgpp |
1018 | echo ${UNAME_MACHINE}-pc-msdosdjgpp |
1056 | exit ;; |
1019 | exit ;; |
… | |
… | |
1061 | else |
1024 | else |
1062 | echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} |
1025 | echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} |
1063 | fi |
1026 | fi |
1064 | exit ;; |
1027 | exit ;; |
1065 | i*86:*:5:[678]*) |
1028 | i*86:*:5:[678]*) |
1066 | # UnixWare 7.x, OpenUNIX and OpenServer 6. |
1029 | # UnixWare 7.x, OpenUNIX and OpenServer 6. |
1067 | case `/bin/uname -X | grep "^Machine"` in |
1030 | case `/bin/uname -X | grep "^Machine"` in |
1068 | *486*) UNAME_MACHINE=i486 ;; |
1031 | *486*) UNAME_MACHINE=i486 ;; |
1069 | *Pentium) UNAME_MACHINE=i586 ;; |
1032 | *Pentium) UNAME_MACHINE=i586 ;; |
1070 | *Pent*|*Celeron) UNAME_MACHINE=i686 ;; |
1033 | *Pent*|*Celeron) UNAME_MACHINE=i686 ;; |
1071 | esac |
1034 | esac |
… | |
… | |
1089 | echo ${UNAME_MACHINE}-pc-sysv32 |
1052 | echo ${UNAME_MACHINE}-pc-sysv32 |
1090 | fi |
1053 | fi |
1091 | exit ;; |
1054 | exit ;; |
1092 | pc:*:*:*) |
1055 | pc:*:*:*) |
1093 | # Left here for compatibility: |
1056 | # Left here for compatibility: |
1094 | # uname -m prints for DJGPP always 'pc', but it prints nothing about |
1057 | # uname -m prints for DJGPP always 'pc', but it prints nothing about |
1095 | # the processor, so we play safe by assuming i386. |
1058 | # the processor, so we play safe by assuming i586. |
|
|
1059 | # Note: whatever this is, it MUST be the same as what config.sub |
|
|
1060 | # prints for the "djgpp" host, or else GDB configury will decide that |
|
|
1061 | # this is a cross-build. |
1096 | echo i386-pc-msdosdjgpp |
1062 | echo i586-pc-msdosdjgpp |
1097 | exit ;; |
1063 | exit ;; |
1098 | Intel:Mach:3*:*) |
1064 | Intel:Mach:3*:*) |
1099 | echo i386-pc-mach3 |
1065 | echo i386-pc-mach3 |
1100 | exit ;; |
1066 | exit ;; |
1101 | paragon:*:*:*) |
1067 | paragon:*:*:*) |
1102 | echo i860-intel-osf1 |
1068 | echo i860-intel-osf1 |
… | |
… | |
1127 | /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ |
1093 | /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ |
1128 | && { echo i486-ncr-sysv4.3${OS_REL}; exit; } |
1094 | && { echo i486-ncr-sysv4.3${OS_REL}; exit; } |
1129 | /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ |
1095 | /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ |
1130 | && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; |
1096 | && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; |
1131 | 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) |
1097 | 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) |
1132 | /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ |
1098 | /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ |
1133 | && { echo i486-ncr-sysv4; exit; } ;; |
1099 | && { echo i486-ncr-sysv4; exit; } ;; |
|
|
1100 | NCR*:*:4.2:* | MPRAS*:*:4.2:*) |
|
|
1101 | OS_REL='.3' |
|
|
1102 | test -r /etc/.relid \ |
|
|
1103 | && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` |
|
|
1104 | /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ |
|
|
1105 | && { echo i486-ncr-sysv4.3${OS_REL}; exit; } |
|
|
1106 | /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ |
|
|
1107 | && { echo i586-ncr-sysv4.3${OS_REL}; exit; } |
|
|
1108 | /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ |
|
|
1109 | && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; |
1134 | m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) |
1110 | m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) |
1135 | echo m68k-unknown-lynxos${UNAME_RELEASE} |
1111 | echo m68k-unknown-lynxos${UNAME_RELEASE} |
1136 | exit ;; |
1112 | exit ;; |
1137 | mc68030:UNIX_System_V:4.*:*) |
1113 | mc68030:UNIX_System_V:4.*:*) |
1138 | echo m68k-atari-sysv4 |
1114 | echo m68k-atari-sysv4 |
… | |
… | |
1141 | echo sparc-unknown-lynxos${UNAME_RELEASE} |
1117 | echo sparc-unknown-lynxos${UNAME_RELEASE} |
1142 | exit ;; |
1118 | exit ;; |
1143 | rs6000:LynxOS:2.*:*) |
1119 | rs6000:LynxOS:2.*:*) |
1144 | echo rs6000-unknown-lynxos${UNAME_RELEASE} |
1120 | echo rs6000-unknown-lynxos${UNAME_RELEASE} |
1145 | exit ;; |
1121 | exit ;; |
1146 | PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*) |
1122 | PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) |
1147 | echo powerpc-unknown-lynxos${UNAME_RELEASE} |
1123 | echo powerpc-unknown-lynxos${UNAME_RELEASE} |
1148 | exit ;; |
1124 | exit ;; |
1149 | SM[BE]S:UNIX_SV:*:*) |
1125 | SM[BE]S:UNIX_SV:*:*) |
1150 | echo mips-dde-sysv${UNAME_RELEASE} |
1126 | echo mips-dde-sysv${UNAME_RELEASE} |
1151 | exit ;; |
1127 | exit ;; |
… | |
… | |
1161 | echo ${UNAME_MACHINE}-sni-sysv4 |
1137 | echo ${UNAME_MACHINE}-sni-sysv4 |
1162 | else |
1138 | else |
1163 | echo ns32k-sni-sysv |
1139 | echo ns32k-sni-sysv |
1164 | fi |
1140 | fi |
1165 | exit ;; |
1141 | exit ;; |
1166 | PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort |
1142 | PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort |
1167 | # says <Richard.M.Bartel@ccMail.Census.GOV> |
1143 | # says <Richard.M.Bartel@ccMail.Census.GOV> |
1168 | echo i586-unisys-sysv4 |
1144 | echo i586-unisys-sysv4 |
1169 | exit ;; |
1145 | exit ;; |
1170 | *:UNIX_System_V:4*:FTX*) |
1146 | *:UNIX_System_V:4*:FTX*) |
1171 | # From Gerald Hewes <hewes@openmarket.com>. |
1147 | # From Gerald Hewes <hewes@openmarket.com>. |
1172 | # How about differentiating between stratus architectures? -djm |
1148 | # How about differentiating between stratus architectures? -djm |
1173 | echo hppa1.1-stratus-sysv4 |
1149 | echo hppa1.1-stratus-sysv4 |
1174 | exit ;; |
1150 | exit ;; |
… | |
… | |
1190 | news*:NEWS-OS:6*:*) |
1166 | news*:NEWS-OS:6*:*) |
1191 | echo mips-sony-newsos6 |
1167 | echo mips-sony-newsos6 |
1192 | exit ;; |
1168 | exit ;; |
1193 | R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) |
1169 | R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) |
1194 | if [ -d /usr/nec ]; then |
1170 | if [ -d /usr/nec ]; then |
1195 | echo mips-nec-sysv${UNAME_RELEASE} |
1171 | echo mips-nec-sysv${UNAME_RELEASE} |
1196 | else |
1172 | else |
1197 | echo mips-unknown-sysv${UNAME_RELEASE} |
1173 | echo mips-unknown-sysv${UNAME_RELEASE} |
1198 | fi |
1174 | fi |
1199 | exit ;; |
1175 | exit ;; |
1200 | BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. |
1176 | BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. |
1201 | echo powerpc-be-beos |
1177 | echo powerpc-be-beos |
1202 | exit ;; |
1178 | exit ;; |
1203 | BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. |
1179 | BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. |
1204 | echo powerpc-apple-beos |
1180 | echo powerpc-apple-beos |
1205 | exit ;; |
1181 | exit ;; |
1206 | BePC:BeOS:*:*) # BeOS running on Intel PC compatible. |
1182 | BePC:BeOS:*:*) # BeOS running on Intel PC compatible. |
1207 | echo i586-pc-beos |
1183 | echo i586-pc-beos |
|
|
1184 | exit ;; |
|
|
1185 | BePC:Haiku:*:*) # Haiku running on Intel PC compatible. |
|
|
1186 | echo i586-pc-haiku |
1208 | exit ;; |
1187 | exit ;; |
1209 | SX-4:SUPER-UX:*:*) |
1188 | SX-4:SUPER-UX:*:*) |
1210 | echo sx4-nec-superux${UNAME_RELEASE} |
1189 | echo sx4-nec-superux${UNAME_RELEASE} |
1211 | exit ;; |
1190 | exit ;; |
1212 | SX-5:SUPER-UX:*:*) |
1191 | SX-5:SUPER-UX:*:*) |
… | |
… | |
1231 | echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} |
1210 | echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} |
1232 | exit ;; |
1211 | exit ;; |
1233 | *:Darwin:*:*) |
1212 | *:Darwin:*:*) |
1234 | UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown |
1213 | UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown |
1235 | case $UNAME_PROCESSOR in |
1214 | case $UNAME_PROCESSOR in |
|
|
1215 | i386) |
|
|
1216 | eval $set_cc_for_build |
|
|
1217 | if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then |
|
|
1218 | if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ |
|
|
1219 | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ |
|
|
1220 | grep IS_64BIT_ARCH >/dev/null |
|
|
1221 | then |
|
|
1222 | UNAME_PROCESSOR="x86_64" |
|
|
1223 | fi |
|
|
1224 | fi ;; |
1236 | unknown) UNAME_PROCESSOR=powerpc ;; |
1225 | unknown) UNAME_PROCESSOR=powerpc ;; |
1237 | esac |
1226 | esac |
1238 | echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} |
1227 | echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} |
1239 | exit ;; |
1228 | exit ;; |
1240 | *:procnto*:*:* | *:QNX:[0123456789]*:*) |
1229 | *:procnto*:*:* | *:QNX:[0123456789]*:*) |
… | |
… | |
1245 | fi |
1234 | fi |
1246 | echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} |
1235 | echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} |
1247 | exit ;; |
1236 | exit ;; |
1248 | *:QNX:*:4*) |
1237 | *:QNX:*:4*) |
1249 | echo i386-pc-qnx |
1238 | echo i386-pc-qnx |
|
|
1239 | exit ;; |
|
|
1240 | NEO-?:NONSTOP_KERNEL:*:*) |
|
|
1241 | echo neo-tandem-nsk${UNAME_RELEASE} |
1250 | exit ;; |
1242 | exit ;; |
1251 | NSE-?:NONSTOP_KERNEL:*:*) |
1243 | NSE-?:NONSTOP_KERNEL:*:*) |
1252 | echo nse-tandem-nsk${UNAME_RELEASE} |
1244 | echo nse-tandem-nsk${UNAME_RELEASE} |
1253 | exit ;; |
1245 | exit ;; |
1254 | NSR-?:NONSTOP_KERNEL:*:*) |
1246 | NSR-?:NONSTOP_KERNEL:*:*) |
… | |
… | |
1291 | exit ;; |
1283 | exit ;; |
1292 | *:ITS:*:*) |
1284 | *:ITS:*:*) |
1293 | echo pdp10-unknown-its |
1285 | echo pdp10-unknown-its |
1294 | exit ;; |
1286 | exit ;; |
1295 | SEI:*:*:SEIUX) |
1287 | SEI:*:*:SEIUX) |
1296 | echo mips-sei-seiux${UNAME_RELEASE} |
1288 | echo mips-sei-seiux${UNAME_RELEASE} |
1297 | exit ;; |
1289 | exit ;; |
1298 | *:DragonFly:*:*) |
1290 | *:DragonFly:*:*) |
1299 | echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` |
1291 | echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` |
1300 | exit ;; |
1292 | exit ;; |
1301 | *:*VMS:*:*) |
1293 | *:*VMS:*:*) |
1302 | UNAME_MACHINE=`(uname -p) 2>/dev/null` |
1294 | UNAME_MACHINE=`(uname -p) 2>/dev/null` |
1303 | case "${UNAME_MACHINE}" in |
1295 | case "${UNAME_MACHINE}" in |
1304 | A*) echo alpha-dec-vms ; exit ;; |
1296 | A*) echo alpha-dec-vms ; exit ;; |
1305 | I*) echo ia64-dec-vms ; exit ;; |
1297 | I*) echo ia64-dec-vms ; exit ;; |
1306 | V*) echo vax-dec-vms ; exit ;; |
1298 | V*) echo vax-dec-vms ; exit ;; |
1307 | esac ;; |
1299 | esac ;; |
… | |
… | |
1311 | i*86:skyos:*:*) |
1303 | i*86:skyos:*:*) |
1312 | echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' |
1304 | echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' |
1313 | exit ;; |
1305 | exit ;; |
1314 | i*86:rdos:*:*) |
1306 | i*86:rdos:*:*) |
1315 | echo ${UNAME_MACHINE}-pc-rdos |
1307 | echo ${UNAME_MACHINE}-pc-rdos |
|
|
1308 | exit ;; |
|
|
1309 | i*86:AROS:*:*) |
|
|
1310 | echo ${UNAME_MACHINE}-pc-aros |
1316 | exit ;; |
1311 | exit ;; |
1317 | esac |
1312 | esac |
1318 | |
1313 | |
1319 | #echo '(No uname command or uname output not recognized.)' 1>&2 |
1314 | #echo '(No uname command or uname output not recognized.)' 1>&2 |
1320 | #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 |
1315 | #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 |
… | |
… | |
1334 | printf ("mips-sony-bsd\n"); exit (0); |
1329 | printf ("mips-sony-bsd\n"); exit (0); |
1335 | #else |
1330 | #else |
1336 | #include <sys/param.h> |
1331 | #include <sys/param.h> |
1337 | printf ("m68k-sony-newsos%s\n", |
1332 | printf ("m68k-sony-newsos%s\n", |
1338 | #ifdef NEWSOS4 |
1333 | #ifdef NEWSOS4 |
1339 | "4" |
1334 | "4" |
1340 | #else |
1335 | #else |
1341 | "" |
1336 | "" |
1342 | #endif |
1337 | #endif |
1343 | ); exit (0); |
1338 | ); exit (0); |
1344 | #endif |
1339 | #endif |
1345 | #endif |
1340 | #endif |
1346 | |
1341 | |
1347 | #if defined (__arm) && defined (__acorn) && defined (__unix) |
1342 | #if defined (__arm) && defined (__acorn) && defined (__unix) |
1348 | printf ("arm-acorn-riscix\n"); exit (0); |
1343 | printf ("arm-acorn-riscix\n"); exit (0); |
… | |
… | |
1472 | |
1467 | |
1473 | This script, last modified $timestamp, has failed to recognize |
1468 | This script, last modified $timestamp, has failed to recognize |
1474 | the operating system you are using. It is advised that you |
1469 | the operating system you are using. It is advised that you |
1475 | download the most up to date version of the config scripts from |
1470 | download the most up to date version of the config scripts from |
1476 | |
1471 | |
1477 | http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess |
1472 | http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD |
1478 | and |
1473 | and |
1479 | http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub |
1474 | http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD |
1480 | |
1475 | |
1481 | If the version you run ($0) is already up to date, please |
1476 | If the version you run ($0) is already up to date, please |
1482 | send the following data and any information you think might be |
1477 | send the following data and any information you think might be |
1483 | pertinent to <config-patches@gnu.org> in order to provide the needed |
1478 | pertinent to <config-patches@gnu.org> in order to provide the needed |
1484 | information to handle your system. |
1479 | information to handle your system. |