~ubuntu-branches/ubuntu/raring/libdrm/raring-proposed

« back to all changes in this revision

Viewing changes to build-aux/config.guess

  • Committer: Package Import Robot
  • Author(s): Julien Cristau, Maarten Lankhorst, Timo Aaltonen, Christopher James Halse Rogers, Sven Joachim
  • Date: 2012-11-17 18:50:33 UTC
  • mfrom: (1.1.31)
  • Revision ID: package-import@ubuntu.com-20121117185033-kuvgax0wpoqxo5in
Tags: 2.4.40-1
[ Maarten Lankhorst ]
* New upstream release.
  - Nouveau ABI change, replace libdrm-nouveau1a with libdrm-nouveau2.

[ Timo Aaltonen ]
* Bump libdrm-intel1's and libdrm-nouveau2's shlibs due to new symbols.
* Hardcode the version for libdrm-omap1's shlibs.

[ Christopher James Halse Rogers ]
* Add libdrm2-udeb; Xserver 1.13 wants libdrm for hotplug config, so
  will be needed for the 1.13 xserver-xorg-core-udeb.

[ Sven Joachim ]
* Bump libdrm-radeon1's symbols and shlibs.
* Mark some internal libdrm-nouveau2 symbols as private.
* Drop patch 02_build_libkms_against_in_tree_drm.diff, applied upstream.

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