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 Free Software Foundation,
4
# 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
9
8
# This file is free software; you can redistribute it and/or modify it
10
9
# under the terms of the GNU General Public License as published by
19
18
# You should have received a copy of the GNU General Public License
20
19
# along with this program; if not, write to the Free Software
21
# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
20
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
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
26
24
# configuration script generated by Autoconf, you may include it under
27
25
# the same distribution terms that you use for the rest of that program.
30
27
# Originally written by Per Bothner <per@bothner.com>.
31
28
# Please send patches to <config-patches@gnu.org>. Submit a context
32
29
# diff and a properly formatted ChangeLog entry.
200
206
# contains redundant information, the shorter form:
201
207
# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
202
208
echo "${machine}-${os}${release}"
211
echo x86_64-unknown-openbsd${UNAME_RELEASE}
214
echo m68k-unknown-openbsd${UNAME_RELEASE}
217
echo arm-unknown-openbsd${UNAME_RELEASE}
220
echo m68k-unknown-openbsd${UNAME_RELEASE}
223
echo m88k-unknown-openbsd${UNAME_RELEASE}
226
echo m68k-unknown-openbsd${UNAME_RELEASE}
229
echo powerpc-unknown-openbsd${UNAME_RELEASE}
232
echo m68k-unknown-openbsd${UNAME_RELEASE}
235
echo m88k-unknown-openbsd${UNAME_RELEASE}
238
echo powerpc-unknown-openbsd${UNAME_RELEASE}
241
echo mips64-unknown-openbsd${UNAME_RELEASE}
244
echo m68k-unknown-openbsd${UNAME_RELEASE}
205
UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
206
echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
247
echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
209
250
echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
212
echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
214
252
macppc:MirBSD:*:*)
215
echo powerpc-unknown-mirbsd${UNAME_RELEASE}
253
echo powerppc-unknown-mirbsd${UNAME_RELEASE}
218
256
echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
221
259
case $UNAME_RELEASE in
269
307
# A Xn.n version is an unreleased experimental baselevel.
270
308
# 1.2 uses "1.2" for uname -r.
271
309
echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
273
311
Alpha\ *:Windows_NT*:*)
274
312
# How do we know it's Interix rather than the generic POSIX subsystem?
275
313
# Should we change UNAME_MACHINE based on the output of uname instead
276
314
# of the specific Alpha model?
277
315
echo alpha-pc-interix
279
317
21064:Windows_NT:50:3)
280
318
echo alpha-dec-winnt3.5
282
320
Amiga*:UNIX_System_V:4.0:*)
283
321
echo m68k-unknown-sysv4
285
323
*:[Aa]miga[Oo][Ss]:*:*)
286
324
echo ${UNAME_MACHINE}-unknown-amigaos
288
326
*:[Mm]orph[Oo][Ss]:*:*)
289
327
echo ${UNAME_MACHINE}-unknown-morphos
292
330
echo i370-ibm-openedition
295
333
echo s390-ibm-zvmoe
298
336
echo powerpc-ibm-os400
300
338
arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
301
339
echo arm-acorn-riscix${UNAME_RELEASE}
303
arm:riscos:*:*|arm:RISCOS:*:*)
304
echo arm-unknown-riscos
306
341
SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
307
342
echo hppa1.1-hitachi-hiuxmpp
309
344
Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
310
345
# akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
311
346
if test "`(/bin/universe) 2>/dev/null`" = att ; then
314
349
echo pyramid-pyramid-bsd
318
353
echo pyramid-pyramid-svr4
320
355
DRS?6000:unix:4.0:6*)
321
356
echo sparc-icl-nx6
323
358
DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
324
359
case `/usr/bin/uname -p` in
325
sparc) echo sparc-icl-nx7; exit ;;
360
sparc) echo sparc-icl-nx7 && exit 0 ;;
327
362
sun4H:SunOS:5.*:*)
328
363
echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
330
365
sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
331
366
echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
333
i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
334
369
echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
336
371
sun4*:SunOS:6*:*)
337
372
# According to config.sub, this is the proper way to canonicalize
338
373
# SunOS6. Hard to guess exactly what SunOS6 will be like, but
339
374
# it's likely to be more like Solaris than SunOS4.
340
375
echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
343
378
case "`/usr/bin/arch -k`" in
377
412
atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
378
413
echo m68k-atari-mint${UNAME_RELEASE}
380
415
atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
381
416
echo m68k-atari-mint${UNAME_RELEASE}
383
418
*falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
384
419
echo m68k-atari-mint${UNAME_RELEASE}
386
421
milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
387
422
echo m68k-milan-mint${UNAME_RELEASE}
389
424
hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
390
425
echo m68k-hades-mint${UNAME_RELEASE}
392
427
*:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
393
428
echo m68k-unknown-mint${UNAME_RELEASE}
395
430
m68k:machten:*:*)
396
431
echo m68k-apple-machten${UNAME_RELEASE}
398
433
powerpc:machten:*:*)
399
434
echo powerpc-apple-machten${UNAME_RELEASE}
402
437
echo mips-dec-mach_bsd4.3
404
439
RISC*:ULTRIX:*:*)
405
440
echo mips-dec-ultrix${UNAME_RELEASE}
407
442
VAX*:ULTRIX*:*:*)
408
443
echo vax-dec-ultrix${UNAME_RELEASE}
410
445
2020:CLIX:*:* | 2430:CLIX:*:*)
411
446
echo clipper-intergraph-clix${UNAME_RELEASE}
413
448
mips:*:*:UMIPS | mips:*:*:RISCos)
414
449
eval $set_cc_for_build
415
450
sed 's/^ //' << EOF >$dummy.c
436
$CC_FOR_BUILD -o $dummy $dummy.c &&
437
dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
438
SYSTEM_NAME=`$dummy $dummyarg` &&
439
{ echo "$SYSTEM_NAME"; exit; }
471
$CC_FOR_BUILD -o $dummy $dummy.c \
472
&& $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
440
474
echo mips-mips-riscos${UNAME_RELEASE}
442
476
Motorola:PowerMAX_OS:*:*)
443
477
echo powerpc-motorola-powermax
445
479
Motorola:*:4.3:PL8-*)
446
480
echo powerpc-harris-powermax
448
482
Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
449
483
echo powerpc-harris-powermax
451
485
Night_Hawk:Power_UNIX:*:*)
452
486
echo powerpc-harris-powerunix
455
489
echo m88k-harris-cxux7
458
492
echo m88k-motorola-sysv4
461
495
echo m88k-motorola-sysv3
464
498
# DG/UX returns AViiON for all architectures
465
499
UNAME_PROCESSOR=`/usr/bin/uname -p`
476
510
echo i586-dg-dgux${UNAME_RELEASE}
479
513
M88*:DolphinOS:*:*) # DolphinOS (SVR3)
480
514
echo m88k-dolphin-sysv3
483
517
# Delta 88k system running SVR3
484
518
echo m88k-motorola-sysv3
486
520
XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
487
521
echo m88k-tektronix-sysv3
489
523
Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
490
524
echo m68k-tektronix-bsd
493
527
echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
495
529
????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
496
echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
497
exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
530
echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
531
exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX '
499
533
echo i386-ibm-aix
502
536
if [ -x /usr/bin/oslevel ] ; then
503
537
IBM_REV=`/usr/bin/oslevel`
683
$CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
684
{ echo "$SYSTEM_NAME"; exit; }
703
$CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
685
704
echo unknown-hitachi-hiuxwe2
687
706
9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
688
707
echo hppa1.1-hp-bsd
690
709
9000/8??:4.3bsd:*:*)
691
710
echo hppa1.0-hp-bsd
693
712
*9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
694
713
echo hppa1.0-hp-mpeix
696
715
hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
697
716
echo hppa1.1-hp-osf
700
719
echo hppa1.0-hp-osf
703
722
if [ -x /usr/sbin/sysversion ] ; then
704
723
echo ${UNAME_MACHINE}-unknown-osf1mk
706
725
echo ${UNAME_MACHINE}-unknown-osf1
709
728
parisc*:Lites*:*:*)
710
729
echo hppa1.1-hp-lites
712
731
C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
713
732
echo c1-convex-bsd
715
734
C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
716
735
if getsysinfo -f scalar_acc
717
736
then echo c32-convex-bsd
718
737
else echo c2-convex-bsd
721
740
C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
722
741
echo c34-convex-bsd
724
743
C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
725
744
echo c38-convex-bsd
727
746
C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
728
747
echo c4-convex-bsd
731
750
echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
733
752
CRAY*[A-Z]90:*:*:*)
734
753
echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
735
754
| sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
736
755
-e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
737
756
-e 's/\.[^.]*$/.X/'
740
759
echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
743
762
echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
746
765
echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
749
768
echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
751
770
F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
752
771
FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
753
772
FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
754
773
FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
755
774
echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
757
776
5000:UNIX_System_V:4.*:*)
758
777
FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
759
778
FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
760
779
echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
762
781
i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
763
782
echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
765
784
sparc*:BSD/OS:*:*)
766
785
echo sparc-unknown-bsdi${UNAME_RELEASE}
769
788
echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
772
case ${UNAME_MACHINE} in
774
echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
776
echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
778
echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
791
echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
782
794
echo ${UNAME_MACHINE}-pc-cygwin
785
797
echo ${UNAME_MACHINE}-pc-mingw32
788
# uname -m includes "-pc" on this system.
789
echo ${UNAME_MACHINE}-mingw32
792
800
echo ${UNAME_MACHINE}-pc-pw32
795
case ${UNAME_MACHINE} in
797
echo i586-pc-interix${UNAME_RELEASE}
799
EM64T | authenticamd)
800
echo x86_64-unknown-interix${UNAME_RELEASE}
803
echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
803
805
[345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
804
806
echo i${UNAME_MACHINE}-pc-mks
806
808
i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
807
809
# How do we know it's Interix rather than the generic POSIX subsystem?
808
810
# It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
809
811
# UNAME_MACHINE based on the output of uname instead of i386?
810
812
echo i586-pc-interix
813
815
echo ${UNAME_MACHINE}-pc-uwin
815
amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
816
818
echo x86_64-unknown-cygwin
819
821
echo powerpcle-unknown-cygwin
821
823
prep*:SunOS:5.*:*)
822
824
echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
826
828
echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
829
831
# other systems with GNU libc and userland
830
832
echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
833
835
echo ${UNAME_MACHINE}-pc-minix
836
echo ${UNAME_MACHINE}-unknown-linux-gnu
839
echo ${UNAME_MACHINE}-unknown-linux-gnu
838
echo ${UNAME_MACHINE}-${VENDOR}-linux
842
echo cris-axis-linux-gnu
844
843
crisv32:Linux:*:*)
845
echo crisv32-axis-linux-gnu
844
echo crisv32-axis-linux
848
echo frv-unknown-linux-gnu
847
echo frv-${VENDOR}-linux
851
echo ${UNAME_MACHINE}-unknown-linux-gnu
850
echo ${UNAME_MACHINE}-${VENDOR}-linux
854
echo ${UNAME_MACHINE}-unknown-linux-gnu
853
echo ${UNAME_MACHINE}-${VENDOR}-linux
857
echo ${UNAME_MACHINE}-unknown-linux-gnu
856
echo ${UNAME_MACHINE}-${VENDOR}-linux
860
859
eval $set_cc_for_build
861
860
sed 's/^ //' << EOF >$dummy.c
922
910
EV68*) UNAME_MACHINE=alphaev68 ;;
924
912
objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
925
if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
926
echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
913
if test "$?" = 0 ; then LIBC="-libc1" ; else LIBC="" ; fi
914
echo ${UNAME_MACHINE}-${VENDOR}-linux${LIBC}
928
916
parisc:Linux:*:* | hppa:Linux:*:*)
929
917
# Look for CPU level
930
918
case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
931
PA7*) echo hppa1.1-unknown-linux-gnu ;;
932
PA8*) echo hppa2.0-unknown-linux-gnu ;;
933
*) echo hppa-unknown-linux-gnu ;;
919
PA7*) echo hppa1.1-${VENDOR}-linux ;;
920
PA8*) echo hppa2.0-${VENDOR}-linux ;;
921
*) echo hppa-${VENDOR}-linux ;;
936
924
parisc64:Linux:*:* | hppa64:Linux:*:*)
937
echo hppa64-unknown-linux-gnu
925
echo hppa64-${VENDOR}-linux
939
927
s390:Linux:*:* | s390x:Linux:*:*)
940
928
echo ${UNAME_MACHINE}-ibm-linux
943
echo ${UNAME_MACHINE}-unknown-linux-gnu
931
echo ${UNAME_MACHINE}-${VENDOR}-linux
946
echo ${UNAME_MACHINE}-unknown-linux-gnu
934
echo ${UNAME_MACHINE}-${VENDOR}-linux
948
936
sparc:Linux:*:* | sparc64:Linux:*:*)
949
echo ${UNAME_MACHINE}-unknown-linux-gnu
952
echo ${UNAME_MACHINE}-dec-linux-gnu
937
echo ${UNAME_MACHINE}-${VENDOR}-linux
954
939
x86_64:Linux:*:*)
955
echo x86_64-unknown-linux-gnu
958
echo xtensa-unknown-linux-gnu
940
echo x86_64-${VENDOR}-linux
961
943
# The BFD linker knows what the default object file format is, so
962
944
# first see if it will tell us. cd to the root directory to prevent
1033
1008
# I just have to hope. -- rms.
1034
1009
# Use sysv4.2uw... so that sysv4* matches it.
1035
1010
echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
1038
1013
# If we were able to find `uname', then EMX Unix compatibility
1039
1014
# is probably installed.
1040
1015
echo ${UNAME_MACHINE}-pc-os2-emx
1042
1017
i*86:XTS-300:*:STOP)
1043
1018
echo ${UNAME_MACHINE}-unknown-stop
1045
1020
i*86:atheos:*:*)
1046
1021
echo ${UNAME_MACHINE}-unknown-atheos
1049
1024
echo ${UNAME_MACHINE}-pc-syllable
1051
1026
i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
1052
1027
echo i386-unknown-lynxos${UNAME_RELEASE}
1055
1030
echo ${UNAME_MACHINE}-pc-msdosdjgpp
1057
1032
i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
1058
1033
UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
1059
1034
if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
1089
1063
echo ${UNAME_MACHINE}-pc-sysv32
1093
1067
# Left here for compatibility:
1094
1068
# uname -m prints for DJGPP always 'pc', but it prints nothing about
1095
1069
# the processor, so we play safe by assuming i386.
1096
1070
echo i386-pc-msdosdjgpp
1098
1072
Intel:Mach:3*:*)
1099
1073
echo i386-pc-mach3
1102
1076
echo i860-intel-osf1
1104
1078
i860:*:4.*:*) # i860-SVR4
1105
1079
if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
1106
1080
echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
1107
1081
else # Add other i860-SVR4 vendors below as they are discovered.
1108
1082
echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
1111
1085
mini*:CTIX:SYS*5:*)
1113
1087
echo m68010-convergent-sysv
1115
1089
mc68k:UNIX:SYSTEM5:3.51m)
1116
1090
echo m68k-convergent-sysv
1118
1092
M680?0:D-NIX:5.3:*)
1119
1093
echo m68k-diab-dnix
1121
1095
M68*:*:R3V[5678]*:*)
1122
test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
1096
test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
1123
1097
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)
1125
1099
test -r /etc/.relid \
1126
1100
&& OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1127
1101
/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1128
&& { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1102
&& echo i486-ncr-sysv4.3${OS_REL} && exit 0
1129
1103
/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1130
&& { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1104
&& echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;;
1131
1105
3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1132
1106
/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1133
&& { echo i486-ncr-sysv4; exit; } ;;
1107
&& echo i486-ncr-sysv4 && exit 0 ;;
1134
1108
m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1135
1109
echo m68k-unknown-lynxos${UNAME_RELEASE}
1137
1111
mc68030:UNIX_System_V:4.*:*)
1138
1112
echo m68k-atari-sysv4
1140
1114
TSUNAMI:LynxOS:2.*:*)
1141
1115
echo sparc-unknown-lynxos${UNAME_RELEASE}
1143
1117
rs6000:LynxOS:2.*:*)
1144
1118
echo rs6000-unknown-lynxos${UNAME_RELEASE}
1146
1120
PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
1147
1121
echo powerpc-unknown-lynxos${UNAME_RELEASE}
1149
1123
SM[BE]S:UNIX_SV:*:*)
1150
1124
echo mips-dde-sysv${UNAME_RELEASE}
1152
1126
RM*:ReliantUNIX-*:*:*)
1153
1127
echo mips-sni-sysv4
1155
1129
RM*:SINIX-*:*:*)
1156
1130
echo mips-sni-sysv4
1159
1133
if uname -p 2>/dev/null >/dev/null ; then
1160
1134
UNAME_MACHINE=`(uname -p) 2>/dev/null`
1163
1137
echo ns32k-sni-sysv
1166
1140
PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1167
1141
# says <Richard.M.Bartel@ccMail.Census.GOV>
1168
1142
echo i586-unisys-sysv4
1170
1144
*:UNIX_System_V:4*:FTX*)
1171
1145
# From Gerald Hewes <hewes@openmarket.com>.
1172
1146
# How about differentiating between stratus architectures? -djm
1173
1147
echo hppa1.1-stratus-sysv4
1176
1150
# From seanf@swdc.stratus.com.
1177
1151
echo i860-stratus-sysv4
1180
# From Paul.Green@stratus.com.
1181
echo ${UNAME_MACHINE}-stratus-vos
1184
1154
# From Paul.Green@stratus.com.
1185
1155
echo hppa1.1-stratus-vos
1187
1157
mc68*:A/UX:*:*)
1188
1158
echo m68k-apple-aux${UNAME_RELEASE}
1190
1160
news*:NEWS-OS:6*:*)
1191
1161
echo mips-sony-newsos6
1193
1163
R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
1194
1164
if [ -d /usr/nec ]; then
1195
1165
echo mips-nec-sysv${UNAME_RELEASE}
1197
1167
echo mips-unknown-sysv${UNAME_RELEASE}
1200
1170
BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
1201
1171
echo powerpc-be-beos
1203
1173
BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
1204
1174
echo powerpc-apple-beos
1206
1176
BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
1207
1177
echo i586-pc-beos
1209
1179
SX-4:SUPER-UX:*:*)
1210
1180
echo sx4-nec-superux${UNAME_RELEASE}
1212
1182
SX-5:SUPER-UX:*:*)
1213
1183
echo sx5-nec-superux${UNAME_RELEASE}
1215
1185
SX-6:SUPER-UX:*:*)
1216
1186
echo sx6-nec-superux${UNAME_RELEASE}
1219
echo sx7-nec-superux${UNAME_RELEASE}
1222
echo sx8-nec-superux${UNAME_RELEASE}
1225
echo sx8r-nec-superux${UNAME_RELEASE}
1227
1188
Power*:Rhapsody:*:*)
1228
1189
echo powerpc-apple-rhapsody${UNAME_RELEASE}
1230
1191
*:Rhapsody:*:*)
1231
1192
echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
1234
1195
UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1235
1196
case $UNAME_PROCESSOR in
1197
*86) UNAME_PROCESSOR=i686 ;;
1236
1198
unknown) UNAME_PROCESSOR=powerpc ;;
1238
1200
echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1240
1202
*:procnto*:*:* | *:QNX:[0123456789]*:*)
1241
1203
UNAME_PROCESSOR=`uname -p`
1242
1204
if test "$UNAME_PROCESSOR" = "x86"; then
1273
1235
UNAME_MACHINE="$cputype"
1275
1237
echo ${UNAME_MACHINE}-unknown-plan9
1278
1240
echo pdp10-unknown-tops10
1281
1243
echo pdp10-unknown-tenex
1283
1245
KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
1284
1246
echo pdp10-dec-tops20
1286
1248
XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
1287
1249
echo pdp10-xkl-tops20
1290
1252
echo pdp10-unknown-tops20
1293
1255
echo pdp10-unknown-its
1296
1258
echo mips-sei-seiux${UNAME_RELEASE}
1298
1260
*:DragonFly:*:*)
1299
1261
echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
1302
1264
UNAME_MACHINE=`(uname -p) 2>/dev/null`
1303
1265
case "${UNAME_MACHINE}" in
1304
A*) echo alpha-dec-vms ; exit ;;
1305
I*) echo ia64-dec-vms ; exit ;;
1306
V*) echo vax-dec-vms ; exit ;;
1266
A*) echo alpha-dec-vms && exit 0 ;;
1267
I*) echo ia64-dec-vms && exit 0 ;;
1268
V*) echo vax-dec-vms && exit 0 ;;
1308
1270
*:XENIX:*:SysV)
1309
1271
echo i386-pc-xenix
1312
echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
1315
echo ${UNAME_MACHINE}-pc-rdos
1319
1275
#echo '(No uname command or uname output not recognized.)' 1>&2