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 Free Software Foundation, Inc.
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
56
56
GNU config.guess ($timestamp)
58
58
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.
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
61
Software Foundation, Inc.
62
63
This is free software; see the source for copying conditions. There is NO
63
64
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
139
140
UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
140
141
UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
142
case "${UNAME_MACHINE}" in
144
test -z "$VENDOR" && VENDOR=pc
147
test -z "$VENDOR" && VENDOR=unknown
150
test -f /etc/SuSE-release -o -f /.buildenv && VENDOR=suse
152
143
# Note: order is significant - the case branches are not exclusive.
154
145
case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
215
206
UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
216
echo ${UNAME_MACHINE_ARCH}-${VENDOR}-openbsd${UNAME_RELEASE}
207
echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
219
echo ${UNAME_MACHINE}-${VENDOR}-ekkobsd${UNAME_RELEASE}
210
echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
222
echo ${UNAME_MACHINE}-${VENDOR}-solidbsd${UNAME_RELEASE}
213
echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
224
215
macppc:MirBSD:*:*)
225
echo powerpc-${VENDOR}-mirbsd${UNAME_RELEASE}
216
echo powerpc-unknown-mirbsd${UNAME_RELEASE}
228
echo ${UNAME_MACHINE}-${VENDOR}-mirbsd${UNAME_RELEASE}
219
echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
231
222
case $UNAME_RELEASE in
279
270
# A Xn.n version is an unreleased experimental baselevel.
280
271
# 1.2 uses "1.2" for uname -r.
281
272
echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
273
# Reset EXIT trap before exiting to avoid spurious non-zero exit code.
283
277
Alpha\ *:Windows_NT*:*)
284
278
# How do we know it's Interix rather than the generic POSIX subsystem?
285
279
# Should we change UNAME_MACHINE based on the output of uname instead
290
284
echo alpha-dec-winnt3.5
292
286
Amiga*:UNIX_System_V:4.0:*)
293
echo m68k-${VENDOR}-sysv4
287
echo m68k-unknown-sysv4
295
289
*:[Aa]miga[Oo][Ss]:*:*)
296
echo ${UNAME_MACHINE}-${VENDOR}-amigaos
290
echo ${UNAME_MACHINE}-unknown-amigaos
298
292
*:[Mm]orph[Oo][Ss]:*:*)
299
echo ${UNAME_MACHINE}-${VENDOR}-morphos
293
echo ${UNAME_MACHINE}-unknown-morphos
302
296
echo i370-ibm-openedition
305
299
echo s390-ibm-zvmoe
308
echo powerpc-ibm-os400
302
echo powerpc-ibm-os400
310
304
arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
311
305
echo arm-acorn-riscix${UNAME_RELEASE}
313
307
arm:riscos:*:*|arm:RISCOS:*:*)
314
echo arm-${VENDOR}-riscos
308
echo arm-unknown-riscos
316
310
SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
317
311
echo hppa1.1-hitachi-hiuxmpp
404
398
# MiNT. But MiNT is downward compatible to TOS, so this should
406
400
atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
407
echo m68k-atari-mint${UNAME_RELEASE}
401
echo m68k-atari-mint${UNAME_RELEASE}
409
403
atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
410
404
echo m68k-atari-mint${UNAME_RELEASE}
412
406
*falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
413
echo m68k-atari-mint${UNAME_RELEASE}
407
echo m68k-atari-mint${UNAME_RELEASE}
415
409
milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
416
echo m68k-milan-mint${UNAME_RELEASE}
410
echo m68k-milan-mint${UNAME_RELEASE}
418
412
hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
419
echo m68k-hades-mint${UNAME_RELEASE}
413
echo m68k-hades-mint${UNAME_RELEASE}
421
415
*:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
422
echo m68k-${VENDOR}-mint${UNAME_RELEASE}
416
echo m68k-unknown-mint${UNAME_RELEASE}
424
418
m68k:machten:*:*)
425
419
echo m68k-apple-machten${UNAME_RELEASE}
490
484
echo m88k-motorola-sysv3
493
# DG/UX returns AViiON for all architectures
494
UNAME_PROCESSOR=`/usr/bin/uname -p`
487
# DG/UX returns AViiON for all architectures
488
UNAME_PROCESSOR=`/usr/bin/uname -p`
495
489
if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
497
491
if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
604
598
9000/[678][0-9][0-9])
605
599
if [ -x /usr/bin/getconf ]; then
606
600
sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
607
sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
608
case "${sc_cpu_version}" in
609
523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
610
528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
611
532) # CPU_PA_RISC2_0
612
case "${sc_kernel_bits}" in
613
32) HP_ARCH="hppa2.0n" ;;
614
64) HP_ARCH="hppa2.0w" ;;
601
sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
602
case "${sc_cpu_version}" in
603
523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
604
528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
605
532) # CPU_PA_RISC2_0
606
case "${sc_kernel_bits}" in
607
32) HP_ARCH="hppa2.0n" ;;
608
64) HP_ARCH="hppa2.0w" ;;
615
609
'') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
619
613
if [ "${HP_ARCH}" = "" ]; then
620
614
eval $set_cc_for_build
621
sed 's/^ //' << EOF >$dummy.c
629
#if defined(_SC_KERNEL_BITS)
630
long bits = sysconf(_SC_KERNEL_BITS);
632
long cpu = sysconf (_SC_CPU_VERSION);
636
case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
637
case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
639
#if defined(_SC_KERNEL_BITS)
642
case 64: puts ("hppa2.0w"); break;
643
case 32: puts ("hppa2.0n"); break;
644
default: puts ("hppa2.0"); break;
646
#else /* !defined(_SC_KERNEL_BITS) */
647
puts ("hppa2.0"); break;
649
default: puts ("hppa1.0"); break;
615
sed 's/^ //' << EOF >$dummy.c
623
#if defined(_SC_KERNEL_BITS)
624
long bits = sysconf(_SC_KERNEL_BITS);
626
long cpu = sysconf (_SC_CPU_VERSION);
630
case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
631
case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
633
#if defined(_SC_KERNEL_BITS)
636
case 64: puts ("hppa2.0w"); break;
637
case 32: puts ("hppa2.0n"); break;
638
default: puts ("hppa2.0"); break;
640
#else /* !defined(_SC_KERNEL_BITS) */
641
puts ("hppa2.0"); break;
643
default: puts ("hppa1.0"); break;
654
648
(CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
655
649
test -z "$HP_ARCH" && HP_ARCH=hppa
741
735
C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
742
736
echo c1-convex-bsd
744
738
C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
745
739
if getsysinfo -f scalar_acc
746
740
then echo c32-convex-bsd
747
741
else echo c2-convex-bsd
750
744
C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
751
745
echo c34-convex-bsd
753
747
C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
754
748
echo c38-convex-bsd
756
750
C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
757
751
echo c4-convex-bsd
760
754
echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
780
774
F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
781
775
FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
782
FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
783
FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
784
echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
776
FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
777
FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
778
echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
786
780
5000:UNIX_System_V:4.*:*)
787
FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
788
FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
789
echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
781
FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
782
FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
783
echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
791
785
i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
792
786
echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
794
788
sparc*:BSD/OS:*:*)
795
echo sparc-${VENDOR}-bsdi${UNAME_RELEASE}
789
echo sparc-unknown-bsdi${UNAME_RELEASE}
798
echo ${UNAME_MACHINE}-${VENDOR}-bsdi${UNAME_RELEASE}
792
echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
801
case ${UNAME_MACHINE} in
803
echo i386-${VENDOR}-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
795
UNAME_PROCESSOR=`/usr/bin/uname -p`
796
case ${UNAME_PROCESSOR} in
805
echo x86_64-${VENDOR}-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
798
echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
807
echo ${UNAME_MACHINE}-${VENDOR}-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
800
echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
814
807
echo ${UNAME_MACHINE}-pc-mingw32
810
echo ${UNAME_MACHINE}-pc-msys
817
# uname -m includes "-pc" on this system.
818
echo ${UNAME_MACHINE}-mingw32
813
# uname -m includes "-pc" on this system.
814
echo ${UNAME_MACHINE}-mingw32
821
817
echo ${UNAME_MACHINE}-pc-pw32
824
case ${UNAME_MACHINE} in
820
case ${UNAME_MACHINE} in
826
822
echo i586-pc-interix${UNAME_RELEASE}
828
824
authenticamd | genuineintel | EM64T)
829
echo x86_64-${VENDOR}-interix${UNAME_RELEASE}
825
echo x86_64-unknown-interix${UNAME_RELEASE}
832
echo ia64-${VENDOR}-interix${UNAME_RELEASE}
828
echo ia64-unknown-interix${UNAME_RELEASE}
835
831
[345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
848
844
echo ${UNAME_MACHINE}-pc-uwin
850
846
amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
851
echo x86_64-${VENDOR}-cygwin
847
echo x86_64-unknown-cygwin
854
echo powerpcle-${VENDOR}-cygwin
850
echo powerpcle-unknown-cygwin
856
852
prep*:SunOS:5.*:*)
857
echo powerpcle-${VENDOR}-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
853
echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
861
echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-${VENDOR}-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
857
echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
864
860
# other systems with GNU libc and userland
865
echo ${UNAME_MACHINE}-${VENDOR}-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
861
echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
868
864
echo ${UNAME_MACHINE}-pc-minix
876
872
EV6) UNAME_MACHINE=alphaev6 ;;
877
873
EV67) UNAME_MACHINE=alphaev67 ;;
878
874
EV68*) UNAME_MACHINE=alphaev68 ;;
880
876
objdump --private-headers /bin/sh | grep -q ld.so.1
881
877
if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
882
echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu${LIBC}
878
echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
885
881
eval $set_cc_for_build
886
882
if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
887
883
| grep -q __ARM_EABI__
889
echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
885
echo ${UNAME_MACHINE}-unknown-linux-gnu
891
echo ${UNAME_MACHINE}-${VENDOR}-linux-gnueabi
887
if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
888
| grep -q __ARM_PCS_VFP
890
echo ${UNAME_MACHINE}-unknown-linux-gnueabi
892
echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
894
896
avr32*:Linux:*:*)
895
echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
897
echo ${UNAME_MACHINE}-unknown-linux-gnu
898
900
echo cris-axis-linux-gnu
914
919
eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
915
echo "${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}"
920
echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
918
echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
923
echo ${UNAME_MACHINE}-unknown-linux-gnu
921
echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
926
echo ${UNAME_MACHINE}-unknown-linux-gnu
924
echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
929
echo ${UNAME_MACHINE}-unknown-linux-gnu
926
931
mips:Linux:*:* | mips64:Linux:*:*)
927
932
eval $set_cc_for_build
942
947
eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
943
test x"${CPU}" != x && { echo "${CPU}-${VENDOR}-linux-gnu"; exit; }
948
test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
946
echo or32-${VENDOR}-linux-gnu
951
echo or32-unknown-linux-gnu
949
echo sparc-${VENDOR}-linux-gnu
954
echo sparc-unknown-linux-gnu
951
956
parisc64:Linux:*:* | hppa64:Linux:*:*)
952
echo hppa64-${VENDOR}-linux-gnu
957
echo hppa64-unknown-linux-gnu
954
959
parisc:Linux:*:* | hppa:Linux:*:*)
955
960
# Look for CPU level
956
961
case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
957
PA7*) echo hppa1.1-${VENDOR}-linux-gnu ;;
958
PA8*) echo hppa2.0-${VENDOR}-linux-gnu ;;
959
*) echo hppa-${VENDOR}-linux-gnu ;;
962
PA7*) echo hppa1.1-unknown-linux-gnu ;;
963
PA8*) echo hppa2.0-unknown-linux-gnu ;;
964
*) echo hppa-unknown-linux-gnu ;;
963
echo powerpc64-${VENDOR}-linux-gnu
968
echo powerpc64-unknown-linux-gnu
966
echo powerpc-${VENDOR}-linux-gnu
971
echo powerpc-unknown-linux-gnu
968
973
s390:Linux:*:* | s390x:Linux:*:*)
969
974
echo ${UNAME_MACHINE}-ibm-linux
972
echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
977
echo ${UNAME_MACHINE}-unknown-linux-gnu
975
echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
980
echo ${UNAME_MACHINE}-unknown-linux-gnu
977
982
sparc:Linux:*:* | sparc64:Linux:*:*)
978
echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
983
echo ${UNAME_MACHINE}-unknown-linux-gnu
986
echo ${UNAME_MACHINE}-unknown-linux-gnu
981
989
echo ${UNAME_MACHINE}-dec-linux-gnu
983
991
x86_64:Linux:*:*)
984
echo x86_64-${VENDOR}-linux-gnu
992
echo x86_64-unknown-linux-gnu
986
994
xtensa*:Linux:*:*)
987
echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
995
echo ${UNAME_MACHINE}-unknown-linux-gnu
989
997
i*86:DYNIX/ptx:4*:*)
990
998
# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
993
1001
echo i386-sequent-sysv4
995
1003
i*86:UNIX_SV:4.2MP:2.*)
996
# Unixware is an offshoot of SVR4, but it has its own version
997
# number series starting with 2...
998
# I am not positive that other SVR4 systems won't match this,
1004
# Unixware is an offshoot of SVR4, but it has its own version
1005
# number series starting with 2...
1006
# I am not positive that other SVR4 systems won't match this,
999
1007
# I just have to hope. -- rms.
1000
# Use sysv4.2uw... so that sysv4* matches it.
1008
# Use sysv4.2uw... so that sysv4* matches it.
1001
1009
echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
1006
1014
echo ${UNAME_MACHINE}-pc-os2-emx
1008
1016
i*86:XTS-300:*:STOP)
1009
echo ${UNAME_MACHINE}-${VENDOR}-stop
1017
echo ${UNAME_MACHINE}-unknown-stop
1011
1019
i*86:atheos:*:*)
1012
echo ${UNAME_MACHINE}-${VENDOR}-atheos
1020
echo ${UNAME_MACHINE}-unknown-atheos
1014
1022
i*86:syllable:*:*)
1015
1023
echo ${UNAME_MACHINE}-pc-syllable
1017
1025
i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
1018
echo i386-${VENDOR}-lynxos${UNAME_RELEASE}
1026
echo i386-unknown-lynxos${UNAME_RELEASE}
1021
1029
echo ${UNAME_MACHINE}-pc-msdosdjgpp
1031
1039
i*86:*:5:[678]*)
1032
# UnixWare 7.x, OpenUNIX and OpenServer 6.
1040
# UnixWare 7.x, OpenUNIX and OpenServer 6.
1033
1041
case `/bin/uname -X | grep "^Machine"` in
1034
1042
*486*) UNAME_MACHINE=i486 ;;
1035
1043
*Pentium) UNAME_MACHINE=i586 ;;
1036
1044
*Pent*|*Celeron) UNAME_MACHINE=i686 ;;
1038
echo ${UNAME_MACHINE}-${VENDOR}-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
1046
echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
1041
1049
if test -f /usr/options/cb.name; then
1059
1067
# Left here for compatibility:
1060
# uname -m prints for DJGPP always 'pc', but it prints nothing about
1061
# the processor, so we play safe by assuming i586.
1068
# uname -m prints for DJGPP always 'pc', but it prints nothing about
1069
# the processor, so we play safe by assuming i586.
1062
1070
# Note: whatever this is, it MUST be the same as what config.sub
1063
1071
# prints for the "djgpp" host, or else GDB configury will decide that
1064
1072
# this is a cross-build.
1065
1073
echo i586-pc-msdosdjgpp
1067
1075
Intel:Mach:3*:*)
1068
1076
echo i386-pc-mach3
1074
1082
if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
1075
1083
echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
1076
1084
else # Add other i860-SVR4 vendors below as they are discovered.
1077
echo i860-${VENDOR}-sysv${UNAME_RELEASE} # Unknown i860-SVR4
1085
echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
1080
1088
mini*:CTIX:SYS*5:*)
1098
1106
/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1099
1107
&& { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1100
1108
3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1101
/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1102
&& { echo i486-ncr-sysv4; exit; } ;;
1109
/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1110
&& { echo i486-ncr-sysv4; exit; } ;;
1103
1111
NCR*:*:4.2:* | MPRAS*:*:4.2:*)
1105
1113
test -r /etc/.relid \
1111
1119
/bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
1112
1120
&& { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1113
1121
m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1114
echo m68k-${VENDOR}-lynxos${UNAME_RELEASE}
1122
echo m68k-unknown-lynxos${UNAME_RELEASE}
1116
1124
mc68030:UNIX_System_V:4.*:*)
1117
1125
echo m68k-atari-sysv4
1119
1127
TSUNAMI:LynxOS:2.*:*)
1120
echo sparc-${VENDOR}-lynxos${UNAME_RELEASE}
1128
echo sparc-unknown-lynxos${UNAME_RELEASE}
1122
1130
rs6000:LynxOS:2.*:*)
1123
echo rs6000-${VENDOR}-lynxos${UNAME_RELEASE}
1131
echo rs6000-unknown-lynxos${UNAME_RELEASE}
1125
1133
PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
1126
echo powerpc-${VENDOR}-lynxos${UNAME_RELEASE}
1134
echo powerpc-unknown-lynxos${UNAME_RELEASE}
1128
1136
SM[BE]S:UNIX_SV:*:*)
1129
1137
echo mips-dde-sysv${UNAME_RELEASE}
1142
1150
echo ns32k-sni-sysv
1145
PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1146
# says <Richard.M.Bartel@ccMail.Census.GOV>
1147
echo i586-unisys-sysv4
1153
PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1154
# says <Richard.M.Bartel@ccMail.Census.GOV>
1155
echo i586-unisys-sysv4
1149
1157
*:UNIX_System_V:4*:FTX*)
1150
1158
# From Gerald Hewes <hewes@openmarket.com>.
1151
1159
# How about differentiating between stratus architectures? -djm
1172
1180
R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
1173
1181
if [ -d /usr/nec ]; then
1174
echo mips-nec-sysv${UNAME_RELEASE}
1182
echo mips-nec-sysv${UNAME_RELEASE}
1176
echo mips-${VENDOR}-sysv${UNAME_RELEASE}
1184
echo mips-unknown-sysv${UNAME_RELEASE}
1179
1187
BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
1180
1188
echo powerpc-be-beos
1265
1276
UNAME_MACHINE="$cputype"
1267
echo ${UNAME_MACHINE}-${VENDOR}-plan9
1278
echo ${UNAME_MACHINE}-unknown-plan9
1270
echo pdp10-${VENDOR}-tops10
1281
echo pdp10-unknown-tops10
1273
echo pdp10-${VENDOR}-tenex
1284
echo pdp10-unknown-tenex
1275
1286
KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
1276
1287
echo pdp10-dec-tops20
1279
1290
echo pdp10-xkl-tops20
1282
echo pdp10-${VENDOR}-tops20
1293
echo pdp10-unknown-tops20
1285
echo pdp10-${VENDOR}-its
1296
echo pdp10-unknown-its
1288
echo mips-sei-seiux${UNAME_RELEASE}
1299
echo mips-sei-seiux${UNAME_RELEASE}
1290
1301
*:DragonFly:*:*)
1291
echo ${UNAME_MACHINE}-${VENDOR}-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
1302
echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
1294
UNAME_MACHINE=`(uname -p) 2>/dev/null`
1305
UNAME_MACHINE=`(uname -p) 2>/dev/null`
1295
1306
case "${UNAME_MACHINE}" in
1296
1307
A*) echo alpha-dec-vms ; exit ;;
1297
1308
I*) echo ia64-dec-vms ; exit ;;