comparison config.guess @ 1826:6a621a625b04

New release
author Adam Chlipala <adam@chlipala.net>
date Tue, 25 Sep 2012 08:16:58 -0400
parents 27d68ccb2c9e
children
comparison
equal deleted inserted replaced
1825:52c291b05738 1826:6a621a625b04
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, 2007, 2008, 2009, 2010, 4 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
5 # 2011, 2012 Free Software Foundation, Inc. 5 # Free Software Foundation, Inc.
6 6
7 timestamp='2012-02-10' 7 timestamp='2009-12-30'
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.
15 # WITHOUT ANY WARRANTY; without even the implied warranty of 15 # WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 # General Public License for more details. 17 # General Public License for more details.
18 # 18 #
19 # You should have received a copy of the GNU General Public License 19 # You should have received a copy of the GNU General Public License
20 # along with this program; if not, see <http://www.gnu.org/licenses/>. 20 # along with this program; if not, write to the Free Software
21 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
22 # 02110-1301, USA.
21 # 23 #
22 # As a special exception to the GNU General Public License, if you 24 # As a special exception to the GNU General Public License, if you
23 # distribute this file as part of a program that contains a 25 # distribute this file as part of a program that contains a
24 # configuration script generated by Autoconf, you may include it under 26 # configuration script generated by Autoconf, you may include it under
25 # 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.
53 version="\ 55 version="\
54 GNU config.guess ($timestamp) 56 GNU config.guess ($timestamp)
55 57
56 Originally written by Per Bothner. 58 Originally written by Per Bothner.
57 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 59 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
58 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 60 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free
59 Free Software Foundation, Inc. 61 Software Foundation, Inc.
60 62
61 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
62 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." 64 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
63 65
64 help=" 66 help="
141 # Note: order is significant - the case branches are not exclusive. 143 # Note: order is significant - the case branches are not exclusive.
142 144
143 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in 145 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
144 *:NetBSD:*:*) 146 *:NetBSD:*:*)
145 # NetBSD (nbsd) targets should (where applicable) match one or 147 # NetBSD (nbsd) targets should (where applicable) match one or
146 # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, 148 # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
147 # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently 149 # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
148 # switched to ELF, *-*-netbsd* would select the old 150 # switched to ELF, *-*-netbsd* would select the old
149 # object file format. This provides both forward 151 # object file format. This provides both forward
150 # compatibility and a consistent mechanism for selecting the 152 # compatibility and a consistent mechanism for selecting the
151 # object file format. 153 # object file format.
177 else 179 else
178 os=netbsdelf 180 os=netbsdelf
179 fi 181 fi
180 ;; 182 ;;
181 *) 183 *)
182 os=netbsd 184 os=netbsd
183 ;; 185 ;;
184 esac 186 esac
185 # The OS release 187 # The OS release
186 # Debian GNU/NetBSD machines have a different userland, and 188 # Debian GNU/NetBSD machines have a different userland, and
187 # thus, need a distinct triplet. However, they do not need 189 # thus, need a distinct triplet. However, they do not need
220 case $UNAME_RELEASE in 222 case $UNAME_RELEASE in
221 *4.0) 223 *4.0)
222 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` 224 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
223 ;; 225 ;;
224 *5.*) 226 *5.*)
225 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` 227 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
226 ;; 228 ;;
227 esac 229 esac
228 # According to Compaq, /usr/sbin/psrinfo has been available on 230 # According to Compaq, /usr/sbin/psrinfo has been available on
229 # OSF/1 and Tru64 systems produced since 1995. I hope that 231 # OSF/1 and Tru64 systems produced since 1995. I hope that
230 # covers most systems running today. This code pipes the CPU 232 # covers most systems running today. This code pipes the CPU
266 # A Vn.n version is a released version. 268 # A Vn.n version is a released version.
267 # A Tn.n version is a released field test version. 269 # A Tn.n version is a released field test version.
268 # A Xn.n version is an unreleased experimental baselevel. 270 # A Xn.n version is an unreleased experimental baselevel.
269 # 1.2 uses "1.2" for uname -r. 271 # 1.2 uses "1.2" for uname -r.
270 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'`
271 # Reset EXIT trap before exiting to avoid spurious non-zero exit code. 273 exit ;;
272 exitcode=$?
273 trap '' 0
274 exit $exitcode ;;
275 Alpha\ *:Windows_NT*:*) 274 Alpha\ *:Windows_NT*:*)
276 # How do we know it's Interix rather than the generic POSIX subsystem? 275 # How do we know it's Interix rather than the generic POSIX subsystem?
277 # Should we change UNAME_MACHINE based on the output of uname instead 276 # Should we change UNAME_MACHINE based on the output of uname instead
278 # of the specific Alpha model? 277 # of the specific Alpha model?
279 echo alpha-pc-interix 278 echo alpha-pc-interix
295 exit ;; 294 exit ;;
296 *:z/VM:*:*) 295 *:z/VM:*:*)
297 echo s390-ibm-zvmoe 296 echo s390-ibm-zvmoe
298 exit ;; 297 exit ;;
299 *:OS400:*:*) 298 *:OS400:*:*)
300 echo powerpc-ibm-os400 299 echo powerpc-ibm-os400
301 exit ;; 300 exit ;;
302 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) 301 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
303 echo arm-acorn-riscix${UNAME_RELEASE} 302 echo arm-acorn-riscix${UNAME_RELEASE}
304 exit ;; 303 exit ;;
305 arm:riscos:*:*|arm:RISCOS:*:*) 304 arm:riscos:*:*|arm:RISCOS:*:*)
394 # to the lowercase version "mint" (or "freemint"). Finally 393 # to the lowercase version "mint" (or "freemint"). Finally
395 # the system name "TOS" denotes a system which is actually not 394 # the system name "TOS" denotes a system which is actually not
396 # MiNT. But MiNT is downward compatible to TOS, so this should 395 # MiNT. But MiNT is downward compatible to TOS, so this should
397 # be no problem. 396 # be no problem.
398 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) 397 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
399 echo m68k-atari-mint${UNAME_RELEASE} 398 echo m68k-atari-mint${UNAME_RELEASE}
400 exit ;; 399 exit ;;
401 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) 400 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
402 echo m68k-atari-mint${UNAME_RELEASE} 401 echo m68k-atari-mint${UNAME_RELEASE}
403 exit ;; 402 exit ;;
404 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) 403 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
405 echo m68k-atari-mint${UNAME_RELEASE} 404 echo m68k-atari-mint${UNAME_RELEASE}
406 exit ;; 405 exit ;;
407 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) 406 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
408 echo m68k-milan-mint${UNAME_RELEASE} 407 echo m68k-milan-mint${UNAME_RELEASE}
409 exit ;; 408 exit ;;
410 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) 409 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
411 echo m68k-hades-mint${UNAME_RELEASE} 410 echo m68k-hades-mint${UNAME_RELEASE}
412 exit ;; 411 exit ;;
413 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) 412 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
414 echo m68k-unknown-mint${UNAME_RELEASE} 413 echo m68k-unknown-mint${UNAME_RELEASE}
415 exit ;; 414 exit ;;
416 m68k:machten:*:*) 415 m68k:machten:*:*)
417 echo m68k-apple-machten${UNAME_RELEASE} 416 echo m68k-apple-machten${UNAME_RELEASE}
418 exit ;; 417 exit ;;
419 powerpc:machten:*:*) 418 powerpc:machten:*:*)
420 echo powerpc-apple-machten${UNAME_RELEASE} 419 echo powerpc-apple-machten${UNAME_RELEASE}
480 exit ;; 479 exit ;;
481 m88k:*:3*:R3*) 480 m88k:*:3*:R3*)
482 echo m88k-motorola-sysv3 481 echo m88k-motorola-sysv3
483 exit ;; 482 exit ;;
484 AViiON:dgux:*:*) 483 AViiON:dgux:*:*)
485 # DG/UX returns AViiON for all architectures 484 # DG/UX returns AViiON for all architectures
486 UNAME_PROCESSOR=`/usr/bin/uname -p` 485 UNAME_PROCESSOR=`/usr/bin/uname -p`
487 if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] 486 if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
488 then 487 then
489 if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ 488 if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
490 [ ${TARGET_BINARY_INTERFACE}x = x ] 489 [ ${TARGET_BINARY_INTERFACE}x = x ]
491 then 490 then
494 echo m88k-dg-dguxbcs${UNAME_RELEASE} 493 echo m88k-dg-dguxbcs${UNAME_RELEASE}
495 fi 494 fi
496 else 495 else
497 echo i586-dg-dgux${UNAME_RELEASE} 496 echo i586-dg-dgux${UNAME_RELEASE}
498 fi 497 fi
499 exit ;; 498 exit ;;
500 M88*:DolphinOS:*:*) # DolphinOS (SVR3) 499 M88*:DolphinOS:*:*) # DolphinOS (SVR3)
501 echo m88k-dolphin-sysv3 500 echo m88k-dolphin-sysv3
502 exit ;; 501 exit ;;
503 M88*:*:R3*:*) 502 M88*:*:R3*:*)
504 # Delta 88k system running SVR3 503 # Delta 88k system running SVR3
551 echo rs6000-ibm-aix3.2.4 550 echo rs6000-ibm-aix3.2.4
552 else 551 else
553 echo rs6000-ibm-aix3.2 552 echo rs6000-ibm-aix3.2
554 fi 553 fi
555 exit ;; 554 exit ;;
556 *:AIX:*:[4567]) 555 *:AIX:*:[456])
557 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` 556 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
558 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then 557 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
559 IBM_ARCH=rs6000 558 IBM_ARCH=rs6000
560 else 559 else
561 IBM_ARCH=powerpc 560 IBM_ARCH=powerpc
594 9000/31? ) HP_ARCH=m68000 ;; 593 9000/31? ) HP_ARCH=m68000 ;;
595 9000/[34]?? ) HP_ARCH=m68k ;; 594 9000/[34]?? ) HP_ARCH=m68k ;;
596 9000/[678][0-9][0-9]) 595 9000/[678][0-9][0-9])
597 if [ -x /usr/bin/getconf ]; then 596 if [ -x /usr/bin/getconf ]; then
598 sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` 597 sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
599 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` 598 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
600 case "${sc_cpu_version}" in 599 case "${sc_cpu_version}" in
601 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 600 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
602 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 601 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
603 532) # CPU_PA_RISC2_0 602 532) # CPU_PA_RISC2_0
604 case "${sc_kernel_bits}" in 603 case "${sc_kernel_bits}" in
605 32) HP_ARCH="hppa2.0n" ;; 604 32) HP_ARCH="hppa2.0n" ;;
606 64) HP_ARCH="hppa2.0w" ;; 605 64) HP_ARCH="hppa2.0w" ;;
607 '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 606 '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
608 esac ;; 607 esac ;;
609 esac 608 esac
610 fi 609 fi
611 if [ "${HP_ARCH}" = "" ]; then 610 if [ "${HP_ARCH}" = "" ]; then
612 eval $set_cc_for_build 611 eval $set_cc_for_build
613 sed 's/^ //' << EOF >$dummy.c 612 sed 's/^ //' << EOF >$dummy.c
614 613
615 #define _HPUX_SOURCE 614 #define _HPUX_SOURCE
616 #include <stdlib.h> 615 #include <stdlib.h>
617 #include <unistd.h> 616 #include <unistd.h>
618 617
619 int main () 618 int main ()
620 { 619 {
621 #if defined(_SC_KERNEL_BITS) 620 #if defined(_SC_KERNEL_BITS)
622 long bits = sysconf(_SC_KERNEL_BITS); 621 long bits = sysconf(_SC_KERNEL_BITS);
623 #endif 622 #endif
624 long cpu = sysconf (_SC_CPU_VERSION); 623 long cpu = sysconf (_SC_CPU_VERSION);
625 624
626 switch (cpu) 625 switch (cpu)
627 { 626 {
628 case CPU_PA_RISC1_0: puts ("hppa1.0"); break; 627 case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
629 case CPU_PA_RISC1_1: puts ("hppa1.1"); break; 628 case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
630 case CPU_PA_RISC2_0: 629 case CPU_PA_RISC2_0:
631 #if defined(_SC_KERNEL_BITS) 630 #if defined(_SC_KERNEL_BITS)
632 switch (bits) 631 switch (bits)
633 { 632 {
634 case 64: puts ("hppa2.0w"); break; 633 case 64: puts ("hppa2.0w"); break;
635 case 32: puts ("hppa2.0n"); break; 634 case 32: puts ("hppa2.0n"); break;
636 default: puts ("hppa2.0"); break; 635 default: puts ("hppa2.0"); break;
637 } break; 636 } break;
638 #else /* !defined(_SC_KERNEL_BITS) */ 637 #else /* !defined(_SC_KERNEL_BITS) */
639 puts ("hppa2.0"); break; 638 puts ("hppa2.0"); break;
640 #endif 639 #endif
641 default: puts ("hppa1.0"); break; 640 default: puts ("hppa1.0"); break;
642 } 641 }
643 exit (0); 642 exit (0);
644 } 643 }
645 EOF 644 EOF
646 (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` 645 (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
647 test -z "$HP_ARCH" && HP_ARCH=hppa 646 test -z "$HP_ARCH" && HP_ARCH=hppa
648 fi ;; 647 fi ;;
649 esac 648 esac
730 parisc*:Lites*:*:*) 729 parisc*:Lites*:*:*)
731 echo hppa1.1-hp-lites 730 echo hppa1.1-hp-lites
732 exit ;; 731 exit ;;
733 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) 732 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
734 echo c1-convex-bsd 733 echo c1-convex-bsd
735 exit ;; 734 exit ;;
736 C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) 735 C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
737 if getsysinfo -f scalar_acc 736 if getsysinfo -f scalar_acc
738 then echo c32-convex-bsd 737 then echo c32-convex-bsd
739 else echo c2-convex-bsd 738 else echo c2-convex-bsd
740 fi 739 fi
741 exit ;; 740 exit ;;
742 C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) 741 C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
743 echo c34-convex-bsd 742 echo c34-convex-bsd
744 exit ;; 743 exit ;;
745 C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) 744 C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
746 echo c38-convex-bsd 745 echo c38-convex-bsd
747 exit ;; 746 exit ;;
748 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) 747 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
749 echo c4-convex-bsd 748 echo c4-convex-bsd
750 exit ;; 749 exit ;;
751 CRAY*Y-MP:*:*:*) 750 CRAY*Y-MP:*:*:*)
752 echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 751 echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
753 exit ;; 752 exit ;;
754 CRAY*[A-Z]90:*:*:*) 753 CRAY*[A-Z]90:*:*:*)
755 echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ 754 echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
769 *:UNICOS/mp:*:*) 768 *:UNICOS/mp:*:*)
770 echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 769 echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
771 exit ;; 770 exit ;;
772 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) 771 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
773 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 772 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
774 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` 773 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
775 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` 774 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
776 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 775 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
777 exit ;; 776 exit ;;
778 5000:UNIX_System_V:4.*:*) 777 5000:UNIX_System_V:4.*:*)
779 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` 778 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
780 FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` 779 FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
781 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 780 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
782 exit ;; 781 exit ;;
783 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) 782 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
784 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} 783 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
785 exit ;; 784 exit ;;
786 sparc*:BSD/OS:*:*) 785 sparc*:BSD/OS:*:*)
788 exit ;; 787 exit ;;
789 *:BSD/OS:*:*) 788 *:BSD/OS:*:*)
790 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} 789 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
791 exit ;; 790 exit ;;
792 *:FreeBSD:*:*) 791 *:FreeBSD:*:*)
793 UNAME_PROCESSOR=`/usr/bin/uname -p` 792 case ${UNAME_MACHINE} in
794 case ${UNAME_PROCESSOR} in 793 pc98)
794 echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
795 amd64) 795 amd64)
796 echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; 796 echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
797 *) 797 *)
798 echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; 798 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
799 esac 799 esac
800 exit ;; 800 exit ;;
801 i*:CYGWIN*:*) 801 i*:CYGWIN*:*)
802 echo ${UNAME_MACHINE}-pc-cygwin 802 echo ${UNAME_MACHINE}-pc-cygwin
803 exit ;; 803 exit ;;
804 *:MINGW*:*) 804 *:MINGW*:*)
805 echo ${UNAME_MACHINE}-pc-mingw32 805 echo ${UNAME_MACHINE}-pc-mingw32
806 exit ;; 806 exit ;;
807 i*:MSYS*:*)
808 echo ${UNAME_MACHINE}-pc-msys
809 exit ;;
810 i*:windows32*:*) 807 i*:windows32*:*)
811 # uname -m includes "-pc" on this system. 808 # uname -m includes "-pc" on this system.
812 echo ${UNAME_MACHINE}-mingw32 809 echo ${UNAME_MACHINE}-mingw32
813 exit ;; 810 exit ;;
814 i*:PW*:*) 811 i*:PW*:*)
815 echo ${UNAME_MACHINE}-pc-pw32 812 echo ${UNAME_MACHINE}-pc-pw32
816 exit ;; 813 exit ;;
817 *:Interix*:*) 814 *:Interix*:*)
818 case ${UNAME_MACHINE} in 815 case ${UNAME_MACHINE} in
819 x86) 816 x86)
820 echo i586-pc-interix${UNAME_RELEASE} 817 echo i586-pc-interix${UNAME_RELEASE}
821 exit ;; 818 exit ;;
822 authenticamd | genuineintel | EM64T) 819 authenticamd | genuineintel | EM64T)
823 echo x86_64-unknown-interix${UNAME_RELEASE} 820 echo x86_64-unknown-interix${UNAME_RELEASE}
859 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu 856 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
860 exit ;; 857 exit ;;
861 i*86:Minix:*:*) 858 i*86:Minix:*:*)
862 echo ${UNAME_MACHINE}-pc-minix 859 echo ${UNAME_MACHINE}-pc-minix
863 exit ;; 860 exit ;;
864 aarch64:Linux:*:*)
865 echo ${UNAME_MACHINE}-unknown-linux-gnu
866 exit ;;
867 aarch64_be:Linux:*:*)
868 UNAME_MACHINE=aarch64_be
869 echo ${UNAME_MACHINE}-unknown-linux-gnu
870 exit ;;
871 alpha:Linux:*:*) 861 alpha:Linux:*:*)
872 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in 862 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
873 EV5) UNAME_MACHINE=alphaev5 ;; 863 EV5) UNAME_MACHINE=alphaev5 ;;
874 EV56) UNAME_MACHINE=alphaev56 ;; 864 EV56) UNAME_MACHINE=alphaev56 ;;
875 PCA56) UNAME_MACHINE=alphapca56 ;; 865 PCA56) UNAME_MACHINE=alphapca56 ;;
876 PCA57) UNAME_MACHINE=alphapca56 ;; 866 PCA57) UNAME_MACHINE=alphapca56 ;;
877 EV6) UNAME_MACHINE=alphaev6 ;; 867 EV6) UNAME_MACHINE=alphaev6 ;;
878 EV67) UNAME_MACHINE=alphaev67 ;; 868 EV67) UNAME_MACHINE=alphaev67 ;;
879 EV68*) UNAME_MACHINE=alphaev68 ;; 869 EV68*) UNAME_MACHINE=alphaev68 ;;
880 esac 870 esac
881 objdump --private-headers /bin/sh | grep -q ld.so.1 871 objdump --private-headers /bin/sh | grep -q ld.so.1
882 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi 872 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
883 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} 873 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
884 exit ;; 874 exit ;;
885 arm*:Linux:*:*) 875 arm*:Linux:*:*)
887 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ 877 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
888 | grep -q __ARM_EABI__ 878 | grep -q __ARM_EABI__
889 then 879 then
890 echo ${UNAME_MACHINE}-unknown-linux-gnu 880 echo ${UNAME_MACHINE}-unknown-linux-gnu
891 else 881 else
892 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ 882 echo ${UNAME_MACHINE}-unknown-linux-gnueabi
893 | grep -q __ARM_PCS_VFP
894 then
895 echo ${UNAME_MACHINE}-unknown-linux-gnueabi
896 else
897 echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
898 fi
899 fi 883 fi
900 exit ;; 884 exit ;;
901 avr32*:Linux:*:*) 885 avr32*:Linux:*:*)
902 echo ${UNAME_MACHINE}-unknown-linux-gnu 886 echo ${UNAME_MACHINE}-unknown-linux-gnu
903 exit ;; 887 exit ;;
904 cris:Linux:*:*) 888 cris:Linux:*:*)
905 echo ${UNAME_MACHINE}-axis-linux-gnu 889 echo cris-axis-linux-gnu
906 exit ;; 890 exit ;;
907 crisv32:Linux:*:*) 891 crisv32:Linux:*:*)
908 echo ${UNAME_MACHINE}-axis-linux-gnu 892 echo crisv32-axis-linux-gnu
909 exit ;; 893 exit ;;
910 frv:Linux:*:*) 894 frv:Linux:*:*)
911 echo ${UNAME_MACHINE}-unknown-linux-gnu 895 echo frv-unknown-linux-gnu
912 exit ;;
913 hexagon:Linux:*:*)
914 echo ${UNAME_MACHINE}-unknown-linux-gnu
915 exit ;; 896 exit ;;
916 i*86:Linux:*:*) 897 i*86:Linux:*:*)
917 LIBC=gnu 898 LIBC=gnu
918 eval $set_cc_for_build 899 eval $set_cc_for_build
919 sed 's/^ //' << EOF >$dummy.c 900 sed 's/^ //' << EOF >$dummy.c
951 EOF 932 EOF
952 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` 933 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
953 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } 934 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
954 ;; 935 ;;
955 or32:Linux:*:*) 936 or32:Linux:*:*)
956 echo ${UNAME_MACHINE}-unknown-linux-gnu 937 echo or32-unknown-linux-gnu
957 exit ;; 938 exit ;;
958 padre:Linux:*:*) 939 padre:Linux:*:*)
959 echo sparc-unknown-linux-gnu 940 echo sparc-unknown-linux-gnu
960 exit ;; 941 exit ;;
961 parisc64:Linux:*:* | hppa64:Linux:*:*) 942 parisc64:Linux:*:* | hppa64:Linux:*:*)
977 exit ;; 958 exit ;;
978 s390:Linux:*:* | s390x:Linux:*:*) 959 s390:Linux:*:* | s390x:Linux:*:*)
979 echo ${UNAME_MACHINE}-ibm-linux 960 echo ${UNAME_MACHINE}-ibm-linux
980 exit ;; 961 exit ;;
981 sh64*:Linux:*:*) 962 sh64*:Linux:*:*)
982 echo ${UNAME_MACHINE}-unknown-linux-gnu 963 echo ${UNAME_MACHINE}-unknown-linux-gnu
983 exit ;; 964 exit ;;
984 sh*:Linux:*:*) 965 sh*:Linux:*:*)
985 echo ${UNAME_MACHINE}-unknown-linux-gnu 966 echo ${UNAME_MACHINE}-unknown-linux-gnu
986 exit ;; 967 exit ;;
987 sparc:Linux:*:* | sparc64:Linux:*:*) 968 sparc:Linux:*:* | sparc64:Linux:*:*)
988 echo ${UNAME_MACHINE}-unknown-linux-gnu 969 echo ${UNAME_MACHINE}-unknown-linux-gnu
989 exit ;; 970 exit ;;
990 tile*:Linux:*:*)
991 echo ${UNAME_MACHINE}-unknown-linux-gnu
992 exit ;;
993 vax:Linux:*:*) 971 vax:Linux:*:*)
994 echo ${UNAME_MACHINE}-dec-linux-gnu 972 echo ${UNAME_MACHINE}-dec-linux-gnu
995 exit ;; 973 exit ;;
996 x86_64:Linux:*:*) 974 x86_64:Linux:*:*)
997 echo ${UNAME_MACHINE}-unknown-linux-gnu 975 echo x86_64-unknown-linux-gnu
998 exit ;; 976 exit ;;
999 xtensa*:Linux:*:*) 977 xtensa*:Linux:*:*)
1000 echo ${UNAME_MACHINE}-unknown-linux-gnu 978 echo ${UNAME_MACHINE}-unknown-linux-gnu
1001 exit ;; 979 exit ;;
1002 i*86:DYNIX/ptx:4*:*) 980 i*86:DYNIX/ptx:4*:*)
1003 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. 981 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
1004 # earlier versions are messed up and put the nodename in both 982 # earlier versions are messed up and put the nodename in both
1005 # sysname and nodename. 983 # sysname and nodename.
1006 echo i386-sequent-sysv4 984 echo i386-sequent-sysv4
1007 exit ;; 985 exit ;;
1008 i*86:UNIX_SV:4.2MP:2.*) 986 i*86:UNIX_SV:4.2MP:2.*)
1009 # Unixware is an offshoot of SVR4, but it has its own version 987 # Unixware is an offshoot of SVR4, but it has its own version
1010 # number series starting with 2... 988 # number series starting with 2...
1011 # I am not positive that other SVR4 systems won't match this, 989 # I am not positive that other SVR4 systems won't match this,
1012 # I just have to hope. -- rms. 990 # I just have to hope. -- rms.
1013 # Use sysv4.2uw... so that sysv4* matches it. 991 # Use sysv4.2uw... so that sysv4* matches it.
1014 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} 992 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
1015 exit ;; 993 exit ;;
1016 i*86:OS/2:*:*) 994 i*86:OS/2:*:*)
1017 # If we were able to find `uname', then EMX Unix compatibility 995 # If we were able to find `uname', then EMX Unix compatibility
1018 # is probably installed. 996 # is probably installed.
1040 else 1018 else
1041 echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} 1019 echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
1042 fi 1020 fi
1043 exit ;; 1021 exit ;;
1044 i*86:*:5:[678]*) 1022 i*86:*:5:[678]*)
1045 # UnixWare 7.x, OpenUNIX and OpenServer 6. 1023 # UnixWare 7.x, OpenUNIX and OpenServer 6.
1046 case `/bin/uname -X | grep "^Machine"` in 1024 case `/bin/uname -X | grep "^Machine"` in
1047 *486*) UNAME_MACHINE=i486 ;; 1025 *486*) UNAME_MACHINE=i486 ;;
1048 *Pentium) UNAME_MACHINE=i586 ;; 1026 *Pentium) UNAME_MACHINE=i586 ;;
1049 *Pent*|*Celeron) UNAME_MACHINE=i686 ;; 1027 *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
1050 esac 1028 esac
1068 echo ${UNAME_MACHINE}-pc-sysv32 1046 echo ${UNAME_MACHINE}-pc-sysv32
1069 fi 1047 fi
1070 exit ;; 1048 exit ;;
1071 pc:*:*:*) 1049 pc:*:*:*)
1072 # Left here for compatibility: 1050 # Left here for compatibility:
1073 # uname -m prints for DJGPP always 'pc', but it prints nothing about 1051 # uname -m prints for DJGPP always 'pc', but it prints nothing about
1074 # the processor, so we play safe by assuming i586. 1052 # the processor, so we play safe by assuming i586.
1075 # Note: whatever this is, it MUST be the same as what config.sub 1053 # Note: whatever this is, it MUST be the same as what config.sub
1076 # prints for the "djgpp" host, or else GDB configury will decide that 1054 # prints for the "djgpp" host, or else GDB configury will decide that
1077 # this is a cross-build. 1055 # this is a cross-build.
1078 echo i586-pc-msdosdjgpp 1056 echo i586-pc-msdosdjgpp
1079 exit ;; 1057 exit ;;
1080 Intel:Mach:3*:*) 1058 Intel:Mach:3*:*)
1081 echo i386-pc-mach3 1059 echo i386-pc-mach3
1082 exit ;; 1060 exit ;;
1083 paragon:*:*:*) 1061 paragon:*:*:*)
1084 echo i860-intel-osf1 1062 echo i860-intel-osf1
1109 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 1087 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1110 && { echo i486-ncr-sysv4.3${OS_REL}; exit; } 1088 && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1111 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ 1089 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1112 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 1090 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1113 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) 1091 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1114 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 1092 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1115 && { echo i486-ncr-sysv4; exit; } ;; 1093 && { echo i486-ncr-sysv4; exit; } ;;
1116 NCR*:*:4.2:* | MPRAS*:*:4.2:*) 1094 NCR*:*:4.2:* | MPRAS*:*:4.2:*)
1117 OS_REL='.3' 1095 OS_REL='.3'
1118 test -r /etc/.relid \ 1096 test -r /etc/.relid \
1119 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` 1097 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1120 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 1098 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1153 echo ${UNAME_MACHINE}-sni-sysv4 1131 echo ${UNAME_MACHINE}-sni-sysv4
1154 else 1132 else
1155 echo ns32k-sni-sysv 1133 echo ns32k-sni-sysv
1156 fi 1134 fi
1157 exit ;; 1135 exit ;;
1158 PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort 1136 PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1159 # says <Richard.M.Bartel@ccMail.Census.GOV> 1137 # says <Richard.M.Bartel@ccMail.Census.GOV>
1160 echo i586-unisys-sysv4 1138 echo i586-unisys-sysv4
1161 exit ;; 1139 exit ;;
1162 *:UNIX_System_V:4*:FTX*) 1140 *:UNIX_System_V:4*:FTX*)
1163 # From Gerald Hewes <hewes@openmarket.com>. 1141 # From Gerald Hewes <hewes@openmarket.com>.
1164 # How about differentiating between stratus architectures? -djm 1142 # How about differentiating between stratus architectures? -djm
1165 echo hppa1.1-stratus-sysv4 1143 echo hppa1.1-stratus-sysv4
1166 exit ;; 1144 exit ;;
1182 news*:NEWS-OS:6*:*) 1160 news*:NEWS-OS:6*:*)
1183 echo mips-sony-newsos6 1161 echo mips-sony-newsos6
1184 exit ;; 1162 exit ;;
1185 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) 1163 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
1186 if [ -d /usr/nec ]; then 1164 if [ -d /usr/nec ]; then
1187 echo mips-nec-sysv${UNAME_RELEASE} 1165 echo mips-nec-sysv${UNAME_RELEASE}
1188 else 1166 else
1189 echo mips-unknown-sysv${UNAME_RELEASE} 1167 echo mips-unknown-sysv${UNAME_RELEASE}
1190 fi 1168 fi
1191 exit ;; 1169 exit ;;
1192 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. 1170 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
1193 echo powerpc-be-beos 1171 echo powerpc-be-beos
1194 exit ;; 1172 exit ;;
1195 BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. 1173 BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
1196 echo powerpc-apple-beos 1174 echo powerpc-apple-beos
1251 echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} 1229 echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
1252 exit ;; 1230 exit ;;
1253 *:QNX:*:4*) 1231 *:QNX:*:4*)
1254 echo i386-pc-qnx 1232 echo i386-pc-qnx
1255 exit ;; 1233 exit ;;
1256 NEO-?:NONSTOP_KERNEL:*:*)
1257 echo neo-tandem-nsk${UNAME_RELEASE}
1258 exit ;;
1259 NSE-?:NONSTOP_KERNEL:*:*) 1234 NSE-?:NONSTOP_KERNEL:*:*)
1260 echo nse-tandem-nsk${UNAME_RELEASE} 1235 echo nse-tandem-nsk${UNAME_RELEASE}
1261 exit ;; 1236 exit ;;
1262 NSR-?:NONSTOP_KERNEL:*:*) 1237 NSR-?:NONSTOP_KERNEL:*:*)
1263 echo nsr-tandem-nsk${UNAME_RELEASE} 1238 echo nsr-tandem-nsk${UNAME_RELEASE}
1299 exit ;; 1274 exit ;;
1300 *:ITS:*:*) 1275 *:ITS:*:*)
1301 echo pdp10-unknown-its 1276 echo pdp10-unknown-its
1302 exit ;; 1277 exit ;;
1303 SEI:*:*:SEIUX) 1278 SEI:*:*:SEIUX)
1304 echo mips-sei-seiux${UNAME_RELEASE} 1279 echo mips-sei-seiux${UNAME_RELEASE}
1305 exit ;; 1280 exit ;;
1306 *:DragonFly:*:*) 1281 *:DragonFly:*:*)
1307 echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` 1282 echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
1308 exit ;; 1283 exit ;;
1309 *:*VMS:*:*) 1284 *:*VMS:*:*)
1310 UNAME_MACHINE=`(uname -p) 2>/dev/null` 1285 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1311 case "${UNAME_MACHINE}" in 1286 case "${UNAME_MACHINE}" in
1312 A*) echo alpha-dec-vms ; exit ;; 1287 A*) echo alpha-dec-vms ; exit ;;
1313 I*) echo ia64-dec-vms ; exit ;; 1288 I*) echo ia64-dec-vms ; exit ;;
1314 V*) echo vax-dec-vms ; exit ;; 1289 V*) echo vax-dec-vms ; exit ;;
1315 esac ;; 1290 esac ;;
1322 i*86:rdos:*:*) 1297 i*86:rdos:*:*)
1323 echo ${UNAME_MACHINE}-pc-rdos 1298 echo ${UNAME_MACHINE}-pc-rdos
1324 exit ;; 1299 exit ;;
1325 i*86:AROS:*:*) 1300 i*86:AROS:*:*)
1326 echo ${UNAME_MACHINE}-pc-aros 1301 echo ${UNAME_MACHINE}-pc-aros
1327 exit ;;
1328 x86_64:VMkernel:*:*)
1329 echo ${UNAME_MACHINE}-unknown-esx
1330 exit ;; 1302 exit ;;
1331 esac 1303 esac
1332 1304
1333 #echo '(No uname command or uname output not recognized.)' 1>&2 1305 #echo '(No uname command or uname output not recognized.)' 1>&2
1334 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 1306 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
1348 printf ("mips-sony-bsd\n"); exit (0); 1320 printf ("mips-sony-bsd\n"); exit (0);
1349 #else 1321 #else
1350 #include <sys/param.h> 1322 #include <sys/param.h>
1351 printf ("m68k-sony-newsos%s\n", 1323 printf ("m68k-sony-newsos%s\n",
1352 #ifdef NEWSOS4 1324 #ifdef NEWSOS4
1353 "4" 1325 "4"
1354 #else 1326 #else
1355 "" 1327 ""
1356 #endif 1328 #endif
1357 ); exit (0); 1329 ); exit (0);
1358 #endif 1330 #endif
1359 #endif 1331 #endif
1360 1332
1361 #if defined (__arm) && defined (__acorn) && defined (__unix) 1333 #if defined (__arm) && defined (__acorn) && defined (__unix)
1362 printf ("arm-acorn-riscix\n"); exit (0); 1334 printf ("arm-acorn-riscix\n"); exit (0);