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 Free Software Foundation, Inc.
4
# 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
8
8
# This file is free software; you can redistribute it and/or modify it
9
9
# under the terms of the GNU General Public License as published by
18
18
# You should have received a copy of the GNU General Public License
19
19
# along with this program; if not, write to the Free Software
20
# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
20
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
23
22
# As a special exception to the GNU General Public License, if you
24
23
# distribute this file as part of a program that contains a
25
24
# configuration script generated by Autoconf, you may include it under
26
25
# the same distribution terms that you use for the rest of that program.
29
27
# Originally written by Per Bothner <per@bothner.com>.
30
28
# Please send patches to <config-patches@gnu.org>. Submit a context
31
29
# diff and a properly formatted ChangeLog entry.
55
53
GNU config.guess ($timestamp)
57
55
Originally written by Per Bothner.
58
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
56
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
59
57
Free Software Foundation, Inc.
61
59
This is free software; see the source for copying conditions. There is NO
198
196
# contains redundant information, the shorter form:
199
197
# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
200
198
echo "${machine}-${os}${release}"
201
echo x86_64-unknown-openbsd${UNAME_RELEASE}
204
echo m68k-unknown-openbsd${UNAME_RELEASE}
207
echo arm-unknown-openbsd${UNAME_RELEASE}
210
echo m68k-unknown-openbsd${UNAME_RELEASE}
213
echo m88k-unknown-openbsd${UNAME_RELEASE}
216
echo m68k-unknown-openbsd${UNAME_RELEASE}
219
echo powerpc-unknown-openbsd${UNAME_RELEASE}
222
echo m68k-unknown-openbsd${UNAME_RELEASE}
225
echo m88k-unknown-openbsd${UNAME_RELEASE}
228
echo powerpc-unknown-openbsd${UNAME_RELEASE}
231
echo mips64-unknown-openbsd${UNAME_RELEASE}
234
echo m68k-unknown-openbsd${UNAME_RELEASE}
203
UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
204
echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
237
echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
207
240
echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
209
242
macppc:MirBSD:*:*)
210
243
echo powerppc-unknown-mirbsd${UNAME_RELEASE}
213
246
echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
216
249
case $UNAME_RELEASE in
264
297
# A Xn.n version is an unreleased experimental baselevel.
265
298
# 1.2 uses "1.2" for uname -r.
266
299
echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
268
301
Alpha\ *:Windows_NT*:*)
269
302
# How do we know it's Interix rather than the generic POSIX subsystem?
270
303
# Should we change UNAME_MACHINE based on the output of uname instead
271
304
# of the specific Alpha model?
272
305
echo alpha-pc-interix
274
307
21064:Windows_NT:50:3)
275
308
echo alpha-dec-winnt3.5
277
310
Amiga*:UNIX_System_V:4.0:*)
278
311
echo m68k-unknown-sysv4
280
313
*:[Aa]miga[Oo][Ss]:*:*)
281
314
echo ${UNAME_MACHINE}-unknown-amigaos
283
316
*:[Mm]orph[Oo][Ss]:*:*)
284
317
echo ${UNAME_MACHINE}-unknown-morphos
287
320
echo i370-ibm-openedition
290
323
echo s390-ibm-zvmoe
293
326
echo powerpc-ibm-os400
295
328
arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
296
329
echo arm-acorn-riscix${UNAME_RELEASE}
298
arm:riscos:*:*|arm:RISCOS:*:*)
299
echo arm-unknown-riscos
301
331
SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
302
332
echo hppa1.1-hitachi-hiuxmpp
304
334
Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
305
335
# akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
306
336
if test "`(/bin/universe) 2>/dev/null`" = att ; then
309
339
echo pyramid-pyramid-bsd
313
343
echo pyramid-pyramid-svr4
315
345
DRS?6000:unix:4.0:6*)
316
346
echo sparc-icl-nx6
318
348
DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
319
349
case `/usr/bin/uname -p` in
320
sparc) echo sparc-icl-nx7; exit ;;
350
sparc) echo sparc-icl-nx7 && exit 0 ;;
322
352
sun4H:SunOS:5.*:*)
323
353
echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
325
355
sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
326
356
echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
328
358
i86pc:SunOS:5.*:*)
329
359
echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
331
361
sun4*:SunOS:6*:*)
332
362
# According to config.sub, this is the proper way to canonicalize
333
363
# SunOS6. Hard to guess exactly what SunOS6 will be like, but
334
364
# it's likely to be more like Solaris than SunOS4.
335
365
echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
338
368
case "`/usr/bin/arch -k`" in
372
402
atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
373
403
echo m68k-atari-mint${UNAME_RELEASE}
375
405
atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
376
406
echo m68k-atari-mint${UNAME_RELEASE}
378
408
*falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
379
409
echo m68k-atari-mint${UNAME_RELEASE}
381
411
milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
382
412
echo m68k-milan-mint${UNAME_RELEASE}
384
414
hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
385
415
echo m68k-hades-mint${UNAME_RELEASE}
387
417
*:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
388
418
echo m68k-unknown-mint${UNAME_RELEASE}
390
420
m68k:machten:*:*)
391
421
echo m68k-apple-machten${UNAME_RELEASE}
393
423
powerpc:machten:*:*)
394
424
echo powerpc-apple-machten${UNAME_RELEASE}
397
427
echo mips-dec-mach_bsd4.3
399
429
RISC*:ULTRIX:*:*)
400
430
echo mips-dec-ultrix${UNAME_RELEASE}
402
432
VAX*:ULTRIX*:*:*)
403
433
echo vax-dec-ultrix${UNAME_RELEASE}
405
435
2020:CLIX:*:* | 2430:CLIX:*:*)
406
436
echo clipper-intergraph-clix${UNAME_RELEASE}
408
438
mips:*:*:UMIPS | mips:*:*:RISCos)
409
439
eval $set_cc_for_build
410
440
sed 's/^ //' << EOF >$dummy.c
431
$CC_FOR_BUILD -o $dummy $dummy.c &&
432
dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
433
SYSTEM_NAME=`$dummy $dummyarg` &&
434
{ echo "$SYSTEM_NAME"; exit; }
461
$CC_FOR_BUILD -o $dummy $dummy.c \
462
&& $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
435
464
echo mips-mips-riscos${UNAME_RELEASE}
437
466
Motorola:PowerMAX_OS:*:*)
438
467
echo powerpc-motorola-powermax
440
469
Motorola:*:4.3:PL8-*)
441
470
echo powerpc-harris-powermax
443
472
Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
444
473
echo powerpc-harris-powermax
446
475
Night_Hawk:Power_UNIX:*:*)
447
476
echo powerpc-harris-powerunix
450
479
echo m88k-harris-cxux7
453
482
echo m88k-motorola-sysv4
456
485
echo m88k-motorola-sysv3
459
488
# DG/UX returns AViiON for all architectures
460
489
UNAME_PROCESSOR=`/usr/bin/uname -p`
471
500
echo i586-dg-dgux${UNAME_RELEASE}
474
503
M88*:DolphinOS:*:*) # DolphinOS (SVR3)
475
504
echo m88k-dolphin-sysv3
478
507
# Delta 88k system running SVR3
479
508
echo m88k-motorola-sysv3
481
510
XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
482
511
echo m88k-tektronix-sysv3
484
513
Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
485
514
echo m68k-tektronix-bsd
488
517
echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
490
519
????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
491
echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
492
exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
520
echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
521
exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX '
494
523
echo i386-ibm-aix
497
526
if [ -x /usr/bin/oslevel ] ; then
498
527
IBM_REV=`/usr/bin/oslevel`
540
565
IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
542
567
echo ${IBM_ARCH}-ibm-aix${IBM_REV}
545
570
echo rs6000-ibm-aix
547
572
ibmrt:4.4BSD:*|romp-ibm:BSD:*)
548
573
echo romp-ibm-bsd4.4
550
575
ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
551
576
echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
552
exit ;; # report: romp-ibm BSD 4.3
577
exit 0 ;; # report: romp-ibm BSD 4.3
554
579
echo rs6000-bull-bosx
556
581
DPX/2?00:B.O.S.:*:*)
557
582
echo m68k-bull-sysv3
559
584
9000/[34]??:4.3bsd:1.*:*)
562
587
hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
563
588
echo m68k-hp-bsd4.4
565
590
9000/[34678]??:HP-UX:*:*)
566
591
HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
567
592
case "${UNAME_MACHINE}" in
624
649
if [ ${HP_ARCH} = "hppa2.0w" ]
626
eval $set_cc_for_build
628
# hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
629
# 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
630
# generating 64-bit code. GNU and HP use different nomenclature:
632
# $ CC_FOR_BUILD=cc ./config.guess
633
# => hppa2.0w-hp-hpux11.23
634
# $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
635
# => hppa64-hp-hpux11.23
637
if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
638
grep __LP64__ >/dev/null
651
# avoid double evaluation of $set_cc_for_build
652
test -n "$CC_FOR_BUILD" || eval $set_cc_for_build
653
if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null
640
655
HP_ARCH="hppa2.0w"
678
$CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
679
{ echo "$SYSTEM_NAME"; exit; }
693
$CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
680
694
echo unknown-hitachi-hiuxwe2
682
696
9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
683
697
echo hppa1.1-hp-bsd
685
699
9000/8??:4.3bsd:*:*)
686
700
echo hppa1.0-hp-bsd
688
702
*9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
689
703
echo hppa1.0-hp-mpeix
691
705
hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
692
706
echo hppa1.1-hp-osf
695
709
echo hppa1.0-hp-osf
698
712
if [ -x /usr/sbin/sysversion ] ; then
699
713
echo ${UNAME_MACHINE}-unknown-osf1mk
701
715
echo ${UNAME_MACHINE}-unknown-osf1
704
718
parisc*:Lites*:*:*)
705
719
echo hppa1.1-hp-lites
707
721
C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
708
722
echo c1-convex-bsd
710
724
C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
711
725
if getsysinfo -f scalar_acc
712
726
then echo c32-convex-bsd
713
727
else echo c2-convex-bsd
716
730
C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
717
731
echo c34-convex-bsd
719
733
C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
720
734
echo c38-convex-bsd
722
736
C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
723
737
echo c4-convex-bsd
726
740
echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
728
742
CRAY*[A-Z]90:*:*:*)
729
743
echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
730
744
| sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
731
745
-e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
732
746
-e 's/\.[^.]*$/.X/'
735
749
echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
738
752
echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
741
755
echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
744
758
echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
746
760
F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
747
761
FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
748
762
FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
749
763
FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
750
764
echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
752
766
5000:UNIX_System_V:4.*:*)
753
767
FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
754
768
FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
755
769
echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
757
771
i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
758
772
echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
760
774
sparc*:BSD/OS:*:*)
761
775
echo sparc-unknown-bsdi${UNAME_RELEASE}
764
778
echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
767
781
echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
770
784
echo ${UNAME_MACHINE}-pc-cygwin
773
787
echo ${UNAME_MACHINE}-pc-mingw32
776
# uname -m includes "-pc" on this system.
777
echo ${UNAME_MACHINE}-mingw32
780
790
echo ${UNAME_MACHINE}-pc-pw32
782
792
x86:Interix*:[34]*)
783
793
echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
785
795
[345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
786
796
echo i${UNAME_MACHINE}-pc-mks
788
798
i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
789
799
# How do we know it's Interix rather than the generic POSIX subsystem?
790
800
# It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
791
801
# UNAME_MACHINE based on the output of uname instead of i386?
792
802
echo i586-pc-interix
795
805
echo ${UNAME_MACHINE}-pc-uwin
797
amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
798
echo x86_64-unknown-cygwin
801
808
echo powerpcle-unknown-cygwin
803
810
prep*:SunOS:5.*:*)
804
811
echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
808
815
echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
811
818
# other systems with GNU libc and userland
812
819
echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
815
822
echo ${UNAME_MACHINE}-pc-minix
818
825
echo ${UNAME_MACHINE}-unknown-linux-gnu
821
828
echo cris-axis-linux-gnu
823
830
crisv32:Linux:*:*)
824
831
echo crisv32-axis-linux-gnu
827
834
echo frv-unknown-linux-gnu
830
837
echo ${UNAME_MACHINE}-unknown-linux-gnu
833
840
echo ${UNAME_MACHINE}-unknown-linux-gnu
836
843
echo ${UNAME_MACHINE}-unknown-linux-gnu
839
846
eval $set_cc_for_build
840
847
sed 's/^ //' << EOF >$dummy.c
903
907
PA8*) echo hppa2.0-unknown-linux-gnu ;;
904
908
*) echo hppa-unknown-linux-gnu ;;
907
911
parisc64:Linux:*:* | hppa64:Linux:*:*)
908
912
echo hppa64-unknown-linux-gnu
910
914
s390:Linux:*:* | s390x:Linux:*:*)
911
915
echo ${UNAME_MACHINE}-ibm-linux
914
918
echo ${UNAME_MACHINE}-unknown-linux-gnu
917
921
echo ${UNAME_MACHINE}-unknown-linux-gnu
919
923
sparc:Linux:*:* | sparc64:Linux:*:*)
920
924
echo ${UNAME_MACHINE}-unknown-linux-gnu
922
926
x86_64:Linux:*:*)
923
927
echo x86_64-unknown-linux-gnu
926
930
# The BFD linker knows what the default object file format is, so
927
931
# first see if it will tell us. cd to the root directory to prevent
977
981
eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
978
test x"${LIBC}" != x && {
979
echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
982
test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
982
test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
983
test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
984
985
i*86:DYNIX/ptx:4*:*)
985
986
# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
986
987
# earlier versions are messed up and put the nodename in both
987
988
# sysname and nodename.
988
989
echo i386-sequent-sysv4
990
991
i*86:UNIX_SV:4.2MP:2.*)
991
992
# Unixware is an offshoot of SVR4, but it has its own version
992
993
# number series starting with 2...
994
995
# I just have to hope. -- rms.
995
996
# Use sysv4.2uw... so that sysv4* matches it.
996
997
echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
999
1000
# If we were able to find `uname', then EMX Unix compatibility
1000
1001
# is probably installed.
1001
1002
echo ${UNAME_MACHINE}-pc-os2-emx
1003
1004
i*86:XTS-300:*:STOP)
1004
1005
echo ${UNAME_MACHINE}-unknown-stop
1006
1007
i*86:atheos:*:*)
1007
1008
echo ${UNAME_MACHINE}-unknown-atheos
1010
1011
echo ${UNAME_MACHINE}-pc-syllable
1012
1013
i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
1013
1014
echo i386-unknown-lynxos${UNAME_RELEASE}
1016
1017
echo ${UNAME_MACHINE}-pc-msdosdjgpp
1018
1019
i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
1019
1020
UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
1020
1021
if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
1050
1050
echo ${UNAME_MACHINE}-pc-sysv32
1054
1054
# Left here for compatibility:
1055
1055
# uname -m prints for DJGPP always 'pc', but it prints nothing about
1056
1056
# the processor, so we play safe by assuming i386.
1057
1057
echo i386-pc-msdosdjgpp
1059
1059
Intel:Mach:3*:*)
1060
1060
echo i386-pc-mach3
1063
1063
echo i860-intel-osf1
1065
1065
i860:*:4.*:*) # i860-SVR4
1066
1066
if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
1067
1067
echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
1068
1068
else # Add other i860-SVR4 vendors below as they are discovered.
1069
1069
echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
1072
1072
mini*:CTIX:SYS*5:*)
1074
1074
echo m68010-convergent-sysv
1076
1076
mc68k:UNIX:SYSTEM5:3.51m)
1077
1077
echo m68k-convergent-sysv
1079
1079
M680?0:D-NIX:5.3:*)
1080
1080
echo m68k-diab-dnix
1082
1082
M68*:*:R3V[5678]*:*)
1083
test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
1083
test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
1084
1084
3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0)
1086
1086
test -r /etc/.relid \
1087
1087
&& OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1088
1088
/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1089
&& { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1089
&& echo i486-ncr-sysv4.3${OS_REL} && exit 0
1090
1090
/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1091
&& { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1091
&& echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;;
1092
1092
3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1093
1093
/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1094
&& { echo i486-ncr-sysv4; exit; } ;;
1094
&& echo i486-ncr-sysv4 && exit 0 ;;
1095
1095
m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1096
1096
echo m68k-unknown-lynxos${UNAME_RELEASE}
1098
1098
mc68030:UNIX_System_V:4.*:*)
1099
1099
echo m68k-atari-sysv4
1101
1101
TSUNAMI:LynxOS:2.*:*)
1102
1102
echo sparc-unknown-lynxos${UNAME_RELEASE}
1104
1104
rs6000:LynxOS:2.*:*)
1105
1105
echo rs6000-unknown-lynxos${UNAME_RELEASE}
1107
1107
PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
1108
1108
echo powerpc-unknown-lynxos${UNAME_RELEASE}
1110
1110
SM[BE]S:UNIX_SV:*:*)
1111
1111
echo mips-dde-sysv${UNAME_RELEASE}
1113
1113
RM*:ReliantUNIX-*:*:*)
1114
1114
echo mips-sni-sysv4
1116
1116
RM*:SINIX-*:*:*)
1117
1117
echo mips-sni-sysv4
1120
1120
if uname -p 2>/dev/null >/dev/null ; then
1121
1121
UNAME_MACHINE=`(uname -p) 2>/dev/null`
1124
1124
echo ns32k-sni-sysv
1127
1127
PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1128
1128
# says <Richard.M.Bartel@ccMail.Census.GOV>
1129
1129
echo i586-unisys-sysv4
1131
1131
*:UNIX_System_V:4*:FTX*)
1132
1132
# From Gerald Hewes <hewes@openmarket.com>.
1133
1133
# How about differentiating between stratus architectures? -djm
1134
1134
echo hppa1.1-stratus-sysv4
1137
1137
# From seanf@swdc.stratus.com.
1138
1138
echo i860-stratus-sysv4
1141
# From Paul.Green@stratus.com.
1142
echo ${UNAME_MACHINE}-stratus-vos
1145
1141
# From Paul.Green@stratus.com.
1146
1142
echo hppa1.1-stratus-vos
1148
1144
mc68*:A/UX:*:*)
1149
1145
echo m68k-apple-aux${UNAME_RELEASE}
1151
1147
news*:NEWS-OS:6*:*)
1152
1148
echo mips-sony-newsos6
1154
1150
R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
1155
1151
if [ -d /usr/nec ]; then
1156
1152
echo mips-nec-sysv${UNAME_RELEASE}
1158
1154
echo mips-unknown-sysv${UNAME_RELEASE}
1161
1157
BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
1162
1158
echo powerpc-be-beos
1164
1160
BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
1165
1161
echo powerpc-apple-beos
1167
1163
BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
1168
1164
echo i586-pc-beos
1170
1166
SX-4:SUPER-UX:*:*)
1171
1167
echo sx4-nec-superux${UNAME_RELEASE}
1173
1169
SX-5:SUPER-UX:*:*)
1174
1170
echo sx5-nec-superux${UNAME_RELEASE}
1176
1172
SX-6:SUPER-UX:*:*)
1177
1173
echo sx6-nec-superux${UNAME_RELEASE}
1179
1175
Power*:Rhapsody:*:*)
1180
1176
echo powerpc-apple-rhapsody${UNAME_RELEASE}
1182
1178
*:Rhapsody:*:*)
1183
1179
echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
1186
1182
UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1187
1183
case $UNAME_PROCESSOR in
1226
1219
UNAME_MACHINE="$cputype"
1228
1221
echo ${UNAME_MACHINE}-unknown-plan9
1231
1224
echo pdp10-unknown-tops10
1234
1227
echo pdp10-unknown-tenex
1236
1229
KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
1237
1230
echo pdp10-dec-tops20
1239
1232
XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
1240
1233
echo pdp10-xkl-tops20
1243
1236
echo pdp10-unknown-tops20
1246
1239
echo pdp10-unknown-its
1249
1242
echo mips-sei-seiux${UNAME_RELEASE}
1251
1244
*:DragonFly:*:*)
1252
1245
echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
1255
1248
UNAME_MACHINE=`(uname -p) 2>/dev/null`
1256
1249
case "${UNAME_MACHINE}" in
1257
A*) echo alpha-dec-vms ; exit ;;
1258
I*) echo ia64-dec-vms ; exit ;;
1259
V*) echo vax-dec-vms ; exit ;;
1250
A*) echo alpha-dec-vms && exit 0 ;;
1251
I*) echo ia64-dec-vms && exit 0 ;;
1252
V*) echo vax-dec-vms && exit 0 ;;
1261
1254
*:XENIX:*:SysV)
1262
1255
echo i386-pc-xenix
1265
echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
1269
1259
#echo '(No uname command or uname output not recognized.)' 1>&2