config.guess revision 93d9adc1
172b676d7Smrg#! /bin/sh 272b676d7Smrg# Attempt to guess a canonical system name. 393d9adc1Smrg# Copyright 1992-2016 Free Software Foundation, Inc. 472b676d7Smrg 593d9adc1Smrgtimestamp='2016-04-02' 672b676d7Smrg 772b676d7Smrg# This file is free software; you can redistribute it and/or modify it 872b676d7Smrg# under the terms of the GNU General Public License as published by 993d9adc1Smrg# the Free Software Foundation; either version 3 of the License, or 1072b676d7Smrg# (at your option) any later version. 1172b676d7Smrg# 1272b676d7Smrg# This program is distributed in the hope that it will be useful, but 1372b676d7Smrg# WITHOUT ANY WARRANTY; without even the implied warranty of 1472b676d7Smrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1572b676d7Smrg# General Public License for more details. 1672b676d7Smrg# 1772b676d7Smrg# You should have received a copy of the GNU General Public License 1893d9adc1Smrg# along with this program; if not, see <http://www.gnu.org/licenses/>. 1972b676d7Smrg# 2072b676d7Smrg# As a special exception to the GNU General Public License, if you 2172b676d7Smrg# distribute this file as part of a program that contains a 2272b676d7Smrg# configuration script generated by Autoconf, you may include it under 2393d9adc1Smrg# the same distribution terms that you use for the rest of that 2493d9adc1Smrg# program. This Exception is an additional permission under section 7 2593d9adc1Smrg# of the GNU General Public License, version 3 ("GPLv3"). 2672b676d7Smrg# 2793d9adc1Smrg# Originally written by Per Bothner; maintained since 2000 by Ben Elliston. 2872b676d7Smrg# 2974c14cd6Smrg# You can get the latest version of this script from: 3093d9adc1Smrg# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess 3193d9adc1Smrg# 3293d9adc1Smrg# Please send patches to <config-patches@gnu.org>. 3393d9adc1Smrg 3472b676d7Smrg 3572b676d7Smrgme=`echo "$0" | sed -e 's,.*/,,'` 3672b676d7Smrg 3772b676d7Smrgusage="\ 3872b676d7SmrgUsage: $0 [OPTION] 3972b676d7Smrg 4072b676d7SmrgOutput the configuration name of the system \`$me' is run on. 4172b676d7Smrg 4272b676d7SmrgOperation modes: 4372b676d7Smrg -h, --help print this help, then exit 4472b676d7Smrg -t, --time-stamp print date of last modification, then exit 4572b676d7Smrg -v, --version print version number, then exit 4672b676d7Smrg 4772b676d7SmrgReport bugs and patches to <config-patches@gnu.org>." 4872b676d7Smrg 4972b676d7Smrgversion="\ 5072b676d7SmrgGNU config.guess ($timestamp) 5172b676d7Smrg 5272b676d7SmrgOriginally written by Per Bothner. 5393d9adc1SmrgCopyright 1992-2016 Free Software Foundation, Inc. 5472b676d7Smrg 5572b676d7SmrgThis is free software; see the source for copying conditions. There is NO 5672b676d7Smrgwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." 5772b676d7Smrg 5872b676d7Smrghelp=" 5972b676d7SmrgTry \`$me --help' for more information." 6072b676d7Smrg 6172b676d7Smrg# Parse command line 6272b676d7Smrgwhile test $# -gt 0 ; do 6372b676d7Smrg case $1 in 6472b676d7Smrg --time-stamp | --time* | -t ) 6572b676d7Smrg echo "$timestamp" ; exit ;; 6672b676d7Smrg --version | -v ) 6772b676d7Smrg echo "$version" ; exit ;; 6872b676d7Smrg --help | --h* | -h ) 6972b676d7Smrg echo "$usage"; exit ;; 7072b676d7Smrg -- ) # Stop option processing 7172b676d7Smrg shift; break ;; 7272b676d7Smrg - ) # Use stdin as input. 7372b676d7Smrg break ;; 7472b676d7Smrg -* ) 7572b676d7Smrg echo "$me: invalid option $1$help" >&2 7672b676d7Smrg exit 1 ;; 7772b676d7Smrg * ) 7872b676d7Smrg break ;; 7972b676d7Smrg esac 8072b676d7Smrgdone 8172b676d7Smrg 8272b676d7Smrgif test $# != 0; then 8372b676d7Smrg echo "$me: too many arguments$help" >&2 8472b676d7Smrg exit 1 8572b676d7Smrgfi 8672b676d7Smrg 8772b676d7Smrgtrap 'exit 1' 1 2 15 8872b676d7Smrg 8972b676d7Smrg# CC_FOR_BUILD -- compiler used by this script. Note that the use of a 9072b676d7Smrg# compiler to aid in system detection is discouraged as it requires 9172b676d7Smrg# temporary files to be created and, as you can see below, it is a 9272b676d7Smrg# headache to deal with in a portable fashion. 9372b676d7Smrg 9472b676d7Smrg# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still 9572b676d7Smrg# use `HOST_CC' if defined, but it is deprecated. 9672b676d7Smrg 9772b676d7Smrg# Portable tmp directory creation inspired by the Autoconf team. 9872b676d7Smrg 9972b676d7Smrgset_cc_for_build=' 10072b676d7Smrgtrap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; 10172b676d7Smrgtrap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; 10272b676d7Smrg: ${TMPDIR=/tmp} ; 10372b676d7Smrg { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || 10472b676d7Smrg { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || 10572b676d7Smrg { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || 10672b676d7Smrg { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; 10772b676d7Smrgdummy=$tmp/dummy ; 10872b676d7Smrgtmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; 10972b676d7Smrgcase $CC_FOR_BUILD,$HOST_CC,$CC in 11072b676d7Smrg ,,) echo "int x;" > $dummy.c ; 11172b676d7Smrg for c in cc gcc c89 c99 ; do 11272b676d7Smrg if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then 11372b676d7Smrg CC_FOR_BUILD="$c"; break ; 11472b676d7Smrg fi ; 11572b676d7Smrg done ; 11672b676d7Smrg if test x"$CC_FOR_BUILD" = x ; then 11772b676d7Smrg CC_FOR_BUILD=no_compiler_found ; 11872b676d7Smrg fi 11972b676d7Smrg ;; 12072b676d7Smrg ,,*) CC_FOR_BUILD=$CC ;; 12172b676d7Smrg ,*,*) CC_FOR_BUILD=$HOST_CC ;; 12272b676d7Smrgesac ; set_cc_for_build= ;' 12372b676d7Smrg 12472b676d7Smrg# This is needed to find uname on a Pyramid OSx when run in the BSD universe. 12572b676d7Smrg# (ghazi@noc.rutgers.edu 1994-08-24) 12672b676d7Smrgif (test -f /.attbin/uname) >/dev/null 2>&1 ; then 12772b676d7Smrg PATH=$PATH:/.attbin ; export PATH 12872b676d7Smrgfi 12972b676d7Smrg 13072b676d7SmrgUNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown 13172b676d7SmrgUNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown 13272b676d7SmrgUNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown 13372b676d7SmrgUNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown 13472b676d7Smrg 13521525869Smrgcase "${UNAME_SYSTEM}" in 13693d9adc1SmrgLinux|GNU|GNU/*) 13793d9adc1Smrg # If the system lacks a compiler, then just pick glibc. 13893d9adc1Smrg # We could probably try harder. 13993d9adc1Smrg LIBC=gnu 14093d9adc1Smrg 14121525869Smrg eval $set_cc_for_build 14221525869Smrg cat <<-EOF > $dummy.c 14321525869Smrg #include <features.h> 14493d9adc1Smrg #if defined(__UCLIBC__) 14521525869Smrg LIBC=uclibc 14693d9adc1Smrg #elif defined(__dietlibc__) 14721525869Smrg LIBC=dietlibc 14893d9adc1Smrg #else 14921525869Smrg LIBC=gnu 15021525869Smrg #endif 15121525869Smrg EOF 15293d9adc1Smrg eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | sed 's, ,,g'` 15321525869Smrg ;; 15421525869Smrgesac 15521525869Smrg 15672b676d7Smrg# Note: order is significant - the case branches are not exclusive. 15772b676d7Smrg 15872b676d7Smrgcase "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in 15972b676d7Smrg *:NetBSD:*:*) 16072b676d7Smrg # NetBSD (nbsd) targets should (where applicable) match one or 16193d9adc1Smrg # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, 16272b676d7Smrg # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently 16372b676d7Smrg # switched to ELF, *-*-netbsd* would select the old 16472b676d7Smrg # object file format. This provides both forward 16572b676d7Smrg # compatibility and a consistent mechanism for selecting the 16672b676d7Smrg # object file format. 16772b676d7Smrg # 16872b676d7Smrg # Note: NetBSD doesn't particularly care about the vendor 16972b676d7Smrg # portion of the name. We always set it to "unknown". 17072b676d7Smrg sysctl="sysctl -n hw.machine_arch" 17193d9adc1Smrg UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \ 17293d9adc1Smrg /sbin/$sysctl 2>/dev/null || \ 17393d9adc1Smrg /usr/sbin/$sysctl 2>/dev/null || \ 17493d9adc1Smrg echo unknown)` 17572b676d7Smrg case "${UNAME_MACHINE_ARCH}" in 17672b676d7Smrg armeb) machine=armeb-unknown ;; 17772b676d7Smrg arm*) machine=arm-unknown ;; 17872b676d7Smrg sh3el) machine=shl-unknown ;; 17972b676d7Smrg sh3eb) machine=sh-unknown ;; 1801fd23544Smrg sh5el) machine=sh5le-unknown ;; 18193d9adc1Smrg earmv*) 18293d9adc1Smrg arch=`echo ${UNAME_MACHINE_ARCH} | sed -e 's,^e\(armv[0-9]\).*$,\1,'` 18393d9adc1Smrg endian=`echo ${UNAME_MACHINE_ARCH} | sed -ne 's,^.*\(eb\)$,\1,p'` 18493d9adc1Smrg machine=${arch}${endian}-unknown 18593d9adc1Smrg ;; 18672b676d7Smrg *) machine=${UNAME_MACHINE_ARCH}-unknown ;; 18772b676d7Smrg esac 18872b676d7Smrg # The Operating System including object format, if it has switched 18972b676d7Smrg # to ELF recently, or will in the future. 19072b676d7Smrg case "${UNAME_MACHINE_ARCH}" in 19193d9adc1Smrg arm*|earm*|i386|m68k|ns32k|sh3*|sparc|vax) 19272b676d7Smrg eval $set_cc_for_build 19372b676d7Smrg if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ 19474c14cd6Smrg | grep -q __ELF__ 19572b676d7Smrg then 19672b676d7Smrg # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). 19772b676d7Smrg # Return netbsd for either. FIX? 19872b676d7Smrg os=netbsd 19972b676d7Smrg else 20072b676d7Smrg os=netbsdelf 20172b676d7Smrg fi 20272b676d7Smrg ;; 20372b676d7Smrg *) 20474c14cd6Smrg os=netbsd 20572b676d7Smrg ;; 20672b676d7Smrg esac 20793d9adc1Smrg # Determine ABI tags. 20893d9adc1Smrg case "${UNAME_MACHINE_ARCH}" in 20993d9adc1Smrg earm*) 21093d9adc1Smrg expr='s/^earmv[0-9]/-eabi/;s/eb$//' 21193d9adc1Smrg abi=`echo ${UNAME_MACHINE_ARCH} | sed -e "$expr"` 21293d9adc1Smrg ;; 21393d9adc1Smrg esac 21472b676d7Smrg # The OS release 21572b676d7Smrg # Debian GNU/NetBSD machines have a different userland, and 21672b676d7Smrg # thus, need a distinct triplet. However, they do not need 21772b676d7Smrg # kernel version information, so it can be replaced with a 21872b676d7Smrg # suitable tag, in the style of linux-gnu. 21972b676d7Smrg case "${UNAME_VERSION}" in 22072b676d7Smrg Debian*) 22172b676d7Smrg release='-gnu' 22272b676d7Smrg ;; 22372b676d7Smrg *) 22493d9adc1Smrg release=`echo ${UNAME_RELEASE} | sed -e 's/[-_].*//' | cut -d. -f1,2` 22572b676d7Smrg ;; 22672b676d7Smrg esac 22772b676d7Smrg # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: 22872b676d7Smrg # contains redundant information, the shorter form: 22972b676d7Smrg # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. 23093d9adc1Smrg echo "${machine}-${os}${release}${abi}" 23193d9adc1Smrg exit ;; 23293d9adc1Smrg *:Bitrig:*:*) 23393d9adc1Smrg UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` 23493d9adc1Smrg echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE} 23572b676d7Smrg exit ;; 23672b676d7Smrg *:OpenBSD:*:*) 23772b676d7Smrg UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` 23872b676d7Smrg echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} 23972b676d7Smrg exit ;; 24093d9adc1Smrg *:LibertyBSD:*:*) 24193d9adc1Smrg UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'` 24293d9adc1Smrg echo ${UNAME_MACHINE_ARCH}-unknown-libertybsd${UNAME_RELEASE} 24393d9adc1Smrg exit ;; 24472b676d7Smrg *:ekkoBSD:*:*) 24572b676d7Smrg echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} 24672b676d7Smrg exit ;; 24772b676d7Smrg *:SolidBSD:*:*) 24872b676d7Smrg echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} 24972b676d7Smrg exit ;; 25072b676d7Smrg macppc:MirBSD:*:*) 2511fd23544Smrg echo powerpc-unknown-mirbsd${UNAME_RELEASE} 25272b676d7Smrg exit ;; 25372b676d7Smrg *:MirBSD:*:*) 25472b676d7Smrg echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} 25572b676d7Smrg exit ;; 25693d9adc1Smrg *:Sortix:*:*) 25793d9adc1Smrg echo ${UNAME_MACHINE}-unknown-sortix 25893d9adc1Smrg exit ;; 25972b676d7Smrg alpha:OSF1:*:*) 26072b676d7Smrg case $UNAME_RELEASE in 26172b676d7Smrg *4.0) 26272b676d7Smrg UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` 26372b676d7Smrg ;; 26472b676d7Smrg *5.*) 26574c14cd6Smrg UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` 26672b676d7Smrg ;; 26772b676d7Smrg esac 26872b676d7Smrg # According to Compaq, /usr/sbin/psrinfo has been available on 26972b676d7Smrg # OSF/1 and Tru64 systems produced since 1995. I hope that 27072b676d7Smrg # covers most systems running today. This code pipes the CPU 27172b676d7Smrg # types through head -n 1, so we only detect the type of CPU 0. 27272b676d7Smrg ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` 27372b676d7Smrg case "$ALPHA_CPU_TYPE" in 27472b676d7Smrg "EV4 (21064)") 27593d9adc1Smrg UNAME_MACHINE=alpha ;; 27672b676d7Smrg "EV4.5 (21064)") 27793d9adc1Smrg UNAME_MACHINE=alpha ;; 27872b676d7Smrg "LCA4 (21066/21068)") 27993d9adc1Smrg UNAME_MACHINE=alpha ;; 28072b676d7Smrg "EV5 (21164)") 28193d9adc1Smrg UNAME_MACHINE=alphaev5 ;; 28272b676d7Smrg "EV5.6 (21164A)") 28393d9adc1Smrg UNAME_MACHINE=alphaev56 ;; 28472b676d7Smrg "EV5.6 (21164PC)") 28593d9adc1Smrg UNAME_MACHINE=alphapca56 ;; 28672b676d7Smrg "EV5.7 (21164PC)") 28793d9adc1Smrg UNAME_MACHINE=alphapca57 ;; 28872b676d7Smrg "EV6 (21264)") 28993d9adc1Smrg UNAME_MACHINE=alphaev6 ;; 29072b676d7Smrg "EV6.7 (21264A)") 29193d9adc1Smrg UNAME_MACHINE=alphaev67 ;; 29272b676d7Smrg "EV6.8CB (21264C)") 29393d9adc1Smrg UNAME_MACHINE=alphaev68 ;; 29472b676d7Smrg "EV6.8AL (21264B)") 29593d9adc1Smrg UNAME_MACHINE=alphaev68 ;; 29672b676d7Smrg "EV6.8CX (21264D)") 29793d9adc1Smrg UNAME_MACHINE=alphaev68 ;; 29872b676d7Smrg "EV6.9A (21264/EV69A)") 29993d9adc1Smrg UNAME_MACHINE=alphaev69 ;; 30072b676d7Smrg "EV7 (21364)") 30193d9adc1Smrg UNAME_MACHINE=alphaev7 ;; 30272b676d7Smrg "EV7.9 (21364A)") 30393d9adc1Smrg UNAME_MACHINE=alphaev79 ;; 30472b676d7Smrg esac 30572b676d7Smrg # A Pn.n version is a patched version. 30672b676d7Smrg # A Vn.n version is a released version. 30772b676d7Smrg # A Tn.n version is a released field test version. 30872b676d7Smrg # A Xn.n version is an unreleased experimental baselevel. 30972b676d7Smrg # 1.2 uses "1.2" for uname -r. 31093d9adc1Smrg echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz` 31174c14cd6Smrg # Reset EXIT trap before exiting to avoid spurious non-zero exit code. 31274c14cd6Smrg exitcode=$? 31374c14cd6Smrg trap '' 0 31474c14cd6Smrg exit $exitcode ;; 31572b676d7Smrg Alpha\ *:Windows_NT*:*) 31672b676d7Smrg # How do we know it's Interix rather than the generic POSIX subsystem? 31772b676d7Smrg # Should we change UNAME_MACHINE based on the output of uname instead 31872b676d7Smrg # of the specific Alpha model? 31972b676d7Smrg echo alpha-pc-interix 32072b676d7Smrg exit ;; 32172b676d7Smrg 21064:Windows_NT:50:3) 32272b676d7Smrg echo alpha-dec-winnt3.5 32372b676d7Smrg exit ;; 32472b676d7Smrg Amiga*:UNIX_System_V:4.0:*) 32572b676d7Smrg echo m68k-unknown-sysv4 32672b676d7Smrg exit ;; 32772b676d7Smrg *:[Aa]miga[Oo][Ss]:*:*) 32872b676d7Smrg echo ${UNAME_MACHINE}-unknown-amigaos 32972b676d7Smrg exit ;; 33072b676d7Smrg *:[Mm]orph[Oo][Ss]:*:*) 33172b676d7Smrg echo ${UNAME_MACHINE}-unknown-morphos 33272b676d7Smrg exit ;; 33372b676d7Smrg *:OS/390:*:*) 33472b676d7Smrg echo i370-ibm-openedition 33572b676d7Smrg exit ;; 33672b676d7Smrg *:z/VM:*:*) 33772b676d7Smrg echo s390-ibm-zvmoe 33872b676d7Smrg exit ;; 33972b676d7Smrg *:OS400:*:*) 34074c14cd6Smrg echo powerpc-ibm-os400 34172b676d7Smrg exit ;; 34272b676d7Smrg arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) 34372b676d7Smrg echo arm-acorn-riscix${UNAME_RELEASE} 34472b676d7Smrg exit ;; 34593d9adc1Smrg arm*:riscos:*:*|arm*:RISCOS:*:*) 34672b676d7Smrg echo arm-unknown-riscos 34772b676d7Smrg exit ;; 34872b676d7Smrg SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) 34972b676d7Smrg echo hppa1.1-hitachi-hiuxmpp 35072b676d7Smrg exit ;; 35172b676d7Smrg Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) 35272b676d7Smrg # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. 35372b676d7Smrg if test "`(/bin/universe) 2>/dev/null`" = att ; then 35472b676d7Smrg echo pyramid-pyramid-sysv3 35572b676d7Smrg else 35672b676d7Smrg echo pyramid-pyramid-bsd 35772b676d7Smrg fi 35872b676d7Smrg exit ;; 35972b676d7Smrg NILE*:*:*:dcosx) 36072b676d7Smrg echo pyramid-pyramid-svr4 36172b676d7Smrg exit ;; 36272b676d7Smrg DRS?6000:unix:4.0:6*) 36372b676d7Smrg echo sparc-icl-nx6 36472b676d7Smrg exit ;; 36572b676d7Smrg DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) 36672b676d7Smrg case `/usr/bin/uname -p` in 36772b676d7Smrg sparc) echo sparc-icl-nx7; exit ;; 36872b676d7Smrg esac ;; 36974c14cd6Smrg s390x:SunOS:*:*) 37074c14cd6Smrg echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 37174c14cd6Smrg exit ;; 37272b676d7Smrg sun4H:SunOS:5.*:*) 37372b676d7Smrg echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 37472b676d7Smrg exit ;; 37572b676d7Smrg sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) 37672b676d7Smrg echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 37772b676d7Smrg exit ;; 37874c14cd6Smrg i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) 37974c14cd6Smrg echo i386-pc-auroraux${UNAME_RELEASE} 38074c14cd6Smrg exit ;; 3811fd23544Smrg i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) 38274c14cd6Smrg eval $set_cc_for_build 38393d9adc1Smrg SUN_ARCH=i386 38474c14cd6Smrg # If there is a compiler, see if it is configured for 64-bit objects. 38574c14cd6Smrg # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. 38674c14cd6Smrg # This test works for both compilers. 38793d9adc1Smrg if [ "$CC_FOR_BUILD" != no_compiler_found ]; then 38874c14cd6Smrg if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ 38993d9adc1Smrg (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ 39074c14cd6Smrg grep IS_64BIT_ARCH >/dev/null 39174c14cd6Smrg then 39293d9adc1Smrg SUN_ARCH=x86_64 39374c14cd6Smrg fi 39474c14cd6Smrg fi 39574c14cd6Smrg echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 39672b676d7Smrg exit ;; 39772b676d7Smrg sun4*:SunOS:6*:*) 39872b676d7Smrg # According to config.sub, this is the proper way to canonicalize 39972b676d7Smrg # SunOS6. Hard to guess exactly what SunOS6 will be like, but 40072b676d7Smrg # it's likely to be more like Solaris than SunOS4. 40172b676d7Smrg echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 40272b676d7Smrg exit ;; 40372b676d7Smrg sun4*:SunOS:*:*) 40472b676d7Smrg case "`/usr/bin/arch -k`" in 40572b676d7Smrg Series*|S4*) 40672b676d7Smrg UNAME_RELEASE=`uname -v` 40772b676d7Smrg ;; 40872b676d7Smrg esac 40972b676d7Smrg # Japanese Language versions have a version number like `4.1.3-JL'. 41072b676d7Smrg echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` 41172b676d7Smrg exit ;; 41272b676d7Smrg sun3*:SunOS:*:*) 41372b676d7Smrg echo m68k-sun-sunos${UNAME_RELEASE} 41472b676d7Smrg exit ;; 41572b676d7Smrg sun*:*:4.2BSD:*) 41672b676d7Smrg UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` 41793d9adc1Smrg test "x${UNAME_RELEASE}" = x && UNAME_RELEASE=3 41872b676d7Smrg case "`/bin/arch`" in 41972b676d7Smrg sun3) 42072b676d7Smrg echo m68k-sun-sunos${UNAME_RELEASE} 42172b676d7Smrg ;; 42272b676d7Smrg sun4) 42372b676d7Smrg echo sparc-sun-sunos${UNAME_RELEASE} 42472b676d7Smrg ;; 42572b676d7Smrg esac 42672b676d7Smrg exit ;; 42772b676d7Smrg aushp:SunOS:*:*) 42872b676d7Smrg echo sparc-auspex-sunos${UNAME_RELEASE} 42972b676d7Smrg exit ;; 43072b676d7Smrg # The situation for MiNT is a little confusing. The machine name 43172b676d7Smrg # can be virtually everything (everything which is not 43272b676d7Smrg # "atarist" or "atariste" at least should have a processor 43372b676d7Smrg # > m68000). The system name ranges from "MiNT" over "FreeMiNT" 43472b676d7Smrg # to the lowercase version "mint" (or "freemint"). Finally 43572b676d7Smrg # the system name "TOS" denotes a system which is actually not 43672b676d7Smrg # MiNT. But MiNT is downward compatible to TOS, so this should 43772b676d7Smrg # be no problem. 43872b676d7Smrg atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) 43974c14cd6Smrg echo m68k-atari-mint${UNAME_RELEASE} 44072b676d7Smrg exit ;; 44172b676d7Smrg atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) 44272b676d7Smrg echo m68k-atari-mint${UNAME_RELEASE} 44374c14cd6Smrg exit ;; 44472b676d7Smrg *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) 44574c14cd6Smrg echo m68k-atari-mint${UNAME_RELEASE} 44672b676d7Smrg exit ;; 44772b676d7Smrg milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) 44874c14cd6Smrg echo m68k-milan-mint${UNAME_RELEASE} 44974c14cd6Smrg exit ;; 45072b676d7Smrg hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) 45174c14cd6Smrg echo m68k-hades-mint${UNAME_RELEASE} 45274c14cd6Smrg exit ;; 45372b676d7Smrg *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) 45474c14cd6Smrg echo m68k-unknown-mint${UNAME_RELEASE} 45574c14cd6Smrg exit ;; 45672b676d7Smrg m68k:machten:*:*) 45772b676d7Smrg echo m68k-apple-machten${UNAME_RELEASE} 45872b676d7Smrg exit ;; 45972b676d7Smrg powerpc:machten:*:*) 46072b676d7Smrg echo powerpc-apple-machten${UNAME_RELEASE} 46172b676d7Smrg exit ;; 46272b676d7Smrg RISC*:Mach:*:*) 46372b676d7Smrg echo mips-dec-mach_bsd4.3 46472b676d7Smrg exit ;; 46572b676d7Smrg RISC*:ULTRIX:*:*) 46672b676d7Smrg echo mips-dec-ultrix${UNAME_RELEASE} 46772b676d7Smrg exit ;; 46872b676d7Smrg VAX*:ULTRIX*:*:*) 46972b676d7Smrg echo vax-dec-ultrix${UNAME_RELEASE} 47072b676d7Smrg exit ;; 47172b676d7Smrg 2020:CLIX:*:* | 2430:CLIX:*:*) 47272b676d7Smrg echo clipper-intergraph-clix${UNAME_RELEASE} 47372b676d7Smrg exit ;; 47472b676d7Smrg mips:*:*:UMIPS | mips:*:*:RISCos) 47572b676d7Smrg eval $set_cc_for_build 47672b676d7Smrg sed 's/^ //' << EOF >$dummy.c 47772b676d7Smrg#ifdef __cplusplus 47872b676d7Smrg#include <stdio.h> /* for printf() prototype */ 47972b676d7Smrg int main (int argc, char *argv[]) { 48072b676d7Smrg#else 48172b676d7Smrg int main (argc, argv) int argc; char *argv[]; { 48272b676d7Smrg#endif 48372b676d7Smrg #if defined (host_mips) && defined (MIPSEB) 48472b676d7Smrg #if defined (SYSTYPE_SYSV) 48572b676d7Smrg printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); 48672b676d7Smrg #endif 48772b676d7Smrg #if defined (SYSTYPE_SVR4) 48872b676d7Smrg printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); 48972b676d7Smrg #endif 49072b676d7Smrg #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) 49172b676d7Smrg printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); 49272b676d7Smrg #endif 49372b676d7Smrg #endif 49472b676d7Smrg exit (-1); 49572b676d7Smrg } 49672b676d7SmrgEOF 49772b676d7Smrg $CC_FOR_BUILD -o $dummy $dummy.c && 49872b676d7Smrg dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && 49972b676d7Smrg SYSTEM_NAME=`$dummy $dummyarg` && 50072b676d7Smrg { echo "$SYSTEM_NAME"; exit; } 50172b676d7Smrg echo mips-mips-riscos${UNAME_RELEASE} 50272b676d7Smrg exit ;; 50372b676d7Smrg Motorola:PowerMAX_OS:*:*) 50472b676d7Smrg echo powerpc-motorola-powermax 50572b676d7Smrg exit ;; 50672b676d7Smrg Motorola:*:4.3:PL8-*) 50772b676d7Smrg echo powerpc-harris-powermax 50872b676d7Smrg exit ;; 50972b676d7Smrg Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) 51072b676d7Smrg echo powerpc-harris-powermax 51172b676d7Smrg exit ;; 51272b676d7Smrg Night_Hawk:Power_UNIX:*:*) 51372b676d7Smrg echo powerpc-harris-powerunix 51472b676d7Smrg exit ;; 51572b676d7Smrg m88k:CX/UX:7*:*) 51672b676d7Smrg echo m88k-harris-cxux7 51772b676d7Smrg exit ;; 51872b676d7Smrg m88k:*:4*:R4*) 51972b676d7Smrg echo m88k-motorola-sysv4 52072b676d7Smrg exit ;; 52172b676d7Smrg m88k:*:3*:R3*) 52272b676d7Smrg echo m88k-motorola-sysv3 52372b676d7Smrg exit ;; 52472b676d7Smrg AViiON:dgux:*:*) 52574c14cd6Smrg # DG/UX returns AViiON for all architectures 52674c14cd6Smrg UNAME_PROCESSOR=`/usr/bin/uname -p` 52772b676d7Smrg if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] 52872b676d7Smrg then 52972b676d7Smrg if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ 53072b676d7Smrg [ ${TARGET_BINARY_INTERFACE}x = x ] 53172b676d7Smrg then 53272b676d7Smrg echo m88k-dg-dgux${UNAME_RELEASE} 53372b676d7Smrg else 53472b676d7Smrg echo m88k-dg-dguxbcs${UNAME_RELEASE} 53572b676d7Smrg fi 53672b676d7Smrg else 53772b676d7Smrg echo i586-dg-dgux${UNAME_RELEASE} 53872b676d7Smrg fi 53974c14cd6Smrg exit ;; 54072b676d7Smrg M88*:DolphinOS:*:*) # DolphinOS (SVR3) 54172b676d7Smrg echo m88k-dolphin-sysv3 54272b676d7Smrg exit ;; 54372b676d7Smrg M88*:*:R3*:*) 54472b676d7Smrg # Delta 88k system running SVR3 54572b676d7Smrg echo m88k-motorola-sysv3 54672b676d7Smrg exit ;; 54772b676d7Smrg XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) 54872b676d7Smrg echo m88k-tektronix-sysv3 54972b676d7Smrg exit ;; 55072b676d7Smrg Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) 55172b676d7Smrg echo m68k-tektronix-bsd 55272b676d7Smrg exit ;; 55372b676d7Smrg *:IRIX*:*:*) 55472b676d7Smrg echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` 55572b676d7Smrg exit ;; 55672b676d7Smrg ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. 55772b676d7Smrg echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id 55872b676d7Smrg exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' 55972b676d7Smrg i*86:AIX:*:*) 56072b676d7Smrg echo i386-ibm-aix 56172b676d7Smrg exit ;; 56272b676d7Smrg ia64:AIX:*:*) 56372b676d7Smrg if [ -x /usr/bin/oslevel ] ; then 56472b676d7Smrg IBM_REV=`/usr/bin/oslevel` 56572b676d7Smrg else 56672b676d7Smrg IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} 56772b676d7Smrg fi 56872b676d7Smrg echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} 56972b676d7Smrg exit ;; 57072b676d7Smrg *:AIX:2:3) 57172b676d7Smrg if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then 57272b676d7Smrg eval $set_cc_for_build 57372b676d7Smrg sed 's/^ //' << EOF >$dummy.c 57472b676d7Smrg #include <sys/systemcfg.h> 57572b676d7Smrg 57672b676d7Smrg main() 57772b676d7Smrg { 57872b676d7Smrg if (!__power_pc()) 57972b676d7Smrg exit(1); 58072b676d7Smrg puts("powerpc-ibm-aix3.2.5"); 58172b676d7Smrg exit(0); 58272b676d7Smrg } 58372b676d7SmrgEOF 58472b676d7Smrg if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` 58572b676d7Smrg then 58672b676d7Smrg echo "$SYSTEM_NAME" 58772b676d7Smrg else 58872b676d7Smrg echo rs6000-ibm-aix3.2.5 58972b676d7Smrg fi 59072b676d7Smrg elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then 59172b676d7Smrg echo rs6000-ibm-aix3.2.4 59272b676d7Smrg else 59372b676d7Smrg echo rs6000-ibm-aix3.2 59472b676d7Smrg fi 59572b676d7Smrg exit ;; 59674c14cd6Smrg *:AIX:*:[4567]) 59772b676d7Smrg IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` 59872b676d7Smrg if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then 59972b676d7Smrg IBM_ARCH=rs6000 60072b676d7Smrg else 60172b676d7Smrg IBM_ARCH=powerpc 60272b676d7Smrg fi 60393d9adc1Smrg if [ -x /usr/bin/lslpp ] ; then 60493d9adc1Smrg IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc | 60593d9adc1Smrg awk -F: '{ print $3 }' | sed s/[0-9]*$/0/` 60672b676d7Smrg else 60772b676d7Smrg IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} 60872b676d7Smrg fi 60972b676d7Smrg echo ${IBM_ARCH}-ibm-aix${IBM_REV} 61072b676d7Smrg exit ;; 61172b676d7Smrg *:AIX:*:*) 61272b676d7Smrg echo rs6000-ibm-aix 61372b676d7Smrg exit ;; 61472b676d7Smrg ibmrt:4.4BSD:*|romp-ibm:BSD:*) 61572b676d7Smrg echo romp-ibm-bsd4.4 61672b676d7Smrg exit ;; 61772b676d7Smrg ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and 61872b676d7Smrg echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to 61972b676d7Smrg exit ;; # report: romp-ibm BSD 4.3 62072b676d7Smrg *:BOSX:*:*) 62172b676d7Smrg echo rs6000-bull-bosx 62272b676d7Smrg exit ;; 62372b676d7Smrg DPX/2?00:B.O.S.:*:*) 62472b676d7Smrg echo m68k-bull-sysv3 62572b676d7Smrg exit ;; 62672b676d7Smrg 9000/[34]??:4.3bsd:1.*:*) 62772b676d7Smrg echo m68k-hp-bsd 62872b676d7Smrg exit ;; 62972b676d7Smrg hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) 63072b676d7Smrg echo m68k-hp-bsd4.4 63172b676d7Smrg exit ;; 63272b676d7Smrg 9000/[34678]??:HP-UX:*:*) 63372b676d7Smrg HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` 63472b676d7Smrg case "${UNAME_MACHINE}" in 63572b676d7Smrg 9000/31? ) HP_ARCH=m68000 ;; 63672b676d7Smrg 9000/[34]?? ) HP_ARCH=m68k ;; 63772b676d7Smrg 9000/[678][0-9][0-9]) 63872b676d7Smrg if [ -x /usr/bin/getconf ]; then 63972b676d7Smrg sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` 64074c14cd6Smrg sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` 64174c14cd6Smrg case "${sc_cpu_version}" in 64293d9adc1Smrg 523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0 64393d9adc1Smrg 528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1 64474c14cd6Smrg 532) # CPU_PA_RISC2_0 64574c14cd6Smrg case "${sc_kernel_bits}" in 64693d9adc1Smrg 32) HP_ARCH=hppa2.0n ;; 64793d9adc1Smrg 64) HP_ARCH=hppa2.0w ;; 64893d9adc1Smrg '') HP_ARCH=hppa2.0 ;; # HP-UX 10.20 64974c14cd6Smrg esac ;; 65074c14cd6Smrg esac 65172b676d7Smrg fi 65272b676d7Smrg if [ "${HP_ARCH}" = "" ]; then 65372b676d7Smrg eval $set_cc_for_build 65474c14cd6Smrg sed 's/^ //' << EOF >$dummy.c 65572b676d7Smrg 65674c14cd6Smrg #define _HPUX_SOURCE 65774c14cd6Smrg #include <stdlib.h> 65874c14cd6Smrg #include <unistd.h> 65972b676d7Smrg 66074c14cd6Smrg int main () 66174c14cd6Smrg { 66274c14cd6Smrg #if defined(_SC_KERNEL_BITS) 66374c14cd6Smrg long bits = sysconf(_SC_KERNEL_BITS); 66474c14cd6Smrg #endif 66574c14cd6Smrg long cpu = sysconf (_SC_CPU_VERSION); 66672b676d7Smrg 66774c14cd6Smrg switch (cpu) 66874c14cd6Smrg { 66974c14cd6Smrg case CPU_PA_RISC1_0: puts ("hppa1.0"); break; 67074c14cd6Smrg case CPU_PA_RISC1_1: puts ("hppa1.1"); break; 67174c14cd6Smrg case CPU_PA_RISC2_0: 67274c14cd6Smrg #if defined(_SC_KERNEL_BITS) 67374c14cd6Smrg switch (bits) 67474c14cd6Smrg { 67574c14cd6Smrg case 64: puts ("hppa2.0w"); break; 67674c14cd6Smrg case 32: puts ("hppa2.0n"); break; 67774c14cd6Smrg default: puts ("hppa2.0"); break; 67874c14cd6Smrg } break; 67974c14cd6Smrg #else /* !defined(_SC_KERNEL_BITS) */ 68074c14cd6Smrg puts ("hppa2.0"); break; 68174c14cd6Smrg #endif 68274c14cd6Smrg default: puts ("hppa1.0"); break; 68374c14cd6Smrg } 68474c14cd6Smrg exit (0); 68574c14cd6Smrg } 68672b676d7SmrgEOF 68793d9adc1Smrg (CCOPTS="" $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` 68872b676d7Smrg test -z "$HP_ARCH" && HP_ARCH=hppa 68972b676d7Smrg fi ;; 69072b676d7Smrg esac 69193d9adc1Smrg if [ ${HP_ARCH} = hppa2.0w ] 69272b676d7Smrg then 69372b676d7Smrg eval $set_cc_for_build 69472b676d7Smrg 69572b676d7Smrg # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating 69672b676d7Smrg # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler 69772b676d7Smrg # generating 64-bit code. GNU and HP use different nomenclature: 69872b676d7Smrg # 69972b676d7Smrg # $ CC_FOR_BUILD=cc ./config.guess 70072b676d7Smrg # => hppa2.0w-hp-hpux11.23 70172b676d7Smrg # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess 70272b676d7Smrg # => hppa64-hp-hpux11.23 70372b676d7Smrg 70493d9adc1Smrg if echo __LP64__ | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | 70574c14cd6Smrg grep -q __LP64__ 70672b676d7Smrg then 70793d9adc1Smrg HP_ARCH=hppa2.0w 70872b676d7Smrg else 70993d9adc1Smrg HP_ARCH=hppa64 71072b676d7Smrg fi 71172b676d7Smrg fi 71272b676d7Smrg echo ${HP_ARCH}-hp-hpux${HPUX_REV} 71372b676d7Smrg exit ;; 71472b676d7Smrg ia64:HP-UX:*:*) 71572b676d7Smrg HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` 71672b676d7Smrg echo ia64-hp-hpux${HPUX_REV} 71772b676d7Smrg exit ;; 71872b676d7Smrg 3050*:HI-UX:*:*) 71972b676d7Smrg eval $set_cc_for_build 72072b676d7Smrg sed 's/^ //' << EOF >$dummy.c 72172b676d7Smrg #include <unistd.h> 72272b676d7Smrg int 72372b676d7Smrg main () 72472b676d7Smrg { 72572b676d7Smrg long cpu = sysconf (_SC_CPU_VERSION); 72672b676d7Smrg /* The order matters, because CPU_IS_HP_MC68K erroneously returns 72772b676d7Smrg true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct 72872b676d7Smrg results, however. */ 72972b676d7Smrg if (CPU_IS_PA_RISC (cpu)) 73072b676d7Smrg { 73172b676d7Smrg switch (cpu) 73272b676d7Smrg { 73372b676d7Smrg case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; 73472b676d7Smrg case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; 73572b676d7Smrg case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; 73672b676d7Smrg default: puts ("hppa-hitachi-hiuxwe2"); break; 73772b676d7Smrg } 73872b676d7Smrg } 73972b676d7Smrg else if (CPU_IS_HP_MC68K (cpu)) 74072b676d7Smrg puts ("m68k-hitachi-hiuxwe2"); 74172b676d7Smrg else puts ("unknown-hitachi-hiuxwe2"); 74272b676d7Smrg exit (0); 74372b676d7Smrg } 74472b676d7SmrgEOF 74572b676d7Smrg $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && 74672b676d7Smrg { echo "$SYSTEM_NAME"; exit; } 74772b676d7Smrg echo unknown-hitachi-hiuxwe2 74872b676d7Smrg exit ;; 74972b676d7Smrg 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) 75072b676d7Smrg echo hppa1.1-hp-bsd 75172b676d7Smrg exit ;; 75272b676d7Smrg 9000/8??:4.3bsd:*:*) 75372b676d7Smrg echo hppa1.0-hp-bsd 75472b676d7Smrg exit ;; 75572b676d7Smrg *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) 75672b676d7Smrg echo hppa1.0-hp-mpeix 75772b676d7Smrg exit ;; 75872b676d7Smrg hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) 75972b676d7Smrg echo hppa1.1-hp-osf 76072b676d7Smrg exit ;; 76172b676d7Smrg hp8??:OSF1:*:*) 76272b676d7Smrg echo hppa1.0-hp-osf 76372b676d7Smrg exit ;; 76472b676d7Smrg i*86:OSF1:*:*) 76572b676d7Smrg if [ -x /usr/sbin/sysversion ] ; then 76672b676d7Smrg echo ${UNAME_MACHINE}-unknown-osf1mk 76772b676d7Smrg else 76872b676d7Smrg echo ${UNAME_MACHINE}-unknown-osf1 76972b676d7Smrg fi 77072b676d7Smrg exit ;; 77172b676d7Smrg parisc*:Lites*:*:*) 77272b676d7Smrg echo hppa1.1-hp-lites 77372b676d7Smrg exit ;; 77472b676d7Smrg C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) 77572b676d7Smrg echo c1-convex-bsd 77674c14cd6Smrg exit ;; 77772b676d7Smrg C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) 77872b676d7Smrg if getsysinfo -f scalar_acc 77972b676d7Smrg then echo c32-convex-bsd 78072b676d7Smrg else echo c2-convex-bsd 78172b676d7Smrg fi 78274c14cd6Smrg exit ;; 78372b676d7Smrg C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) 78472b676d7Smrg echo c34-convex-bsd 78574c14cd6Smrg exit ;; 78672b676d7Smrg C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) 78772b676d7Smrg echo c38-convex-bsd 78874c14cd6Smrg exit ;; 78972b676d7Smrg C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) 79072b676d7Smrg echo c4-convex-bsd 79174c14cd6Smrg exit ;; 79272b676d7Smrg CRAY*Y-MP:*:*:*) 79372b676d7Smrg echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 79472b676d7Smrg exit ;; 79572b676d7Smrg CRAY*[A-Z]90:*:*:*) 79672b676d7Smrg echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ 79772b676d7Smrg | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ 79872b676d7Smrg -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ 79972b676d7Smrg -e 's/\.[^.]*$/.X/' 80072b676d7Smrg exit ;; 80172b676d7Smrg CRAY*TS:*:*:*) 80272b676d7Smrg echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 80372b676d7Smrg exit ;; 80472b676d7Smrg CRAY*T3E:*:*:*) 80572b676d7Smrg echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 80672b676d7Smrg exit ;; 80772b676d7Smrg CRAY*SV1:*:*:*) 80872b676d7Smrg echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 80972b676d7Smrg exit ;; 81072b676d7Smrg *:UNICOS/mp:*:*) 81172b676d7Smrg echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 81272b676d7Smrg exit ;; 81372b676d7Smrg F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) 81493d9adc1Smrg FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz` 81593d9adc1Smrg FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` 81674c14cd6Smrg FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` 81774c14cd6Smrg echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 81874c14cd6Smrg exit ;; 81972b676d7Smrg 5000:UNIX_System_V:4.*:*) 82093d9adc1Smrg FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` 82193d9adc1Smrg FUJITSU_REL=`echo ${UNAME_RELEASE} | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'` 82274c14cd6Smrg echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 82372b676d7Smrg exit ;; 82472b676d7Smrg i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) 82572b676d7Smrg echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} 82672b676d7Smrg exit ;; 82772b676d7Smrg sparc*:BSD/OS:*:*) 82872b676d7Smrg echo sparc-unknown-bsdi${UNAME_RELEASE} 82972b676d7Smrg exit ;; 83072b676d7Smrg *:BSD/OS:*:*) 83172b676d7Smrg echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} 83272b676d7Smrg exit ;; 83372b676d7Smrg *:FreeBSD:*:*) 83493d9adc1Smrg UNAME_PROCESSOR=`/usr/bin/uname -p` 83593d9adc1Smrg case ${UNAME_PROCESSOR} in 8361fd23544Smrg amd64) 8371fd23544Smrg echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; 83872b676d7Smrg *) 83993d9adc1Smrg echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; 84072b676d7Smrg esac 84172b676d7Smrg exit ;; 84272b676d7Smrg i*:CYGWIN*:*) 84372b676d7Smrg echo ${UNAME_MACHINE}-pc-cygwin 84472b676d7Smrg exit ;; 84593d9adc1Smrg *:MINGW64*:*) 84693d9adc1Smrg echo ${UNAME_MACHINE}-pc-mingw64 84793d9adc1Smrg exit ;; 8481fd23544Smrg *:MINGW*:*) 84972b676d7Smrg echo ${UNAME_MACHINE}-pc-mingw32 85072b676d7Smrg exit ;; 85193d9adc1Smrg *:MSYS*:*) 85293d9adc1Smrg echo ${UNAME_MACHINE}-pc-msys 85393d9adc1Smrg exit ;; 85472b676d7Smrg i*:windows32*:*) 85574c14cd6Smrg # uname -m includes "-pc" on this system. 85674c14cd6Smrg echo ${UNAME_MACHINE}-mingw32 85772b676d7Smrg exit ;; 85872b676d7Smrg i*:PW*:*) 85972b676d7Smrg echo ${UNAME_MACHINE}-pc-pw32 86072b676d7Smrg exit ;; 86174c14cd6Smrg *:Interix*:*) 86274c14cd6Smrg case ${UNAME_MACHINE} in 8631fd23544Smrg x86) 8641fd23544Smrg echo i586-pc-interix${UNAME_RELEASE} 8651fd23544Smrg exit ;; 86674c14cd6Smrg authenticamd | genuineintel | EM64T) 8671fd23544Smrg echo x86_64-unknown-interix${UNAME_RELEASE} 8681fd23544Smrg exit ;; 8691fd23544Smrg IA64) 8701fd23544Smrg echo ia64-unknown-interix${UNAME_RELEASE} 8711fd23544Smrg exit ;; 8721fd23544Smrg esac ;; 87372b676d7Smrg [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) 87472b676d7Smrg echo i${UNAME_MACHINE}-pc-mks 87572b676d7Smrg exit ;; 87674c14cd6Smrg 8664:Windows_NT:*) 87774c14cd6Smrg echo x86_64-pc-mks 87874c14cd6Smrg exit ;; 87972b676d7Smrg i*:Windows_NT*:* | Pentium*:Windows_NT*:*) 88072b676d7Smrg # How do we know it's Interix rather than the generic POSIX subsystem? 88172b676d7Smrg # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we 88272b676d7Smrg # UNAME_MACHINE based on the output of uname instead of i386? 88372b676d7Smrg echo i586-pc-interix 88472b676d7Smrg exit ;; 88572b676d7Smrg i*:UWIN*:*) 88672b676d7Smrg echo ${UNAME_MACHINE}-pc-uwin 88772b676d7Smrg exit ;; 88872b676d7Smrg amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) 88972b676d7Smrg echo x86_64-unknown-cygwin 89072b676d7Smrg exit ;; 89172b676d7Smrg p*:CYGWIN*:*) 89272b676d7Smrg echo powerpcle-unknown-cygwin 89372b676d7Smrg exit ;; 89472b676d7Smrg prep*:SunOS:5.*:*) 89572b676d7Smrg echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 89672b676d7Smrg exit ;; 89772b676d7Smrg *:GNU:*:*) 89872b676d7Smrg # the GNU system 89921525869Smrg echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` 90072b676d7Smrg exit ;; 90172b676d7Smrg *:GNU/*:*:*) 90272b676d7Smrg # other systems with GNU libc and userland 90393d9adc1Smrg echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC} 90472b676d7Smrg exit ;; 90572b676d7Smrg i*86:Minix:*:*) 90672b676d7Smrg echo ${UNAME_MACHINE}-pc-minix 90772b676d7Smrg exit ;; 90893d9adc1Smrg aarch64:Linux:*:*) 90993d9adc1Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 91093d9adc1Smrg exit ;; 91193d9adc1Smrg aarch64_be:Linux:*:*) 91293d9adc1Smrg UNAME_MACHINE=aarch64_be 91393d9adc1Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 91493d9adc1Smrg exit ;; 91574c14cd6Smrg alpha:Linux:*:*) 91674c14cd6Smrg case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in 91774c14cd6Smrg EV5) UNAME_MACHINE=alphaev5 ;; 91874c14cd6Smrg EV56) UNAME_MACHINE=alphaev56 ;; 91974c14cd6Smrg PCA56) UNAME_MACHINE=alphapca56 ;; 92074c14cd6Smrg PCA57) UNAME_MACHINE=alphapca56 ;; 92174c14cd6Smrg EV6) UNAME_MACHINE=alphaev6 ;; 92274c14cd6Smrg EV67) UNAME_MACHINE=alphaev67 ;; 92374c14cd6Smrg EV68*) UNAME_MACHINE=alphaev68 ;; 92474c14cd6Smrg esac 92574c14cd6Smrg objdump --private-headers /bin/sh | grep -q ld.so.1 92693d9adc1Smrg if test "$?" = 0 ; then LIBC=gnulibc1 ; fi 92793d9adc1Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 92893d9adc1Smrg exit ;; 92993d9adc1Smrg arc:Linux:*:* | arceb:Linux:*:*) 93021525869Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 93174c14cd6Smrg exit ;; 93272b676d7Smrg arm*:Linux:*:*) 9331fd23544Smrg eval $set_cc_for_build 9341fd23544Smrg if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ 9351fd23544Smrg | grep -q __ARM_EABI__ 9361fd23544Smrg then 93721525869Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 9381fd23544Smrg else 93993d9adc1Smrg if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ 94093d9adc1Smrg | grep -q __ARM_PCS_VFP 94193d9adc1Smrg then 94293d9adc1Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi 94393d9adc1Smrg else 94493d9adc1Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf 94593d9adc1Smrg fi 9461fd23544Smrg fi 9471fd23544Smrg exit ;; 9481fd23544Smrg avr32*:Linux:*:*) 94921525869Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 95072b676d7Smrg exit ;; 95172b676d7Smrg cris:Linux:*:*) 95293d9adc1Smrg echo ${UNAME_MACHINE}-axis-linux-${LIBC} 95372b676d7Smrg exit ;; 95472b676d7Smrg crisv32:Linux:*:*) 95593d9adc1Smrg echo ${UNAME_MACHINE}-axis-linux-${LIBC} 95693d9adc1Smrg exit ;; 95793d9adc1Smrg e2k:Linux:*:*) 95893d9adc1Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 95972b676d7Smrg exit ;; 96072b676d7Smrg frv:Linux:*:*) 96193d9adc1Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 96293d9adc1Smrg exit ;; 96393d9adc1Smrg hexagon:Linux:*:*) 96493d9adc1Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 96574c14cd6Smrg exit ;; 96674c14cd6Smrg i*86:Linux:*:*) 96721525869Smrg echo ${UNAME_MACHINE}-pc-linux-${LIBC} 96872b676d7Smrg exit ;; 96972b676d7Smrg ia64:Linux:*:*) 97021525869Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 97172b676d7Smrg exit ;; 97293d9adc1Smrg k1om:Linux:*:*) 97393d9adc1Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 97493d9adc1Smrg exit ;; 97572b676d7Smrg m32r*:Linux:*:*) 97621525869Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 97772b676d7Smrg exit ;; 97872b676d7Smrg m68*:Linux:*:*) 97921525869Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 98072b676d7Smrg exit ;; 98174c14cd6Smrg mips:Linux:*:* | mips64:Linux:*:*) 98272b676d7Smrg eval $set_cc_for_build 98372b676d7Smrg sed 's/^ //' << EOF >$dummy.c 98472b676d7Smrg #undef CPU 98574c14cd6Smrg #undef ${UNAME_MACHINE} 98674c14cd6Smrg #undef ${UNAME_MACHINE}el 98772b676d7Smrg #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) 98874c14cd6Smrg CPU=${UNAME_MACHINE}el 98972b676d7Smrg #else 99072b676d7Smrg #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) 99174c14cd6Smrg CPU=${UNAME_MACHINE} 99272b676d7Smrg #else 99372b676d7Smrg CPU= 99472b676d7Smrg #endif 99572b676d7Smrg #endif 99672b676d7SmrgEOF 99774c14cd6Smrg eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` 99821525869Smrg test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; } 99972b676d7Smrg ;; 100093d9adc1Smrg openrisc*:Linux:*:*) 100193d9adc1Smrg echo or1k-unknown-linux-${LIBC} 100293d9adc1Smrg exit ;; 100393d9adc1Smrg or32:Linux:*:* | or1k*:Linux:*:*) 100493d9adc1Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 100572b676d7Smrg exit ;; 100674c14cd6Smrg padre:Linux:*:*) 100721525869Smrg echo sparc-unknown-linux-${LIBC} 100872b676d7Smrg exit ;; 100974c14cd6Smrg parisc64:Linux:*:* | hppa64:Linux:*:*) 101021525869Smrg echo hppa64-unknown-linux-${LIBC} 101172b676d7Smrg exit ;; 101272b676d7Smrg parisc:Linux:*:* | hppa:Linux:*:*) 101372b676d7Smrg # Look for CPU level 101472b676d7Smrg case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in 101521525869Smrg PA7*) echo hppa1.1-unknown-linux-${LIBC} ;; 101621525869Smrg PA8*) echo hppa2.0-unknown-linux-${LIBC} ;; 101721525869Smrg *) echo hppa-unknown-linux-${LIBC} ;; 101872b676d7Smrg esac 101972b676d7Smrg exit ;; 102074c14cd6Smrg ppc64:Linux:*:*) 102121525869Smrg echo powerpc64-unknown-linux-${LIBC} 102274c14cd6Smrg exit ;; 102374c14cd6Smrg ppc:Linux:*:*) 102421525869Smrg echo powerpc-unknown-linux-${LIBC} 102572b676d7Smrg exit ;; 102693d9adc1Smrg ppc64le:Linux:*:*) 102793d9adc1Smrg echo powerpc64le-unknown-linux-${LIBC} 102893d9adc1Smrg exit ;; 102993d9adc1Smrg ppcle:Linux:*:*) 103093d9adc1Smrg echo powerpcle-unknown-linux-${LIBC} 103193d9adc1Smrg exit ;; 103272b676d7Smrg s390:Linux:*:* | s390x:Linux:*:*) 103393d9adc1Smrg echo ${UNAME_MACHINE}-ibm-linux-${LIBC} 103472b676d7Smrg exit ;; 103572b676d7Smrg sh64*:Linux:*:*) 103621525869Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 103772b676d7Smrg exit ;; 103872b676d7Smrg sh*:Linux:*:*) 103921525869Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 104072b676d7Smrg exit ;; 104172b676d7Smrg sparc:Linux:*:* | sparc64:Linux:*:*) 104221525869Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 104372b676d7Smrg exit ;; 104474c14cd6Smrg tile*:Linux:*:*) 104593d9adc1Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 104674c14cd6Smrg exit ;; 104772b676d7Smrg vax:Linux:*:*) 104821525869Smrg echo ${UNAME_MACHINE}-dec-linux-${LIBC} 104972b676d7Smrg exit ;; 105072b676d7Smrg x86_64:Linux:*:*) 105193d9adc1Smrg eval $set_cc_for_build 105293d9adc1Smrg X86_64_ABI= 105393d9adc1Smrg # If there is a compiler, see if it is configured for 32-bit objects. 105493d9adc1Smrg if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then 105593d9adc1Smrg if (echo '#ifdef __ILP32__'; echo IS_X32; echo '#endif') | \ 105693d9adc1Smrg (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ 105793d9adc1Smrg grep IS_X32 >/dev/null 105893d9adc1Smrg then 105993d9adc1Smrg X86_64_ABI=x32 106093d9adc1Smrg fi 106193d9adc1Smrg fi 106293d9adc1Smrg echo ${UNAME_MACHINE}-pc-linux-${LIBC}${X86_64_ABI} 106372b676d7Smrg exit ;; 10641fd23544Smrg xtensa*:Linux:*:*) 106521525869Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 10661fd23544Smrg exit ;; 106772b676d7Smrg i*86:DYNIX/ptx:4*:*) 106872b676d7Smrg # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. 106972b676d7Smrg # earlier versions are messed up and put the nodename in both 107072b676d7Smrg # sysname and nodename. 107172b676d7Smrg echo i386-sequent-sysv4 107272b676d7Smrg exit ;; 107372b676d7Smrg i*86:UNIX_SV:4.2MP:2.*) 107474c14cd6Smrg # Unixware is an offshoot of SVR4, but it has its own version 107574c14cd6Smrg # number series starting with 2... 107674c14cd6Smrg # I am not positive that other SVR4 systems won't match this, 107772b676d7Smrg # I just have to hope. -- rms. 107874c14cd6Smrg # Use sysv4.2uw... so that sysv4* matches it. 107972b676d7Smrg echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} 108072b676d7Smrg exit ;; 108172b676d7Smrg i*86:OS/2:*:*) 108272b676d7Smrg # If we were able to find `uname', then EMX Unix compatibility 108372b676d7Smrg # is probably installed. 108472b676d7Smrg echo ${UNAME_MACHINE}-pc-os2-emx 108572b676d7Smrg exit ;; 108672b676d7Smrg i*86:XTS-300:*:STOP) 108772b676d7Smrg echo ${UNAME_MACHINE}-unknown-stop 108872b676d7Smrg exit ;; 108972b676d7Smrg i*86:atheos:*:*) 109072b676d7Smrg echo ${UNAME_MACHINE}-unknown-atheos 109172b676d7Smrg exit ;; 109272b676d7Smrg i*86:syllable:*:*) 109372b676d7Smrg echo ${UNAME_MACHINE}-pc-syllable 109472b676d7Smrg exit ;; 109574c14cd6Smrg i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) 109672b676d7Smrg echo i386-unknown-lynxos${UNAME_RELEASE} 109772b676d7Smrg exit ;; 109872b676d7Smrg i*86:*DOS:*:*) 109972b676d7Smrg echo ${UNAME_MACHINE}-pc-msdosdjgpp 110072b676d7Smrg exit ;; 110172b676d7Smrg i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) 110272b676d7Smrg UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` 110372b676d7Smrg if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then 110472b676d7Smrg echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} 110572b676d7Smrg else 110672b676d7Smrg echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} 110772b676d7Smrg fi 110872b676d7Smrg exit ;; 110972b676d7Smrg i*86:*:5:[678]*) 111074c14cd6Smrg # UnixWare 7.x, OpenUNIX and OpenServer 6. 111172b676d7Smrg case `/bin/uname -X | grep "^Machine"` in 111272b676d7Smrg *486*) UNAME_MACHINE=i486 ;; 111372b676d7Smrg *Pentium) UNAME_MACHINE=i586 ;; 111472b676d7Smrg *Pent*|*Celeron) UNAME_MACHINE=i686 ;; 111572b676d7Smrg esac 111672b676d7Smrg echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} 111772b676d7Smrg exit ;; 111872b676d7Smrg i*86:*:3.2:*) 111972b676d7Smrg if test -f /usr/options/cb.name; then 112072b676d7Smrg UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name` 112172b676d7Smrg echo ${UNAME_MACHINE}-pc-isc$UNAME_REL 112272b676d7Smrg elif /bin/uname -X 2>/dev/null >/dev/null ; then 112372b676d7Smrg UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` 112472b676d7Smrg (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 112572b676d7Smrg (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ 112672b676d7Smrg && UNAME_MACHINE=i586 112772b676d7Smrg (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ 112872b676d7Smrg && UNAME_MACHINE=i686 112972b676d7Smrg (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ 113072b676d7Smrg && UNAME_MACHINE=i686 113172b676d7Smrg echo ${UNAME_MACHINE}-pc-sco$UNAME_REL 113272b676d7Smrg else 113372b676d7Smrg echo ${UNAME_MACHINE}-pc-sysv32 113472b676d7Smrg fi 113572b676d7Smrg exit ;; 113672b676d7Smrg pc:*:*:*) 113772b676d7Smrg # Left here for compatibility: 113874c14cd6Smrg # uname -m prints for DJGPP always 'pc', but it prints nothing about 113974c14cd6Smrg # the processor, so we play safe by assuming i586. 114074c14cd6Smrg # Note: whatever this is, it MUST be the same as what config.sub 114193d9adc1Smrg # prints for the "djgpp" host, or else GDB configure will decide that 114274c14cd6Smrg # this is a cross-build. 114374c14cd6Smrg echo i586-pc-msdosdjgpp 114474c14cd6Smrg exit ;; 114572b676d7Smrg Intel:Mach:3*:*) 114672b676d7Smrg echo i386-pc-mach3 114772b676d7Smrg exit ;; 114872b676d7Smrg paragon:*:*:*) 114972b676d7Smrg echo i860-intel-osf1 115072b676d7Smrg exit ;; 115172b676d7Smrg i860:*:4.*:*) # i860-SVR4 115272b676d7Smrg if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then 115372b676d7Smrg echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 115472b676d7Smrg else # Add other i860-SVR4 vendors below as they are discovered. 115572b676d7Smrg echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 115672b676d7Smrg fi 115772b676d7Smrg exit ;; 115872b676d7Smrg mini*:CTIX:SYS*5:*) 115972b676d7Smrg # "miniframe" 116072b676d7Smrg echo m68010-convergent-sysv 116172b676d7Smrg exit ;; 116272b676d7Smrg mc68k:UNIX:SYSTEM5:3.51m) 116372b676d7Smrg echo m68k-convergent-sysv 116472b676d7Smrg exit ;; 116572b676d7Smrg M680?0:D-NIX:5.3:*) 116672b676d7Smrg echo m68k-diab-dnix 116772b676d7Smrg exit ;; 116872b676d7Smrg M68*:*:R3V[5678]*:*) 116972b676d7Smrg test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; 117072b676d7Smrg 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) 117172b676d7Smrg OS_REL='' 117272b676d7Smrg test -r /etc/.relid \ 117372b676d7Smrg && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` 117472b676d7Smrg /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 117572b676d7Smrg && { echo i486-ncr-sysv4.3${OS_REL}; exit; } 117672b676d7Smrg /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ 117772b676d7Smrg && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 117872b676d7Smrg 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) 117974c14cd6Smrg /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 118074c14cd6Smrg && { echo i486-ncr-sysv4; exit; } ;; 118174c14cd6Smrg NCR*:*:4.2:* | MPRAS*:*:4.2:*) 118274c14cd6Smrg OS_REL='.3' 118374c14cd6Smrg test -r /etc/.relid \ 118474c14cd6Smrg && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` 118574c14cd6Smrg /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 118674c14cd6Smrg && { echo i486-ncr-sysv4.3${OS_REL}; exit; } 118774c14cd6Smrg /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ 118874c14cd6Smrg && { echo i586-ncr-sysv4.3${OS_REL}; exit; } 118974c14cd6Smrg /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ 119074c14cd6Smrg && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 119172b676d7Smrg m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) 119272b676d7Smrg echo m68k-unknown-lynxos${UNAME_RELEASE} 119372b676d7Smrg exit ;; 119472b676d7Smrg mc68030:UNIX_System_V:4.*:*) 119572b676d7Smrg echo m68k-atari-sysv4 119672b676d7Smrg exit ;; 119772b676d7Smrg TSUNAMI:LynxOS:2.*:*) 119872b676d7Smrg echo sparc-unknown-lynxos${UNAME_RELEASE} 119972b676d7Smrg exit ;; 120072b676d7Smrg rs6000:LynxOS:2.*:*) 120172b676d7Smrg echo rs6000-unknown-lynxos${UNAME_RELEASE} 120272b676d7Smrg exit ;; 120374c14cd6Smrg PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) 120472b676d7Smrg echo powerpc-unknown-lynxos${UNAME_RELEASE} 120572b676d7Smrg exit ;; 120672b676d7Smrg SM[BE]S:UNIX_SV:*:*) 120772b676d7Smrg echo mips-dde-sysv${UNAME_RELEASE} 120872b676d7Smrg exit ;; 120972b676d7Smrg RM*:ReliantUNIX-*:*:*) 121072b676d7Smrg echo mips-sni-sysv4 121172b676d7Smrg exit ;; 121272b676d7Smrg RM*:SINIX-*:*:*) 121372b676d7Smrg echo mips-sni-sysv4 121472b676d7Smrg exit ;; 121572b676d7Smrg *:SINIX-*:*:*) 121672b676d7Smrg if uname -p 2>/dev/null >/dev/null ; then 121772b676d7Smrg UNAME_MACHINE=`(uname -p) 2>/dev/null` 121872b676d7Smrg echo ${UNAME_MACHINE}-sni-sysv4 121972b676d7Smrg else 122072b676d7Smrg echo ns32k-sni-sysv 122172b676d7Smrg fi 122272b676d7Smrg exit ;; 122374c14cd6Smrg PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort 122474c14cd6Smrg # says <Richard.M.Bartel@ccMail.Census.GOV> 122574c14cd6Smrg echo i586-unisys-sysv4 122674c14cd6Smrg exit ;; 122772b676d7Smrg *:UNIX_System_V:4*:FTX*) 122872b676d7Smrg # From Gerald Hewes <hewes@openmarket.com>. 122972b676d7Smrg # How about differentiating between stratus architectures? -djm 123072b676d7Smrg echo hppa1.1-stratus-sysv4 123172b676d7Smrg exit ;; 123272b676d7Smrg *:*:*:FTX*) 123372b676d7Smrg # From seanf@swdc.stratus.com. 123472b676d7Smrg echo i860-stratus-sysv4 123572b676d7Smrg exit ;; 123672b676d7Smrg i*86:VOS:*:*) 123772b676d7Smrg # From Paul.Green@stratus.com. 123872b676d7Smrg echo ${UNAME_MACHINE}-stratus-vos 123972b676d7Smrg exit ;; 124072b676d7Smrg *:VOS:*:*) 124172b676d7Smrg # From Paul.Green@stratus.com. 124272b676d7Smrg echo hppa1.1-stratus-vos 124372b676d7Smrg exit ;; 124472b676d7Smrg mc68*:A/UX:*:*) 124572b676d7Smrg echo m68k-apple-aux${UNAME_RELEASE} 124672b676d7Smrg exit ;; 124772b676d7Smrg news*:NEWS-OS:6*:*) 124872b676d7Smrg echo mips-sony-newsos6 124972b676d7Smrg exit ;; 125072b676d7Smrg R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) 125172b676d7Smrg if [ -d /usr/nec ]; then 125274c14cd6Smrg echo mips-nec-sysv${UNAME_RELEASE} 125372b676d7Smrg else 125474c14cd6Smrg echo mips-unknown-sysv${UNAME_RELEASE} 125572b676d7Smrg fi 125674c14cd6Smrg exit ;; 125772b676d7Smrg BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. 125872b676d7Smrg echo powerpc-be-beos 125972b676d7Smrg exit ;; 126072b676d7Smrg BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. 126172b676d7Smrg echo powerpc-apple-beos 126272b676d7Smrg exit ;; 126372b676d7Smrg BePC:BeOS:*:*) # BeOS running on Intel PC compatible. 126472b676d7Smrg echo i586-pc-beos 126572b676d7Smrg exit ;; 126674c14cd6Smrg BePC:Haiku:*:*) # Haiku running on Intel PC compatible. 126774c14cd6Smrg echo i586-pc-haiku 126874c14cd6Smrg exit ;; 126993d9adc1Smrg x86_64:Haiku:*:*) 127093d9adc1Smrg echo x86_64-unknown-haiku 127193d9adc1Smrg exit ;; 127272b676d7Smrg SX-4:SUPER-UX:*:*) 127372b676d7Smrg echo sx4-nec-superux${UNAME_RELEASE} 127472b676d7Smrg exit ;; 127572b676d7Smrg SX-5:SUPER-UX:*:*) 127672b676d7Smrg echo sx5-nec-superux${UNAME_RELEASE} 127772b676d7Smrg exit ;; 127872b676d7Smrg SX-6:SUPER-UX:*:*) 127972b676d7Smrg echo sx6-nec-superux${UNAME_RELEASE} 128072b676d7Smrg exit ;; 12811fd23544Smrg SX-7:SUPER-UX:*:*) 12821fd23544Smrg echo sx7-nec-superux${UNAME_RELEASE} 12831fd23544Smrg exit ;; 12841fd23544Smrg SX-8:SUPER-UX:*:*) 12851fd23544Smrg echo sx8-nec-superux${UNAME_RELEASE} 12861fd23544Smrg exit ;; 12871fd23544Smrg SX-8R:SUPER-UX:*:*) 12881fd23544Smrg echo sx8r-nec-superux${UNAME_RELEASE} 12891fd23544Smrg exit ;; 129093d9adc1Smrg SX-ACE:SUPER-UX:*:*) 129193d9adc1Smrg echo sxace-nec-superux${UNAME_RELEASE} 129293d9adc1Smrg exit ;; 129372b676d7Smrg Power*:Rhapsody:*:*) 129472b676d7Smrg echo powerpc-apple-rhapsody${UNAME_RELEASE} 129572b676d7Smrg exit ;; 129672b676d7Smrg *:Rhapsody:*:*) 129772b676d7Smrg echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} 129872b676d7Smrg exit ;; 129972b676d7Smrg *:Darwin:*:*) 130072b676d7Smrg UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown 130193d9adc1Smrg eval $set_cc_for_build 130293d9adc1Smrg if test "$UNAME_PROCESSOR" = unknown ; then 130393d9adc1Smrg UNAME_PROCESSOR=powerpc 130493d9adc1Smrg fi 130593d9adc1Smrg if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then 130693d9adc1Smrg if [ "$CC_FOR_BUILD" != no_compiler_found ]; then 130793d9adc1Smrg if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ 130893d9adc1Smrg (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ 130993d9adc1Smrg grep IS_64BIT_ARCH >/dev/null 131093d9adc1Smrg then 131193d9adc1Smrg case $UNAME_PROCESSOR in 131293d9adc1Smrg i386) UNAME_PROCESSOR=x86_64 ;; 131393d9adc1Smrg powerpc) UNAME_PROCESSOR=powerpc64 ;; 131493d9adc1Smrg esac 131593d9adc1Smrg fi 131693d9adc1Smrg fi 131793d9adc1Smrg elif test "$UNAME_PROCESSOR" = i386 ; then 131893d9adc1Smrg # Avoid executing cc on OS X 10.9, as it ships with a stub 131993d9adc1Smrg # that puts up a graphical alert prompting to install 132093d9adc1Smrg # developer tools. Any system running Mac OS X 10.7 or 132193d9adc1Smrg # later (Darwin 11 and later) is required to have a 64-bit 132293d9adc1Smrg # processor. This is not true of the ARM version of Darwin 132393d9adc1Smrg # that Apple uses in portable devices. 132493d9adc1Smrg UNAME_PROCESSOR=x86_64 132593d9adc1Smrg fi 132672b676d7Smrg echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} 132772b676d7Smrg exit ;; 132872b676d7Smrg *:procnto*:*:* | *:QNX:[0123456789]*:*) 132972b676d7Smrg UNAME_PROCESSOR=`uname -p` 133093d9adc1Smrg if test "$UNAME_PROCESSOR" = x86; then 133172b676d7Smrg UNAME_PROCESSOR=i386 133272b676d7Smrg UNAME_MACHINE=pc 133372b676d7Smrg fi 133472b676d7Smrg echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} 133572b676d7Smrg exit ;; 133672b676d7Smrg *:QNX:*:4*) 133772b676d7Smrg echo i386-pc-qnx 133872b676d7Smrg exit ;; 133974c14cd6Smrg NEO-?:NONSTOP_KERNEL:*:*) 134074c14cd6Smrg echo neo-tandem-nsk${UNAME_RELEASE} 134174c14cd6Smrg exit ;; 134293d9adc1Smrg NSE-*:NONSTOP_KERNEL:*:*) 134372b676d7Smrg echo nse-tandem-nsk${UNAME_RELEASE} 134472b676d7Smrg exit ;; 134572b676d7Smrg NSR-?:NONSTOP_KERNEL:*:*) 134672b676d7Smrg echo nsr-tandem-nsk${UNAME_RELEASE} 134772b676d7Smrg exit ;; 134872b676d7Smrg *:NonStop-UX:*:*) 134972b676d7Smrg echo mips-compaq-nonstopux 135072b676d7Smrg exit ;; 135172b676d7Smrg BS2000:POSIX*:*:*) 135272b676d7Smrg echo bs2000-siemens-sysv 135372b676d7Smrg exit ;; 135472b676d7Smrg DS/*:UNIX_System_V:*:*) 135572b676d7Smrg echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} 135672b676d7Smrg exit ;; 135772b676d7Smrg *:Plan9:*:*) 135872b676d7Smrg # "uname -m" is not consistent, so use $cputype instead. 386 135972b676d7Smrg # is converted to i386 for consistency with other x86 136072b676d7Smrg # operating systems. 136193d9adc1Smrg if test "$cputype" = 386; then 136272b676d7Smrg UNAME_MACHINE=i386 136372b676d7Smrg else 136472b676d7Smrg UNAME_MACHINE="$cputype" 136572b676d7Smrg fi 136672b676d7Smrg echo ${UNAME_MACHINE}-unknown-plan9 136772b676d7Smrg exit ;; 136872b676d7Smrg *:TOPS-10:*:*) 136972b676d7Smrg echo pdp10-unknown-tops10 137072b676d7Smrg exit ;; 137172b676d7Smrg *:TENEX:*:*) 137272b676d7Smrg echo pdp10-unknown-tenex 137372b676d7Smrg exit ;; 137472b676d7Smrg KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) 137572b676d7Smrg echo pdp10-dec-tops20 137672b676d7Smrg exit ;; 137772b676d7Smrg XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) 137872b676d7Smrg echo pdp10-xkl-tops20 137972b676d7Smrg exit ;; 138072b676d7Smrg *:TOPS-20:*:*) 138172b676d7Smrg echo pdp10-unknown-tops20 138272b676d7Smrg exit ;; 138372b676d7Smrg *:ITS:*:*) 138472b676d7Smrg echo pdp10-unknown-its 138572b676d7Smrg exit ;; 138672b676d7Smrg SEI:*:*:SEIUX) 138774c14cd6Smrg echo mips-sei-seiux${UNAME_RELEASE} 138872b676d7Smrg exit ;; 138972b676d7Smrg *:DragonFly:*:*) 139072b676d7Smrg echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` 139172b676d7Smrg exit ;; 139272b676d7Smrg *:*VMS:*:*) 139374c14cd6Smrg UNAME_MACHINE=`(uname -p) 2>/dev/null` 139472b676d7Smrg case "${UNAME_MACHINE}" in 139572b676d7Smrg A*) echo alpha-dec-vms ; exit ;; 139672b676d7Smrg I*) echo ia64-dec-vms ; exit ;; 139772b676d7Smrg V*) echo vax-dec-vms ; exit ;; 139872b676d7Smrg esac ;; 139972b676d7Smrg *:XENIX:*:SysV) 140072b676d7Smrg echo i386-pc-xenix 140172b676d7Smrg exit ;; 140272b676d7Smrg i*86:skyos:*:*) 140393d9adc1Smrg echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE} | sed -e 's/ .*$//'` 140472b676d7Smrg exit ;; 140572b676d7Smrg i*86:rdos:*:*) 140672b676d7Smrg echo ${UNAME_MACHINE}-pc-rdos 140772b676d7Smrg exit ;; 140874c14cd6Smrg i*86:AROS:*:*) 140974c14cd6Smrg echo ${UNAME_MACHINE}-pc-aros 141074c14cd6Smrg exit ;; 141193d9adc1Smrg x86_64:VMkernel:*:*) 141293d9adc1Smrg echo ${UNAME_MACHINE}-unknown-esx 141372b676d7Smrg exit ;; 141493d9adc1Smrg amd64:Isilon\ OneFS:*:*) 141593d9adc1Smrg echo x86_64-unknown-onefs 141672b676d7Smrg exit ;; 141793d9adc1Smrgesac 141872b676d7Smrg 141972b676d7Smrgcat >&2 <<EOF 142072b676d7Smrg$0: unable to guess system type 142172b676d7Smrg 142272b676d7SmrgThis script, last modified $timestamp, has failed to recognize 142372b676d7Smrgthe operating system you are using. It is advised that you 142472b676d7Smrgdownload the most up to date version of the config scripts from 142572b676d7Smrg 142693d9adc1Smrg http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess 142772b676d7Smrgand 142893d9adc1Smrg http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub 142972b676d7Smrg 143072b676d7SmrgIf the version you run ($0) is already up to date, please 143172b676d7Smrgsend the following data and any information you think might be 143272b676d7Smrgpertinent to <config-patches@gnu.org> in order to provide the needed 143372b676d7Smrginformation to handle your system. 143472b676d7Smrg 143572b676d7Smrgconfig.guess timestamp = $timestamp 143672b676d7Smrg 143772b676d7Smrguname -m = `(uname -m) 2>/dev/null || echo unknown` 143872b676d7Smrguname -r = `(uname -r) 2>/dev/null || echo unknown` 143972b676d7Smrguname -s = `(uname -s) 2>/dev/null || echo unknown` 144072b676d7Smrguname -v = `(uname -v) 2>/dev/null || echo unknown` 144172b676d7Smrg 144272b676d7Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` 144372b676d7Smrg/bin/uname -X = `(/bin/uname -X) 2>/dev/null` 144472b676d7Smrg 144572b676d7Smrghostinfo = `(hostinfo) 2>/dev/null` 144672b676d7Smrg/bin/universe = `(/bin/universe) 2>/dev/null` 144772b676d7Smrg/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` 144872b676d7Smrg/bin/arch = `(/bin/arch) 2>/dev/null` 144972b676d7Smrg/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` 145072b676d7Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` 145172b676d7Smrg 145272b676d7SmrgUNAME_MACHINE = ${UNAME_MACHINE} 145372b676d7SmrgUNAME_RELEASE = ${UNAME_RELEASE} 145472b676d7SmrgUNAME_SYSTEM = ${UNAME_SYSTEM} 145572b676d7SmrgUNAME_VERSION = ${UNAME_VERSION} 145672b676d7SmrgEOF 145772b676d7Smrg 145872b676d7Smrgexit 1 145972b676d7Smrg 146072b676d7Smrg# Local variables: 146172b676d7Smrg# eval: (add-hook 'write-file-hooks 'time-stamp) 146272b676d7Smrg# time-stamp-start: "timestamp='" 146372b676d7Smrg# time-stamp-format: "%:y-%02m-%02d" 146472b676d7Smrg# time-stamp-end: "'" 146572b676d7Smrg# End: 1466