Blame config.guess

Packit Service af52df
#! /bin/sh
Packit Service af52df
# Attempt to guess a canonical system name.
Packit Service af52df
#   Copyright 1992-2013 Free Software Foundation, Inc.
Packit Service af52df
Packit Service af52df
timestamp='2013-06-10'
Packit Service af52df
Packit Service af52df
# This file is free software; you can redistribute it and/or modify it
Packit Service af52df
# under the terms of the GNU General Public License as published by
Packit Service af52df
# the Free Software Foundation; either version 3 of the License, or
Packit Service af52df
# (at your option) any later version.
Packit Service af52df
#
Packit Service af52df
# This program is distributed in the hope that it will be useful, but
Packit Service af52df
# WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service af52df
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit Service af52df
# General Public License for more details.
Packit Service af52df
#
Packit Service af52df
# You should have received a copy of the GNU General Public License
Packit Service af52df
# along with this program; if not, see <http://www.gnu.org/licenses/>.
Packit Service af52df
#
Packit Service af52df
# As a special exception to the GNU General Public License, if you
Packit Service af52df
# distribute this file as part of a program that contains a
Packit Service af52df
# configuration script generated by Autoconf, you may include it under
Packit Service af52df
# the same distribution terms that you use for the rest of that
Packit Service af52df
# program.  This Exception is an additional permission under section 7
Packit Service af52df
# of the GNU General Public License, version 3 ("GPLv3").
Packit Service af52df
#
Packit Service af52df
# Originally written by Per Bothner.
Packit Service af52df
#
Packit Service af52df
# You can get the latest version of this script from:
Packit Service af52df
# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
Packit Service af52df
#
Packit Service af52df
# Please send patches with a ChangeLog entry to config-patches@gnu.org.
Packit Service af52df
Packit Service af52df
Packit Service af52df
me=`echo "$0" | sed -e 's,.*/,,'`
Packit Service af52df
Packit Service af52df
usage="\
Packit Service af52df
Usage: $0 [OPTION]
Packit Service af52df
Packit Service af52df
Output the configuration name of the system \`$me' is run on.
Packit Service af52df
Packit Service af52df
Operation modes:
Packit Service af52df
  -h, --help         print this help, then exit
Packit Service af52df
  -t, --time-stamp   print date of last modification, then exit
Packit Service af52df
  -v, --version      print version number, then exit
Packit Service af52df
Packit Service af52df
Report bugs and patches to <config-patches@gnu.org>."
Packit Service af52df
Packit Service af52df
version="\
Packit Service af52df
GNU config.guess ($timestamp)
Packit Service af52df
Packit Service af52df
Originally written by Per Bothner.
Packit Service af52df
Copyright 1992-2013 Free Software Foundation, Inc.
Packit Service af52df
Packit Service af52df
This is free software; see the source for copying conditions.  There is NO
Packit Service af52df
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
Packit Service af52df
Packit Service af52df
help="
Packit Service af52df
Try \`$me --help' for more information."
Packit Service af52df
Packit Service af52df
# Parse command line
Packit Service af52df
while test $# -gt 0 ; do
Packit Service af52df
  case $1 in
Packit Service af52df
    --time-stamp | --time* | -t )
Packit Service af52df
       echo "$timestamp" ; exit ;;
Packit Service af52df
    --version | -v )
Packit Service af52df
       echo "$version" ; exit ;;
Packit Service af52df
    --help | --h* | -h )
Packit Service af52df
       echo "$usage"; exit ;;
Packit Service af52df
    -- )     # Stop option processing
Packit Service af52df
       shift; break ;;
Packit Service af52df
    - )	# Use stdin as input.
Packit Service af52df
       break ;;
Packit Service af52df
    -* )
Packit Service af52df
       echo "$me: invalid option $1$help" >&2
Packit Service af52df
       exit 1 ;;
Packit Service af52df
    * )
Packit Service af52df
       break ;;
Packit Service af52df
  esac
Packit Service af52df
done
Packit Service af52df
Packit Service af52df
if test $# != 0; then
Packit Service af52df
  echo "$me: too many arguments$help" >&2
Packit Service af52df
  exit 1
Packit Service af52df
fi
Packit Service af52df
Packit Service af52df
trap 'exit 1' 1 2 15
Packit Service af52df
Packit Service af52df
# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
Packit Service af52df
# compiler to aid in system detection is discouraged as it requires
Packit Service af52df
# temporary files to be created and, as you can see below, it is a
Packit Service af52df
# headache to deal with in a portable fashion.
Packit Service af52df
Packit Service af52df
# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
Packit Service af52df
# use `HOST_CC' if defined, but it is deprecated.
Packit Service af52df
Packit Service af52df
# Portable tmp directory creation inspired by the Autoconf team.
Packit Service af52df
Packit Service af52df
set_cc_for_build='
Packit Service af52df
trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
Packit Service af52df
trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
Packit Service af52df
: ${TMPDIR=/tmp} ;
Packit Service af52df
 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
Packit Service af52df
 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
Packit Service af52df
 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
Packit Service af52df
 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
Packit Service af52df
dummy=$tmp/dummy ;
Packit Service af52df
tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
Packit Service af52df
case $CC_FOR_BUILD,$HOST_CC,$CC in
Packit Service af52df
 ,,)    echo "int x;" > $dummy.c ;
Packit Service af52df
	for c in cc gcc c89 c99 ; do
Packit Service af52df
	  if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
Packit Service af52df
	     CC_FOR_BUILD="$c"; break ;
Packit Service af52df
	  fi ;
Packit Service af52df
	done ;
Packit Service af52df
	if test x"$CC_FOR_BUILD" = x ; then
Packit Service af52df
	  CC_FOR_BUILD=no_compiler_found ;
Packit Service af52df
	fi
Packit Service af52df
	;;
Packit Service af52df
 ,,*)   CC_FOR_BUILD=$CC ;;
Packit Service af52df
 ,*,*)  CC_FOR_BUILD=$HOST_CC ;;
Packit Service af52df
esac ; set_cc_for_build= ;'
Packit Service af52df
Packit Service af52df
# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
Packit Service af52df
# (ghazi@noc.rutgers.edu 1994-08-24)
Packit Service af52df
if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
Packit Service af52df
	PATH=$PATH:/.attbin ; export PATH
Packit Service af52df
fi
Packit Service af52df
Packit Service af52df
UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
Packit Service af52df
UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
Packit Service af52df
UNAME_SYSTEM=`(uname -s) 2>/dev/null`  || UNAME_SYSTEM=unknown
Packit Service af52df
UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
Packit Service af52df
Packit Service af52df
case "${UNAME_SYSTEM}" in
Packit Service af52df
Linux|GNU|GNU/*)
Packit Service af52df
	# If the system lacks a compiler, then just pick glibc.
Packit Service af52df
	# We could probably try harder.
Packit Service af52df
	LIBC=gnu
Packit Service af52df
Packit Service af52df
	eval $set_cc_for_build
Packit Service af52df
	cat <<-EOF > $dummy.c
Packit Service af52df
	#include <features.h>
Packit Service af52df
	#if defined(__UCLIBC__)
Packit Service af52df
	LIBC=uclibc
Packit Service af52df
	#elif defined(__dietlibc__)
Packit Service af52df
	LIBC=dietlibc
Packit Service af52df
	#else
Packit Service af52df
	LIBC=gnu
Packit Service af52df
	#endif
Packit Service af52df
	EOF
Packit Service af52df
	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
Packit Service af52df
	;;
Packit Service af52df
esac
Packit Service af52df
Packit Service af52df
# Note: order is significant - the case branches are not exclusive.
Packit Service af52df
Packit Service af52df
case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
Packit Service af52df
    *:NetBSD:*:*)
Packit Service af52df
	# NetBSD (nbsd) targets should (where applicable) match one or
Packit Service af52df
	# more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
Packit Service af52df
	# *-*-netbsdecoff* and *-*-netbsd*.  For targets that recently
Packit Service af52df
	# switched to ELF, *-*-netbsd* would select the old
Packit Service af52df
	# object file format.  This provides both forward
Packit Service af52df
	# compatibility and a consistent mechanism for selecting the
Packit Service af52df
	# object file format.
Packit Service af52df
	#
Packit Service af52df
	# Note: NetBSD doesn't particularly care about the vendor
Packit Service af52df
	# portion of the name.  We always set it to "unknown".
Packit Service af52df
	sysctl="sysctl -n hw.machine_arch"
Packit Service af52df
	UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
Packit Service af52df
	    /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
Packit Service af52df
	case "${UNAME_MACHINE_ARCH}" in
Packit Service af52df
	    armeb) machine=armeb-unknown ;;
Packit Service af52df
	    arm*) machine=arm-unknown ;;
Packit Service af52df
	    sh3el) machine=shl-unknown ;;
Packit Service af52df
	    sh3eb) machine=sh-unknown ;;
Packit Service af52df
	    sh5el) machine=sh5le-unknown ;;
Packit Service af52df
	    *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
Packit Service af52df
	esac
Packit Service af52df
	# The Operating System including object format, if it has switched
Packit Service af52df
	# to ELF recently, or will in the future.
Packit Service af52df
	case "${UNAME_MACHINE_ARCH}" in
Packit Service af52df
	    arm*|i386|m68k|ns32k|sh3*|sparc|vax)
Packit Service af52df
		eval $set_cc_for_build
Packit Service af52df
		if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
Packit Service af52df
			| grep -q __ELF__
Packit Service af52df
		then
Packit Service af52df
		    # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
Packit Service af52df
		    # Return netbsd for either.  FIX?
Packit Service af52df
		    os=netbsd
Packit Service af52df
		else
Packit Service af52df
		    os=netbsdelf
Packit Service af52df
		fi
Packit Service af52df
		;;
Packit Service af52df
	    *)
Packit Service af52df
		os=netbsd
Packit Service af52df
		;;
Packit Service af52df
	esac
Packit Service af52df
	# The OS release
Packit Service af52df
	# Debian GNU/NetBSD machines have a different userland, and
Packit Service af52df
	# thus, need a distinct triplet. However, they do not need
Packit Service af52df
	# kernel version information, so it can be replaced with a
Packit Service af52df
	# suitable tag, in the style of linux-gnu.
Packit Service af52df
	case "${UNAME_VERSION}" in
Packit Service af52df
	    Debian*)
Packit Service af52df
		release='-gnu'
Packit Service af52df
		;;
Packit Service af52df
	    *)
Packit Service af52df
		release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
Packit Service af52df
		;;
Packit Service af52df
	esac
Packit Service af52df
	# Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
Packit Service af52df
	# contains redundant information, the shorter form:
Packit Service af52df
	# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
Packit Service af52df
	echo "${machine}-${os}${release}"
Packit Service af52df
	exit ;;
Packit Service af52df
    *:Bitrig:*:*)
Packit Service af52df
	UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
Packit Service af52df
	echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
Packit Service af52df
	exit ;;
Packit Service af52df
    *:OpenBSD:*:*)
Packit Service af52df
	UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
Packit Service af52df
	echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
Packit Service af52df
	exit ;;
Packit Service af52df
    *:ekkoBSD:*:*)
Packit Service af52df
	echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
Packit Service af52df
	exit ;;
Packit Service af52df
    *:SolidBSD:*:*)
Packit Service af52df
	echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
Packit Service af52df
	exit ;;
Packit Service af52df
    macppc:MirBSD:*:*)
Packit Service af52df
	echo powerpc-unknown-mirbsd${UNAME_RELEASE}
Packit Service af52df
	exit ;;
Packit Service af52df
    *:MirBSD:*:*)
Packit Service af52df
	echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
Packit Service af52df
	exit ;;
Packit Service af52df
    alpha:OSF1:*:*)
Packit Service af52df
	case $UNAME_RELEASE in
Packit Service af52df
	*4.0)
Packit Service af52df
		UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
Packit Service af52df
		;;
Packit Service af52df
	*5.*)
Packit Service af52df
		UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
Packit Service af52df
		;;
Packit Service af52df
	esac
Packit Service af52df
	# According to Compaq, /usr/sbin/psrinfo has been available on
Packit Service af52df
	# OSF/1 and Tru64 systems produced since 1995.  I hope that
Packit Service af52df
	# covers most systems running today.  This code pipes the CPU
Packit Service af52df
	# types through head -n 1, so we only detect the type of CPU 0.
Packit Service af52df
	ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^  The alpha \(.*\) processor.*$/\1/p' | head -n 1`
Packit Service af52df
	case "$ALPHA_CPU_TYPE" in
Packit Service af52df
	    "EV4 (21064)")
Packit Service af52df
		UNAME_MACHINE="alpha" ;;
Packit Service af52df
	    "EV4.5 (21064)")
Packit Service af52df
		UNAME_MACHINE="alpha" ;;
Packit Service af52df
	    "LCA4 (21066/21068)")
Packit Service af52df
		UNAME_MACHINE="alpha" ;;
Packit Service af52df
	    "EV5 (21164)")
Packit Service af52df
		UNAME_MACHINE="alphaev5" ;;
Packit Service af52df
	    "EV5.6 (21164A)")
Packit Service af52df
		UNAME_MACHINE="alphaev56" ;;
Packit Service af52df
	    "EV5.6 (21164PC)")
Packit Service af52df
		UNAME_MACHINE="alphapca56" ;;
Packit Service af52df
	    "EV5.7 (21164PC)")
Packit Service af52df
		UNAME_MACHINE="alphapca57" ;;
Packit Service af52df
	    "EV6 (21264)")
Packit Service af52df
		UNAME_MACHINE="alphaev6" ;;
Packit Service af52df
	    "EV6.7 (21264A)")
Packit Service af52df
		UNAME_MACHINE="alphaev67" ;;
Packit Service af52df
	    "EV6.8CB (21264C)")
Packit Service af52df
		UNAME_MACHINE="alphaev68" ;;
Packit Service af52df
	    "EV6.8AL (21264B)")
Packit Service af52df
		UNAME_MACHINE="alphaev68" ;;
Packit Service af52df
	    "EV6.8CX (21264D)")
Packit Service af52df
		UNAME_MACHINE="alphaev68" ;;
Packit Service af52df
	    "EV6.9A (21264/EV69A)")
Packit Service af52df
		UNAME_MACHINE="alphaev69" ;;
Packit Service af52df
	    "EV7 (21364)")
Packit Service af52df
		UNAME_MACHINE="alphaev7" ;;
Packit Service af52df
	    "EV7.9 (21364A)")
Packit Service af52df
		UNAME_MACHINE="alphaev79" ;;
Packit Service af52df
	esac
Packit Service af52df
	# A Pn.n version is a patched version.
Packit Service af52df
	# A Vn.n version is a released version.
Packit Service af52df
	# A Tn.n version is a released field test version.
Packit Service af52df
	# A Xn.n version is an unreleased experimental baselevel.
Packit Service af52df
	# 1.2 uses "1.2" for uname -r.
Packit Service af52df
	echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
Packit Service af52df
	# Reset EXIT trap before exiting to avoid spurious non-zero exit code.
Packit Service af52df
	exitcode=$?
Packit Service af52df
	trap '' 0
Packit Service af52df
	exit $exitcode ;;
Packit Service af52df
    Alpha\ *:Windows_NT*:*)
Packit Service af52df
	# How do we know it's Interix rather than the generic POSIX subsystem?
Packit Service af52df
	# Should we change UNAME_MACHINE based on the output of uname instead
Packit Service af52df
	# of the specific Alpha model?
Packit Service af52df
	echo alpha-pc-interix
Packit Service af52df
	exit ;;
Packit Service af52df
    21064:Windows_NT:50:3)
Packit Service af52df
	echo alpha-dec-winnt3.5
Packit Service af52df
	exit ;;
Packit Service af52df
    Amiga*:UNIX_System_V:4.0:*)
Packit Service af52df
	echo m68k-unknown-sysv4
Packit Service af52df
	exit ;;
Packit Service af52df
    *:[Aa]miga[Oo][Ss]:*:*)
Packit Service af52df
	echo ${UNAME_MACHINE}-unknown-amigaos
Packit Service af52df
	exit ;;
Packit Service af52df
    *:[Mm]orph[Oo][Ss]:*:*)
Packit Service af52df
	echo ${UNAME_MACHINE}-unknown-morphos
Packit Service af52df
	exit ;;
Packit Service af52df
    *:OS/390:*:*)
Packit Service af52df
	echo i370-ibm-openedition
Packit Service af52df
	exit ;;
Packit Service af52df
    *:z/VM:*:*)
Packit Service af52df
	echo s390-ibm-zvmoe
Packit Service af52df
	exit ;;
Packit Service af52df
    *:OS400:*:*)
Packit Service af52df
	echo powerpc-ibm-os400
Packit Service af52df
	exit ;;
Packit Service af52df
    arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
Packit Service af52df
	echo arm-acorn-riscix${UNAME_RELEASE}
Packit Service af52df
	exit ;;
Packit Service af52df
    arm*:riscos:*:*|arm*:RISCOS:*:*)
Packit Service af52df
	echo arm-unknown-riscos
Packit Service af52df
	exit ;;
Packit Service af52df
    SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
Packit Service af52df
	echo hppa1.1-hitachi-hiuxmpp
Packit Service af52df
	exit ;;
Packit Service af52df
    Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
Packit Service af52df
	# akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
Packit Service af52df
	if test "`(/bin/universe) 2>/dev/null`" = att ; then
Packit Service af52df
		echo pyramid-pyramid-sysv3
Packit Service af52df
	else
Packit Service af52df
		echo pyramid-pyramid-bsd
Packit Service af52df
	fi
Packit Service af52df
	exit ;;
Packit Service af52df
    NILE*:*:*:dcosx)
Packit Service af52df
	echo pyramid-pyramid-svr4
Packit Service af52df
	exit ;;
Packit Service af52df
    DRS?6000:unix:4.0:6*)
Packit Service af52df
	echo sparc-icl-nx6
Packit Service af52df
	exit ;;
Packit Service af52df
    DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
Packit Service af52df
	case `/usr/bin/uname -p` in
Packit Service af52df
	    sparc) echo sparc-icl-nx7; exit ;;
Packit Service af52df
	esac ;;
Packit Service af52df
    s390x:SunOS:*:*)
Packit Service af52df
	echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
Packit Service af52df
	exit ;;
Packit Service af52df
    sun4H:SunOS:5.*:*)
Packit Service af52df
	echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
Packit Service af52df
	exit ;;
Packit Service af52df
    sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
Packit Service af52df
	echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
Packit Service af52df
	exit ;;
Packit Service af52df
    i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
Packit Service af52df
	echo i386-pc-auroraux${UNAME_RELEASE}
Packit Service af52df
	exit ;;
Packit Service af52df
    i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
Packit Service af52df
	eval $set_cc_for_build
Packit Service af52df
	SUN_ARCH="i386"
Packit Service af52df
	# If there is a compiler, see if it is configured for 64-bit objects.
Packit Service af52df
	# Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
Packit Service af52df
	# This test works for both compilers.
Packit Service af52df
	if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
Packit Service af52df
	    if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
Packit Service af52df
		(CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
Packit Service af52df
		grep IS_64BIT_ARCH >/dev/null
Packit Service af52df
	    then
Packit Service af52df
		SUN_ARCH="x86_64"
Packit Service af52df
	    fi
Packit Service af52df
	fi
Packit Service af52df
	echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
Packit Service af52df
	exit ;;
Packit Service af52df
    sun4*:SunOS:6*:*)
Packit Service af52df
	# According to config.sub, this is the proper way to canonicalize
Packit Service af52df
	# SunOS6.  Hard to guess exactly what SunOS6 will be like, but
Packit Service af52df
	# it's likely to be more like Solaris than SunOS4.
Packit Service af52df
	echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
Packit Service af52df
	exit ;;
Packit Service af52df
    sun4*:SunOS:*:*)
Packit Service af52df
	case "`/usr/bin/arch -k`" in
Packit Service af52df
	    Series*|S4*)
Packit Service af52df
		UNAME_RELEASE=`uname -v`
Packit Service af52df
		;;
Packit Service af52df
	esac
Packit Service af52df
	# Japanese Language versions have a version number like `4.1.3-JL'.
Packit Service af52df
	echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
Packit Service af52df
	exit ;;
Packit Service af52df
    sun3*:SunOS:*:*)
Packit Service af52df
	echo m68k-sun-sunos${UNAME_RELEASE}
Packit Service af52df
	exit ;;
Packit Service af52df
    sun*:*:4.2BSD:*)
Packit Service af52df
	UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
Packit Service af52df
	test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
Packit Service af52df
	case "`/bin/arch`" in
Packit Service af52df
	    sun3)
Packit Service af52df
		echo m68k-sun-sunos${UNAME_RELEASE}
Packit Service af52df
		;;
Packit Service af52df
	    sun4)
Packit Service af52df
		echo sparc-sun-sunos${UNAME_RELEASE}
Packit Service af52df
		;;
Packit Service af52df
	esac
Packit Service af52df
	exit ;;
Packit Service af52df
    aushp:SunOS:*:*)
Packit Service af52df
	echo sparc-auspex-sunos${UNAME_RELEASE}
Packit Service af52df
	exit ;;
Packit Service af52df
    # The situation for MiNT is a little confusing.  The machine name
Packit Service af52df
    # can be virtually everything (everything which is not
Packit Service af52df
    # "atarist" or "atariste" at least should have a processor
Packit Service af52df
    # > m68000).  The system name ranges from "MiNT" over "FreeMiNT"
Packit Service af52df
    # to the lowercase version "mint" (or "freemint").  Finally
Packit Service af52df
    # the system name "TOS" denotes a system which is actually not
Packit Service af52df
    # MiNT.  But MiNT is downward compatible to TOS, so this should
Packit Service af52df
    # be no problem.
Packit Service af52df
    atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
Packit Service af52df
	echo m68k-atari-mint${UNAME_RELEASE}
Packit Service af52df
	exit ;;
Packit Service af52df
    atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
Packit Service af52df
	echo m68k-atari-mint${UNAME_RELEASE}
Packit Service af52df
	exit ;;
Packit Service af52df
    *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
Packit Service af52df
	echo m68k-atari-mint${UNAME_RELEASE}
Packit Service af52df
	exit ;;
Packit Service af52df
    milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
Packit Service af52df
	echo m68k-milan-mint${UNAME_RELEASE}
Packit Service af52df
	exit ;;
Packit Service af52df
    hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
Packit Service af52df
	echo m68k-hades-mint${UNAME_RELEASE}
Packit Service af52df
	exit ;;
Packit Service af52df
    *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
Packit Service af52df
	echo m68k-unknown-mint${UNAME_RELEASE}
Packit Service af52df
	exit ;;
Packit Service af52df
    m68k:machten:*:*)
Packit Service af52df
	echo m68k-apple-machten${UNAME_RELEASE}
Packit Service af52df
	exit ;;
Packit Service af52df
    powerpc:machten:*:*)
Packit Service af52df
	echo powerpc-apple-machten${UNAME_RELEASE}
Packit Service af52df
	exit ;;
Packit Service af52df
    RISC*:Mach:*:*)
Packit Service af52df
	echo mips-dec-mach_bsd4.3
Packit Service af52df
	exit ;;
Packit Service af52df
    RISC*:ULTRIX:*:*)
Packit Service af52df
	echo mips-dec-ultrix${UNAME_RELEASE}
Packit Service af52df
	exit ;;
Packit Service af52df
    VAX*:ULTRIX*:*:*)
Packit Service af52df
	echo vax-dec-ultrix${UNAME_RELEASE}
Packit Service af52df
	exit ;;
Packit Service af52df
    2020:CLIX:*:* | 2430:CLIX:*:*)
Packit Service af52df
	echo clipper-intergraph-clix${UNAME_RELEASE}
Packit Service af52df
	exit ;;
Packit Service af52df
    mips:*:*:UMIPS | mips:*:*:RISCos)
Packit Service af52df
	eval $set_cc_for_build
Packit Service af52df
	sed 's/^	//' << EOF >$dummy.c
Packit Service af52df
#ifdef __cplusplus
Packit Service af52df
#include <stdio.h>  /* for printf() prototype */
Packit Service af52df
	int main (int argc, char *argv[]) {
Packit Service af52df
#else
Packit Service af52df
	int main (argc, argv) int argc; char *argv[]; {
Packit Service af52df
#endif
Packit Service af52df
	#if defined (host_mips) && defined (MIPSEB)
Packit Service af52df
	#if defined (SYSTYPE_SYSV)
Packit Service af52df
	  printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
Packit Service af52df
	#endif
Packit Service af52df
	#if defined (SYSTYPE_SVR4)
Packit Service af52df
	  printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
Packit Service af52df
	#endif
Packit Service af52df
	#if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
Packit Service af52df
	  printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
Packit Service af52df
	#endif
Packit Service af52df
	#endif
Packit Service af52df
	  exit (-1);
Packit Service af52df
	}
Packit Service af52df
EOF
Packit Service af52df
	$CC_FOR_BUILD -o $dummy $dummy.c &&
Packit Service af52df
	  dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
Packit Service af52df
	  SYSTEM_NAME=`$dummy $dummyarg` &&
Packit Service af52df
	    { echo "$SYSTEM_NAME"; exit; }
Packit Service af52df
	echo mips-mips-riscos${UNAME_RELEASE}
Packit Service af52df
	exit ;;
Packit Service af52df
    Motorola:PowerMAX_OS:*:*)
Packit Service af52df
	echo powerpc-motorola-powermax
Packit Service af52df
	exit ;;
Packit Service af52df
    Motorola:*:4.3:PL8-*)
Packit Service af52df
	echo powerpc-harris-powermax
Packit Service af52df
	exit ;;
Packit Service af52df
    Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
Packit Service af52df
	echo powerpc-harris-powermax
Packit Service af52df
	exit ;;
Packit Service af52df
    Night_Hawk:Power_UNIX:*:*)
Packit Service af52df
	echo powerpc-harris-powerunix
Packit Service af52df
	exit ;;
Packit Service af52df
    m88k:CX/UX:7*:*)
Packit Service af52df
	echo m88k-harris-cxux7
Packit Service af52df
	exit ;;
Packit Service af52df
    m88k:*:4*:R4*)
Packit Service af52df
	echo m88k-motorola-sysv4
Packit Service af52df
	exit ;;
Packit Service af52df
    m88k:*:3*:R3*)
Packit Service af52df
	echo m88k-motorola-sysv3
Packit Service af52df
	exit ;;
Packit Service af52df
    AViiON:dgux:*:*)
Packit Service af52df
	# DG/UX returns AViiON for all architectures
Packit Service af52df
	UNAME_PROCESSOR=`/usr/bin/uname -p`
Packit Service af52df
	if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
Packit Service af52df
	then
Packit Service af52df
	    if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
Packit Service af52df
	       [ ${TARGET_BINARY_INTERFACE}x = x ]
Packit Service af52df
	    then
Packit Service af52df
		echo m88k-dg-dgux${UNAME_RELEASE}
Packit Service af52df
	    else
Packit Service af52df
		echo m88k-dg-dguxbcs${UNAME_RELEASE}
Packit Service af52df
	    fi
Packit Service af52df
	else
Packit Service af52df
	    echo i586-dg-dgux${UNAME_RELEASE}
Packit Service af52df
	fi
Packit Service af52df
	exit ;;
Packit Service af52df
    M88*:DolphinOS:*:*)	# DolphinOS (SVR3)
Packit Service af52df
	echo m88k-dolphin-sysv3
Packit Service af52df
	exit ;;
Packit Service af52df
    M88*:*:R3*:*)
Packit Service af52df
	# Delta 88k system running SVR3
Packit Service af52df
	echo m88k-motorola-sysv3
Packit Service af52df
	exit ;;
Packit Service af52df
    XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
Packit Service af52df
	echo m88k-tektronix-sysv3
Packit Service af52df
	exit ;;
Packit Service af52df
    Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
Packit Service af52df
	echo m68k-tektronix-bsd
Packit Service af52df
	exit ;;
Packit Service af52df
    *:IRIX*:*:*)
Packit Service af52df
	echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
Packit Service af52df
	exit ;;
Packit Service af52df
    ????????:AIX?:[12].1:2)   # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
Packit Service af52df
	echo romp-ibm-aix     # uname -m gives an 8 hex-code CPU id
Packit Service af52df
	exit ;;               # Note that: echo "'`uname -s`'" gives 'AIX '
Packit Service af52df
    i*86:AIX:*:*)
Packit Service af52df
	echo i386-ibm-aix
Packit Service af52df
	exit ;;
Packit Service af52df
    ia64:AIX:*:*)
Packit Service af52df
	if [ -x /usr/bin/oslevel ] ; then
Packit Service af52df
		IBM_REV=`/usr/bin/oslevel`
Packit Service af52df
	else
Packit Service af52df
		IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
Packit Service af52df
	fi
Packit Service af52df
	echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
Packit Service af52df
	exit ;;
Packit Service af52df
    *:AIX:2:3)
Packit Service af52df
	if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
Packit Service af52df
		eval $set_cc_for_build
Packit Service af52df
		sed 's/^		//' << EOF >$dummy.c
Packit Service af52df
		#include <sys/systemcfg.h>
Packit Service af52df
Packit Service af52df
		main()
Packit Service af52df
			{
Packit Service af52df
			if (!__power_pc())
Packit Service af52df
				exit(1);
Packit Service af52df
			puts("powerpc-ibm-aix3.2.5");
Packit Service af52df
			exit(0);
Packit Service af52df
			}
Packit Service af52df
EOF
Packit Service af52df
		if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
Packit Service af52df
		then
Packit Service af52df
			echo "$SYSTEM_NAME"
Packit Service af52df
		else
Packit Service af52df
			echo rs6000-ibm-aix3.2.5
Packit Service af52df
		fi
Packit Service af52df
	elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
Packit Service af52df
		echo rs6000-ibm-aix3.2.4
Packit Service af52df
	else
Packit Service af52df
		echo rs6000-ibm-aix3.2
Packit Service af52df
	fi
Packit Service af52df
	exit ;;
Packit Service af52df
    *:AIX:*:[4567])
Packit Service af52df
	IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
Packit Service af52df
	if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
Packit Service af52df
		IBM_ARCH=rs6000
Packit Service af52df
	else
Packit Service af52df
		IBM_ARCH=powerpc
Packit Service af52df
	fi
Packit Service af52df
	if [ -x /usr/bin/oslevel ] ; then
Packit Service af52df
		IBM_REV=`/usr/bin/oslevel`
Packit Service af52df
	else
Packit Service af52df
		IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
Packit Service af52df
	fi
Packit Service af52df
	echo ${IBM_ARCH}-ibm-aix${IBM_REV}
Packit Service af52df
	exit ;;
Packit Service af52df
    *:AIX:*:*)
Packit Service af52df
	echo rs6000-ibm-aix
Packit Service af52df
	exit ;;
Packit Service af52df
    ibmrt:4.4BSD:*|romp-ibm:BSD:*)
Packit Service af52df
	echo romp-ibm-bsd4.4
Packit Service af52df
	exit ;;
Packit Service af52df
    ibmrt:*BSD:*|romp-ibm:BSD:*)            # covers RT/PC BSD and
Packit Service af52df
	echo romp-ibm-bsd${UNAME_RELEASE}   # 4.3 with uname added to
Packit Service af52df
	exit ;;                             # report: romp-ibm BSD 4.3
Packit Service af52df
    *:BOSX:*:*)
Packit Service af52df
	echo rs6000-bull-bosx
Packit Service af52df
	exit ;;
Packit Service af52df
    DPX/2?00:B.O.S.:*:*)
Packit Service af52df
	echo m68k-bull-sysv3
Packit Service af52df
	exit ;;
Packit Service af52df
    9000/[34]??:4.3bsd:1.*:*)
Packit Service af52df
	echo m68k-hp-bsd
Packit Service af52df
	exit ;;
Packit Service af52df
    hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
Packit Service af52df
	echo m68k-hp-bsd4.4
Packit Service af52df
	exit ;;
Packit Service af52df
    9000/[34678]??:HP-UX:*:*)
Packit Service af52df
	HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
Packit Service af52df
	case "${UNAME_MACHINE}" in
Packit Service af52df
	    9000/31? )            HP_ARCH=m68000 ;;
Packit Service af52df
	    9000/[34]?? )         HP_ARCH=m68k ;;
Packit Service af52df
	    9000/[678][0-9][0-9])
Packit Service af52df
		if [ -x /usr/bin/getconf ]; then
Packit Service af52df
		    sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
Packit Service af52df
		    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
Packit Service af52df
		    case "${sc_cpu_version}" in
Packit Service af52df
		      523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
Packit Service af52df
		      528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
Packit Service af52df
		      532)                      # CPU_PA_RISC2_0
Packit Service af52df
			case "${sc_kernel_bits}" in
Packit Service af52df
			  32) HP_ARCH="hppa2.0n" ;;
Packit Service af52df
			  64) HP_ARCH="hppa2.0w" ;;
Packit Service af52df
			  '') HP_ARCH="hppa2.0" ;;   # HP-UX 10.20
Packit Service af52df
			esac ;;
Packit Service af52df
		    esac
Packit Service af52df
		fi
Packit Service af52df
		if [ "${HP_ARCH}" = "" ]; then
Packit Service af52df
		    eval $set_cc_for_build
Packit Service af52df
		    sed 's/^		//' << EOF >$dummy.c
Packit Service af52df
Packit Service af52df
		#define _HPUX_SOURCE
Packit Service af52df
		#include <stdlib.h>
Packit Service af52df
		#include <unistd.h>
Packit Service af52df
Packit Service af52df
		int main ()
Packit Service af52df
		{
Packit Service af52df
		#if defined(_SC_KERNEL_BITS)
Packit Service af52df
		    long bits = sysconf(_SC_KERNEL_BITS);
Packit Service af52df
		#endif
Packit Service af52df
		    long cpu  = sysconf (_SC_CPU_VERSION);
Packit Service af52df
Packit Service af52df
		    switch (cpu)
Packit Service af52df
			{
Packit Service af52df
			case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
Packit Service af52df
			case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
Packit Service af52df
			case CPU_PA_RISC2_0:
Packit Service af52df
		#if defined(_SC_KERNEL_BITS)
Packit Service af52df
			    switch (bits)
Packit Service af52df
				{
Packit Service af52df
				case 64: puts ("hppa2.0w"); break;
Packit Service af52df
				case 32: puts ("hppa2.0n"); break;
Packit Service af52df
				default: puts ("hppa2.0"); break;
Packit Service af52df
				} break;
Packit Service af52df
		#else  /* !defined(_SC_KERNEL_BITS) */
Packit Service af52df
			    puts ("hppa2.0"); break;
Packit Service af52df
		#endif
Packit Service af52df
			default: puts ("hppa1.0"); break;
Packit Service af52df
			}
Packit Service af52df
		    exit (0);
Packit Service af52df
		}
Packit Service af52df
EOF
Packit Service af52df
		    (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
Packit Service af52df
		    test -z "$HP_ARCH" && HP_ARCH=hppa
Packit Service af52df
		fi ;;
Packit Service af52df
	esac
Packit Service af52df
	if [ ${HP_ARCH} = "hppa2.0w" ]
Packit Service af52df
	then
Packit Service af52df
	    eval $set_cc_for_build
Packit Service af52df
Packit Service af52df
	    # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
Packit Service af52df
	    # 32-bit code.  hppa64-hp-hpux* has the same kernel and a compiler
Packit Service af52df
	    # generating 64-bit code.  GNU and HP use different nomenclature:
Packit Service af52df
	    #
Packit Service af52df
	    # $ CC_FOR_BUILD=cc ./config.guess
Packit Service af52df
	    # => hppa2.0w-hp-hpux11.23
Packit Service af52df
	    # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
Packit Service af52df
	    # => hppa64-hp-hpux11.23
Packit Service af52df
Packit Service af52df
	    if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
Packit Service af52df
		grep -q __LP64__
Packit Service af52df
	    then
Packit Service af52df
		HP_ARCH="hppa2.0w"
Packit Service af52df
	    else
Packit Service af52df
		HP_ARCH="hppa64"
Packit Service af52df
	    fi
Packit Service af52df
	fi
Packit Service af52df
	echo ${HP_ARCH}-hp-hpux${HPUX_REV}
Packit Service af52df
	exit ;;
Packit Service af52df
    ia64:HP-UX:*:*)
Packit Service af52df
	HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
Packit Service af52df
	echo ia64-hp-hpux${HPUX_REV}
Packit Service af52df
	exit ;;
Packit Service af52df
    3050*:HI-UX:*:*)
Packit Service af52df
	eval $set_cc_for_build
Packit Service af52df
	sed 's/^	//' << EOF >$dummy.c
Packit Service af52df
	#include <unistd.h>
Packit Service af52df
	int
Packit Service af52df
	main ()
Packit Service af52df
	{
Packit Service af52df
	  long cpu = sysconf (_SC_CPU_VERSION);
Packit Service af52df
	  /* The order matters, because CPU_IS_HP_MC68K erroneously returns
Packit Service af52df
	     true for CPU_PA_RISC1_0.  CPU_IS_PA_RISC returns correct
Packit Service af52df
	     results, however.  */
Packit Service af52df
	  if (CPU_IS_PA_RISC (cpu))
Packit Service af52df
	    {
Packit Service af52df
	      switch (cpu)
Packit Service af52df
		{
Packit Service af52df
		  case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
Packit Service af52df
		  case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
Packit Service af52df
		  case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
Packit Service af52df
		  default: puts ("hppa-hitachi-hiuxwe2"); break;
Packit Service af52df
		}
Packit Service af52df
	    }
Packit Service af52df
	  else if (CPU_IS_HP_MC68K (cpu))
Packit Service af52df
	    puts ("m68k-hitachi-hiuxwe2");
Packit Service af52df
	  else puts ("unknown-hitachi-hiuxwe2");
Packit Service af52df
	  exit (0);
Packit Service af52df
	}
Packit Service af52df
EOF
Packit Service af52df
	$CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
Packit Service af52df
		{ echo "$SYSTEM_NAME"; exit; }
Packit Service af52df
	echo unknown-hitachi-hiuxwe2
Packit Service af52df
	exit ;;
Packit Service af52df
    9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
Packit Service af52df
	echo hppa1.1-hp-bsd
Packit Service af52df
	exit ;;
Packit Service af52df
    9000/8??:4.3bsd:*:*)
Packit Service af52df
	echo hppa1.0-hp-bsd
Packit Service af52df
	exit ;;
Packit Service af52df
    *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
Packit Service af52df
	echo hppa1.0-hp-mpeix
Packit Service af52df
	exit ;;
Packit Service af52df
    hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
Packit Service af52df
	echo hppa1.1-hp-osf
Packit Service af52df
	exit ;;
Packit Service af52df
    hp8??:OSF1:*:*)
Packit Service af52df
	echo hppa1.0-hp-osf
Packit Service af52df
	exit ;;
Packit Service af52df
    i*86:OSF1:*:*)
Packit Service af52df
	if [ -x /usr/sbin/sysversion ] ; then
Packit Service af52df
	    echo ${UNAME_MACHINE}-unknown-osf1mk
Packit Service af52df
	else
Packit Service af52df
	    echo ${UNAME_MACHINE}-unknown-osf1
Packit Service af52df
	fi
Packit Service af52df
	exit ;;
Packit Service af52df
    parisc*:Lites*:*:*)
Packit Service af52df
	echo hppa1.1-hp-lites
Packit Service af52df
	exit ;;
Packit Service af52df
    C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
Packit Service af52df
	echo c1-convex-bsd
Packit Service af52df
	exit ;;
Packit Service af52df
    C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
Packit Service af52df
	if getsysinfo -f scalar_acc
Packit Service af52df
	then echo c32-convex-bsd
Packit Service af52df
	else echo c2-convex-bsd
Packit Service af52df
	fi
Packit Service af52df
	exit ;;
Packit Service af52df
    C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
Packit Service af52df
	echo c34-convex-bsd
Packit Service af52df
	exit ;;
Packit Service af52df
    C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
Packit Service af52df
	echo c38-convex-bsd
Packit Service af52df
	exit ;;
Packit Service af52df
    C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
Packit Service af52df
	echo c4-convex-bsd
Packit Service af52df
	exit ;;
Packit Service af52df
    CRAY*Y-MP:*:*:*)
Packit Service af52df
	echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
Packit Service af52df
	exit ;;
Packit Service af52df
    CRAY*[A-Z]90:*:*:*)
Packit Service af52df
	echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
Packit Service af52df
	| sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
Packit Service af52df
	      -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
Packit Service af52df
	      -e 's/\.[^.]*$/.X/'
Packit Service af52df
	exit ;;
Packit Service af52df
    CRAY*TS:*:*:*)
Packit Service af52df
	echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
Packit Service af52df
	exit ;;
Packit Service af52df
    CRAY*T3E:*:*:*)
Packit Service af52df
	echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
Packit Service af52df
	exit ;;
Packit Service af52df
    CRAY*SV1:*:*:*)
Packit Service af52df
	echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
Packit Service af52df
	exit ;;
Packit Service af52df
    *:UNICOS/mp:*:*)
Packit Service af52df
	echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
Packit Service af52df
	exit ;;
Packit Service af52df
    F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
Packit Service af52df
	FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
Packit Service af52df
	FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
Packit Service af52df
	FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
Packit Service af52df
	echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
Packit Service af52df
	exit ;;
Packit Service af52df
    5000:UNIX_System_V:4.*:*)
Packit Service af52df
	FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
Packit Service af52df
	FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
Packit Service af52df
	echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
Packit Service af52df
	exit ;;
Packit Service af52df
    i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
Packit Service af52df
	echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
Packit Service af52df
	exit ;;
Packit Service af52df
    sparc*:BSD/OS:*:*)
Packit Service af52df
	echo sparc-unknown-bsdi${UNAME_RELEASE}
Packit Service af52df
	exit ;;
Packit Service af52df
    *:BSD/OS:*:*)
Packit Service af52df
	echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
Packit Service af52df
	exit ;;
Packit Service af52df
    *:FreeBSD:*:*)
Packit Service af52df
	UNAME_PROCESSOR=`/usr/bin/uname -p`
Packit Service af52df
	case ${UNAME_PROCESSOR} in
Packit Service af52df
	    amd64)
Packit Service af52df
		echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
Packit Service af52df
	    *)
Packit Service af52df
		echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
Packit Service af52df
	esac
Packit Service af52df
	exit ;;
Packit Service af52df
    i*:CYGWIN*:*)
Packit Service af52df
	echo ${UNAME_MACHINE}-pc-cygwin
Packit Service af52df
	exit ;;
Packit Service af52df
    *:MINGW64*:*)
Packit Service af52df
	echo ${UNAME_MACHINE}-pc-mingw64
Packit Service af52df
	exit ;;
Packit Service af52df
    *:MINGW*:*)
Packit Service af52df
	echo ${UNAME_MACHINE}-pc-mingw32
Packit Service af52df
	exit ;;
Packit Service af52df
    i*:MSYS*:*)
Packit Service af52df
	echo ${UNAME_MACHINE}-pc-msys
Packit Service af52df
	exit ;;
Packit Service af52df
    i*:windows32*:*)
Packit Service af52df
	# uname -m includes "-pc" on this system.
Packit Service af52df
	echo ${UNAME_MACHINE}-mingw32
Packit Service af52df
	exit ;;
Packit Service af52df
    i*:PW*:*)
Packit Service af52df
	echo ${UNAME_MACHINE}-pc-pw32
Packit Service af52df
	exit ;;
Packit Service af52df
    *:Interix*:*)
Packit Service af52df
	case ${UNAME_MACHINE} in
Packit Service af52df
	    x86)
Packit Service af52df
		echo i586-pc-interix${UNAME_RELEASE}
Packit Service af52df
		exit ;;
Packit Service af52df
	    authenticamd | genuineintel | EM64T)
Packit Service af52df
		echo x86_64-unknown-interix${UNAME_RELEASE}
Packit Service af52df
		exit ;;
Packit Service af52df
	    IA64)
Packit Service af52df
		echo ia64-unknown-interix${UNAME_RELEASE}
Packit Service af52df
		exit ;;
Packit Service af52df
	esac ;;
Packit Service af52df
    [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
Packit Service af52df
	echo i${UNAME_MACHINE}-pc-mks
Packit Service af52df
	exit ;;
Packit Service af52df
    8664:Windows_NT:*)
Packit Service af52df
	echo x86_64-pc-mks
Packit Service af52df
	exit ;;
Packit Service af52df
    i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
Packit Service af52df
	# How do we know it's Interix rather than the generic POSIX subsystem?
Packit Service af52df
	# It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
Packit Service af52df
	# UNAME_MACHINE based on the output of uname instead of i386?
Packit Service af52df
	echo i586-pc-interix
Packit Service af52df
	exit ;;
Packit Service af52df
    i*:UWIN*:*)
Packit Service af52df
	echo ${UNAME_MACHINE}-pc-uwin
Packit Service af52df
	exit ;;
Packit Service af52df
    amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
Packit Service af52df
	echo x86_64-unknown-cygwin
Packit Service af52df
	exit ;;
Packit Service af52df
    p*:CYGWIN*:*)
Packit Service af52df
	echo powerpcle-unknown-cygwin
Packit Service af52df
	exit ;;
Packit Service af52df
    prep*:SunOS:5.*:*)
Packit Service af52df
	echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
Packit Service af52df
	exit ;;
Packit Service af52df
    *:GNU:*:*)
Packit Service af52df
	# the GNU system
Packit Service af52df
	echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
Packit Service af52df
	exit ;;
Packit Service af52df
    *:GNU/*:*:*)
Packit Service af52df
	# other systems with GNU libc and userland
Packit Service af52df
	echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}
Packit Service af52df
	exit ;;
Packit Service af52df
    i*86:Minix:*:*)
Packit Service af52df
	echo ${UNAME_MACHINE}-pc-minix
Packit Service af52df
	exit ;;
Packit Service af52df
    aarch64:Linux:*:*)
Packit Service af52df
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
Packit Service af52df
	exit ;;
Packit Service af52df
    aarch64_be:Linux:*:*)
Packit Service af52df
	UNAME_MACHINE=aarch64_be
Packit Service af52df
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
Packit Service af52df
	exit ;;
Packit Service af52df
    alpha:Linux:*:*)
Packit Service af52df
	case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
Packit Service af52df
	  EV5)   UNAME_MACHINE=alphaev5 ;;
Packit Service af52df
	  EV56)  UNAME_MACHINE=alphaev56 ;;
Packit Service af52df
	  PCA56) UNAME_MACHINE=alphapca56 ;;
Packit Service af52df
	  PCA57) UNAME_MACHINE=alphapca56 ;;
Packit Service af52df
	  EV6)   UNAME_MACHINE=alphaev6 ;;
Packit Service af52df
	  EV67)  UNAME_MACHINE=alphaev67 ;;
Packit Service af52df
	  EV68*) UNAME_MACHINE=alphaev68 ;;
Packit Service af52df
	esac
Packit Service af52df
	objdump --private-headers /bin/sh | grep -q ld.so.1
Packit Service af52df
	if test "$?" = 0 ; then LIBC="gnulibc1" ; fi
Packit Service af52df
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
Packit Service af52df
	exit ;;
Packit Service af52df
    arc:Linux:*:* | arceb:Linux:*:*)
Packit Service af52df
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
Packit Service af52df
	exit ;;
Packit Service af52df
    arm*:Linux:*:*)
Packit Service af52df
	eval $set_cc_for_build
Packit Service af52df
	if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
Packit Service af52df
	    | grep -q __ARM_EABI__
Packit Service af52df
	then
Packit Service af52df
	    echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
Packit Service af52df
	else
Packit Service af52df
	    if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
Packit Service af52df
		| grep -q __ARM_PCS_VFP
Packit Service af52df
	    then
Packit Service af52df
		echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi
Packit Service af52df
	    else
Packit Service af52df
		echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf
Packit Service af52df
	    fi
Packit Service af52df
	fi
Packit Service af52df
	exit ;;
Packit Service af52df
    avr32*:Linux:*:*)
Packit Service af52df
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
Packit Service af52df
	exit ;;
Packit Service af52df
    cris:Linux:*:*)
Packit Service af52df
	echo ${UNAME_MACHINE}-axis-linux-${LIBC}
Packit Service af52df
	exit ;;
Packit Service af52df
    crisv32:Linux:*:*)
Packit Service af52df
	echo ${UNAME_MACHINE}-axis-linux-${LIBC}
Packit Service af52df
	exit ;;
Packit Service af52df
    frv:Linux:*:*)
Packit Service af52df
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
Packit Service af52df
	exit ;;
Packit Service af52df
    hexagon:Linux:*:*)
Packit Service af52df
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
Packit Service af52df
	exit ;;
Packit Service af52df
    i*86:Linux:*:*)
Packit Service af52df
	echo ${UNAME_MACHINE}-pc-linux-${LIBC}
Packit Service af52df
	exit ;;
Packit Service af52df
    ia64:Linux:*:*)
Packit Service af52df
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
Packit Service af52df
	exit ;;
Packit Service af52df
    m32r*:Linux:*:*)
Packit Service af52df
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
Packit Service af52df
	exit ;;
Packit Service af52df
    m68*:Linux:*:*)
Packit Service af52df
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
Packit Service af52df
	exit ;;
Packit Service af52df
    mips:Linux:*:* | mips64:Linux:*:*)
Packit Service af52df
	eval $set_cc_for_build
Packit Service af52df
	sed 's/^	//' << EOF >$dummy.c
Packit Service af52df
	#undef CPU
Packit Service af52df
	#undef ${UNAME_MACHINE}
Packit Service af52df
	#undef ${UNAME_MACHINE}el
Packit Service af52df
	#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
Packit Service af52df
	CPU=${UNAME_MACHINE}el
Packit Service af52df
	#else
Packit Service af52df
	#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
Packit Service af52df
	CPU=${UNAME_MACHINE}
Packit Service af52df
	#else
Packit Service af52df
	CPU=
Packit Service af52df
	#endif
Packit Service af52df
	#endif
Packit Service af52df
EOF
Packit Service af52df
	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
Packit Service af52df
	test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
Packit Service af52df
	;;
Packit Service af52df
    or1k:Linux:*:*)
Packit Service af52df
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
Packit Service af52df
	exit ;;
Packit Service af52df
    or32:Linux:*:*)
Packit Service af52df
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
Packit Service af52df
	exit ;;
Packit Service af52df
    padre:Linux:*:*)
Packit Service af52df
	echo sparc-unknown-linux-${LIBC}
Packit Service af52df
	exit ;;
Packit Service af52df
    parisc64:Linux:*:* | hppa64:Linux:*:*)
Packit Service af52df
	echo hppa64-unknown-linux-${LIBC}
Packit Service af52df
	exit ;;
Packit Service af52df
    parisc:Linux:*:* | hppa:Linux:*:*)
Packit Service af52df
	# Look for CPU level
Packit Service af52df
	case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
Packit Service af52df
	  PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;
Packit Service af52df
	  PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;
Packit Service af52df
	  *)    echo hppa-unknown-linux-${LIBC} ;;
Packit Service af52df
	esac
Packit Service af52df
	exit ;;
Packit Service af52df
    ppc64:Linux:*:*)
Packit Service af52df
	echo powerpc64-unknown-linux-${LIBC}
Packit Service af52df
	exit ;;
Packit Service af52df
    ppc:Linux:*:*)
Packit Service af52df
	echo powerpc-unknown-linux-${LIBC}
Packit Service af52df
	exit ;;
Packit Service af52df
    ppc64le:Linux:*:*)
Packit Service af52df
	echo powerpc64le-unknown-linux-${LIBC}
Packit Service af52df
	exit ;;
Packit Service af52df
    ppcle:Linux:*:*)
Packit Service af52df
	echo powerpcle-unknown-linux-${LIBC}
Packit Service af52df
	exit ;;
Packit Service af52df
    s390:Linux:*:* | s390x:Linux:*:*)
Packit Service af52df
	echo ${UNAME_MACHINE}-ibm-linux-${LIBC}
Packit Service af52df
	exit ;;
Packit Service af52df
    sh64*:Linux:*:*)
Packit Service af52df
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
Packit Service af52df
	exit ;;
Packit Service af52df
    sh*:Linux:*:*)
Packit Service af52df
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
Packit Service af52df
	exit ;;
Packit Service af52df
    sparc:Linux:*:* | sparc64:Linux:*:*)
Packit Service af52df
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
Packit Service af52df
	exit ;;
Packit Service af52df
    tile*:Linux:*:*)
Packit Service af52df
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
Packit Service af52df
	exit ;;
Packit Service af52df
    vax:Linux:*:*)
Packit Service af52df
	echo ${UNAME_MACHINE}-dec-linux-${LIBC}
Packit Service af52df
	exit ;;
Packit Service af52df
    x86_64:Linux:*:*)
Packit Service af52df
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
Packit Service af52df
	exit ;;
Packit Service af52df
    xtensa*:Linux:*:*)
Packit Service af52df
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
Packit Service af52df
	exit ;;
Packit Service af52df
    i*86:DYNIX/ptx:4*:*)
Packit Service af52df
	# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
Packit Service af52df
	# earlier versions are messed up and put the nodename in both
Packit Service af52df
	# sysname and nodename.
Packit Service af52df
	echo i386-sequent-sysv4
Packit Service af52df
	exit ;;
Packit Service af52df
    i*86:UNIX_SV:4.2MP:2.*)
Packit Service af52df
	# Unixware is an offshoot of SVR4, but it has its own version
Packit Service af52df
	# number series starting with 2...
Packit Service af52df
	# I am not positive that other SVR4 systems won't match this,
Packit Service af52df
	# I just have to hope.  -- rms.
Packit Service af52df
	# Use sysv4.2uw... so that sysv4* matches it.
Packit Service af52df
	echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
Packit Service af52df
	exit ;;
Packit Service af52df
    i*86:OS/2:*:*)
Packit Service af52df
	# If we were able to find `uname', then EMX Unix compatibility
Packit Service af52df
	# is probably installed.
Packit Service af52df
	echo ${UNAME_MACHINE}-pc-os2-emx
Packit Service af52df
	exit ;;
Packit Service af52df
    i*86:XTS-300:*:STOP)
Packit Service af52df
	echo ${UNAME_MACHINE}-unknown-stop
Packit Service af52df
	exit ;;
Packit Service af52df
    i*86:atheos:*:*)
Packit Service af52df
	echo ${UNAME_MACHINE}-unknown-atheos
Packit Service af52df
	exit ;;
Packit Service af52df
    i*86:syllable:*:*)
Packit Service af52df
	echo ${UNAME_MACHINE}-pc-syllable
Packit Service af52df
	exit ;;
Packit Service af52df
    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
Packit Service af52df
	echo i386-unknown-lynxos${UNAME_RELEASE}
Packit Service af52df
	exit ;;
Packit Service af52df
    i*86:*DOS:*:*)
Packit Service af52df
	echo ${UNAME_MACHINE}-pc-msdosdjgpp
Packit Service af52df
	exit ;;
Packit Service af52df
    i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
Packit Service af52df
	UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
Packit Service af52df
	if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
Packit Service af52df
		echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
Packit Service af52df
	else
Packit Service af52df
		echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
Packit Service af52df
	fi
Packit Service af52df
	exit ;;
Packit Service af52df
    i*86:*:5:[678]*)
Packit Service af52df
	# UnixWare 7.x, OpenUNIX and OpenServer 6.
Packit Service af52df
	case `/bin/uname -X | grep "^Machine"` in
Packit Service af52df
	    *486*)	     UNAME_MACHINE=i486 ;;
Packit Service af52df
	    *Pentium)	     UNAME_MACHINE=i586 ;;
Packit Service af52df
	    *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
Packit Service af52df
	esac
Packit Service af52df
	echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
Packit Service af52df
	exit ;;
Packit Service af52df
    i*86:*:3.2:*)
Packit Service af52df
	if test -f /usr/options/cb.name; then
Packit Service af52df
		UNAME_REL=`sed -n 's/.*Version //p' 
Packit Service af52df
		echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
Packit Service af52df
	elif /bin/uname -X 2>/dev/null >/dev/null ; then
Packit Service af52df
		UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
Packit Service af52df
		(/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
Packit Service af52df
		(/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
Packit Service af52df
			&& UNAME_MACHINE=i586
Packit Service af52df
		(/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
Packit Service af52df
			&& UNAME_MACHINE=i686
Packit Service af52df
		(/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
Packit Service af52df
			&& UNAME_MACHINE=i686
Packit Service af52df
		echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
Packit Service af52df
	else
Packit Service af52df
		echo ${UNAME_MACHINE}-pc-sysv32
Packit Service af52df
	fi
Packit Service af52df
	exit ;;
Packit Service af52df
    pc:*:*:*)
Packit Service af52df
	# Left here for compatibility:
Packit Service af52df
	# uname -m prints for DJGPP always 'pc', but it prints nothing about
Packit Service af52df
	# the processor, so we play safe by assuming i586.
Packit Service af52df
	# Note: whatever this is, it MUST be the same as what config.sub
Packit Service af52df
	# prints for the "djgpp" host, or else GDB configury will decide that
Packit Service af52df
	# this is a cross-build.
Packit Service af52df
	echo i586-pc-msdosdjgpp
Packit Service af52df
	exit ;;
Packit Service af52df
    Intel:Mach:3*:*)
Packit Service af52df
	echo i386-pc-mach3
Packit Service af52df
	exit ;;
Packit Service af52df
    paragon:*:*:*)
Packit Service af52df
	echo i860-intel-osf1
Packit Service af52df
	exit ;;
Packit Service af52df
    i860:*:4.*:*) # i860-SVR4
Packit Service af52df
	if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
Packit Service af52df
	  echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
Packit Service af52df
	else # Add other i860-SVR4 vendors below as they are discovered.
Packit Service af52df
	  echo i860-unknown-sysv${UNAME_RELEASE}  # Unknown i860-SVR4
Packit Service af52df
	fi
Packit Service af52df
	exit ;;
Packit Service af52df
    mini*:CTIX:SYS*5:*)
Packit Service af52df
	# "miniframe"
Packit Service af52df
	echo m68010-convergent-sysv
Packit Service af52df
	exit ;;
Packit Service af52df
    mc68k:UNIX:SYSTEM5:3.51m)
Packit Service af52df
	echo m68k-convergent-sysv
Packit Service af52df
	exit ;;
Packit Service af52df
    M680?0:D-NIX:5.3:*)
Packit Service af52df
	echo m68k-diab-dnix
Packit Service af52df
	exit ;;
Packit Service af52df
    M68*:*:R3V[5678]*:*)
Packit Service af52df
	test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
Packit Service af52df
    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)
Packit Service af52df
	OS_REL=''
Packit Service af52df
	test -r /etc/.relid \
Packit Service af52df
	&& OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
Packit Service af52df
	/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
Packit Service af52df
	  && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
Packit Service af52df
	/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
Packit Service af52df
	  && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
Packit Service af52df
    3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
Packit Service af52df
	/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
Packit Service af52df
	  && { echo i486-ncr-sysv4; exit; } ;;
Packit Service af52df
    NCR*:*:4.2:* | MPRAS*:*:4.2:*)
Packit Service af52df
	OS_REL='.3'
Packit Service af52df
	test -r /etc/.relid \
Packit Service af52df
	    && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
Packit Service af52df
	/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
Packit Service af52df
	    && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
Packit Service af52df
	/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
Packit Service af52df
	    && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
Packit Service af52df
	/bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
Packit Service af52df
	    && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
Packit Service af52df
    m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
Packit Service af52df
	echo m68k-unknown-lynxos${UNAME_RELEASE}
Packit Service af52df
	exit ;;
Packit Service af52df
    mc68030:UNIX_System_V:4.*:*)
Packit Service af52df
	echo m68k-atari-sysv4
Packit Service af52df
	exit ;;
Packit Service af52df
    TSUNAMI:LynxOS:2.*:*)
Packit Service af52df
	echo sparc-unknown-lynxos${UNAME_RELEASE}
Packit Service af52df
	exit ;;
Packit Service af52df
    rs6000:LynxOS:2.*:*)
Packit Service af52df
	echo rs6000-unknown-lynxos${UNAME_RELEASE}
Packit Service af52df
	exit ;;
Packit Service af52df
    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
Packit Service af52df
	echo powerpc-unknown-lynxos${UNAME_RELEASE}
Packit Service af52df
	exit ;;
Packit Service af52df
    SM[BE]S:UNIX_SV:*:*)
Packit Service af52df
	echo mips-dde-sysv${UNAME_RELEASE}
Packit Service af52df
	exit ;;
Packit Service af52df
    RM*:ReliantUNIX-*:*:*)
Packit Service af52df
	echo mips-sni-sysv4
Packit Service af52df
	exit ;;
Packit Service af52df
    RM*:SINIX-*:*:*)
Packit Service af52df
	echo mips-sni-sysv4
Packit Service af52df
	exit ;;
Packit Service af52df
    *:SINIX-*:*:*)
Packit Service af52df
	if uname -p 2>/dev/null >/dev/null ; then
Packit Service af52df
		UNAME_MACHINE=`(uname -p) 2>/dev/null`
Packit Service af52df
		echo ${UNAME_MACHINE}-sni-sysv4
Packit Service af52df
	else
Packit Service af52df
		echo ns32k-sni-sysv
Packit Service af52df
	fi
Packit Service af52df
	exit ;;
Packit Service af52df
    PENTIUM:*:4.0*:*)	# Unisys `ClearPath HMP IX 4000' SVR4/MP effort
Packit Service af52df
			# says <Richard.M.Bartel@ccMail.Census.GOV>
Packit Service af52df
	echo i586-unisys-sysv4
Packit Service af52df
	exit ;;
Packit Service af52df
    *:UNIX_System_V:4*:FTX*)
Packit Service af52df
	# From Gerald Hewes <hewes@openmarket.com>.
Packit Service af52df
	# How about differentiating between stratus architectures? -djm
Packit Service af52df
	echo hppa1.1-stratus-sysv4
Packit Service af52df
	exit ;;
Packit Service af52df
    *:*:*:FTX*)
Packit Service af52df
	# From seanf@swdc.stratus.com.
Packit Service af52df
	echo i860-stratus-sysv4
Packit Service af52df
	exit ;;
Packit Service af52df
    i*86:VOS:*:*)
Packit Service af52df
	# From Paul.Green@stratus.com.
Packit Service af52df
	echo ${UNAME_MACHINE}-stratus-vos
Packit Service af52df
	exit ;;
Packit Service af52df
    *:VOS:*:*)
Packit Service af52df
	# From Paul.Green@stratus.com.
Packit Service af52df
	echo hppa1.1-stratus-vos
Packit Service af52df
	exit ;;
Packit Service af52df
    mc68*:A/UX:*:*)
Packit Service af52df
	echo m68k-apple-aux${UNAME_RELEASE}
Packit Service af52df
	exit ;;
Packit Service af52df
    news*:NEWS-OS:6*:*)
Packit Service af52df
	echo mips-sony-newsos6
Packit Service af52df
	exit ;;
Packit Service af52df
    R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
Packit Service af52df
	if [ -d /usr/nec ]; then
Packit Service af52df
		echo mips-nec-sysv${UNAME_RELEASE}
Packit Service af52df
	else
Packit Service af52df
		echo mips-unknown-sysv${UNAME_RELEASE}
Packit Service af52df
	fi
Packit Service af52df
	exit ;;
Packit Service af52df
    BeBox:BeOS:*:*)	# BeOS running on hardware made by Be, PPC only.
Packit Service af52df
	echo powerpc-be-beos
Packit Service af52df
	exit ;;
Packit Service af52df
    BeMac:BeOS:*:*)	# BeOS running on Mac or Mac clone, PPC only.
Packit Service af52df
	echo powerpc-apple-beos
Packit Service af52df
	exit ;;
Packit Service af52df
    BePC:BeOS:*:*)	# BeOS running on Intel PC compatible.
Packit Service af52df
	echo i586-pc-beos
Packit Service af52df
	exit ;;
Packit Service af52df
    BePC:Haiku:*:*)	# Haiku running on Intel PC compatible.
Packit Service af52df
	echo i586-pc-haiku
Packit Service af52df
	exit ;;
Packit Service af52df
    x86_64:Haiku:*:*)
Packit Service af52df
	echo x86_64-unknown-haiku
Packit Service af52df
	exit ;;
Packit Service af52df
    SX-4:SUPER-UX:*:*)
Packit Service af52df
	echo sx4-nec-superux${UNAME_RELEASE}
Packit Service af52df
	exit ;;
Packit Service af52df
    SX-5:SUPER-UX:*:*)
Packit Service af52df
	echo sx5-nec-superux${UNAME_RELEASE}
Packit Service af52df
	exit ;;
Packit Service af52df
    SX-6:SUPER-UX:*:*)
Packit Service af52df
	echo sx6-nec-superux${UNAME_RELEASE}
Packit Service af52df
	exit ;;
Packit Service af52df
    SX-7:SUPER-UX:*:*)
Packit Service af52df
	echo sx7-nec-superux${UNAME_RELEASE}
Packit Service af52df
	exit ;;
Packit Service af52df
    SX-8:SUPER-UX:*:*)
Packit Service af52df
	echo sx8-nec-superux${UNAME_RELEASE}
Packit Service af52df
	exit ;;
Packit Service af52df
    SX-8R:SUPER-UX:*:*)
Packit Service af52df
	echo sx8r-nec-superux${UNAME_RELEASE}
Packit Service af52df
	exit ;;
Packit Service af52df
    Power*:Rhapsody:*:*)
Packit Service af52df
	echo powerpc-apple-rhapsody${UNAME_RELEASE}
Packit Service af52df
	exit ;;
Packit Service af52df
    *:Rhapsody:*:*)
Packit Service af52df
	echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
Packit Service af52df
	exit ;;
Packit Service af52df
    *:Darwin:*:*)
Packit Service af52df
	UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
Packit Service af52df
	eval $set_cc_for_build
Packit Service af52df
	if test "$UNAME_PROCESSOR" = unknown ; then
Packit Service af52df
	    UNAME_PROCESSOR=powerpc
Packit Service af52df
	fi
Packit Service af52df
	if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
Packit Service af52df
	    if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
Packit Service af52df
		(CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
Packit Service af52df
		grep IS_64BIT_ARCH >/dev/null
Packit Service af52df
	    then
Packit Service af52df
		case $UNAME_PROCESSOR in
Packit Service af52df
		    i386) UNAME_PROCESSOR=x86_64 ;;
Packit Service af52df
		    powerpc) UNAME_PROCESSOR=powerpc64 ;;
Packit Service af52df
		esac
Packit Service af52df
	    fi
Packit Service af52df
	fi
Packit Service af52df
	echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
Packit Service af52df
	exit ;;
Packit Service af52df
    *:procnto*:*:* | *:QNX:[0123456789]*:*)
Packit Service af52df
	UNAME_PROCESSOR=`uname -p`
Packit Service af52df
	if test "$UNAME_PROCESSOR" = "x86"; then
Packit Service af52df
		UNAME_PROCESSOR=i386
Packit Service af52df
		UNAME_MACHINE=pc
Packit Service af52df
	fi
Packit Service af52df
	echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
Packit Service af52df
	exit ;;
Packit Service af52df
    *:QNX:*:4*)
Packit Service af52df
	echo i386-pc-qnx
Packit Service af52df
	exit ;;
Packit Service af52df
    NEO-?:NONSTOP_KERNEL:*:*)
Packit Service af52df
	echo neo-tandem-nsk${UNAME_RELEASE}
Packit Service af52df
	exit ;;
Packit Service af52df
    NSE-*:NONSTOP_KERNEL:*:*)
Packit Service af52df
	echo nse-tandem-nsk${UNAME_RELEASE}
Packit Service af52df
	exit ;;
Packit Service af52df
    NSR-?:NONSTOP_KERNEL:*:*)
Packit Service af52df
	echo nsr-tandem-nsk${UNAME_RELEASE}
Packit Service af52df
	exit ;;
Packit Service af52df
    *:NonStop-UX:*:*)
Packit Service af52df
	echo mips-compaq-nonstopux
Packit Service af52df
	exit ;;
Packit Service af52df
    BS2000:POSIX*:*:*)
Packit Service af52df
	echo bs2000-siemens-sysv
Packit Service af52df
	exit ;;
Packit Service af52df
    DS/*:UNIX_System_V:*:*)
Packit Service af52df
	echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
Packit Service af52df
	exit ;;
Packit Service af52df
    *:Plan9:*:*)
Packit Service af52df
	# "uname -m" is not consistent, so use $cputype instead. 386
Packit Service af52df
	# is converted to i386 for consistency with other x86
Packit Service af52df
	# operating systems.
Packit Service af52df
	if test "$cputype" = "386"; then
Packit Service af52df
	    UNAME_MACHINE=i386
Packit Service af52df
	else
Packit Service af52df
	    UNAME_MACHINE="$cputype"
Packit Service af52df
	fi
Packit Service af52df
	echo ${UNAME_MACHINE}-unknown-plan9
Packit Service af52df
	exit ;;
Packit Service af52df
    *:TOPS-10:*:*)
Packit Service af52df
	echo pdp10-unknown-tops10
Packit Service af52df
	exit ;;
Packit Service af52df
    *:TENEX:*:*)
Packit Service af52df
	echo pdp10-unknown-tenex
Packit Service af52df
	exit ;;
Packit Service af52df
    KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
Packit Service af52df
	echo pdp10-dec-tops20
Packit Service af52df
	exit ;;
Packit Service af52df
    XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
Packit Service af52df
	echo pdp10-xkl-tops20
Packit Service af52df
	exit ;;
Packit Service af52df
    *:TOPS-20:*:*)
Packit Service af52df
	echo pdp10-unknown-tops20
Packit Service af52df
	exit ;;
Packit Service af52df
    *:ITS:*:*)
Packit Service af52df
	echo pdp10-unknown-its
Packit Service af52df
	exit ;;
Packit Service af52df
    SEI:*:*:SEIUX)
Packit Service af52df
	echo mips-sei-seiux${UNAME_RELEASE}
Packit Service af52df
	exit ;;
Packit Service af52df
    *:DragonFly:*:*)
Packit Service af52df
	echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
Packit Service af52df
	exit ;;
Packit Service af52df
    *:*VMS:*:*)
Packit Service af52df
	UNAME_MACHINE=`(uname -p) 2>/dev/null`
Packit Service af52df
	case "${UNAME_MACHINE}" in
Packit Service af52df
	    A*) echo alpha-dec-vms ; exit ;;
Packit Service af52df
	    I*) echo ia64-dec-vms ; exit ;;
Packit Service af52df
	    V*) echo vax-dec-vms ; exit ;;
Packit Service af52df
	esac ;;
Packit Service af52df
    *:XENIX:*:SysV)
Packit Service af52df
	echo i386-pc-xenix
Packit Service af52df
	exit ;;
Packit Service af52df
    i*86:skyos:*:*)
Packit Service af52df
	echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
Packit Service af52df
	exit ;;
Packit Service af52df
    i*86:rdos:*:*)
Packit Service af52df
	echo ${UNAME_MACHINE}-pc-rdos
Packit Service af52df
	exit ;;
Packit Service af52df
    i*86:AROS:*:*)
Packit Service af52df
	echo ${UNAME_MACHINE}-pc-aros
Packit Service af52df
	exit ;;
Packit Service af52df
    x86_64:VMkernel:*:*)
Packit Service af52df
	echo ${UNAME_MACHINE}-unknown-esx
Packit Service af52df
	exit ;;
Packit Service af52df
esac
Packit Service af52df
Packit Service af52df
eval $set_cc_for_build
Packit Service af52df
cat >$dummy.c <
Packit Service af52df
#ifdef _SEQUENT_
Packit Service af52df
# include <sys/types.h>
Packit Service af52df
# include <sys/utsname.h>
Packit Service af52df
#endif
Packit Service af52df
main ()
Packit Service af52df
{
Packit Service af52df
#if defined (sony)
Packit Service af52df
#if defined (MIPSEB)
Packit Service af52df
  /* BFD wants "bsd" instead of "newsos".  Perhaps BFD should be changed,
Packit Service af52df
     I don't know....  */
Packit Service af52df
  printf ("mips-sony-bsd\n"); exit (0);
Packit Service af52df
#else
Packit Service af52df
#include <sys/param.h>
Packit Service af52df
  printf ("m68k-sony-newsos%s\n",
Packit Service af52df
#ifdef NEWSOS4
Packit Service af52df
	"4"
Packit Service af52df
#else
Packit Service af52df
	""
Packit Service af52df
#endif
Packit Service af52df
	); exit (0);
Packit Service af52df
#endif
Packit Service af52df
#endif
Packit Service af52df
Packit Service af52df
#if defined (__arm) && defined (__acorn) && defined (__unix)
Packit Service af52df
  printf ("arm-acorn-riscix\n"); exit (0);
Packit Service af52df
#endif
Packit Service af52df
Packit Service af52df
#if defined (hp300) && !defined (hpux)
Packit Service af52df
  printf ("m68k-hp-bsd\n"); exit (0);
Packit Service af52df
#endif
Packit Service af52df
Packit Service af52df
#if defined (NeXT)
Packit Service af52df
#if !defined (__ARCHITECTURE__)
Packit Service af52df
#define __ARCHITECTURE__ "m68k"
Packit Service af52df
#endif
Packit Service af52df
  int version;
Packit Service af52df
  version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
Packit Service af52df
  if (version < 4)
Packit Service af52df
    printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
Packit Service af52df
  else
Packit Service af52df
    printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
Packit Service af52df
  exit (0);
Packit Service af52df
#endif
Packit Service af52df
Packit Service af52df
#if defined (MULTIMAX) || defined (n16)
Packit Service af52df
#if defined (UMAXV)
Packit Service af52df
  printf ("ns32k-encore-sysv\n"); exit (0);
Packit Service af52df
#else
Packit Service af52df
#if defined (CMU)
Packit Service af52df
  printf ("ns32k-encore-mach\n"); exit (0);
Packit Service af52df
#else
Packit Service af52df
  printf ("ns32k-encore-bsd\n"); exit (0);
Packit Service af52df
#endif
Packit Service af52df
#endif
Packit Service af52df
#endif
Packit Service af52df
Packit Service af52df
#if defined (__386BSD__)
Packit Service af52df
  printf ("i386-pc-bsd\n"); exit (0);
Packit Service af52df
#endif
Packit Service af52df
Packit Service af52df
#if defined (sequent)
Packit Service af52df
#if defined (i386)
Packit Service af52df
  printf ("i386-sequent-dynix\n"); exit (0);
Packit Service af52df
#endif
Packit Service af52df
#if defined (ns32000)
Packit Service af52df
  printf ("ns32k-sequent-dynix\n"); exit (0);
Packit Service af52df
#endif
Packit Service af52df
#endif
Packit Service af52df
Packit Service af52df
#if defined (_SEQUENT_)
Packit Service af52df
    struct utsname un;
Packit Service af52df
Packit Service af52df
    uname(&un;;
Packit Service af52df
Packit Service af52df
    if (strncmp(un.version, "V2", 2) == 0) {
Packit Service af52df
	printf ("i386-sequent-ptx2\n"); exit (0);
Packit Service af52df
    }
Packit Service af52df
    if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
Packit Service af52df
	printf ("i386-sequent-ptx1\n"); exit (0);
Packit Service af52df
    }
Packit Service af52df
    printf ("i386-sequent-ptx\n"); exit (0);
Packit Service af52df
Packit Service af52df
#endif
Packit Service af52df
Packit Service af52df
#if defined (vax)
Packit Service af52df
# if !defined (ultrix)
Packit Service af52df
#  include <sys/param.h>
Packit Service af52df
#  if defined (BSD)
Packit Service af52df
#   if BSD == 43
Packit Service af52df
      printf ("vax-dec-bsd4.3\n"); exit (0);
Packit Service af52df
#   else
Packit Service af52df
#    if BSD == 199006
Packit Service af52df
      printf ("vax-dec-bsd4.3reno\n"); exit (0);
Packit Service af52df
#    else
Packit Service af52df
      printf ("vax-dec-bsd\n"); exit (0);
Packit Service af52df
#    endif
Packit Service af52df
#   endif
Packit Service af52df
#  else
Packit Service af52df
    printf ("vax-dec-bsd\n"); exit (0);
Packit Service af52df
#  endif
Packit Service af52df
# else
Packit Service af52df
    printf ("vax-dec-ultrix\n"); exit (0);
Packit Service af52df
# endif
Packit Service af52df
#endif
Packit Service af52df
Packit Service af52df
#if defined (alliant) && defined (i860)
Packit Service af52df
  printf ("i860-alliant-bsd\n"); exit (0);
Packit Service af52df
#endif
Packit Service af52df
Packit Service af52df
  exit (1);
Packit Service af52df
}
Packit Service af52df
EOF
Packit Service af52df
Packit Service af52df
$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
Packit Service af52df
	{ echo "$SYSTEM_NAME"; exit; }
Packit Service af52df
Packit Service af52df
# Apollos put the system type in the environment.
Packit Service af52df
Packit Service af52df
test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
Packit Service af52df
Packit Service af52df
# Convex versions that predate uname can use getsysinfo(1)
Packit Service af52df
Packit Service af52df
if [ -x /usr/convex/getsysinfo ]
Packit Service af52df
then
Packit Service af52df
    case `getsysinfo -f cpu_type` in
Packit Service af52df
    c1*)
Packit Service af52df
	echo c1-convex-bsd
Packit Service af52df
	exit ;;
Packit Service af52df
    c2*)
Packit Service af52df
	if getsysinfo -f scalar_acc
Packit Service af52df
	then echo c32-convex-bsd
Packit Service af52df
	else echo c2-convex-bsd
Packit Service af52df
	fi
Packit Service af52df
	exit ;;
Packit Service af52df
    c34*)
Packit Service af52df
	echo c34-convex-bsd
Packit Service af52df
	exit ;;
Packit Service af52df
    c38*)
Packit Service af52df
	echo c38-convex-bsd
Packit Service af52df
	exit ;;
Packit Service af52df
    c4*)
Packit Service af52df
	echo c4-convex-bsd
Packit Service af52df
	exit ;;
Packit Service af52df
    esac
Packit Service af52df
fi
Packit Service af52df
Packit Service af52df
cat >&2 <
Packit Service af52df
$0: unable to guess system type
Packit Service af52df
Packit Service af52df
This script, last modified $timestamp, has failed to recognize
Packit Service af52df
the operating system you are using. It is advised that you
Packit Service af52df
download the most up to date version of the config scripts from
Packit Service af52df
Packit Service af52df
  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
Packit Service af52df
and
Packit Service af52df
  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
Packit Service af52df
Packit Service af52df
If the version you run ($0) is already up to date, please
Packit Service af52df
send the following data and any information you think might be
Packit Service af52df
pertinent to <config-patches@gnu.org> in order to provide the needed
Packit Service af52df
information to handle your system.
Packit Service af52df
Packit Service af52df
config.guess timestamp = $timestamp
Packit Service af52df
Packit Service af52df
uname -m = `(uname -m) 2>/dev/null || echo unknown`
Packit Service af52df
uname -r = `(uname -r) 2>/dev/null || echo unknown`
Packit Service af52df
uname -s = `(uname -s) 2>/dev/null || echo unknown`
Packit Service af52df
uname -v = `(uname -v) 2>/dev/null || echo unknown`
Packit Service af52df
Packit Service af52df
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
Packit Service af52df
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null`
Packit Service af52df
Packit Service af52df
hostinfo               = `(hostinfo) 2>/dev/null`
Packit Service af52df
/bin/universe          = `(/bin/universe) 2>/dev/null`
Packit Service af52df
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null`
Packit Service af52df
/bin/arch              = `(/bin/arch) 2>/dev/null`
Packit Service af52df
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null`
Packit Service af52df
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
Packit Service af52df
Packit Service af52df
UNAME_MACHINE = ${UNAME_MACHINE}
Packit Service af52df
UNAME_RELEASE = ${UNAME_RELEASE}
Packit Service af52df
UNAME_SYSTEM  = ${UNAME_SYSTEM}
Packit Service af52df
UNAME_VERSION = ${UNAME_VERSION}
Packit Service af52df
EOF
Packit Service af52df
Packit Service af52df
exit 1
Packit Service af52df
Packit Service af52df
# Local variables:
Packit Service af52df
# eval: (add-hook 'write-file-hooks 'time-stamp)
Packit Service af52df
# time-stamp-start: "timestamp='"
Packit Service af52df
# time-stamp-format: "%:y-%02m-%02d"
Packit Service af52df
# time-stamp-end: "'"
Packit Service af52df
# End: