config.guess revision 54044362
18c9fbc29Smrg#! /bin/sh 28c9fbc29Smrg# Attempt to guess a canonical system name. 354044362Smrg# Copyright 1992-2018 Free Software Foundation, Inc. 48c9fbc29Smrg 554044362Smrgtimestamp='2018-03-01' 68c9fbc29Smrg 78c9fbc29Smrg# This file is free software; you can redistribute it and/or modify it 88c9fbc29Smrg# under the terms of the GNU General Public License as published by 970728a38Smrg# the Free Software Foundation; either version 3 of the License, or 108c9fbc29Smrg# (at your option) any later version. 118c9fbc29Smrg# 128c9fbc29Smrg# This program is distributed in the hope that it will be useful, but 138c9fbc29Smrg# WITHOUT ANY WARRANTY; without even the implied warranty of 148c9fbc29Smrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 158c9fbc29Smrg# General Public License for more details. 168c9fbc29Smrg# 178c9fbc29Smrg# You should have received a copy of the GNU General Public License 1854044362Smrg# along with this program; if not, see <https://www.gnu.org/licenses/>. 198c9fbc29Smrg# 208c9fbc29Smrg# As a special exception to the GNU General Public License, if you 218c9fbc29Smrg# distribute this file as part of a program that contains a 228c9fbc29Smrg# configuration script generated by Autoconf, you may include it under 2370728a38Smrg# the same distribution terms that you use for the rest of that 2470728a38Smrg# program. This Exception is an additional permission under section 7 2570728a38Smrg# of the GNU General Public License, version 3 ("GPLv3"). 268c9fbc29Smrg# 2770728a38Smrg# Originally written by Per Bothner; maintained since 2000 by Ben Elliston. 288c9fbc29Smrg# 294cd6a3aeSmrg# You can get the latest version of this script from: 3054044362Smrg# https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess 3170728a38Smrg# 3270728a38Smrg# Please send patches to <config-patches@gnu.org>. 3370728a38Smrg 348c9fbc29Smrg 358c9fbc29Smrgme=`echo "$0" | sed -e 's,.*/,,'` 368c9fbc29Smrg 378c9fbc29Smrgusage="\ 388c9fbc29SmrgUsage: $0 [OPTION] 398c9fbc29Smrg 408c9fbc29SmrgOutput the configuration name of the system \`$me' is run on. 418c9fbc29Smrg 4254044362SmrgOptions: 438c9fbc29Smrg -h, --help print this help, then exit 448c9fbc29Smrg -t, --time-stamp print date of last modification, then exit 458c9fbc29Smrg -v, --version print version number, then exit 468c9fbc29Smrg 478c9fbc29SmrgReport bugs and patches to <config-patches@gnu.org>." 488c9fbc29Smrg 498c9fbc29Smrgversion="\ 508c9fbc29SmrgGNU config.guess ($timestamp) 518c9fbc29Smrg 528c9fbc29SmrgOriginally written by Per Bothner. 5354044362SmrgCopyright 1992-2018 Free Software Foundation, Inc. 548c9fbc29Smrg 558c9fbc29SmrgThis is free software; see the source for copying conditions. There is NO 568c9fbc29Smrgwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." 578c9fbc29Smrg 588c9fbc29Smrghelp=" 598c9fbc29SmrgTry \`$me --help' for more information." 608c9fbc29Smrg 618c9fbc29Smrg# Parse command line 628c9fbc29Smrgwhile test $# -gt 0 ; do 638c9fbc29Smrg case $1 in 648c9fbc29Smrg --time-stamp | --time* | -t ) 658c9fbc29Smrg echo "$timestamp" ; exit ;; 668c9fbc29Smrg --version | -v ) 678c9fbc29Smrg echo "$version" ; exit ;; 688c9fbc29Smrg --help | --h* | -h ) 698c9fbc29Smrg echo "$usage"; exit ;; 708c9fbc29Smrg -- ) # Stop option processing 718c9fbc29Smrg shift; break ;; 728c9fbc29Smrg - ) # Use stdin as input. 738c9fbc29Smrg break ;; 748c9fbc29Smrg -* ) 758c9fbc29Smrg echo "$me: invalid option $1$help" >&2 768c9fbc29Smrg exit 1 ;; 778c9fbc29Smrg * ) 788c9fbc29Smrg break ;; 798c9fbc29Smrg esac 808c9fbc29Smrgdone 818c9fbc29Smrg 828c9fbc29Smrgif test $# != 0; then 838c9fbc29Smrg echo "$me: too many arguments$help" >&2 848c9fbc29Smrg exit 1 858c9fbc29Smrgfi 868c9fbc29Smrg 8770728a38Smrgtrap 'exit 1' 1 2 15 888c9fbc29Smrg 898c9fbc29Smrg# CC_FOR_BUILD -- compiler used by this script. Note that the use of a 908c9fbc29Smrg# compiler to aid in system detection is discouraged as it requires 918c9fbc29Smrg# temporary files to be created and, as you can see below, it is a 928c9fbc29Smrg# headache to deal with in a portable fashion. 938c9fbc29Smrg 948c9fbc29Smrg# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still 958c9fbc29Smrg# use `HOST_CC' if defined, but it is deprecated. 968c9fbc29Smrg 978c9fbc29Smrg# Portable tmp directory creation inspired by the Autoconf team. 988c9fbc29Smrg 998c9fbc29Smrgset_cc_for_build=' 1008c9fbc29Smrgtrap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; 10170728a38Smrgtrap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; 1028c9fbc29Smrg: ${TMPDIR=/tmp} ; 1034e411241Smrg { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || 1048c9fbc29Smrg { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || 1058c9fbc29Smrg { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || 1068c9fbc29Smrg { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; 1078c9fbc29Smrgdummy=$tmp/dummy ; 1088c9fbc29Smrgtmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; 1098c9fbc29Smrgcase $CC_FOR_BUILD,$HOST_CC,$CC in 11054044362Smrg ,,) echo "int x;" > "$dummy.c" ; 1118c9fbc29Smrg for c in cc gcc c89 c99 ; do 11254044362Smrg if ($c -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then 1138c9fbc29Smrg CC_FOR_BUILD="$c"; break ; 1148c9fbc29Smrg fi ; 1158c9fbc29Smrg done ; 1168c9fbc29Smrg if test x"$CC_FOR_BUILD" = x ; then 1178c9fbc29Smrg CC_FOR_BUILD=no_compiler_found ; 1188c9fbc29Smrg fi 1198c9fbc29Smrg ;; 1208c9fbc29Smrg ,,*) CC_FOR_BUILD=$CC ;; 1218c9fbc29Smrg ,*,*) CC_FOR_BUILD=$HOST_CC ;; 1228c9fbc29Smrgesac ; set_cc_for_build= ;' 1238c9fbc29Smrg 1248c9fbc29Smrg# This is needed to find uname on a Pyramid OSx when run in the BSD universe. 1258c9fbc29Smrg# (ghazi@noc.rutgers.edu 1994-08-24) 1268c9fbc29Smrgif (test -f /.attbin/uname) >/dev/null 2>&1 ; then 1278c9fbc29Smrg PATH=$PATH:/.attbin ; export PATH 1288c9fbc29Smrgfi 1298c9fbc29Smrg 1308c9fbc29SmrgUNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown 1318c9fbc29SmrgUNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown 1328c9fbc29SmrgUNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown 1338c9fbc29SmrgUNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown 1348c9fbc29Smrg 13554044362Smrgcase "$UNAME_SYSTEM" in 13670728a38SmrgLinux|GNU|GNU/*) 13770728a38Smrg # If the system lacks a compiler, then just pick glibc. 13870728a38Smrg # We could probably try harder. 13970728a38Smrg LIBC=gnu 14070728a38Smrg 14154044362Smrg eval "$set_cc_for_build" 14254044362Smrg cat <<-EOF > "$dummy.c" 14370728a38Smrg #include <features.h> 14470728a38Smrg #if defined(__UCLIBC__) 14570728a38Smrg LIBC=uclibc 14670728a38Smrg #elif defined(__dietlibc__) 14770728a38Smrg LIBC=dietlibc 14870728a38Smrg #else 14970728a38Smrg LIBC=gnu 15070728a38Smrg #endif 15170728a38Smrg EOF 15254044362Smrg eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`" 15354044362Smrg 15454044362Smrg # If ldd exists, use it to detect musl libc. 15554044362Smrg if command -v ldd >/dev/null && \ 15654044362Smrg ldd --version 2>&1 | grep -q ^musl 15754044362Smrg then 15854044362Smrg LIBC=musl 15954044362Smrg fi 16070728a38Smrg ;; 16170728a38Smrgesac 16270728a38Smrg 1638c9fbc29Smrg# Note: order is significant - the case branches are not exclusive. 1648c9fbc29Smrg 16554044362Smrgcase "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in 1668c9fbc29Smrg *:NetBSD:*:*) 1678c9fbc29Smrg # NetBSD (nbsd) targets should (where applicable) match one or 16870728a38Smrg # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, 1698c9fbc29Smrg # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently 1708c9fbc29Smrg # switched to ELF, *-*-netbsd* would select the old 1718c9fbc29Smrg # object file format. This provides both forward 1728c9fbc29Smrg # compatibility and a consistent mechanism for selecting the 1738c9fbc29Smrg # object file format. 1748c9fbc29Smrg # 1758c9fbc29Smrg # Note: NetBSD doesn't particularly care about the vendor 1768c9fbc29Smrg # portion of the name. We always set it to "unknown". 1778c9fbc29Smrg sysctl="sysctl -n hw.machine_arch" 17854044362Smrg UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \ 17954044362Smrg "/sbin/$sysctl" 2>/dev/null || \ 18054044362Smrg "/usr/sbin/$sysctl" 2>/dev/null || \ 18154044362Smrg echo unknown)` 18254044362Smrg case "$UNAME_MACHINE_ARCH" in 1838c9fbc29Smrg armeb) machine=armeb-unknown ;; 1848c9fbc29Smrg arm*) machine=arm-unknown ;; 1858c9fbc29Smrg sh3el) machine=shl-unknown ;; 1868c9fbc29Smrg sh3eb) machine=sh-unknown ;; 1874e411241Smrg sh5el) machine=sh5le-unknown ;; 18854044362Smrg earmv*) 18954044362Smrg arch=`echo "$UNAME_MACHINE_ARCH" | sed -e 's,^e\(armv[0-9]\).*$,\1,'` 19054044362Smrg endian=`echo "$UNAME_MACHINE_ARCH" | sed -ne 's,^.*\(eb\)$,\1,p'` 19154044362Smrg machine="${arch}${endian}"-unknown 19254044362Smrg ;; 19354044362Smrg *) machine="$UNAME_MACHINE_ARCH"-unknown ;; 1948c9fbc29Smrg esac 1958c9fbc29Smrg # The Operating System including object format, if it has switched 19654044362Smrg # to ELF recently (or will in the future) and ABI. 19754044362Smrg case "$UNAME_MACHINE_ARCH" in 19854044362Smrg earm*) 19954044362Smrg os=netbsdelf 20054044362Smrg ;; 2018c9fbc29Smrg arm*|i386|m68k|ns32k|sh3*|sparc|vax) 20254044362Smrg eval "$set_cc_for_build" 2038c9fbc29Smrg if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ 2044cd6a3aeSmrg | grep -q __ELF__ 2058c9fbc29Smrg then 2068c9fbc29Smrg # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). 2078c9fbc29Smrg # Return netbsd for either. FIX? 2088c9fbc29Smrg os=netbsd 2098c9fbc29Smrg else 2108c9fbc29Smrg os=netbsdelf 2118c9fbc29Smrg fi 2128c9fbc29Smrg ;; 2138c9fbc29Smrg *) 21470728a38Smrg os=netbsd 2158c9fbc29Smrg ;; 2168c9fbc29Smrg esac 21754044362Smrg # Determine ABI tags. 21854044362Smrg case "$UNAME_MACHINE_ARCH" in 21954044362Smrg earm*) 22054044362Smrg expr='s/^earmv[0-9]/-eabi/;s/eb$//' 22154044362Smrg abi=`echo "$UNAME_MACHINE_ARCH" | sed -e "$expr"` 22254044362Smrg ;; 22354044362Smrg esac 2248c9fbc29Smrg # The OS release 2258c9fbc29Smrg # Debian GNU/NetBSD machines have a different userland, and 2268c9fbc29Smrg # thus, need a distinct triplet. However, they do not need 2278c9fbc29Smrg # kernel version information, so it can be replaced with a 2288c9fbc29Smrg # suitable tag, in the style of linux-gnu. 22954044362Smrg case "$UNAME_VERSION" in 2308c9fbc29Smrg Debian*) 2318c9fbc29Smrg release='-gnu' 2328c9fbc29Smrg ;; 2338c9fbc29Smrg *) 23454044362Smrg release=`echo "$UNAME_RELEASE" | sed -e 's/[-_].*//' | cut -d. -f1,2` 2358c9fbc29Smrg ;; 2368c9fbc29Smrg esac 2378c9fbc29Smrg # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: 2388c9fbc29Smrg # contains redundant information, the shorter form: 2398c9fbc29Smrg # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. 24054044362Smrg echo "$machine-${os}${release}${abi}" 2418c9fbc29Smrg exit ;; 24270728a38Smrg *:Bitrig:*:*) 24370728a38Smrg UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` 24454044362Smrg echo "$UNAME_MACHINE_ARCH"-unknown-bitrig"$UNAME_RELEASE" 24570728a38Smrg exit ;; 2468c9fbc29Smrg *:OpenBSD:*:*) 2478c9fbc29Smrg UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` 24854044362Smrg echo "$UNAME_MACHINE_ARCH"-unknown-openbsd"$UNAME_RELEASE" 24954044362Smrg exit ;; 25054044362Smrg *:LibertyBSD:*:*) 25154044362Smrg UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'` 25254044362Smrg echo "$UNAME_MACHINE_ARCH"-unknown-libertybsd"$UNAME_RELEASE" 25354044362Smrg exit ;; 25454044362Smrg *:MidnightBSD:*:*) 25554044362Smrg echo "$UNAME_MACHINE"-unknown-midnightbsd"$UNAME_RELEASE" 2568c9fbc29Smrg exit ;; 2578c9fbc29Smrg *:ekkoBSD:*:*) 25854044362Smrg echo "$UNAME_MACHINE"-unknown-ekkobsd"$UNAME_RELEASE" 2598c9fbc29Smrg exit ;; 2604e411241Smrg *:SolidBSD:*:*) 26154044362Smrg echo "$UNAME_MACHINE"-unknown-solidbsd"$UNAME_RELEASE" 2624e411241Smrg exit ;; 2638c9fbc29Smrg macppc:MirBSD:*:*) 26454044362Smrg echo powerpc-unknown-mirbsd"$UNAME_RELEASE" 2658c9fbc29Smrg exit ;; 2668c9fbc29Smrg *:MirBSD:*:*) 26754044362Smrg echo "$UNAME_MACHINE"-unknown-mirbsd"$UNAME_RELEASE" 2688c9fbc29Smrg exit ;; 26954044362Smrg *:Sortix:*:*) 27054044362Smrg echo "$UNAME_MACHINE"-unknown-sortix 27154044362Smrg exit ;; 27254044362Smrg *:Redox:*:*) 27354044362Smrg echo "$UNAME_MACHINE"-unknown-redox 27454044362Smrg exit ;; 27554044362Smrg mips:OSF1:*.*) 27654044362Smrg echo mips-dec-osf1 27754044362Smrg exit ;; 2788c9fbc29Smrg alpha:OSF1:*:*) 2798c9fbc29Smrg case $UNAME_RELEASE in 2808c9fbc29Smrg *4.0) 2818c9fbc29Smrg UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` 2828c9fbc29Smrg ;; 2838c9fbc29Smrg *5.*) 28470728a38Smrg UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` 2858c9fbc29Smrg ;; 2868c9fbc29Smrg esac 2878c9fbc29Smrg # According to Compaq, /usr/sbin/psrinfo has been available on 2888c9fbc29Smrg # OSF/1 and Tru64 systems produced since 1995. I hope that 2898c9fbc29Smrg # covers most systems running today. This code pipes the CPU 2908c9fbc29Smrg # types through head -n 1, so we only detect the type of CPU 0. 2918c9fbc29Smrg ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` 2928c9fbc29Smrg case "$ALPHA_CPU_TYPE" in 2938c9fbc29Smrg "EV4 (21064)") 29454044362Smrg UNAME_MACHINE=alpha ;; 2958c9fbc29Smrg "EV4.5 (21064)") 29654044362Smrg UNAME_MACHINE=alpha ;; 2978c9fbc29Smrg "LCA4 (21066/21068)") 29854044362Smrg UNAME_MACHINE=alpha ;; 2998c9fbc29Smrg "EV5 (21164)") 30054044362Smrg UNAME_MACHINE=alphaev5 ;; 3018c9fbc29Smrg "EV5.6 (21164A)") 30254044362Smrg UNAME_MACHINE=alphaev56 ;; 3038c9fbc29Smrg "EV5.6 (21164PC)") 30454044362Smrg UNAME_MACHINE=alphapca56 ;; 3058c9fbc29Smrg "EV5.7 (21164PC)") 30654044362Smrg UNAME_MACHINE=alphapca57 ;; 3078c9fbc29Smrg "EV6 (21264)") 30854044362Smrg UNAME_MACHINE=alphaev6 ;; 3098c9fbc29Smrg "EV6.7 (21264A)") 31054044362Smrg UNAME_MACHINE=alphaev67 ;; 3118c9fbc29Smrg "EV6.8CB (21264C)") 31254044362Smrg UNAME_MACHINE=alphaev68 ;; 3138c9fbc29Smrg "EV6.8AL (21264B)") 31454044362Smrg UNAME_MACHINE=alphaev68 ;; 3158c9fbc29Smrg "EV6.8CX (21264D)") 31654044362Smrg UNAME_MACHINE=alphaev68 ;; 3178c9fbc29Smrg "EV6.9A (21264/EV69A)") 31854044362Smrg UNAME_MACHINE=alphaev69 ;; 3198c9fbc29Smrg "EV7 (21364)") 32054044362Smrg UNAME_MACHINE=alphaev7 ;; 3218c9fbc29Smrg "EV7.9 (21364A)") 32254044362Smrg UNAME_MACHINE=alphaev79 ;; 3238c9fbc29Smrg esac 3248c9fbc29Smrg # A Pn.n version is a patched version. 3258c9fbc29Smrg # A Vn.n version is a released version. 3268c9fbc29Smrg # A Tn.n version is a released field test version. 3278c9fbc29Smrg # A Xn.n version is an unreleased experimental baselevel. 3288c9fbc29Smrg # 1.2 uses "1.2" for uname -r. 32954044362Smrg echo "$UNAME_MACHINE"-dec-osf"`echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`" 33070728a38Smrg # Reset EXIT trap before exiting to avoid spurious non-zero exit code. 33170728a38Smrg exitcode=$? 33270728a38Smrg trap '' 0 33370728a38Smrg exit $exitcode ;; 3348c9fbc29Smrg Amiga*:UNIX_System_V:4.0:*) 3358c9fbc29Smrg echo m68k-unknown-sysv4 3368c9fbc29Smrg exit ;; 3378c9fbc29Smrg *:[Aa]miga[Oo][Ss]:*:*) 33854044362Smrg echo "$UNAME_MACHINE"-unknown-amigaos 3398c9fbc29Smrg exit ;; 3408c9fbc29Smrg *:[Mm]orph[Oo][Ss]:*:*) 34154044362Smrg echo "$UNAME_MACHINE"-unknown-morphos 3428c9fbc29Smrg exit ;; 3438c9fbc29Smrg *:OS/390:*:*) 3448c9fbc29Smrg echo i370-ibm-openedition 3458c9fbc29Smrg exit ;; 3468c9fbc29Smrg *:z/VM:*:*) 3478c9fbc29Smrg echo s390-ibm-zvmoe 3488c9fbc29Smrg exit ;; 3498c9fbc29Smrg *:OS400:*:*) 35070728a38Smrg echo powerpc-ibm-os400 3518c9fbc29Smrg exit ;; 3528c9fbc29Smrg arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) 35354044362Smrg echo arm-acorn-riscix"$UNAME_RELEASE" 3548c9fbc29Smrg exit ;; 35570728a38Smrg arm*:riscos:*:*|arm*:RISCOS:*:*) 3568c9fbc29Smrg echo arm-unknown-riscos 3578c9fbc29Smrg exit ;; 3588c9fbc29Smrg SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) 3598c9fbc29Smrg echo hppa1.1-hitachi-hiuxmpp 3608c9fbc29Smrg exit ;; 3618c9fbc29Smrg Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) 3628c9fbc29Smrg # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. 3638c9fbc29Smrg if test "`(/bin/universe) 2>/dev/null`" = att ; then 3648c9fbc29Smrg echo pyramid-pyramid-sysv3 3658c9fbc29Smrg else 3668c9fbc29Smrg echo pyramid-pyramid-bsd 3678c9fbc29Smrg fi 3688c9fbc29Smrg exit ;; 3698c9fbc29Smrg NILE*:*:*:dcosx) 3708c9fbc29Smrg echo pyramid-pyramid-svr4 3718c9fbc29Smrg exit ;; 3728c9fbc29Smrg DRS?6000:unix:4.0:6*) 3738c9fbc29Smrg echo sparc-icl-nx6 3748c9fbc29Smrg exit ;; 3758c9fbc29Smrg DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) 3768c9fbc29Smrg case `/usr/bin/uname -p` in 3778c9fbc29Smrg sparc) echo sparc-icl-nx7; exit ;; 3788c9fbc29Smrg esac ;; 3794cd6a3aeSmrg s390x:SunOS:*:*) 38054044362Smrg echo "$UNAME_MACHINE"-ibm-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`" 3814cd6a3aeSmrg exit ;; 3828c9fbc29Smrg sun4H:SunOS:5.*:*) 38354044362Smrg echo sparc-hal-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" 3848c9fbc29Smrg exit ;; 3858c9fbc29Smrg sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) 38654044362Smrg echo sparc-sun-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`" 3878c9fbc29Smrg exit ;; 3884cd6a3aeSmrg i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) 38954044362Smrg echo i386-pc-auroraux"$UNAME_RELEASE" 3904cd6a3aeSmrg exit ;; 3914e411241Smrg i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) 39254044362Smrg eval "$set_cc_for_build" 39354044362Smrg SUN_ARCH=i386 3944cd6a3aeSmrg # If there is a compiler, see if it is configured for 64-bit objects. 3954cd6a3aeSmrg # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. 3964cd6a3aeSmrg # This test works for both compilers. 39754044362Smrg if [ "$CC_FOR_BUILD" != no_compiler_found ]; then 3984cd6a3aeSmrg if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ 39954044362Smrg (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ 4004cd6a3aeSmrg grep IS_64BIT_ARCH >/dev/null 4014cd6a3aeSmrg then 40254044362Smrg SUN_ARCH=x86_64 4034cd6a3aeSmrg fi 4044cd6a3aeSmrg fi 40554044362Smrg echo "$SUN_ARCH"-pc-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" 4068c9fbc29Smrg exit ;; 4078c9fbc29Smrg sun4*:SunOS:6*:*) 4088c9fbc29Smrg # According to config.sub, this is the proper way to canonicalize 4098c9fbc29Smrg # SunOS6. Hard to guess exactly what SunOS6 will be like, but 4108c9fbc29Smrg # it's likely to be more like Solaris than SunOS4. 41154044362Smrg echo sparc-sun-solaris3"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" 4128c9fbc29Smrg exit ;; 4138c9fbc29Smrg sun4*:SunOS:*:*) 4148c9fbc29Smrg case "`/usr/bin/arch -k`" in 4158c9fbc29Smrg Series*|S4*) 4168c9fbc29Smrg UNAME_RELEASE=`uname -v` 4178c9fbc29Smrg ;; 4188c9fbc29Smrg esac 4198c9fbc29Smrg # Japanese Language versions have a version number like `4.1.3-JL'. 42054044362Smrg echo sparc-sun-sunos"`echo "$UNAME_RELEASE"|sed -e 's/-/_/'`" 4218c9fbc29Smrg exit ;; 4228c9fbc29Smrg sun3*:SunOS:*:*) 42354044362Smrg echo m68k-sun-sunos"$UNAME_RELEASE" 4248c9fbc29Smrg exit ;; 4258c9fbc29Smrg sun*:*:4.2BSD:*) 4268c9fbc29Smrg UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` 42754044362Smrg test "x$UNAME_RELEASE" = x && UNAME_RELEASE=3 4288c9fbc29Smrg case "`/bin/arch`" in 4298c9fbc29Smrg sun3) 43054044362Smrg echo m68k-sun-sunos"$UNAME_RELEASE" 4318c9fbc29Smrg ;; 4328c9fbc29Smrg sun4) 43354044362Smrg echo sparc-sun-sunos"$UNAME_RELEASE" 4348c9fbc29Smrg ;; 4358c9fbc29Smrg esac 4368c9fbc29Smrg exit ;; 4378c9fbc29Smrg aushp:SunOS:*:*) 43854044362Smrg echo sparc-auspex-sunos"$UNAME_RELEASE" 4398c9fbc29Smrg exit ;; 4408c9fbc29Smrg # The situation for MiNT is a little confusing. The machine name 4418c9fbc29Smrg # can be virtually everything (everything which is not 4428c9fbc29Smrg # "atarist" or "atariste" at least should have a processor 4438c9fbc29Smrg # > m68000). The system name ranges from "MiNT" over "FreeMiNT" 4448c9fbc29Smrg # to the lowercase version "mint" (or "freemint"). Finally 4458c9fbc29Smrg # the system name "TOS" denotes a system which is actually not 4468c9fbc29Smrg # MiNT. But MiNT is downward compatible to TOS, so this should 4478c9fbc29Smrg # be no problem. 4488c9fbc29Smrg atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) 44954044362Smrg echo m68k-atari-mint"$UNAME_RELEASE" 4508c9fbc29Smrg exit ;; 4518c9fbc29Smrg atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) 45254044362Smrg echo m68k-atari-mint"$UNAME_RELEASE" 45370728a38Smrg exit ;; 4548c9fbc29Smrg *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) 45554044362Smrg echo m68k-atari-mint"$UNAME_RELEASE" 4568c9fbc29Smrg exit ;; 4578c9fbc29Smrg milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) 45854044362Smrg echo m68k-milan-mint"$UNAME_RELEASE" 45970728a38Smrg exit ;; 4608c9fbc29Smrg hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) 46154044362Smrg echo m68k-hades-mint"$UNAME_RELEASE" 46270728a38Smrg exit ;; 4638c9fbc29Smrg *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) 46454044362Smrg echo m68k-unknown-mint"$UNAME_RELEASE" 46570728a38Smrg exit ;; 4668c9fbc29Smrg m68k:machten:*:*) 46754044362Smrg echo m68k-apple-machten"$UNAME_RELEASE" 4688c9fbc29Smrg exit ;; 4698c9fbc29Smrg powerpc:machten:*:*) 47054044362Smrg echo powerpc-apple-machten"$UNAME_RELEASE" 4718c9fbc29Smrg exit ;; 4728c9fbc29Smrg RISC*:Mach:*:*) 4738c9fbc29Smrg echo mips-dec-mach_bsd4.3 4748c9fbc29Smrg exit ;; 4758c9fbc29Smrg RISC*:ULTRIX:*:*) 47654044362Smrg echo mips-dec-ultrix"$UNAME_RELEASE" 4778c9fbc29Smrg exit ;; 4788c9fbc29Smrg VAX*:ULTRIX*:*:*) 47954044362Smrg echo vax-dec-ultrix"$UNAME_RELEASE" 4808c9fbc29Smrg exit ;; 4818c9fbc29Smrg 2020:CLIX:*:* | 2430:CLIX:*:*) 48254044362Smrg echo clipper-intergraph-clix"$UNAME_RELEASE" 4838c9fbc29Smrg exit ;; 4848c9fbc29Smrg mips:*:*:UMIPS | mips:*:*:RISCos) 48554044362Smrg eval "$set_cc_for_build" 48654044362Smrg sed 's/^ //' << EOF > "$dummy.c" 4878c9fbc29Smrg#ifdef __cplusplus 4888c9fbc29Smrg#include <stdio.h> /* for printf() prototype */ 4898c9fbc29Smrg int main (int argc, char *argv[]) { 4908c9fbc29Smrg#else 4918c9fbc29Smrg int main (argc, argv) int argc; char *argv[]; { 4928c9fbc29Smrg#endif 4938c9fbc29Smrg #if defined (host_mips) && defined (MIPSEB) 4948c9fbc29Smrg #if defined (SYSTYPE_SYSV) 49554044362Smrg printf ("mips-mips-riscos%ssysv\\n", argv[1]); exit (0); 4968c9fbc29Smrg #endif 4978c9fbc29Smrg #if defined (SYSTYPE_SVR4) 49854044362Smrg printf ("mips-mips-riscos%ssvr4\\n", argv[1]); exit (0); 4998c9fbc29Smrg #endif 5008c9fbc29Smrg #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) 50154044362Smrg printf ("mips-mips-riscos%sbsd\\n", argv[1]); exit (0); 5028c9fbc29Smrg #endif 5038c9fbc29Smrg #endif 5048c9fbc29Smrg exit (-1); 5058c9fbc29Smrg } 5068c9fbc29SmrgEOF 50754044362Smrg $CC_FOR_BUILD -o "$dummy" "$dummy.c" && 50854044362Smrg dummyarg=`echo "$UNAME_RELEASE" | sed -n 's/\([0-9]*\).*/\1/p'` && 50954044362Smrg SYSTEM_NAME=`"$dummy" "$dummyarg"` && 5108c9fbc29Smrg { echo "$SYSTEM_NAME"; exit; } 51154044362Smrg echo mips-mips-riscos"$UNAME_RELEASE" 5128c9fbc29Smrg exit ;; 5138c9fbc29Smrg Motorola:PowerMAX_OS:*:*) 5148c9fbc29Smrg echo powerpc-motorola-powermax 5158c9fbc29Smrg exit ;; 5168c9fbc29Smrg Motorola:*:4.3:PL8-*) 5178c9fbc29Smrg echo powerpc-harris-powermax 5188c9fbc29Smrg exit ;; 5198c9fbc29Smrg Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) 5208c9fbc29Smrg echo powerpc-harris-powermax 5218c9fbc29Smrg exit ;; 5228c9fbc29Smrg Night_Hawk:Power_UNIX:*:*) 5238c9fbc29Smrg echo powerpc-harris-powerunix 5248c9fbc29Smrg exit ;; 5258c9fbc29Smrg m88k:CX/UX:7*:*) 5268c9fbc29Smrg echo m88k-harris-cxux7 5278c9fbc29Smrg exit ;; 5288c9fbc29Smrg m88k:*:4*:R4*) 5298c9fbc29Smrg echo m88k-motorola-sysv4 5308c9fbc29Smrg exit ;; 5318c9fbc29Smrg m88k:*:3*:R3*) 5328c9fbc29Smrg echo m88k-motorola-sysv3 5338c9fbc29Smrg exit ;; 5348c9fbc29Smrg AViiON:dgux:*:*) 53570728a38Smrg # DG/UX returns AViiON for all architectures 53670728a38Smrg UNAME_PROCESSOR=`/usr/bin/uname -p` 53754044362Smrg if [ "$UNAME_PROCESSOR" = mc88100 ] || [ "$UNAME_PROCESSOR" = mc88110 ] 5388c9fbc29Smrg then 53954044362Smrg if [ "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx ] || \ 54054044362Smrg [ "$TARGET_BINARY_INTERFACE"x = x ] 5418c9fbc29Smrg then 54254044362Smrg echo m88k-dg-dgux"$UNAME_RELEASE" 5438c9fbc29Smrg else 54454044362Smrg echo m88k-dg-dguxbcs"$UNAME_RELEASE" 5458c9fbc29Smrg fi 5468c9fbc29Smrg else 54754044362Smrg echo i586-dg-dgux"$UNAME_RELEASE" 5488c9fbc29Smrg fi 54970728a38Smrg exit ;; 5508c9fbc29Smrg M88*:DolphinOS:*:*) # DolphinOS (SVR3) 5518c9fbc29Smrg echo m88k-dolphin-sysv3 5528c9fbc29Smrg exit ;; 5538c9fbc29Smrg M88*:*:R3*:*) 5548c9fbc29Smrg # Delta 88k system running SVR3 5558c9fbc29Smrg echo m88k-motorola-sysv3 5568c9fbc29Smrg exit ;; 5578c9fbc29Smrg XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) 5588c9fbc29Smrg echo m88k-tektronix-sysv3 5598c9fbc29Smrg exit ;; 5608c9fbc29Smrg Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) 5618c9fbc29Smrg echo m68k-tektronix-bsd 5628c9fbc29Smrg exit ;; 5638c9fbc29Smrg *:IRIX*:*:*) 56454044362Smrg echo mips-sgi-irix"`echo "$UNAME_RELEASE"|sed -e 's/-/_/g'`" 5658c9fbc29Smrg exit ;; 5668c9fbc29Smrg ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. 5678c9fbc29Smrg echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id 5688c9fbc29Smrg exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' 5698c9fbc29Smrg i*86:AIX:*:*) 5708c9fbc29Smrg echo i386-ibm-aix 5718c9fbc29Smrg exit ;; 5728c9fbc29Smrg ia64:AIX:*:*) 5738c9fbc29Smrg if [ -x /usr/bin/oslevel ] ; then 5748c9fbc29Smrg IBM_REV=`/usr/bin/oslevel` 5758c9fbc29Smrg else 57654044362Smrg IBM_REV="$UNAME_VERSION.$UNAME_RELEASE" 5778c9fbc29Smrg fi 57854044362Smrg echo "$UNAME_MACHINE"-ibm-aix"$IBM_REV" 5798c9fbc29Smrg exit ;; 5808c9fbc29Smrg *:AIX:2:3) 5818c9fbc29Smrg if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then 58254044362Smrg eval "$set_cc_for_build" 58354044362Smrg sed 's/^ //' << EOF > "$dummy.c" 5848c9fbc29Smrg #include <sys/systemcfg.h> 5858c9fbc29Smrg 5868c9fbc29Smrg main() 5878c9fbc29Smrg { 5888c9fbc29Smrg if (!__power_pc()) 5898c9fbc29Smrg exit(1); 5908c9fbc29Smrg puts("powerpc-ibm-aix3.2.5"); 5918c9fbc29Smrg exit(0); 5928c9fbc29Smrg } 5938c9fbc29SmrgEOF 59454044362Smrg if $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` 5958c9fbc29Smrg then 5968c9fbc29Smrg echo "$SYSTEM_NAME" 5978c9fbc29Smrg else 5988c9fbc29Smrg echo rs6000-ibm-aix3.2.5 5998c9fbc29Smrg fi 6008c9fbc29Smrg elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then 6018c9fbc29Smrg echo rs6000-ibm-aix3.2.4 6028c9fbc29Smrg else 6038c9fbc29Smrg echo rs6000-ibm-aix3.2 6048c9fbc29Smrg fi 6058c9fbc29Smrg exit ;; 6064cd6a3aeSmrg *:AIX:*:[4567]) 6078c9fbc29Smrg IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` 60854044362Smrg if /usr/sbin/lsattr -El "$IBM_CPU_ID" | grep ' POWER' >/dev/null 2>&1; then 6098c9fbc29Smrg IBM_ARCH=rs6000 6108c9fbc29Smrg else 6118c9fbc29Smrg IBM_ARCH=powerpc 6128c9fbc29Smrg fi 61370728a38Smrg if [ -x /usr/bin/lslpp ] ; then 61470728a38Smrg IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc | 61570728a38Smrg awk -F: '{ print $3 }' | sed s/[0-9]*$/0/` 6168c9fbc29Smrg else 61754044362Smrg IBM_REV="$UNAME_VERSION.$UNAME_RELEASE" 6188c9fbc29Smrg fi 61954044362Smrg echo "$IBM_ARCH"-ibm-aix"$IBM_REV" 6208c9fbc29Smrg exit ;; 6218c9fbc29Smrg *:AIX:*:*) 6228c9fbc29Smrg echo rs6000-ibm-aix 6238c9fbc29Smrg exit ;; 62454044362Smrg ibmrt:4.4BSD:*|romp-ibm:4.4BSD:*) 6258c9fbc29Smrg echo romp-ibm-bsd4.4 6268c9fbc29Smrg exit ;; 6278c9fbc29Smrg ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and 62854044362Smrg echo romp-ibm-bsd"$UNAME_RELEASE" # 4.3 with uname added to 6298c9fbc29Smrg exit ;; # report: romp-ibm BSD 4.3 6308c9fbc29Smrg *:BOSX:*:*) 6318c9fbc29Smrg echo rs6000-bull-bosx 6328c9fbc29Smrg exit ;; 6338c9fbc29Smrg DPX/2?00:B.O.S.:*:*) 6348c9fbc29Smrg echo m68k-bull-sysv3 6358c9fbc29Smrg exit ;; 6368c9fbc29Smrg 9000/[34]??:4.3bsd:1.*:*) 6378c9fbc29Smrg echo m68k-hp-bsd 6388c9fbc29Smrg exit ;; 6398c9fbc29Smrg hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) 6408c9fbc29Smrg echo m68k-hp-bsd4.4 6418c9fbc29Smrg exit ;; 6428c9fbc29Smrg 9000/[34678]??:HP-UX:*:*) 64354044362Smrg HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'` 64454044362Smrg case "$UNAME_MACHINE" in 64554044362Smrg 9000/31?) HP_ARCH=m68000 ;; 64654044362Smrg 9000/[34]??) HP_ARCH=m68k ;; 6478c9fbc29Smrg 9000/[678][0-9][0-9]) 6488c9fbc29Smrg if [ -x /usr/bin/getconf ]; then 6498c9fbc29Smrg sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` 65070728a38Smrg sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` 65154044362Smrg case "$sc_cpu_version" in 65254044362Smrg 523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0 65354044362Smrg 528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1 65470728a38Smrg 532) # CPU_PA_RISC2_0 65554044362Smrg case "$sc_kernel_bits" in 65654044362Smrg 32) HP_ARCH=hppa2.0n ;; 65754044362Smrg 64) HP_ARCH=hppa2.0w ;; 65854044362Smrg '') HP_ARCH=hppa2.0 ;; # HP-UX 10.20 65970728a38Smrg esac ;; 66070728a38Smrg esac 6618c9fbc29Smrg fi 66254044362Smrg if [ "$HP_ARCH" = "" ]; then 66354044362Smrg eval "$set_cc_for_build" 66454044362Smrg sed 's/^ //' << EOF > "$dummy.c" 6658c9fbc29Smrg 66670728a38Smrg #define _HPUX_SOURCE 66770728a38Smrg #include <stdlib.h> 66870728a38Smrg #include <unistd.h> 6698c9fbc29Smrg 67070728a38Smrg int main () 67170728a38Smrg { 67270728a38Smrg #if defined(_SC_KERNEL_BITS) 67370728a38Smrg long bits = sysconf(_SC_KERNEL_BITS); 67470728a38Smrg #endif 67570728a38Smrg long cpu = sysconf (_SC_CPU_VERSION); 6768c9fbc29Smrg 67770728a38Smrg switch (cpu) 67870728a38Smrg { 67970728a38Smrg case CPU_PA_RISC1_0: puts ("hppa1.0"); break; 68070728a38Smrg case CPU_PA_RISC1_1: puts ("hppa1.1"); break; 68170728a38Smrg case CPU_PA_RISC2_0: 68270728a38Smrg #if defined(_SC_KERNEL_BITS) 68370728a38Smrg switch (bits) 68470728a38Smrg { 68570728a38Smrg case 64: puts ("hppa2.0w"); break; 68670728a38Smrg case 32: puts ("hppa2.0n"); break; 68770728a38Smrg default: puts ("hppa2.0"); break; 68870728a38Smrg } break; 68970728a38Smrg #else /* !defined(_SC_KERNEL_BITS) */ 69070728a38Smrg puts ("hppa2.0"); break; 69170728a38Smrg #endif 69270728a38Smrg default: puts ("hppa1.0"); break; 69370728a38Smrg } 69470728a38Smrg exit (0); 69570728a38Smrg } 6968c9fbc29SmrgEOF 69754044362Smrg (CCOPTS="" $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null) && HP_ARCH=`"$dummy"` 6988c9fbc29Smrg test -z "$HP_ARCH" && HP_ARCH=hppa 6998c9fbc29Smrg fi ;; 7008c9fbc29Smrg esac 70154044362Smrg if [ "$HP_ARCH" = hppa2.0w ] 7028c9fbc29Smrg then 70354044362Smrg eval "$set_cc_for_build" 7048c9fbc29Smrg 7058c9fbc29Smrg # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating 7068c9fbc29Smrg # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler 7078c9fbc29Smrg # generating 64-bit code. GNU and HP use different nomenclature: 7088c9fbc29Smrg # 7098c9fbc29Smrg # $ CC_FOR_BUILD=cc ./config.guess 7108c9fbc29Smrg # => hppa2.0w-hp-hpux11.23 7118c9fbc29Smrg # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess 7128c9fbc29Smrg # => hppa64-hp-hpux11.23 7138c9fbc29Smrg 71454044362Smrg if echo __LP64__ | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | 7154cd6a3aeSmrg grep -q __LP64__ 7168c9fbc29Smrg then 71754044362Smrg HP_ARCH=hppa2.0w 7188c9fbc29Smrg else 71954044362Smrg HP_ARCH=hppa64 7208c9fbc29Smrg fi 7218c9fbc29Smrg fi 72254044362Smrg echo "$HP_ARCH"-hp-hpux"$HPUX_REV" 7238c9fbc29Smrg exit ;; 7248c9fbc29Smrg ia64:HP-UX:*:*) 72554044362Smrg HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'` 72654044362Smrg echo ia64-hp-hpux"$HPUX_REV" 7278c9fbc29Smrg exit ;; 7288c9fbc29Smrg 3050*:HI-UX:*:*) 72954044362Smrg eval "$set_cc_for_build" 73054044362Smrg sed 's/^ //' << EOF > "$dummy.c" 7318c9fbc29Smrg #include <unistd.h> 7328c9fbc29Smrg int 7338c9fbc29Smrg main () 7348c9fbc29Smrg { 7358c9fbc29Smrg long cpu = sysconf (_SC_CPU_VERSION); 7368c9fbc29Smrg /* The order matters, because CPU_IS_HP_MC68K erroneously returns 7378c9fbc29Smrg true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct 7388c9fbc29Smrg results, however. */ 7398c9fbc29Smrg if (CPU_IS_PA_RISC (cpu)) 7408c9fbc29Smrg { 7418c9fbc29Smrg switch (cpu) 7428c9fbc29Smrg { 7438c9fbc29Smrg case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; 7448c9fbc29Smrg case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; 7458c9fbc29Smrg case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; 7468c9fbc29Smrg default: puts ("hppa-hitachi-hiuxwe2"); break; 7478c9fbc29Smrg } 7488c9fbc29Smrg } 7498c9fbc29Smrg else if (CPU_IS_HP_MC68K (cpu)) 7508c9fbc29Smrg puts ("m68k-hitachi-hiuxwe2"); 7518c9fbc29Smrg else puts ("unknown-hitachi-hiuxwe2"); 7528c9fbc29Smrg exit (0); 7538c9fbc29Smrg } 7548c9fbc29SmrgEOF 75554044362Smrg $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` && 7568c9fbc29Smrg { echo "$SYSTEM_NAME"; exit; } 7578c9fbc29Smrg echo unknown-hitachi-hiuxwe2 7588c9fbc29Smrg exit ;; 75954044362Smrg 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:*) 7608c9fbc29Smrg echo hppa1.1-hp-bsd 7618c9fbc29Smrg exit ;; 7628c9fbc29Smrg 9000/8??:4.3bsd:*:*) 7638c9fbc29Smrg echo hppa1.0-hp-bsd 7648c9fbc29Smrg exit ;; 7658c9fbc29Smrg *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) 7668c9fbc29Smrg echo hppa1.0-hp-mpeix 7678c9fbc29Smrg exit ;; 76854044362Smrg hp7??:OSF1:*:* | hp8?[79]:OSF1:*:*) 7698c9fbc29Smrg echo hppa1.1-hp-osf 7708c9fbc29Smrg exit ;; 7718c9fbc29Smrg hp8??:OSF1:*:*) 7728c9fbc29Smrg echo hppa1.0-hp-osf 7738c9fbc29Smrg exit ;; 7748c9fbc29Smrg i*86:OSF1:*:*) 7758c9fbc29Smrg if [ -x /usr/sbin/sysversion ] ; then 77654044362Smrg echo "$UNAME_MACHINE"-unknown-osf1mk 7778c9fbc29Smrg else 77854044362Smrg echo "$UNAME_MACHINE"-unknown-osf1 7798c9fbc29Smrg fi 7808c9fbc29Smrg exit ;; 7818c9fbc29Smrg parisc*:Lites*:*:*) 7828c9fbc29Smrg echo hppa1.1-hp-lites 7838c9fbc29Smrg exit ;; 7848c9fbc29Smrg C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) 7858c9fbc29Smrg echo c1-convex-bsd 78670728a38Smrg exit ;; 7878c9fbc29Smrg C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) 7888c9fbc29Smrg if getsysinfo -f scalar_acc 7898c9fbc29Smrg then echo c32-convex-bsd 7908c9fbc29Smrg else echo c2-convex-bsd 7918c9fbc29Smrg fi 79270728a38Smrg exit ;; 7938c9fbc29Smrg C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) 7948c9fbc29Smrg echo c34-convex-bsd 79570728a38Smrg exit ;; 7968c9fbc29Smrg C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) 7978c9fbc29Smrg echo c38-convex-bsd 79870728a38Smrg exit ;; 7998c9fbc29Smrg C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) 8008c9fbc29Smrg echo c4-convex-bsd 80170728a38Smrg exit ;; 8028c9fbc29Smrg CRAY*Y-MP:*:*:*) 80354044362Smrg echo ymp-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' 8048c9fbc29Smrg exit ;; 8058c9fbc29Smrg CRAY*[A-Z]90:*:*:*) 80654044362Smrg echo "$UNAME_MACHINE"-cray-unicos"$UNAME_RELEASE" \ 8078c9fbc29Smrg | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ 8088c9fbc29Smrg -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ 8098c9fbc29Smrg -e 's/\.[^.]*$/.X/' 8108c9fbc29Smrg exit ;; 8118c9fbc29Smrg CRAY*TS:*:*:*) 81254044362Smrg echo t90-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' 8138c9fbc29Smrg exit ;; 8148c9fbc29Smrg CRAY*T3E:*:*:*) 81554044362Smrg echo alphaev5-cray-unicosmk"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' 8168c9fbc29Smrg exit ;; 8178c9fbc29Smrg CRAY*SV1:*:*:*) 81854044362Smrg echo sv1-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' 8198c9fbc29Smrg exit ;; 8208c9fbc29Smrg *:UNICOS/mp:*:*) 82154044362Smrg echo craynv-cray-unicosmp"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' 8228c9fbc29Smrg exit ;; 8238c9fbc29Smrg F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) 82454044362Smrg FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz` 82554044362Smrg FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` 82654044362Smrg FUJITSU_REL=`echo "$UNAME_RELEASE" | sed -e 's/ /_/'` 82770728a38Smrg echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 82870728a38Smrg exit ;; 8298c9fbc29Smrg 5000:UNIX_System_V:4.*:*) 83054044362Smrg FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` 83154044362Smrg FUJITSU_REL=`echo "$UNAME_RELEASE" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'` 83270728a38Smrg echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 8338c9fbc29Smrg exit ;; 8348c9fbc29Smrg i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) 83554044362Smrg echo "$UNAME_MACHINE"-pc-bsdi"$UNAME_RELEASE" 8368c9fbc29Smrg exit ;; 8378c9fbc29Smrg sparc*:BSD/OS:*:*) 83854044362Smrg echo sparc-unknown-bsdi"$UNAME_RELEASE" 8398c9fbc29Smrg exit ;; 8408c9fbc29Smrg *:BSD/OS:*:*) 84154044362Smrg echo "$UNAME_MACHINE"-unknown-bsdi"$UNAME_RELEASE" 8428c9fbc29Smrg exit ;; 8438c9fbc29Smrg *:FreeBSD:*:*) 84470728a38Smrg UNAME_PROCESSOR=`/usr/bin/uname -p` 84554044362Smrg case "$UNAME_PROCESSOR" in 8464e411241Smrg amd64) 84754044362Smrg UNAME_PROCESSOR=x86_64 ;; 84854044362Smrg i386) 84954044362Smrg UNAME_PROCESSOR=i586 ;; 8504e411241Smrg esac 85154044362Smrg echo "$UNAME_PROCESSOR"-unknown-freebsd"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`" 8528c9fbc29Smrg exit ;; 8538c9fbc29Smrg i*:CYGWIN*:*) 85454044362Smrg echo "$UNAME_MACHINE"-pc-cygwin 8558c9fbc29Smrg exit ;; 85670728a38Smrg *:MINGW64*:*) 85754044362Smrg echo "$UNAME_MACHINE"-pc-mingw64 85870728a38Smrg exit ;; 8594e411241Smrg *:MINGW*:*) 86054044362Smrg echo "$UNAME_MACHINE"-pc-mingw32 8618c9fbc29Smrg exit ;; 86270728a38Smrg *:MSYS*:*) 86354044362Smrg echo "$UNAME_MACHINE"-pc-msys 8648c9fbc29Smrg exit ;; 8658c9fbc29Smrg i*:PW*:*) 86654044362Smrg echo "$UNAME_MACHINE"-pc-pw32 8678c9fbc29Smrg exit ;; 8684cd6a3aeSmrg *:Interix*:*) 86954044362Smrg case "$UNAME_MACHINE" in 8704e411241Smrg x86) 87154044362Smrg echo i586-pc-interix"$UNAME_RELEASE" 8724e411241Smrg exit ;; 8734cd6a3aeSmrg authenticamd | genuineintel | EM64T) 87454044362Smrg echo x86_64-unknown-interix"$UNAME_RELEASE" 8754e411241Smrg exit ;; 8764e411241Smrg IA64) 87754044362Smrg echo ia64-unknown-interix"$UNAME_RELEASE" 8784e411241Smrg exit ;; 8794e411241Smrg esac ;; 8808c9fbc29Smrg i*:UWIN*:*) 88154044362Smrg echo "$UNAME_MACHINE"-pc-uwin 8828c9fbc29Smrg exit ;; 8838c9fbc29Smrg amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) 8848c9fbc29Smrg echo x86_64-unknown-cygwin 8858c9fbc29Smrg exit ;; 8868c9fbc29Smrg prep*:SunOS:5.*:*) 88754044362Smrg echo powerpcle-unknown-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" 8888c9fbc29Smrg exit ;; 8898c9fbc29Smrg *:GNU:*:*) 8908c9fbc29Smrg # the GNU system 89154044362Smrg echo "`echo "$UNAME_MACHINE"|sed -e 's,[-/].*$,,'`-unknown-$LIBC`echo "$UNAME_RELEASE"|sed -e 's,/.*$,,'`" 8928c9fbc29Smrg exit ;; 8938c9fbc29Smrg *:GNU/*:*:*) 8948c9fbc29Smrg # other systems with GNU libc and userland 89554044362Smrg echo "$UNAME_MACHINE-unknown-`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`-$LIBC" 8968c9fbc29Smrg exit ;; 8978c9fbc29Smrg i*86:Minix:*:*) 89854044362Smrg echo "$UNAME_MACHINE"-pc-minix 8998c9fbc29Smrg exit ;; 90070728a38Smrg aarch64:Linux:*:*) 90154044362Smrg echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" 90270728a38Smrg exit ;; 90370728a38Smrg aarch64_be:Linux:*:*) 90470728a38Smrg UNAME_MACHINE=aarch64_be 90554044362Smrg echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" 90670728a38Smrg exit ;; 9074cd6a3aeSmrg alpha:Linux:*:*) 9084cd6a3aeSmrg case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in 9094cd6a3aeSmrg EV5) UNAME_MACHINE=alphaev5 ;; 9104cd6a3aeSmrg EV56) UNAME_MACHINE=alphaev56 ;; 9114cd6a3aeSmrg PCA56) UNAME_MACHINE=alphapca56 ;; 9124cd6a3aeSmrg PCA57) UNAME_MACHINE=alphapca56 ;; 9134cd6a3aeSmrg EV6) UNAME_MACHINE=alphaev6 ;; 9144cd6a3aeSmrg EV67) UNAME_MACHINE=alphaev67 ;; 9154cd6a3aeSmrg EV68*) UNAME_MACHINE=alphaev68 ;; 91670728a38Smrg esac 9174cd6a3aeSmrg objdump --private-headers /bin/sh | grep -q ld.so.1 91854044362Smrg if test "$?" = 0 ; then LIBC=gnulibc1 ; fi 91954044362Smrg echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" 92070728a38Smrg exit ;; 92170728a38Smrg arc:Linux:*:* | arceb:Linux:*:*) 92254044362Smrg echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" 9234cd6a3aeSmrg exit ;; 9248c9fbc29Smrg arm*:Linux:*:*) 92554044362Smrg eval "$set_cc_for_build" 9264e411241Smrg if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ 9274e411241Smrg | grep -q __ARM_EABI__ 9284e411241Smrg then 92954044362Smrg echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" 9304e411241Smrg else 93170728a38Smrg if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ 93270728a38Smrg | grep -q __ARM_PCS_VFP 93370728a38Smrg then 93454044362Smrg echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabi 93570728a38Smrg else 93654044362Smrg echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabihf 93770728a38Smrg fi 9384e411241Smrg fi 9394e411241Smrg exit ;; 9404e411241Smrg avr32*:Linux:*:*) 94154044362Smrg echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" 9428c9fbc29Smrg exit ;; 9438c9fbc29Smrg cris:Linux:*:*) 94454044362Smrg echo "$UNAME_MACHINE"-axis-linux-"$LIBC" 9458c9fbc29Smrg exit ;; 9468c9fbc29Smrg crisv32:Linux:*:*) 94754044362Smrg echo "$UNAME_MACHINE"-axis-linux-"$LIBC" 94854044362Smrg exit ;; 94954044362Smrg e2k:Linux:*:*) 95054044362Smrg echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" 9518c9fbc29Smrg exit ;; 9528c9fbc29Smrg frv:Linux:*:*) 95354044362Smrg echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" 95470728a38Smrg exit ;; 95570728a38Smrg hexagon:Linux:*:*) 95654044362Smrg echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" 9578c9fbc29Smrg exit ;; 9584cd6a3aeSmrg i*86:Linux:*:*) 95954044362Smrg echo "$UNAME_MACHINE"-pc-linux-"$LIBC" 9604cd6a3aeSmrg exit ;; 9618c9fbc29Smrg ia64:Linux:*:*) 96254044362Smrg echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" 96354044362Smrg exit ;; 96454044362Smrg k1om:Linux:*:*) 96554044362Smrg echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" 9668c9fbc29Smrg exit ;; 9678c9fbc29Smrg m32r*:Linux:*:*) 96854044362Smrg echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" 9698c9fbc29Smrg exit ;; 9708c9fbc29Smrg m68*:Linux:*:*) 97154044362Smrg echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" 9728c9fbc29Smrg exit ;; 9734cd6a3aeSmrg mips:Linux:*:* | mips64:Linux:*:*) 97454044362Smrg eval "$set_cc_for_build" 97554044362Smrg sed 's/^ //' << EOF > "$dummy.c" 9768c9fbc29Smrg #undef CPU 9774cd6a3aeSmrg #undef ${UNAME_MACHINE} 9784cd6a3aeSmrg #undef ${UNAME_MACHINE}el 9798c9fbc29Smrg #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) 9804cd6a3aeSmrg CPU=${UNAME_MACHINE}el 9818c9fbc29Smrg #else 9828c9fbc29Smrg #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) 9834cd6a3aeSmrg CPU=${UNAME_MACHINE} 9848c9fbc29Smrg #else 9858c9fbc29Smrg CPU= 9868c9fbc29Smrg #endif 9878c9fbc29Smrg #endif 9888c9fbc29SmrgEOF 98954044362Smrg eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU'`" 99054044362Smrg test "x$CPU" != x && { echo "$CPU-unknown-linux-$LIBC"; exit; } 9918c9fbc29Smrg ;; 99254044362Smrg mips64el:Linux:*:*) 99354044362Smrg echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" 99454044362Smrg exit ;; 99570728a38Smrg openrisc*:Linux:*:*) 99654044362Smrg echo or1k-unknown-linux-"$LIBC" 99770728a38Smrg exit ;; 99870728a38Smrg or32:Linux:*:* | or1k*:Linux:*:*) 99954044362Smrg echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" 10008c9fbc29Smrg exit ;; 10014cd6a3aeSmrg padre:Linux:*:*) 100254044362Smrg echo sparc-unknown-linux-"$LIBC" 10038c9fbc29Smrg exit ;; 10044cd6a3aeSmrg parisc64:Linux:*:* | hppa64:Linux:*:*) 100554044362Smrg echo hppa64-unknown-linux-"$LIBC" 10068c9fbc29Smrg exit ;; 10078c9fbc29Smrg parisc:Linux:*:* | hppa:Linux:*:*) 10088c9fbc29Smrg # Look for CPU level 10098c9fbc29Smrg case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in 101054044362Smrg PA7*) echo hppa1.1-unknown-linux-"$LIBC" ;; 101154044362Smrg PA8*) echo hppa2.0-unknown-linux-"$LIBC" ;; 101254044362Smrg *) echo hppa-unknown-linux-"$LIBC" ;; 10138c9fbc29Smrg esac 10148c9fbc29Smrg exit ;; 10154cd6a3aeSmrg ppc64:Linux:*:*) 101654044362Smrg echo powerpc64-unknown-linux-"$LIBC" 10174cd6a3aeSmrg exit ;; 10184cd6a3aeSmrg ppc:Linux:*:*) 101954044362Smrg echo powerpc-unknown-linux-"$LIBC" 102070728a38Smrg exit ;; 102170728a38Smrg ppc64le:Linux:*:*) 102254044362Smrg echo powerpc64le-unknown-linux-"$LIBC" 102370728a38Smrg exit ;; 102470728a38Smrg ppcle:Linux:*:*) 102554044362Smrg echo powerpcle-unknown-linux-"$LIBC" 102654044362Smrg exit ;; 102754044362Smrg riscv32:Linux:*:* | riscv64:Linux:*:*) 102854044362Smrg echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" 10298c9fbc29Smrg exit ;; 10308c9fbc29Smrg s390:Linux:*:* | s390x:Linux:*:*) 103154044362Smrg echo "$UNAME_MACHINE"-ibm-linux-"$LIBC" 10328c9fbc29Smrg exit ;; 10338c9fbc29Smrg sh64*:Linux:*:*) 103454044362Smrg echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" 10358c9fbc29Smrg exit ;; 10368c9fbc29Smrg sh*:Linux:*:*) 103754044362Smrg echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" 10388c9fbc29Smrg exit ;; 10398c9fbc29Smrg sparc:Linux:*:* | sparc64:Linux:*:*) 104054044362Smrg echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" 10418c9fbc29Smrg exit ;; 10424cd6a3aeSmrg tile*:Linux:*:*) 104354044362Smrg echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" 10444cd6a3aeSmrg exit ;; 10458c9fbc29Smrg vax:Linux:*:*) 104654044362Smrg echo "$UNAME_MACHINE"-dec-linux-"$LIBC" 10478c9fbc29Smrg exit ;; 10488c9fbc29Smrg x86_64:Linux:*:*) 104954044362Smrg echo "$UNAME_MACHINE"-pc-linux-"$LIBC" 10508c9fbc29Smrg exit ;; 10514e411241Smrg xtensa*:Linux:*:*) 105254044362Smrg echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" 10534e411241Smrg exit ;; 10548c9fbc29Smrg i*86:DYNIX/ptx:4*:*) 10558c9fbc29Smrg # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. 10568c9fbc29Smrg # earlier versions are messed up and put the nodename in both 10578c9fbc29Smrg # sysname and nodename. 10588c9fbc29Smrg echo i386-sequent-sysv4 10598c9fbc29Smrg exit ;; 10608c9fbc29Smrg i*86:UNIX_SV:4.2MP:2.*) 106170728a38Smrg # Unixware is an offshoot of SVR4, but it has its own version 106270728a38Smrg # number series starting with 2... 106370728a38Smrg # I am not positive that other SVR4 systems won't match this, 10648c9fbc29Smrg # I just have to hope. -- rms. 106570728a38Smrg # Use sysv4.2uw... so that sysv4* matches it. 106654044362Smrg echo "$UNAME_MACHINE"-pc-sysv4.2uw"$UNAME_VERSION" 10678c9fbc29Smrg exit ;; 10688c9fbc29Smrg i*86:OS/2:*:*) 10698c9fbc29Smrg # If we were able to find `uname', then EMX Unix compatibility 10708c9fbc29Smrg # is probably installed. 107154044362Smrg echo "$UNAME_MACHINE"-pc-os2-emx 10728c9fbc29Smrg exit ;; 10738c9fbc29Smrg i*86:XTS-300:*:STOP) 107454044362Smrg echo "$UNAME_MACHINE"-unknown-stop 10758c9fbc29Smrg exit ;; 10768c9fbc29Smrg i*86:atheos:*:*) 107754044362Smrg echo "$UNAME_MACHINE"-unknown-atheos 10788c9fbc29Smrg exit ;; 10798c9fbc29Smrg i*86:syllable:*:*) 108054044362Smrg echo "$UNAME_MACHINE"-pc-syllable 10818c9fbc29Smrg exit ;; 10824cd6a3aeSmrg i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) 108354044362Smrg echo i386-unknown-lynxos"$UNAME_RELEASE" 10848c9fbc29Smrg exit ;; 10858c9fbc29Smrg i*86:*DOS:*:*) 108654044362Smrg echo "$UNAME_MACHINE"-pc-msdosdjgpp 10878c9fbc29Smrg exit ;; 108854044362Smrg i*86:*:4.*:*) 108954044362Smrg UNAME_REL=`echo "$UNAME_RELEASE" | sed 's/\/MP$//'` 10908c9fbc29Smrg if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then 109154044362Smrg echo "$UNAME_MACHINE"-univel-sysv"$UNAME_REL" 10928c9fbc29Smrg else 109354044362Smrg echo "$UNAME_MACHINE"-pc-sysv"$UNAME_REL" 10948c9fbc29Smrg fi 10958c9fbc29Smrg exit ;; 10968c9fbc29Smrg i*86:*:5:[678]*) 109770728a38Smrg # UnixWare 7.x, OpenUNIX and OpenServer 6. 10988c9fbc29Smrg case `/bin/uname -X | grep "^Machine"` in 10998c9fbc29Smrg *486*) UNAME_MACHINE=i486 ;; 11008c9fbc29Smrg *Pentium) UNAME_MACHINE=i586 ;; 11018c9fbc29Smrg *Pent*|*Celeron) UNAME_MACHINE=i686 ;; 11028c9fbc29Smrg esac 110354044362Smrg echo "$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}{$UNAME_VERSION}" 11048c9fbc29Smrg exit ;; 11058c9fbc29Smrg i*86:*:3.2:*) 11068c9fbc29Smrg if test -f /usr/options/cb.name; then 11078c9fbc29Smrg UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name` 110854044362Smrg echo "$UNAME_MACHINE"-pc-isc"$UNAME_REL" 11098c9fbc29Smrg elif /bin/uname -X 2>/dev/null >/dev/null ; then 11108c9fbc29Smrg UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` 11118c9fbc29Smrg (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 11128c9fbc29Smrg (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ 11138c9fbc29Smrg && UNAME_MACHINE=i586 11148c9fbc29Smrg (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ 11158c9fbc29Smrg && UNAME_MACHINE=i686 11168c9fbc29Smrg (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ 11178c9fbc29Smrg && UNAME_MACHINE=i686 111854044362Smrg echo "$UNAME_MACHINE"-pc-sco"$UNAME_REL" 11198c9fbc29Smrg else 112054044362Smrg echo "$UNAME_MACHINE"-pc-sysv32 11218c9fbc29Smrg fi 11228c9fbc29Smrg exit ;; 11238c9fbc29Smrg pc:*:*:*) 11248c9fbc29Smrg # Left here for compatibility: 112570728a38Smrg # uname -m prints for DJGPP always 'pc', but it prints nothing about 112670728a38Smrg # the processor, so we play safe by assuming i586. 11274cd6a3aeSmrg # Note: whatever this is, it MUST be the same as what config.sub 112854044362Smrg # prints for the "djgpp" host, or else GDB configure will decide that 11294cd6a3aeSmrg # this is a cross-build. 11304cd6a3aeSmrg echo i586-pc-msdosdjgpp 113170728a38Smrg exit ;; 11328c9fbc29Smrg Intel:Mach:3*:*) 11338c9fbc29Smrg echo i386-pc-mach3 11348c9fbc29Smrg exit ;; 11358c9fbc29Smrg paragon:*:*:*) 11368c9fbc29Smrg echo i860-intel-osf1 11378c9fbc29Smrg exit ;; 11388c9fbc29Smrg i860:*:4.*:*) # i860-SVR4 11398c9fbc29Smrg if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then 114054044362Smrg echo i860-stardent-sysv"$UNAME_RELEASE" # Stardent Vistra i860-SVR4 11418c9fbc29Smrg else # Add other i860-SVR4 vendors below as they are discovered. 114254044362Smrg echo i860-unknown-sysv"$UNAME_RELEASE" # Unknown i860-SVR4 11438c9fbc29Smrg fi 11448c9fbc29Smrg exit ;; 11458c9fbc29Smrg mini*:CTIX:SYS*5:*) 11468c9fbc29Smrg # "miniframe" 11478c9fbc29Smrg echo m68010-convergent-sysv 11488c9fbc29Smrg exit ;; 11498c9fbc29Smrg mc68k:UNIX:SYSTEM5:3.51m) 11508c9fbc29Smrg echo m68k-convergent-sysv 11518c9fbc29Smrg exit ;; 11528c9fbc29Smrg M680?0:D-NIX:5.3:*) 11538c9fbc29Smrg echo m68k-diab-dnix 11548c9fbc29Smrg exit ;; 11558c9fbc29Smrg M68*:*:R3V[5678]*:*) 11568c9fbc29Smrg test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; 11578c9fbc29Smrg 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) 11588c9fbc29Smrg OS_REL='' 11598c9fbc29Smrg test -r /etc/.relid \ 11608c9fbc29Smrg && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` 11618c9fbc29Smrg /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 116254044362Smrg && { echo i486-ncr-sysv4.3"$OS_REL"; exit; } 11638c9fbc29Smrg /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ 116454044362Smrg && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;; 11658c9fbc29Smrg 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) 116670728a38Smrg /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 116770728a38Smrg && { echo i486-ncr-sysv4; exit; } ;; 11684cd6a3aeSmrg NCR*:*:4.2:* | MPRAS*:*:4.2:*) 11694cd6a3aeSmrg OS_REL='.3' 11704cd6a3aeSmrg test -r /etc/.relid \ 11714cd6a3aeSmrg && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` 11724cd6a3aeSmrg /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 117354044362Smrg && { echo i486-ncr-sysv4.3"$OS_REL"; exit; } 11744cd6a3aeSmrg /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ 117554044362Smrg && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } 11764cd6a3aeSmrg /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ 117754044362Smrg && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;; 11788c9fbc29Smrg m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) 117954044362Smrg echo m68k-unknown-lynxos"$UNAME_RELEASE" 11808c9fbc29Smrg exit ;; 11818c9fbc29Smrg mc68030:UNIX_System_V:4.*:*) 11828c9fbc29Smrg echo m68k-atari-sysv4 11838c9fbc29Smrg exit ;; 11848c9fbc29Smrg TSUNAMI:LynxOS:2.*:*) 118554044362Smrg echo sparc-unknown-lynxos"$UNAME_RELEASE" 11868c9fbc29Smrg exit ;; 11878c9fbc29Smrg rs6000:LynxOS:2.*:*) 118854044362Smrg echo rs6000-unknown-lynxos"$UNAME_RELEASE" 11898c9fbc29Smrg exit ;; 11904cd6a3aeSmrg PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) 119154044362Smrg echo powerpc-unknown-lynxos"$UNAME_RELEASE" 11928c9fbc29Smrg exit ;; 11938c9fbc29Smrg SM[BE]S:UNIX_SV:*:*) 119454044362Smrg echo mips-dde-sysv"$UNAME_RELEASE" 11958c9fbc29Smrg exit ;; 11968c9fbc29Smrg RM*:ReliantUNIX-*:*:*) 11978c9fbc29Smrg echo mips-sni-sysv4 11988c9fbc29Smrg exit ;; 11998c9fbc29Smrg RM*:SINIX-*:*:*) 12008c9fbc29Smrg echo mips-sni-sysv4 12018c9fbc29Smrg exit ;; 12028c9fbc29Smrg *:SINIX-*:*:*) 12038c9fbc29Smrg if uname -p 2>/dev/null >/dev/null ; then 12048c9fbc29Smrg UNAME_MACHINE=`(uname -p) 2>/dev/null` 120554044362Smrg echo "$UNAME_MACHINE"-sni-sysv4 12068c9fbc29Smrg else 12078c9fbc29Smrg echo ns32k-sni-sysv 12088c9fbc29Smrg fi 12098c9fbc29Smrg exit ;; 121070728a38Smrg PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort 121170728a38Smrg # says <Richard.M.Bartel@ccMail.Census.GOV> 121270728a38Smrg echo i586-unisys-sysv4 121370728a38Smrg exit ;; 12148c9fbc29Smrg *:UNIX_System_V:4*:FTX*) 12158c9fbc29Smrg # From Gerald Hewes <hewes@openmarket.com>. 12168c9fbc29Smrg # How about differentiating between stratus architectures? -djm 12178c9fbc29Smrg echo hppa1.1-stratus-sysv4 12188c9fbc29Smrg exit ;; 12198c9fbc29Smrg *:*:*:FTX*) 12208c9fbc29Smrg # From seanf@swdc.stratus.com. 12218c9fbc29Smrg echo i860-stratus-sysv4 12228c9fbc29Smrg exit ;; 12238c9fbc29Smrg i*86:VOS:*:*) 12248c9fbc29Smrg # From Paul.Green@stratus.com. 122554044362Smrg echo "$UNAME_MACHINE"-stratus-vos 12268c9fbc29Smrg exit ;; 12278c9fbc29Smrg *:VOS:*:*) 12288c9fbc29Smrg # From Paul.Green@stratus.com. 12298c9fbc29Smrg echo hppa1.1-stratus-vos 12308c9fbc29Smrg exit ;; 12318c9fbc29Smrg mc68*:A/UX:*:*) 123254044362Smrg echo m68k-apple-aux"$UNAME_RELEASE" 12338c9fbc29Smrg exit ;; 12348c9fbc29Smrg news*:NEWS-OS:6*:*) 12358c9fbc29Smrg echo mips-sony-newsos6 12368c9fbc29Smrg exit ;; 12378c9fbc29Smrg R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) 12388c9fbc29Smrg if [ -d /usr/nec ]; then 123954044362Smrg echo mips-nec-sysv"$UNAME_RELEASE" 12408c9fbc29Smrg else 124154044362Smrg echo mips-unknown-sysv"$UNAME_RELEASE" 12428c9fbc29Smrg fi 124370728a38Smrg exit ;; 12448c9fbc29Smrg BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. 12458c9fbc29Smrg echo powerpc-be-beos 12468c9fbc29Smrg exit ;; 12478c9fbc29Smrg BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. 12488c9fbc29Smrg echo powerpc-apple-beos 12498c9fbc29Smrg exit ;; 12508c9fbc29Smrg BePC:BeOS:*:*) # BeOS running on Intel PC compatible. 12518c9fbc29Smrg echo i586-pc-beos 12528c9fbc29Smrg exit ;; 12534cd6a3aeSmrg BePC:Haiku:*:*) # Haiku running on Intel PC compatible. 12544cd6a3aeSmrg echo i586-pc-haiku 12554cd6a3aeSmrg exit ;; 125670728a38Smrg x86_64:Haiku:*:*) 125770728a38Smrg echo x86_64-unknown-haiku 125870728a38Smrg exit ;; 12598c9fbc29Smrg SX-4:SUPER-UX:*:*) 126054044362Smrg echo sx4-nec-superux"$UNAME_RELEASE" 12618c9fbc29Smrg exit ;; 12628c9fbc29Smrg SX-5:SUPER-UX:*:*) 126354044362Smrg echo sx5-nec-superux"$UNAME_RELEASE" 12648c9fbc29Smrg exit ;; 12658c9fbc29Smrg SX-6:SUPER-UX:*:*) 126654044362Smrg echo sx6-nec-superux"$UNAME_RELEASE" 12678c9fbc29Smrg exit ;; 12684e411241Smrg SX-7:SUPER-UX:*:*) 126954044362Smrg echo sx7-nec-superux"$UNAME_RELEASE" 12704e411241Smrg exit ;; 12714e411241Smrg SX-8:SUPER-UX:*:*) 127254044362Smrg echo sx8-nec-superux"$UNAME_RELEASE" 12734e411241Smrg exit ;; 12744e411241Smrg SX-8R:SUPER-UX:*:*) 127554044362Smrg echo sx8r-nec-superux"$UNAME_RELEASE" 127654044362Smrg exit ;; 127754044362Smrg SX-ACE:SUPER-UX:*:*) 127854044362Smrg echo sxace-nec-superux"$UNAME_RELEASE" 12794e411241Smrg exit ;; 12808c9fbc29Smrg Power*:Rhapsody:*:*) 128154044362Smrg echo powerpc-apple-rhapsody"$UNAME_RELEASE" 12828c9fbc29Smrg exit ;; 12838c9fbc29Smrg *:Rhapsody:*:*) 128454044362Smrg echo "$UNAME_MACHINE"-apple-rhapsody"$UNAME_RELEASE" 12858c9fbc29Smrg exit ;; 12868c9fbc29Smrg *:Darwin:*:*) 12878c9fbc29Smrg UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown 128854044362Smrg eval "$set_cc_for_build" 128970728a38Smrg if test "$UNAME_PROCESSOR" = unknown ; then 129070728a38Smrg UNAME_PROCESSOR=powerpc 129170728a38Smrg fi 129254044362Smrg if test "`echo "$UNAME_RELEASE" | sed -e 's/\..*//'`" -le 10 ; then 129354044362Smrg if [ "$CC_FOR_BUILD" != no_compiler_found ]; then 129470728a38Smrg if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ 129554044362Smrg (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ 129654044362Smrg grep IS_64BIT_ARCH >/dev/null 129770728a38Smrg then 129870728a38Smrg case $UNAME_PROCESSOR in 129970728a38Smrg i386) UNAME_PROCESSOR=x86_64 ;; 130070728a38Smrg powerpc) UNAME_PROCESSOR=powerpc64 ;; 130170728a38Smrg esac 130270728a38Smrg fi 130354044362Smrg # On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc 130454044362Smrg if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \ 130554044362Smrg (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ 130654044362Smrg grep IS_PPC >/dev/null 130754044362Smrg then 130854044362Smrg UNAME_PROCESSOR=powerpc 130954044362Smrg fi 131070728a38Smrg fi 131170728a38Smrg elif test "$UNAME_PROCESSOR" = i386 ; then 131270728a38Smrg # Avoid executing cc on OS X 10.9, as it ships with a stub 131370728a38Smrg # that puts up a graphical alert prompting to install 131470728a38Smrg # developer tools. Any system running Mac OS X 10.7 or 131570728a38Smrg # later (Darwin 11 and later) is required to have a 64-bit 131670728a38Smrg # processor. This is not true of the ARM version of Darwin 131770728a38Smrg # that Apple uses in portable devices. 131870728a38Smrg UNAME_PROCESSOR=x86_64 131970728a38Smrg fi 132054044362Smrg echo "$UNAME_PROCESSOR"-apple-darwin"$UNAME_RELEASE" 13218c9fbc29Smrg exit ;; 13228c9fbc29Smrg *:procnto*:*:* | *:QNX:[0123456789]*:*) 13238c9fbc29Smrg UNAME_PROCESSOR=`uname -p` 132454044362Smrg if test "$UNAME_PROCESSOR" = x86; then 13258c9fbc29Smrg UNAME_PROCESSOR=i386 13268c9fbc29Smrg UNAME_MACHINE=pc 13278c9fbc29Smrg fi 132854044362Smrg echo "$UNAME_PROCESSOR"-"$UNAME_MACHINE"-nto-qnx"$UNAME_RELEASE" 13298c9fbc29Smrg exit ;; 13308c9fbc29Smrg *:QNX:*:4*) 13318c9fbc29Smrg echo i386-pc-qnx 13328c9fbc29Smrg exit ;; 133354044362Smrg NEO-*:NONSTOP_KERNEL:*:*) 133454044362Smrg echo neo-tandem-nsk"$UNAME_RELEASE" 133570728a38Smrg exit ;; 133670728a38Smrg NSE-*:NONSTOP_KERNEL:*:*) 133754044362Smrg echo nse-tandem-nsk"$UNAME_RELEASE" 133854044362Smrg exit ;; 133954044362Smrg NSR-*:NONSTOP_KERNEL:*:*) 134054044362Smrg echo nsr-tandem-nsk"$UNAME_RELEASE" 13418c9fbc29Smrg exit ;; 134254044362Smrg NSV-*:NONSTOP_KERNEL:*:*) 134354044362Smrg echo nsv-tandem-nsk"$UNAME_RELEASE" 134454044362Smrg exit ;; 134554044362Smrg NSX-*:NONSTOP_KERNEL:*:*) 134654044362Smrg echo nsx-tandem-nsk"$UNAME_RELEASE" 13478c9fbc29Smrg exit ;; 13488c9fbc29Smrg *:NonStop-UX:*:*) 13498c9fbc29Smrg echo mips-compaq-nonstopux 13508c9fbc29Smrg exit ;; 13518c9fbc29Smrg BS2000:POSIX*:*:*) 13528c9fbc29Smrg echo bs2000-siemens-sysv 13538c9fbc29Smrg exit ;; 13548c9fbc29Smrg DS/*:UNIX_System_V:*:*) 135554044362Smrg echo "$UNAME_MACHINE"-"$UNAME_SYSTEM"-"$UNAME_RELEASE" 13568c9fbc29Smrg exit ;; 13578c9fbc29Smrg *:Plan9:*:*) 13588c9fbc29Smrg # "uname -m" is not consistent, so use $cputype instead. 386 13598c9fbc29Smrg # is converted to i386 for consistency with other x86 13608c9fbc29Smrg # operating systems. 136154044362Smrg if test "$cputype" = 386; then 13628c9fbc29Smrg UNAME_MACHINE=i386 13638c9fbc29Smrg else 13648c9fbc29Smrg UNAME_MACHINE="$cputype" 13658c9fbc29Smrg fi 136654044362Smrg echo "$UNAME_MACHINE"-unknown-plan9 13678c9fbc29Smrg exit ;; 13688c9fbc29Smrg *:TOPS-10:*:*) 13698c9fbc29Smrg echo pdp10-unknown-tops10 13708c9fbc29Smrg exit ;; 13718c9fbc29Smrg *:TENEX:*:*) 13728c9fbc29Smrg echo pdp10-unknown-tenex 13738c9fbc29Smrg exit ;; 13748c9fbc29Smrg KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) 13758c9fbc29Smrg echo pdp10-dec-tops20 13768c9fbc29Smrg exit ;; 13778c9fbc29Smrg XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) 13788c9fbc29Smrg echo pdp10-xkl-tops20 13798c9fbc29Smrg exit ;; 13808c9fbc29Smrg *:TOPS-20:*:*) 13818c9fbc29Smrg echo pdp10-unknown-tops20 13828c9fbc29Smrg exit ;; 13838c9fbc29Smrg *:ITS:*:*) 13848c9fbc29Smrg echo pdp10-unknown-its 13858c9fbc29Smrg exit ;; 13868c9fbc29Smrg SEI:*:*:SEIUX) 138754044362Smrg echo mips-sei-seiux"$UNAME_RELEASE" 13888c9fbc29Smrg exit ;; 13898c9fbc29Smrg *:DragonFly:*:*) 139054044362Smrg echo "$UNAME_MACHINE"-unknown-dragonfly"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`" 13918c9fbc29Smrg exit ;; 13928c9fbc29Smrg *:*VMS:*:*) 139370728a38Smrg UNAME_MACHINE=`(uname -p) 2>/dev/null` 139454044362Smrg case "$UNAME_MACHINE" in 13958c9fbc29Smrg A*) echo alpha-dec-vms ; exit ;; 13968c9fbc29Smrg I*) echo ia64-dec-vms ; exit ;; 13978c9fbc29Smrg V*) echo vax-dec-vms ; exit ;; 13988c9fbc29Smrg esac ;; 13998c9fbc29Smrg *:XENIX:*:SysV) 14008c9fbc29Smrg echo i386-pc-xenix 14018c9fbc29Smrg exit ;; 14028c9fbc29Smrg i*86:skyos:*:*) 140354044362Smrg echo "$UNAME_MACHINE"-pc-skyos"`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'`" 14048c9fbc29Smrg exit ;; 14058c9fbc29Smrg i*86:rdos:*:*) 140654044362Smrg echo "$UNAME_MACHINE"-pc-rdos 14078c9fbc29Smrg exit ;; 14084cd6a3aeSmrg i*86:AROS:*:*) 140954044362Smrg echo "$UNAME_MACHINE"-pc-aros 14104cd6a3aeSmrg exit ;; 141170728a38Smrg x86_64:VMkernel:*:*) 141254044362Smrg echo "$UNAME_MACHINE"-unknown-esx 141354044362Smrg exit ;; 141454044362Smrg amd64:Isilon\ OneFS:*:*) 141554044362Smrg echo x86_64-unknown-onefs 14168c9fbc29Smrg exit ;; 141770728a38Smrgesac 14188c9fbc29Smrg 141954044362Smrgecho "$0: unable to guess system type" >&2 142054044362Smrg 142154044362Smrgcase "$UNAME_MACHINE:$UNAME_SYSTEM" in 142254044362Smrg mips:Linux | mips64:Linux) 142354044362Smrg # If we got here on MIPS GNU/Linux, output extra information. 142454044362Smrg cat >&2 <<EOF 142554044362Smrg 142654044362SmrgNOTE: MIPS GNU/Linux systems require a C compiler to fully recognize 142754044362Smrgthe system type. Please install a C compiler and try again. 142854044362SmrgEOF 142954044362Smrg ;; 143054044362Smrgesac 143154044362Smrg 14328c9fbc29Smrgcat >&2 <<EOF 14338c9fbc29Smrg 143454044362SmrgThis script (version $timestamp), has failed to recognize the 143554044362Smrgoperating system you are using. If your script is old, overwrite *all* 143654044362Smrgcopies of config.guess and config.sub with the latest versions from: 14378c9fbc29Smrg 143854044362Smrg https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess 14398c9fbc29Smrgand 144054044362Smrg https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub 14418c9fbc29Smrg 144254044362SmrgIf $0 has already been updated, send the following data and any 144354044362Smrginformation you think might be pertinent to config-patches@gnu.org to 144454044362Smrgprovide the necessary information to handle your system. 14458c9fbc29Smrg 14468c9fbc29Smrgconfig.guess timestamp = $timestamp 14478c9fbc29Smrg 14488c9fbc29Smrguname -m = `(uname -m) 2>/dev/null || echo unknown` 14498c9fbc29Smrguname -r = `(uname -r) 2>/dev/null || echo unknown` 14508c9fbc29Smrguname -s = `(uname -s) 2>/dev/null || echo unknown` 14518c9fbc29Smrguname -v = `(uname -v) 2>/dev/null || echo unknown` 14528c9fbc29Smrg 14538c9fbc29Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` 14548c9fbc29Smrg/bin/uname -X = `(/bin/uname -X) 2>/dev/null` 14558c9fbc29Smrg 14568c9fbc29Smrghostinfo = `(hostinfo) 2>/dev/null` 14578c9fbc29Smrg/bin/universe = `(/bin/universe) 2>/dev/null` 14588c9fbc29Smrg/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` 14598c9fbc29Smrg/bin/arch = `(/bin/arch) 2>/dev/null` 14608c9fbc29Smrg/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` 14618c9fbc29Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` 14628c9fbc29Smrg 146354044362SmrgUNAME_MACHINE = "$UNAME_MACHINE" 146454044362SmrgUNAME_RELEASE = "$UNAME_RELEASE" 146554044362SmrgUNAME_SYSTEM = "$UNAME_SYSTEM" 146654044362SmrgUNAME_VERSION = "$UNAME_VERSION" 14678c9fbc29SmrgEOF 14688c9fbc29Smrg 14698c9fbc29Smrgexit 1 14708c9fbc29Smrg 14718c9fbc29Smrg# Local variables: 147254044362Smrg# eval: (add-hook 'write-file-functions 'time-stamp) 14738c9fbc29Smrg# time-stamp-start: "timestamp='" 14748c9fbc29Smrg# time-stamp-format: "%:y-%02m-%02d" 14758c9fbc29Smrg# time-stamp-end: "'" 14768c9fbc29Smrg# End: 1477