Blame build-aux/config.guess

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