~ubuntu-branches/ubuntu/saucy/clamav/saucy-backports

« back to all changes in this revision

Viewing changes to config/config.guess

  • Committer: Package Import Robot
  • Author(s): Scott Kitterman
  • Date: 2014-07-15 01:08:10 UTC
  • mfrom: (0.35.47 sid)
  • Revision ID: package-import@ubuntu.com-20140715010810-ru66ek4fun2iseba
Tags: 0.98.4+dfsg-2~ubuntu13.10.1
No-change backport to saucy (LP: #1341962)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Attempt to guess a canonical system name.
3
3
#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4
 
#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
5
 
#   Free Software Foundation, Inc.
 
4
#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
 
5
#   2011, 2012 Free Software Foundation, Inc.
6
6
 
7
 
timestamp='2009-12-30'
 
7
timestamp='2012-02-10'
8
8
 
9
9
# This file is free software; you can redistribute it and/or modify it
10
10
# under the terms of the GNU General Public License as published by
17
17
# General Public License for more details.
18
18
#
19
19
# You should have received a copy of the GNU General Public License
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.
 
20
# along with this program; if not, see <http://www.gnu.org/licenses/>.
23
21
#
24
22
# As a special exception to the GNU General Public License, if you
25
23
# distribute this file as part of a program that contains a
57
55
 
58
56
Originally written by Per Bothner.
59
57
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
60
 
2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free
61
 
Software Foundation, Inc.
 
58
2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
 
59
Free Software Foundation, Inc.
62
60
 
63
61
This is free software; see the source for copying conditions.  There is NO
64
62
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
145
143
case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
146
144
    *:NetBSD:*:*)
147
145
        # NetBSD (nbsd) targets should (where applicable) match one or
148
 
        # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
 
146
        # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
149
147
        # *-*-netbsdecoff* and *-*-netbsd*.  For targets that recently
150
148
        # switched to ELF, *-*-netbsd* would select the old
151
149
        # object file format.  This provides both forward
181
179
                fi
182
180
                ;;
183
181
            *)
184
 
                os=netbsd
 
182
                os=netbsd
185
183
                ;;
186
184
        esac
187
185
        # The OS release
224
222
                UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
225
223
                ;;
226
224
        *5.*)
227
 
                UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
 
225
                UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
228
226
                ;;
229
227
        esac
230
228
        # According to Compaq, /usr/sbin/psrinfo has been available on
270
268
        # A Xn.n version is an unreleased experimental baselevel.
271
269
        # 1.2 uses "1.2" for uname -r.
272
270
        echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
273
 
        exit ;;
 
271
        # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
 
272
        exitcode=$?
 
273
        trap '' 0
 
274
        exit $exitcode ;;
274
275
    Alpha\ *:Windows_NT*:*)
275
276
        # How do we know it's Interix rather than the generic POSIX subsystem?
276
277
        # Should we change UNAME_MACHINE based on the output of uname instead
296
297
        echo s390-ibm-zvmoe
297
298
        exit ;;
298
299
    *:OS400:*:*)
299
 
        echo powerpc-ibm-os400
 
300
        echo powerpc-ibm-os400
300
301
        exit ;;
301
302
    arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
302
303
        echo arm-acorn-riscix${UNAME_RELEASE}
395
396
    # MiNT.  But MiNT is downward compatible to TOS, so this should
396
397
    # be no problem.
397
398
    atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
398
 
        echo m68k-atari-mint${UNAME_RELEASE}
 
399
        echo m68k-atari-mint${UNAME_RELEASE}
399
400
        exit ;;
400
401
    atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
401
402
        echo m68k-atari-mint${UNAME_RELEASE}
402
 
        exit ;;
 
403
        exit ;;
403
404
    *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
404
 
        echo m68k-atari-mint${UNAME_RELEASE}
 
405
        echo m68k-atari-mint${UNAME_RELEASE}
405
406
        exit ;;
406
407
    milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
407
 
        echo m68k-milan-mint${UNAME_RELEASE}
408
 
        exit ;;
 
408
        echo m68k-milan-mint${UNAME_RELEASE}
 
409
        exit ;;
409
410
    hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
410
 
        echo m68k-hades-mint${UNAME_RELEASE}
411
 
        exit ;;
 
411
        echo m68k-hades-mint${UNAME_RELEASE}
 
412
        exit ;;
412
413
    *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
413
 
        echo m68k-unknown-mint${UNAME_RELEASE}
414
 
        exit ;;
 
414
        echo m68k-unknown-mint${UNAME_RELEASE}
 
415
        exit ;;
415
416
    m68k:machten:*:*)
416
417
        echo m68k-apple-machten${UNAME_RELEASE}
417
418
        exit ;;
481
482
        echo m88k-motorola-sysv3
482
483
        exit ;;
483
484
    AViiON:dgux:*:*)
484
 
        # DG/UX returns AViiON for all architectures
485
 
        UNAME_PROCESSOR=`/usr/bin/uname -p`
 
485
        # DG/UX returns AViiON for all architectures
 
486
        UNAME_PROCESSOR=`/usr/bin/uname -p`
486
487
        if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
487
488
        then
488
489
            if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
495
496
        else
496
497
            echo i586-dg-dgux${UNAME_RELEASE}
497
498
        fi
498
 
        exit ;;
 
499
        exit ;;
499
500
    M88*:DolphinOS:*:*) # DolphinOS (SVR3)
500
501
        echo m88k-dolphin-sysv3
501
502
        exit ;;
552
553
                echo rs6000-ibm-aix3.2
553
554
        fi
554
555
        exit ;;
555
 
    *:AIX:*:[456])
 
556
    *:AIX:*:[4567])
556
557
        IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
557
558
        if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
558
559
                IBM_ARCH=rs6000
595
596
            9000/[678][0-9][0-9])
596
597
                if [ -x /usr/bin/getconf ]; then
597
598
                    sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
598
 
                    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
599
 
                    case "${sc_cpu_version}" in
600
 
                      523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
601
 
                      528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
602
 
                      532)                      # CPU_PA_RISC2_0
603
 
                        case "${sc_kernel_bits}" in
604
 
                          32) HP_ARCH="hppa2.0n" ;;
605
 
                          64) HP_ARCH="hppa2.0w" ;;
 
599
                    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
 
600
                    case "${sc_cpu_version}" in
 
601
                      523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
 
602
                      528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
 
603
                      532)                      # CPU_PA_RISC2_0
 
604
                        case "${sc_kernel_bits}" in
 
605
                          32) HP_ARCH="hppa2.0n" ;;
 
606
                          64) HP_ARCH="hppa2.0w" ;;
606
607
                          '') HP_ARCH="hppa2.0" ;;   # HP-UX 10.20
607
 
                        esac ;;
608
 
                    esac
 
608
                        esac ;;
 
609
                    esac
609
610
                fi
610
611
                if [ "${HP_ARCH}" = "" ]; then
611
612
                    eval $set_cc_for_build
612
 
                    sed 's/^              //' << EOF >$dummy.c
613
 
 
614
 
              #define _HPUX_SOURCE
615
 
              #include <stdlib.h>
616
 
              #include <unistd.h>
617
 
 
618
 
              int main ()
619
 
              {
620
 
              #if defined(_SC_KERNEL_BITS)
621
 
                  long bits = sysconf(_SC_KERNEL_BITS);
622
 
              #endif
623
 
                  long cpu  = sysconf (_SC_CPU_VERSION);
624
 
 
625
 
                  switch (cpu)
626
 
                {
627
 
                case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
628
 
                case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
629
 
                case CPU_PA_RISC2_0:
630
 
              #if defined(_SC_KERNEL_BITS)
631
 
                    switch (bits)
632
 
                        {
633
 
                        case 64: puts ("hppa2.0w"); break;
634
 
                        case 32: puts ("hppa2.0n"); break;
635
 
                        default: puts ("hppa2.0"); break;
636
 
                        } break;
637
 
              #else  /* !defined(_SC_KERNEL_BITS) */
638
 
                    puts ("hppa2.0"); break;
639
 
              #endif
640
 
                default: puts ("hppa1.0"); break;
641
 
                }
642
 
                  exit (0);
643
 
              }
 
613
                    sed 's/^            //' << EOF >$dummy.c
 
614
 
 
615
                #define _HPUX_SOURCE
 
616
                #include <stdlib.h>
 
617
                #include <unistd.h>
 
618
 
 
619
                int main ()
 
620
                {
 
621
                #if defined(_SC_KERNEL_BITS)
 
622
                    long bits = sysconf(_SC_KERNEL_BITS);
 
623
                #endif
 
624
                    long cpu  = sysconf (_SC_CPU_VERSION);
 
625
 
 
626
                    switch (cpu)
 
627
                        {
 
628
                        case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
 
629
                        case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
 
630
                        case CPU_PA_RISC2_0:
 
631
                #if defined(_SC_KERNEL_BITS)
 
632
                            switch (bits)
 
633
                                {
 
634
                                case 64: puts ("hppa2.0w"); break;
 
635
                                case 32: puts ("hppa2.0n"); break;
 
636
                                default: puts ("hppa2.0"); break;
 
637
                                } break;
 
638
                #else  /* !defined(_SC_KERNEL_BITS) */
 
639
                            puts ("hppa2.0"); break;
 
640
                #endif
 
641
                        default: puts ("hppa1.0"); break;
 
642
                        }
 
643
                    exit (0);
 
644
                }
644
645
EOF
645
646
                    (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
646
647
                    test -z "$HP_ARCH" && HP_ARCH=hppa
731
732
        exit ;;
732
733
    C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
733
734
        echo c1-convex-bsd
734
 
        exit ;;
 
735
        exit ;;
735
736
    C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
736
737
        if getsysinfo -f scalar_acc
737
738
        then echo c32-convex-bsd
738
739
        else echo c2-convex-bsd
739
740
        fi
740
 
        exit ;;
 
741
        exit ;;
741
742
    C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
742
743
        echo c34-convex-bsd
743
 
        exit ;;
 
744
        exit ;;
744
745
    C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
745
746
        echo c38-convex-bsd
746
 
        exit ;;
 
747
        exit ;;
747
748
    C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
748
749
        echo c4-convex-bsd
749
 
        exit ;;
 
750
        exit ;;
750
751
    CRAY*Y-MP:*:*:*)
751
752
        echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
752
753
        exit ;;
770
771
        exit ;;
771
772
    F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
772
773
        FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
773
 
        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
774
 
        FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
775
 
        echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
776
 
        exit ;;
 
774
        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
 
775
        FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
 
776
        echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
 
777
        exit ;;
777
778
    5000:UNIX_System_V:4.*:*)
778
 
        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
779
 
        FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
780
 
        echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
 
779
        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
 
780
        FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
 
781
        echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
781
782
        exit ;;
782
783
    i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
783
784
        echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
789
790
        echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
790
791
        exit ;;
791
792
    *:FreeBSD:*:*)
792
 
        case ${UNAME_MACHINE} in
793
 
            pc98)
794
 
                echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
 
793
        UNAME_PROCESSOR=`/usr/bin/uname -p`
 
794
        case ${UNAME_PROCESSOR} in
795
795
            amd64)
796
796
                echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
797
797
            *)
798
 
                echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
 
798
                echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
799
799
        esac
800
800
        exit ;;
801
801
    i*:CYGWIN*:*)
804
804
    *:MINGW*:*)
805
805
        echo ${UNAME_MACHINE}-pc-mingw32
806
806
        exit ;;
 
807
    i*:MSYS*:*)
 
808
        echo ${UNAME_MACHINE}-pc-msys
 
809
        exit ;;
807
810
    i*:windows32*:*)
808
 
        # uname -m includes "-pc" on this system.
809
 
        echo ${UNAME_MACHINE}-mingw32
 
811
        # uname -m includes "-pc" on this system.
 
812
        echo ${UNAME_MACHINE}-mingw32
810
813
        exit ;;
811
814
    i*:PW*:*)
812
815
        echo ${UNAME_MACHINE}-pc-pw32
813
816
        exit ;;
814
817
    *:Interix*:*)
815
 
        case ${UNAME_MACHINE} in
 
818
        case ${UNAME_MACHINE} in
816
819
            x86)
817
820
                echo i586-pc-interix${UNAME_RELEASE}
818
821
                exit ;;
858
861
    i*86:Minix:*:*)
859
862
        echo ${UNAME_MACHINE}-pc-minix
860
863
        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 ;;
861
871
    alpha:Linux:*:*)
862
872
        case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
863
873
          EV5)   UNAME_MACHINE=alphaev5 ;;
867
877
          EV6)   UNAME_MACHINE=alphaev6 ;;
868
878
          EV67)  UNAME_MACHINE=alphaev67 ;;
869
879
          EV68*) UNAME_MACHINE=alphaev68 ;;
870
 
        esac
 
880
        esac
871
881
        objdump --private-headers /bin/sh | grep -q ld.so.1
872
882
        if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
873
883
        echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
879
889
        then
880
890
            echo ${UNAME_MACHINE}-unknown-linux-gnu
881
891
        else
882
 
            echo ${UNAME_MACHINE}-unknown-linux-gnueabi
 
892
            if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
 
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
883
899
        fi
884
900
        exit ;;
885
901
    avr32*:Linux:*:*)
886
902
        echo ${UNAME_MACHINE}-unknown-linux-gnu
887
903
        exit ;;
888
904
    cris:Linux:*:*)
889
 
        echo cris-axis-linux-gnu
 
905
        echo ${UNAME_MACHINE}-axis-linux-gnu
890
906
        exit ;;
891
907
    crisv32:Linux:*:*)
892
 
        echo crisv32-axis-linux-gnu
 
908
        echo ${UNAME_MACHINE}-axis-linux-gnu
893
909
        exit ;;
894
910
    frv:Linux:*:*)
895
 
        echo frv-unknown-linux-gnu
 
911
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
912
        exit ;;
 
913
    hexagon:Linux:*:*)
 
914
        echo ${UNAME_MACHINE}-unknown-linux-gnu
896
915
        exit ;;
897
916
    i*86:Linux:*:*)
898
917
        LIBC=gnu
934
953
        test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
935
954
        ;;
936
955
    or32:Linux:*:*)
937
 
        echo or32-unknown-linux-gnu
 
956
        echo ${UNAME_MACHINE}-unknown-linux-gnu
938
957
        exit ;;
939
958
    padre:Linux:*:*)
940
959
        echo sparc-unknown-linux-gnu
960
979
        echo ${UNAME_MACHINE}-ibm-linux
961
980
        exit ;;
962
981
    sh64*:Linux:*:*)
963
 
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
982
        echo ${UNAME_MACHINE}-unknown-linux-gnu
964
983
        exit ;;
965
984
    sh*:Linux:*:*)
966
985
        echo ${UNAME_MACHINE}-unknown-linux-gnu
968
987
    sparc:Linux:*:* | sparc64:Linux:*:*)
969
988
        echo ${UNAME_MACHINE}-unknown-linux-gnu
970
989
        exit ;;
 
990
    tile*:Linux:*:*)
 
991
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
992
        exit ;;
971
993
    vax:Linux:*:*)
972
994
        echo ${UNAME_MACHINE}-dec-linux-gnu
973
995
        exit ;;
974
996
    x86_64:Linux:*:*)
975
 
        echo x86_64-unknown-linux-gnu
 
997
        echo ${UNAME_MACHINE}-unknown-linux-gnu
976
998
        exit ;;
977
999
    xtensa*:Linux:*:*)
978
 
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
1000
        echo ${UNAME_MACHINE}-unknown-linux-gnu
979
1001
        exit ;;
980
1002
    i*86:DYNIX/ptx:4*:*)
981
1003
        # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
984
1006
        echo i386-sequent-sysv4
985
1007
        exit ;;
986
1008
    i*86:UNIX_SV:4.2MP:2.*)
987
 
        # Unixware is an offshoot of SVR4, but it has its own version
988
 
        # number series starting with 2...
989
 
        # I am not positive that other SVR4 systems won't match this,
 
1009
        # Unixware is an offshoot of SVR4, but it has its own version
 
1010
        # number series starting with 2...
 
1011
        # I am not positive that other SVR4 systems won't match this,
990
1012
        # I just have to hope.  -- rms.
991
 
        # Use sysv4.2uw... so that sysv4* matches it.
 
1013
        # Use sysv4.2uw... so that sysv4* matches it.
992
1014
        echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
993
1015
        exit ;;
994
1016
    i*86:OS/2:*:*)
1020
1042
        fi
1021
1043
        exit ;;
1022
1044
    i*86:*:5:[678]*)
1023
 
        # UnixWare 7.x, OpenUNIX and OpenServer 6.
 
1045
        # UnixWare 7.x, OpenUNIX and OpenServer 6.
1024
1046
        case `/bin/uname -X | grep "^Machine"` in
1025
1047
            *486*)           UNAME_MACHINE=i486 ;;
1026
1048
            *Pentium)        UNAME_MACHINE=i586 ;;
1048
1070
        exit ;;
1049
1071
    pc:*:*:*)
1050
1072
        # Left here for compatibility:
1051
 
        # uname -m prints for DJGPP always 'pc', but it prints nothing about
1052
 
        # the processor, so we play safe by assuming i586.
 
1073
        # uname -m prints for DJGPP always 'pc', but it prints nothing about
 
1074
        # the processor, so we play safe by assuming i586.
1053
1075
        # Note: whatever this is, it MUST be the same as what config.sub
1054
1076
        # prints for the "djgpp" host, or else GDB configury will decide that
1055
1077
        # this is a cross-build.
1056
1078
        echo i586-pc-msdosdjgpp
1057
 
        exit ;;
 
1079
        exit ;;
1058
1080
    Intel:Mach:3*:*)
1059
1081
        echo i386-pc-mach3
1060
1082
        exit ;;
1089
1111
        /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1090
1112
          && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1091
1113
    3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1092
 
        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1093
 
          && { echo i486-ncr-sysv4; exit; } ;;
 
1114
        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
 
1115
          && { echo i486-ncr-sysv4; exit; } ;;
1094
1116
    NCR*:*:4.2:* | MPRAS*:*:4.2:*)
1095
1117
        OS_REL='.3'
1096
1118
        test -r /etc/.relid \
1133
1155
                echo ns32k-sni-sysv
1134
1156
        fi
1135
1157
        exit ;;
1136
 
    PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1137
 
                      # says <Richard.M.Bartel@ccMail.Census.GOV>
1138
 
        echo i586-unisys-sysv4
1139
 
        exit ;;
 
1158
    PENTIUM:*:4.0*:*)   # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
 
1159
                        # says <Richard.M.Bartel@ccMail.Census.GOV>
 
1160
        echo i586-unisys-sysv4
 
1161
        exit ;;
1140
1162
    *:UNIX_System_V:4*:FTX*)
1141
1163
        # From Gerald Hewes <hewes@openmarket.com>.
1142
1164
        # How about differentiating between stratus architectures? -djm
1162
1184
        exit ;;
1163
1185
    R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
1164
1186
        if [ -d /usr/nec ]; then
1165
 
                echo mips-nec-sysv${UNAME_RELEASE}
 
1187
                echo mips-nec-sysv${UNAME_RELEASE}
1166
1188
        else
1167
 
                echo mips-unknown-sysv${UNAME_RELEASE}
 
1189
                echo mips-unknown-sysv${UNAME_RELEASE}
1168
1190
        fi
1169
 
        exit ;;
 
1191
        exit ;;
1170
1192
    BeBox:BeOS:*:*)     # BeOS running on hardware made by Be, PPC only.
1171
1193
        echo powerpc-be-beos
1172
1194
        exit ;;
1231
1253
    *:QNX:*:4*)
1232
1254
        echo i386-pc-qnx
1233
1255
        exit ;;
 
1256
    NEO-?:NONSTOP_KERNEL:*:*)
 
1257
        echo neo-tandem-nsk${UNAME_RELEASE}
 
1258
        exit ;;
1234
1259
    NSE-?:NONSTOP_KERNEL:*:*)
1235
1260
        echo nse-tandem-nsk${UNAME_RELEASE}
1236
1261
        exit ;;
1276
1301
        echo pdp10-unknown-its
1277
1302
        exit ;;
1278
1303
    SEI:*:*:SEIUX)
1279
 
        echo mips-sei-seiux${UNAME_RELEASE}
 
1304
        echo mips-sei-seiux${UNAME_RELEASE}
1280
1305
        exit ;;
1281
1306
    *:DragonFly:*:*)
1282
1307
        echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
1283
1308
        exit ;;
1284
1309
    *:*VMS:*:*)
1285
 
        UNAME_MACHINE=`(uname -p) 2>/dev/null`
 
1310
        UNAME_MACHINE=`(uname -p) 2>/dev/null`
1286
1311
        case "${UNAME_MACHINE}" in
1287
1312
            A*) echo alpha-dec-vms ; exit ;;
1288
1313
            I*) echo ia64-dec-vms ; exit ;;
1300
1325
    i*86:AROS:*:*)
1301
1326
        echo ${UNAME_MACHINE}-pc-aros
1302
1327
        exit ;;
 
1328
    x86_64:VMkernel:*:*)
 
1329
        echo ${UNAME_MACHINE}-unknown-esx
 
1330
        exit ;;
1303
1331
esac
1304
1332
 
1305
1333
#echo '(No uname command or uname output not recognized.)' 1>&2
1322
1350
#include <sys/param.h>
1323
1351
  printf ("m68k-sony-newsos%s\n",
1324
1352
#ifdef NEWSOS4
1325
 
          "4"
 
1353
        "4"
1326
1354
#else
1327
 
          ""
 
1355
        ""
1328
1356
#endif
1329
 
         ); exit (0);
 
1357
        ); exit (0);
1330
1358
#endif
1331
1359
#endif
1332
1360