head	1.10;
access;
symbols
	libarchive-3-8-7:1.1.1.11
	libarchive-3-8-6:1.1.1.11
	pkgsrc-2026Q1:1.10.0.4
	pkgsrc-2026Q1-base:1.10
	libarchive-3-8-5:1.1.1.11
	libarchive-3-8-4:1.1.1.11
	pkgsrc-2025Q4:1.10.0.2
	pkgsrc-2025Q4-base:1.10
	libarchive-3-8-3:1.1.1.11
	libarchive-3-8-2:1.1.1.10
	pkgsrc-2025Q3:1.9.0.14
	pkgsrc-2025Q3-base:1.9
	libarchive-3-8-1:1.1.1.10
	pkgsrc-2025Q2:1.9.0.12
	pkgsrc-2025Q2-base:1.9
	libarchive-3-8-0:1.1.1.10
	libarchive-3-7-9:1.1.1.10
	pkgsrc-2025Q1:1.9.0.10
	pkgsrc-2025Q1-base:1.9
	pkgsrc-2024Q4:1.9.0.8
	pkgsrc-2024Q4-base:1.9
	libarchive-3-7-7:1.1.1.10
	pkgsrc-2024Q3:1.9.0.6
	pkgsrc-2024Q3-base:1.9
	libarchive-3-7-5:1.1.1.10
	pkgsrc-2024Q2:1.9.0.4
	pkgsrc-2024Q2-base:1.9
	libarchive-3-7-4:1.1.1.10
	libarchive-3-7-3:1.1.1.10
	pkgsrc-2024Q1:1.9.0.2
	pkgsrc-2024Q1-base:1.9
	libarchive-3-7-2:1.1.1.10
	pkgsrc-2023Q4:1.8.0.30
	pkgsrc-2023Q4-base:1.8
	pkgsrc-2023Q3:1.8.0.28
	pkgsrc-2023Q3-base:1.8
	pkgsrc-2023Q2:1.8.0.26
	pkgsrc-2023Q2-base:1.8
	pkgsrc-2023Q1:1.8.0.24
	pkgsrc-2023Q1-base:1.8
	pkgsrc-2022Q4:1.8.0.22
	pkgsrc-2022Q4-base:1.8
	pkgsrc-2022Q3:1.8.0.20
	pkgsrc-2022Q3-base:1.8
	pkgsrc-2022Q2:1.8.0.18
	pkgsrc-2022Q2-base:1.8
	pkgsrc-2022Q1:1.8.0.16
	pkgsrc-2022Q1-base:1.8
	pkgsrc-2021Q4:1.8.0.14
	pkgsrc-2021Q4-base:1.8
	pkgsrc-2021Q3:1.8.0.12
	pkgsrc-2021Q3-base:1.8
	pkgsrc-2021Q2:1.8.0.10
	pkgsrc-2021Q2-base:1.8
	pkgsrc-2021Q1:1.8.0.8
	pkgsrc-2021Q1-base:1.8
	pkgsrc-2020Q4:1.8.0.6
	pkgsrc-2020Q4-base:1.8
	pkgsrc-2020Q3:1.8.0.4
	pkgsrc-2020Q3-base:1.8
	pkgsrc-2020Q2:1.8.0.2
	pkgsrc-2020Q2-base:1.8
	pkgsrc-2020Q1:1.7.0.4
	pkgsrc-2020Q1-base:1.7
	pkgsrc-2019Q4:1.7.0.6
	pkgsrc-2019Q4-base:1.7
	pkgsrc-2019Q3:1.7.0.2
	pkgsrc-2019Q3-base:1.7
	libarchive-3-4-0:1.1.1.9
	libarchive-3-3-3:1.1.1.8
	pkgsrc-2019Q2:1.6.0.2
	pkgsrc-2019Q2-base:1.6
	pkgsrc-2019Q1:1.5.0.16
	pkgsrc-2019Q1-base:1.5
	pkgsrc-2018Q4:1.5.0.14
	pkgsrc-2018Q4-base:1.5
	pkgsrc-2018Q3:1.5.0.12
	pkgsrc-2018Q3-base:1.5
	pkgsrc-2018Q2:1.5.0.10
	pkgsrc-2018Q2-base:1.5
	pkgsrc-2018Q1:1.5.0.8
	pkgsrc-2018Q1-base:1.5
	pkgsrc-2017Q4:1.5.0.6
	pkgsrc-2017Q4-base:1.5
	pkgsrc-2017Q3:1.5.0.4
	pkgsrc-2017Q3-base:1.5
	libarchive-3-3-2:1.1.1.7
	pkgsrc-2017Q2:1.4.0.4
	pkgsrc-2017Q2-base:1.4
	pkgsrc-2017Q1:1.4.0.2
	pkgsrc-2017Q1-base:1.4
	libarchive-3-3-1:1.1.1.6
	pkgsrc-2016Q4:1.3.0.6
	pkgsrc-2016Q4-base:1.3
	pkgsrc-2016Q3:1.3.0.4
	pkgsrc-2016Q3-base:1.3
	pkgsrc-2016Q2:1.3.0.2
	pkgsrc-2016Q2-base:1.3
	libarchive-3-2-1:1.1.1.5
	pkgsrc-2016Q1:1.2.0.10
	pkgsrc-2016Q1-base:1.2
	pkgsrc-2015Q4:1.2.0.8
	pkgsrc-2015Q4-base:1.2
	pkgsrc-2015Q3:1.2.0.6
	pkgsrc-2015Q3-base:1.2
	pkgsrc-2015Q2:1.2.0.4
	pkgsrc-2015Q2-base:1.2
	pkgsrc-2015Q1:1.2.0.2
	pkgsrc-2015Q1-base:1.2
	pkgsrc-2014Q4:1.1.1.4.0.36
	pkgsrc-2014Q4-base:1.1.1.4
	pkgsrc-2014Q3:1.1.1.4.0.34
	pkgsrc-2014Q3-base:1.1.1.4
	pkgsrc-2014Q2:1.1.1.4.0.32
	pkgsrc-2014Q2-base:1.1.1.4
	pkgsrc-2014Q1:1.1.1.4.0.30
	pkgsrc-2014Q1-base:1.1.1.4
	pkgsrc-2013Q4:1.1.1.4.0.28
	pkgsrc-2013Q4-base:1.1.1.4
	pkgsrc-2013Q3:1.1.1.4.0.26
	pkgsrc-2013Q3-base:1.1.1.4
	pkgsrc-2013Q2:1.1.1.4.0.24
	pkgsrc-2013Q2-base:1.1.1.4
	pkgsrc-2013Q1:1.1.1.4.0.22
	pkgsrc-2013Q1-base:1.1.1.4
	pkgsrc-2012Q4:1.1.1.4.0.20
	pkgsrc-2012Q4-base:1.1.1.4
	pkgsrc-2012Q3:1.1.1.4.0.18
	pkgsrc-2012Q3-base:1.1.1.4
	pkgsrc-2012Q2:1.1.1.4.0.16
	pkgsrc-2012Q2-base:1.1.1.4
	pkgsrc-2012Q1:1.1.1.4.0.14
	pkgsrc-2012Q1-base:1.1.1.4
	pkgsrc-2011Q4:1.1.1.4.0.12
	pkgsrc-2011Q4-base:1.1.1.4
	pkgsrc-2011Q3:1.1.1.4.0.10
	pkgsrc-2011Q3-base:1.1.1.4
	pkgsrc-2011Q2:1.1.1.4.0.8
	pkgsrc-2011Q2-base:1.1.1.4
	pkgsrc-2011Q1:1.1.1.4.0.6
	pkgsrc-2011Q1-base:1.1.1.4
	pkgsrc-2010Q4:1.1.1.4.0.4
	pkgsrc-2010Q4-base:1.1.1.4
	pkgsrc-2010Q3:1.1.1.4.0.2
	pkgsrc-2010Q3-base:1.1.1.4
	libarchive-2-8-4:1.1.1.4
	pkgsrc-2010Q2:1.1.1.3.0.4
	pkgsrc-2010Q2-base:1.1.1.3
	pkgsrc-2010Q1:1.1.1.3.0.2
	pkgsrc-2010Q1-base:1.1.1.3
	libarchive-2-8-3:1.1.1.3
	libarchive-2-8-2:1.1.1.2
	libarchive-2-8-0:1.1.1.1
	KIENTZLE:1.1.1;
locks; strict;
comment	@# @;


1.10
date	2025.11.20.06.08.24;	author adam;	state Exp;
branches;
next	1.9;
commitid	kB7NF5kSlmUaVfjG;

1.9
date	2024.01.18.18.00.12;	author adam;	state Exp;
branches;
next	1.8;
commitid	hNXpsHx3SuHqsXUE;

1.8
date	2020.05.26.09.16.39;	author nia;	state Exp;
branches;
next	1.7;
commitid	nNhsdZACz3PjmJ9C;

1.7
date	2019.09.22.09.55.06;	author joerg;	state Exp;
branches;
next	1.6;
commitid	FdPvRjF4OzwBwZDB;

1.6
date	2019.04.10.08.24.04;	author adam;	state Exp;
branches;
next	1.5;
commitid	LnliQ9ieqYkikMiB;

1.5
date	2017.08.01.22.26.22;	author joerg;	state Exp;
branches;
next	1.4;
commitid	32clTfkmVE8bPy1A;

1.4
date	2017.02.25.21.11.18;	author joerg;	state Exp;
branches;
next	1.3;
commitid	rW8QfCWrsCO1snHz;

1.3
date	2016.06.20.17.24.56;	author joerg;	state Exp;
branches;
next	1.2;
commitid	ArUvympBjfBseebz;

1.2
date	2015.01.17.12.44.48;	author adam;	state Exp;
branches;
next	1.1;
commitid	yy7e1hLrfmA2pn6y;

1.1
date	2010.02.20.03.48.48;	author joerg;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2010.02.20.03.48.48;	author joerg;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	2010.03.14.17.56.27;	author joerg;	state Exp;
branches;
next	1.1.1.3;

1.1.1.3
date	2010.03.16.17.05.43;	author joerg;	state Exp;
branches;
next	1.1.1.4;

1.1.1.4
date	2010.07.09.11.53.07;	author joerg;	state Exp;
branches;
next	1.1.1.5;

1.1.1.5
date	2016.06.20.17.11.38;	author joerg;	state Exp;
branches;
next	1.1.1.6;
commitid	rRgm3BqbmbI8aebz;

1.1.1.6
date	2017.02.25.20.55.35;	author joerg;	state Exp;
branches;
next	1.1.1.7;
commitid	ReqPI0ibLYjdmnHz;

1.1.1.7
date	2017.08.01.22.21.11;	author joerg;	state Exp;
branches;
next	1.1.1.8;
commitid	XQwPAFJku336Ny1A;

1.1.1.8
date	2019.09.22.09.47.03;	author joerg;	state Exp;
branches;
next	1.1.1.9;
commitid	N0KxAXOYyULduZDB;

1.1.1.9
date	2019.09.22.09.51.33;	author joerg;	state Exp;
branches;
next	1.1.1.10;
commitid	5kDbfPbiV3INvZDB;

1.1.1.10
date	2024.01.18.17.37.46;	author adam;	state Exp;
branches;
next	1.1.1.11;
commitid	zDULEPUODGjTkXUE;

1.1.1.11
date	2025.11.20.05.51.45;	author adam;	state Exp;
branches;
next	;
commitid	LC6NMc2P0QpnPfjG;


desc
@@


1.10
log
@libarchive: updated to 3.8.3

Libarchive 3.8.3 is a bugfix and security release.

Security fixes:

lib: Create temporary files in the target directory
lha: Fix for an out-of-bounds buffer overrun when using p[H_LEVEL_OFFSET]
7-zip: Fix a buffer overrun when reading truncated 7zip headers

Notable bugxies:

lz4 and zstd: Support both lz4 and zstd data with leading skippable frames
@
text
@#! /bin/sh
# Attempt to guess a canonical system name.
#   Copyright 1992-2024 Free Software Foundation, Inc.

# shellcheck disable=SC2006,SC2268 # see below for rationale

timestamp='2024-07-27'

# This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, see <https://www.gnu.org/licenses/>.
#
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a
# configuration script generated by Autoconf, you may include it under
# the same distribution terms that you use for the rest of that
# program.  This Exception is an additional permission under section 7
# of the GNU General Public License, version 3 ("GPLv3").
#
# Originally written by Per Bothner; maintained since 2000 by Ben Elliston.
#
# You can get the latest version of this script from:
# https://git.savannah.gnu.org/cgit/config.git/plain/config.guess
#
# Please send patches to <config-patches@@gnu.org>.


# The "shellcheck disable" line above the timestamp inhibits complaints
# about features and limitations of the classic Bourne shell that were
# superseded or lifted in POSIX.  However, this script identifies a wide
# variety of pre-POSIX systems that do not have POSIX shells at all, and
# even some reasonably current systems (Solaris 10 as case-in-point) still
# have a pre-POSIX /bin/sh.


me=`echo "$0" | sed -e 's,.*/,,'`

usage="\
Usage: $0 [OPTION]

Output the configuration name of the system '$me' is run on.

Options:
  -h, --help         print this help, then exit
  -t, --time-stamp   print date of last modification, then exit
  -v, --version      print version number, then exit

Report bugs and patches to <config-patches@@gnu.org>."

version="\
GNU config.guess ($timestamp)

Originally written by Per Bothner.
Copyright 1992-2024 Free Software Foundation, Inc.

This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."

help="
Try '$me --help' for more information."

# Parse command line
while test $# -gt 0 ; do
  case $1 in
    --time-stamp | --time* | -t )
       echo "$timestamp" ; exit ;;
    --version | -v )
       echo "$version" ; exit ;;
    --help | --h* | -h )
       echo "$usage"; exit ;;
    -- )     # Stop option processing
       shift; break ;;
    - )	# Use stdin as input.
       break ;;
    -* )
       echo "$me: invalid option $1$help" >&2
       exit 1 ;;
    * )
       break ;;
  esac
done

if test $# != 0; then
  echo "$me: too many arguments$help" >&2
  exit 1
fi

# Just in case it came from the environment.
GUESS=

# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
# compiler to aid in system detection is discouraged as it requires
# temporary files to be created and, as you can see below, it is a
# headache to deal with in a portable fashion.

# Historically, 'CC_FOR_BUILD' used to be named 'HOST_CC'. We still
# use 'HOST_CC' if defined, but it is deprecated.

# Portable tmp directory creation inspired by the Autoconf team.

tmp=
# shellcheck disable=SC2172
trap 'test -z "$tmp" || rm -fr "$tmp"' 0 1 2 13 15

set_cc_for_build() {
    # prevent multiple calls if $tmp is already set
    test "$tmp" && return 0
    : "${TMPDIR=/tmp}"
    # shellcheck disable=SC2039,SC3028
    { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
	{ test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir "$tmp" 2>/dev/null) ; } ||
	{ tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir "$tmp" 2>/dev/null) && echo "Warning: creating insecure temp directory" >&2 ; } ||
	{ echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; }
    dummy=$tmp/dummy
    case ${CC_FOR_BUILD-},${HOST_CC-},${CC-} in
	,,)    echo "int x;" > "$dummy.c"
	       for driver in cc gcc c17 c99 c89 ; do
		   if ($driver -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then
		       CC_FOR_BUILD=$driver
		       break
		   fi
	       done
	       if test x"$CC_FOR_BUILD" = x ; then
		   CC_FOR_BUILD=no_compiler_found
	       fi
	       ;;
	,,*)   CC_FOR_BUILD=$CC ;;
	,*,*)  CC_FOR_BUILD=$HOST_CC ;;
    esac
}

# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
# (ghazi@@noc.rutgers.edu 1994-08-24)
if test -f /.attbin/uname ; then
	PATH=$PATH:/.attbin ; export PATH
fi

UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown

case $UNAME_SYSTEM in
Linux|GNU|GNU/*)
	LIBC=unknown

	set_cc_for_build
	cat <<-EOF > "$dummy.c"
	#if defined(__ANDROID__)
	LIBC=android
	#else
	#include <features.h>
	#if defined(__UCLIBC__)
	LIBC=uclibc
	#elif defined(__dietlibc__)
	LIBC=dietlibc
	#elif defined(__GLIBC__)
	LIBC=gnu
	#elif defined(__LLVM_LIBC__)
	LIBC=llvm
	#else
	#include <stdarg.h>
	/* First heuristic to detect musl libc.  */
	#ifdef __DEFINED_va_list
	LIBC=musl
	#endif
	#endif
	#endif
	EOF
	cc_set_libc=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`
	eval "$cc_set_libc"

	# Second heuristic to detect musl libc.
	if [ "$LIBC" = unknown ] &&
	   command -v ldd >/dev/null &&
	   ldd --version 2>&1 | grep -q ^musl; then
		LIBC=musl
	fi

	# If the system lacks a compiler, then just pick glibc.
	# We could probably try harder.
	if [ "$LIBC" = unknown ]; then
		LIBC=gnu
	fi
	;;
esac

# Note: order is significant - the case branches are not exclusive.

case $UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION in
    *:NetBSD:*:*)
	# NetBSD (nbsd) targets should (where applicable) match one or
	# more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
	# *-*-netbsdecoff* and *-*-netbsd*.  For targets that recently
	# switched to ELF, *-*-netbsd* would select the old
	# object file format.  This provides both forward
	# compatibility and a consistent mechanism for selecting the
	# object file format.
	#
	# Note: NetBSD doesn't particularly care about the vendor
	# portion of the name.  We always set it to "unknown".
	UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \
	    /sbin/sysctl -n hw.machine_arch 2>/dev/null || \
	    /usr/sbin/sysctl -n hw.machine_arch 2>/dev/null || \
	    echo unknown)`
	case $UNAME_MACHINE_ARCH in
	    aarch64eb) machine=aarch64_be-unknown ;;
	    armeb) machine=armeb-unknown ;;
	    arm*) machine=arm-unknown ;;
	    sh3el) machine=shl-unknown ;;
	    sh3eb) machine=sh-unknown ;;
	    sh5el) machine=sh5le-unknown ;;
	    earmv*)
		arch=`echo "$UNAME_MACHINE_ARCH" | sed -e 's,^e\(armv[0-9]\).*$,\1,'`
		endian=`echo "$UNAME_MACHINE_ARCH" | sed -ne 's,^.*\(eb\)$,\1,p'`
		machine=${arch}${endian}-unknown
		;;
	    *) machine=$UNAME_MACHINE_ARCH-unknown ;;
	esac
	# The Operating System including object format, if it has switched
	# to ELF recently (or will in the future) and ABI.
	case $UNAME_MACHINE_ARCH in
	    earm*)
		os=netbsdelf
		;;
	    arm*|i386|m68k|ns32k|sh3*|sparc|vax)
		set_cc_for_build
		if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
			| grep -q __ELF__
		then
		    # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
		    # Return netbsd for either.  FIX?
		    os=netbsd
		else
		    os=netbsdelf
		fi
		;;
	    *)
		os=netbsd
		;;
	esac
	# Determine ABI tags.
	case $UNAME_MACHINE_ARCH in
	    earm*)
		expr='s/^earmv[0-9]/-eabi/;s/eb$//'
		abi=`echo "$UNAME_MACHINE_ARCH" | sed -e "$expr"`
		;;
	esac
	# The OS release
	# Debian GNU/NetBSD machines have a different userland, and
	# thus, need a distinct triplet. However, they do not need
	# kernel version information, so it can be replaced with a
	# suitable tag, in the style of linux-gnu.
	case $UNAME_VERSION in
	    Debian*)
		release='-gnu'
		;;
	    *)
		release=`echo "$UNAME_RELEASE" | sed -e 's/[-_].*//' | cut -d. -f1,2`
		;;
	esac
	# Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
	# contains redundant information, the shorter form:
	# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
	GUESS=$machine-${os}${release}${abi-}
	;;
    *:Bitrig:*:*)
	UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
	GUESS=$UNAME_MACHINE_ARCH-unknown-bitrig$UNAME_RELEASE
	;;
    *:OpenBSD:*:*)
	UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
	GUESS=$UNAME_MACHINE_ARCH-unknown-openbsd$UNAME_RELEASE
	;;
    *:SecBSD:*:*)
	UNAME_MACHINE_ARCH=`arch | sed 's/SecBSD.//'`
	GUESS=$UNAME_MACHINE_ARCH-unknown-secbsd$UNAME_RELEASE
	;;
    *:LibertyBSD:*:*)
	UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'`
	GUESS=$UNAME_MACHINE_ARCH-unknown-libertybsd$UNAME_RELEASE
	;;
    *:MidnightBSD:*:*)
	GUESS=$UNAME_MACHINE-unknown-midnightbsd$UNAME_RELEASE
	;;
    *:ekkoBSD:*:*)
	GUESS=$UNAME_MACHINE-unknown-ekkobsd$UNAME_RELEASE
	;;
    *:SolidBSD:*:*)
	GUESS=$UNAME_MACHINE-unknown-solidbsd$UNAME_RELEASE
	;;
    *:OS108:*:*)
	GUESS=$UNAME_MACHINE-unknown-os108_$UNAME_RELEASE
	;;
    macppc:MirBSD:*:*)
	GUESS=powerpc-unknown-mirbsd$UNAME_RELEASE
	;;
    *:MirBSD:*:*)
	GUESS=$UNAME_MACHINE-unknown-mirbsd$UNAME_RELEASE
	;;
    *:Sortix:*:*)
	GUESS=$UNAME_MACHINE-unknown-sortix
	;;
    *:Twizzler:*:*)
	GUESS=$UNAME_MACHINE-unknown-twizzler
	;;
    *:Redox:*:*)
	GUESS=$UNAME_MACHINE-unknown-redox
	;;
    mips:OSF1:*.*)
	GUESS=mips-dec-osf1
	;;
    alpha:OSF1:*:*)
	# Reset EXIT trap before exiting to avoid spurious non-zero exit code.
	trap '' 0
	case $UNAME_RELEASE in
	*4.0)
		UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
		;;
	*5.*)
		UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
		;;
	esac
	# According to Compaq, /usr/sbin/psrinfo has been available on
	# OSF/1 and Tru64 systems produced since 1995.  I hope that
	# covers most systems running today.  This code pipes the CPU
	# types through head -n 1, so we only detect the type of CPU 0.
	ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^  The alpha \(.*\) processor.*$/\1/p' | head -n 1`
	case $ALPHA_CPU_TYPE in
	    "EV4 (21064)")
		UNAME_MACHINE=alpha ;;
	    "EV4.5 (21064)")
		UNAME_MACHINE=alpha ;;
	    "LCA4 (21066/21068)")
		UNAME_MACHINE=alpha ;;
	    "EV5 (21164)")
		UNAME_MACHINE=alphaev5 ;;
	    "EV5.6 (21164A)")
		UNAME_MACHINE=alphaev56 ;;
	    "EV5.6 (21164PC)")
		UNAME_MACHINE=alphapca56 ;;
	    "EV5.7 (21164PC)")
		UNAME_MACHINE=alphapca57 ;;
	    "EV6 (21264)")
		UNAME_MACHINE=alphaev6 ;;
	    "EV6.7 (21264A)")
		UNAME_MACHINE=alphaev67 ;;
	    "EV6.8CB (21264C)")
		UNAME_MACHINE=alphaev68 ;;
	    "EV6.8AL (21264B)")
		UNAME_MACHINE=alphaev68 ;;
	    "EV6.8CX (21264D)")
		UNAME_MACHINE=alphaev68 ;;
	    "EV6.9A (21264/EV69A)")
		UNAME_MACHINE=alphaev69 ;;
	    "EV7 (21364)")
		UNAME_MACHINE=alphaev7 ;;
	    "EV7.9 (21364A)")
		UNAME_MACHINE=alphaev79 ;;
	esac
	# A Pn.n version is a patched version.
	# A Vn.n version is a released version.
	# A Tn.n version is a released field test version.
	# A Xn.n version is an unreleased experimental baselevel.
	# 1.2 uses "1.2" for uname -r.
	OSF_REL=`echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
	GUESS=$UNAME_MACHINE-dec-osf$OSF_REL
	;;
    Amiga*:UNIX_System_V:4.0:*)
	GUESS=m68k-unknown-sysv4
	;;
    *:[Aa]miga[Oo][Ss]:*:*)
	GUESS=$UNAME_MACHINE-unknown-amigaos
	;;
    *:[Mm]orph[Oo][Ss]:*:*)
	GUESS=$UNAME_MACHINE-unknown-morphos
	;;
    *:OS/390:*:*)
	GUESS=i370-ibm-openedition
	;;
    *:z/VM:*:*)
	GUESS=s390-ibm-zvmoe
	;;
    *:OS400:*:*)
	GUESS=powerpc-ibm-os400
	;;
    arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
	GUESS=arm-acorn-riscix$UNAME_RELEASE
	;;
    arm*:riscos:*:*|arm*:RISCOS:*:*)
	GUESS=arm-unknown-riscos
	;;
    SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
	GUESS=hppa1.1-hitachi-hiuxmpp
	;;
    Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
	# akee@@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
	case `(/bin/universe) 2>/dev/null` in
	    att) GUESS=pyramid-pyramid-sysv3 ;;
	    *)   GUESS=pyramid-pyramid-bsd   ;;
	esac
	;;
    NILE*:*:*:dcosx)
	GUESS=pyramid-pyramid-svr4
	;;
    DRS?6000:unix:4.0:6*)
	GUESS=sparc-icl-nx6
	;;
    DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
	case `/usr/bin/uname -p` in
	    sparc) GUESS=sparc-icl-nx7 ;;
	esac
	;;
    s390x:SunOS:*:*)
	SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`
	GUESS=$UNAME_MACHINE-ibm-solaris2$SUN_REL
	;;
    sun4H:SunOS:5.*:*)
	SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`
	GUESS=sparc-hal-solaris2$SUN_REL
	;;
    sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
	SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`
	GUESS=sparc-sun-solaris2$SUN_REL
	;;
    i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
	GUESS=i386-pc-auroraux$UNAME_RELEASE
	;;
    i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
	set_cc_for_build
	SUN_ARCH=i386
	# If there is a compiler, see if it is configured for 64-bit objects.
	# Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
	# This test works for both compilers.
	if test "$CC_FOR_BUILD" != no_compiler_found; then
	    if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
		(CCOPTS="" $CC_FOR_BUILD -m64 -E - 2>/dev/null) | \
		grep IS_64BIT_ARCH >/dev/null
	    then
		SUN_ARCH=x86_64
	    fi
	fi
	SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`
	GUESS=$SUN_ARCH-pc-solaris2$SUN_REL
	;;
    sun4*:SunOS:6*:*)
	# According to config.sub, this is the proper way to canonicalize
	# SunOS6.  Hard to guess exactly what SunOS6 will be like, but
	# it's likely to be more like Solaris than SunOS4.
	SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`
	GUESS=sparc-sun-solaris3$SUN_REL
	;;
    sun4*:SunOS:*:*)
	case `/usr/bin/arch -k` in
	    Series*|S4*)
		UNAME_RELEASE=`uname -v`
		;;
	esac
	# Japanese Language versions have a version number like '4.1.3-JL'.
	SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/-/_/'`
	GUESS=sparc-sun-sunos$SUN_REL
	;;
    sun3*:SunOS:*:*)
	GUESS=m68k-sun-sunos$UNAME_RELEASE
	;;
    sun*:*:4.2BSD:*)
	UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
	test "x$UNAME_RELEASE" = x && UNAME_RELEASE=3
	case `/bin/arch` in
	    sun3)
		GUESS=m68k-sun-sunos$UNAME_RELEASE
		;;
	    sun4)
		GUESS=sparc-sun-sunos$UNAME_RELEASE
		;;
	esac
	;;
    aushp:SunOS:*:*)
	GUESS=sparc-auspex-sunos$UNAME_RELEASE
	;;
    # The situation for MiNT is a little confusing.  The machine name
    # can be virtually everything (everything which is not
    # "atarist" or "atariste" at least should have a processor
    # > m68000).  The system name ranges from "MiNT" over "FreeMiNT"
    # to the lowercase version "mint" (or "freemint").  Finally
    # the system name "TOS" denotes a system which is actually not
    # MiNT.  But MiNT is downward compatible to TOS, so this should
    # be no problem.
    atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
	GUESS=m68k-atari-mint$UNAME_RELEASE
	;;
    atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
	GUESS=m68k-atari-mint$UNAME_RELEASE
	;;
    *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
	GUESS=m68k-atari-mint$UNAME_RELEASE
	;;
    milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
	GUESS=m68k-milan-mint$UNAME_RELEASE
	;;
    hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
	GUESS=m68k-hades-mint$UNAME_RELEASE
	;;
    *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
	GUESS=m68k-unknown-mint$UNAME_RELEASE
	;;
    m68k:machten:*:*)
	GUESS=m68k-apple-machten$UNAME_RELEASE
	;;
    powerpc:machten:*:*)
	GUESS=powerpc-apple-machten$UNAME_RELEASE
	;;
    RISC*:Mach:*:*)
	GUESS=mips-dec-mach_bsd4.3
	;;
    RISC*:ULTRIX:*:*)
	GUESS=mips-dec-ultrix$UNAME_RELEASE
	;;
    VAX*:ULTRIX*:*:*)
	GUESS=vax-dec-ultrix$UNAME_RELEASE
	;;
    2020:CLIX:*:* | 2430:CLIX:*:*)
	GUESS=clipper-intergraph-clix$UNAME_RELEASE
	;;
    mips:*:*:UMIPS | mips:*:*:RISCos)
	set_cc_for_build
	sed 's/^	//' << EOF > "$dummy.c"
#ifdef __cplusplus
#include <stdio.h>  /* for printf() prototype */
	int main (int argc, char *argv[]) {
#else
	int main (argc, argv) int argc; char *argv[]; {
#endif
	#if defined (host_mips) && defined (MIPSEB)
	#if defined (SYSTYPE_SYSV)
	  printf ("mips-mips-riscos%ssysv\\n", argv[1]); exit (0);
	#endif
	#if defined (SYSTYPE_SVR4)
	  printf ("mips-mips-riscos%ssvr4\\n", argv[1]); exit (0);
	#endif
	#if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
	  printf ("mips-mips-riscos%sbsd\\n", argv[1]); exit (0);
	#endif
	#endif
	  exit (-1);
	}
EOF
	$CC_FOR_BUILD -o "$dummy" "$dummy.c" &&
	  dummyarg=`echo "$UNAME_RELEASE" | sed -n 's/\([0-9]*\).*/\1/p'` &&
	  SYSTEM_NAME=`"$dummy" "$dummyarg"` &&
	    { echo "$SYSTEM_NAME"; exit; }
	GUESS=mips-mips-riscos$UNAME_RELEASE
	;;
    Motorola:PowerMAX_OS:*:*)
	GUESS=powerpc-motorola-powermax
	;;
    Motorola:*:4.3:PL8-*)
	GUESS=powerpc-harris-powermax
	;;
    Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
	GUESS=powerpc-harris-powermax
	;;
    Night_Hawk:Power_UNIX:*:*)
	GUESS=powerpc-harris-powerunix
	;;
    m88k:CX/UX:7*:*)
	GUESS=m88k-harris-cxux7
	;;
    m88k:*:4*:R4*)
	GUESS=m88k-motorola-sysv4
	;;
    m88k:*:3*:R3*)
	GUESS=m88k-motorola-sysv3
	;;
    AViiON:dgux:*:*)
	# DG/UX returns AViiON for all architectures
	UNAME_PROCESSOR=`/usr/bin/uname -p`
	if test "$UNAME_PROCESSOR" = mc88100 || test "$UNAME_PROCESSOR" = mc88110
	then
	    if test "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx || \
	       test "$TARGET_BINARY_INTERFACE"x = x
	    then
		GUESS=m88k-dg-dgux$UNAME_RELEASE
	    else
		GUESS=m88k-dg-dguxbcs$UNAME_RELEASE
	    fi
	else
	    GUESS=i586-dg-dgux$UNAME_RELEASE
	fi
	;;
    M88*:DolphinOS:*:*)	# DolphinOS (SVR3)
	GUESS=m88k-dolphin-sysv3
	;;
    M88*:*:R3*:*)
	# Delta 88k system running SVR3
	GUESS=m88k-motorola-sysv3
	;;
    XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
	GUESS=m88k-tektronix-sysv3
	;;
    Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
	GUESS=m68k-tektronix-bsd
	;;
    *:IRIX*:*:*)
	IRIX_REL=`echo "$UNAME_RELEASE" | sed -e 's/-/_/g'`
	GUESS=mips-sgi-irix$IRIX_REL
	;;
    ????????:AIX?:[12].1:2)   # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
	GUESS=romp-ibm-aix    # uname -m gives an 8 hex-code CPU id
	;;                    # Note that: echo "'`uname -s`'" gives 'AIX '
    i*86:AIX:*:*)
	GUESS=i386-ibm-aix
	;;
    ia64:AIX:*:*)
	if test -x /usr/bin/oslevel ; then
		IBM_REV=`/usr/bin/oslevel`
	else
		IBM_REV=$UNAME_VERSION.$UNAME_RELEASE
	fi
	GUESS=$UNAME_MACHINE-ibm-aix$IBM_REV
	;;
    *:AIX:2:3)
	if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
		set_cc_for_build
		sed 's/^		//' << EOF > "$dummy.c"
		#include <sys/systemcfg.h>

		int
		main ()
			{
			if (!__power_pc())
				exit(1);
			puts("powerpc-ibm-aix3.2.5");
			exit(0);
			}
EOF
		if $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"`
		then
			GUESS=$SYSTEM_NAME
		else
			GUESS=rs6000-ibm-aix3.2.5
		fi
	elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
		GUESS=rs6000-ibm-aix3.2.4
	else
		GUESS=rs6000-ibm-aix3.2
	fi
	;;
    *:AIX:*:[4567])
	IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
	if /usr/sbin/lsattr -El "$IBM_CPU_ID" | grep ' POWER' >/dev/null 2>&1; then
		IBM_ARCH=rs6000
	else
		IBM_ARCH=powerpc
	fi
	if test -x /usr/bin/lslpp ; then
		IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc | \
			   awk -F: '{ print $3 }' | sed s/[0-9]*$/0/`
	else
		IBM_REV=$UNAME_VERSION.$UNAME_RELEASE
	fi
	GUESS=$IBM_ARCH-ibm-aix$IBM_REV
	;;
    *:AIX:*:*)
	GUESS=rs6000-ibm-aix
	;;
    ibmrt:4.4BSD:*|romp-ibm:4.4BSD:*)
	GUESS=romp-ibm-bsd4.4
	;;
    ibmrt:*BSD:*|romp-ibm:BSD:*)            # covers RT/PC BSD and
	GUESS=romp-ibm-bsd$UNAME_RELEASE    # 4.3 with uname added to
	;;                                  # report: romp-ibm BSD 4.3
    *:BOSX:*:*)
	GUESS=rs6000-bull-bosx
	;;
    DPX/2?00:B.O.S.:*:*)
	GUESS=m68k-bull-sysv3
	;;
    9000/[34]??:4.3bsd:1.*:*)
	GUESS=m68k-hp-bsd
	;;
    hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
	GUESS=m68k-hp-bsd4.4
	;;
    9000/[34678]??:HP-UX:*:*)
	HPUX_REV=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*.[0B]*//'`
	case $UNAME_MACHINE in
	    9000/31?)            HP_ARCH=m68000 ;;
	    9000/[34]??)         HP_ARCH=m68k ;;
	    9000/[678][0-9][0-9])
		if test -x /usr/bin/getconf; then
		    sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
		    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
		    case $sc_cpu_version in
		      523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0
		      528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1
		      532)                      # CPU_PA_RISC2_0
			case $sc_kernel_bits in
			  32) HP_ARCH=hppa2.0n ;;
			  64) HP_ARCH=hppa2.0w ;;
			  '') HP_ARCH=hppa2.0 ;;   # HP-UX 10.20
			esac ;;
		    esac
		fi
		if test "$HP_ARCH" = ""; then
		    set_cc_for_build
		    sed 's/^		//' << EOF > "$dummy.c"

		#define _HPUX_SOURCE
		#include <stdlib.h>
		#include <unistd.h>

		int
		main ()
		{
		#if defined(_SC_KERNEL_BITS)
		    long bits = sysconf(_SC_KERNEL_BITS);
		#endif
		    long cpu  = sysconf (_SC_CPU_VERSION);

		    switch (cpu)
			{
			case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
			case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
			case CPU_PA_RISC2_0:
		#if defined(_SC_KERNEL_BITS)
			    switch (bits)
				{
				case 64: puts ("hppa2.0w"); break;
				case 32: puts ("hppa2.0n"); break;
				default: puts ("hppa2.0"); break;
				} break;
		#else  /* !defined(_SC_KERNEL_BITS) */
			    puts ("hppa2.0"); break;
		#endif
			default: puts ("hppa1.0"); break;
			}
		    exit (0);
		}
EOF
		    (CCOPTS="" $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null) && HP_ARCH=`"$dummy"`
		    test -z "$HP_ARCH" && HP_ARCH=hppa
		fi ;;
	esac
	if test "$HP_ARCH" = hppa2.0w
	then
	    set_cc_for_build

	    # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
	    # 32-bit code.  hppa64-hp-hpux* has the same kernel and a compiler
	    # generating 64-bit code.  GNU and HP use different nomenclature:
	    #
	    # $ CC_FOR_BUILD=cc ./config.guess
	    # => hppa2.0w-hp-hpux11.23
	    # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
	    # => hppa64-hp-hpux11.23

	    if echo __LP64__ | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) |
		grep -q __LP64__
	    then
		HP_ARCH=hppa2.0w
	    else
		HP_ARCH=hppa64
	    fi
	fi
	GUESS=$HP_ARCH-hp-hpux$HPUX_REV
	;;
    ia64:HP-UX:*:*)
	HPUX_REV=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*.[0B]*//'`
	GUESS=ia64-hp-hpux$HPUX_REV
	;;
    3050*:HI-UX:*:*)
	set_cc_for_build
	sed 's/^	//' << EOF > "$dummy.c"
	#include <unistd.h>
	int
	main ()
	{
	  long cpu = sysconf (_SC_CPU_VERSION);
	  /* The order matters, because CPU_IS_HP_MC68K erroneously returns
	     true for CPU_PA_RISC1_0.  CPU_IS_PA_RISC returns correct
	     results, however.  */
	  if (CPU_IS_PA_RISC (cpu))
	    {
	      switch (cpu)
		{
		  case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
		  case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
		  case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
		  default: puts ("hppa-hitachi-hiuxwe2"); break;
		}
	    }
	  else if (CPU_IS_HP_MC68K (cpu))
	    puts ("m68k-hitachi-hiuxwe2");
	  else puts ("unknown-hitachi-hiuxwe2");
	  exit (0);
	}
EOF
	$CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` &&
		{ echo "$SYSTEM_NAME"; exit; }
	GUESS=unknown-hitachi-hiuxwe2
	;;
    9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:*)
	GUESS=hppa1.1-hp-bsd
	;;
    9000/8??:4.3bsd:*:*)
	GUESS=hppa1.0-hp-bsd
	;;
    *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
	GUESS=hppa1.0-hp-mpeix
	;;
    hp7??:OSF1:*:* | hp8?[79]:OSF1:*:*)
	GUESS=hppa1.1-hp-osf
	;;
    hp8??:OSF1:*:*)
	GUESS=hppa1.0-hp-osf
	;;
    i*86:OSF1:*:*)
	if test -x /usr/sbin/sysversion ; then
	    GUESS=$UNAME_MACHINE-unknown-osf1mk
	else
	    GUESS=$UNAME_MACHINE-unknown-osf1
	fi
	;;
    parisc*:Lites*:*:*)
	GUESS=hppa1.1-hp-lites
	;;
    C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
	GUESS=c1-convex-bsd
	;;
    C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
	if getsysinfo -f scalar_acc
	then echo c32-convex-bsd
	else echo c2-convex-bsd
	fi
	exit ;;
    C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
	GUESS=c34-convex-bsd
	;;
    C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
	GUESS=c38-convex-bsd
	;;
    C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
	GUESS=c4-convex-bsd
	;;
    CRAY*Y-MP:*:*:*)
	CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'`
	GUESS=ymp-cray-unicos$CRAY_REL
	;;
    CRAY*[A-Z]90:*:*:*)
	echo "$UNAME_MACHINE"-cray-unicos"$UNAME_RELEASE" \
	| sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
	      -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
	      -e 's/\.[^.]*$/.X/'
	exit ;;
    CRAY*TS:*:*:*)
	CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'`
	GUESS=t90-cray-unicos$CRAY_REL
	;;
    CRAY*T3E:*:*:*)
	CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'`
	GUESS=alphaev5-cray-unicosmk$CRAY_REL
	;;
    CRAY*SV1:*:*:*)
	CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'`
	GUESS=sv1-cray-unicos$CRAY_REL
	;;
    *:UNICOS/mp:*:*)
	CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'`
	GUESS=craynv-cray-unicosmp$CRAY_REL
	;;
    F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
	FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
	FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
	FUJITSU_REL=`echo "$UNAME_RELEASE" | sed -e 's/ /_/'`
	GUESS=${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}
	;;
    5000:UNIX_System_V:4.*:*)
	FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
	FUJITSU_REL=`echo "$UNAME_RELEASE" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'`
	GUESS=sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}
	;;
    i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
	GUESS=$UNAME_MACHINE-pc-bsdi$UNAME_RELEASE
	;;
    sparc*:BSD/OS:*:*)
	GUESS=sparc-unknown-bsdi$UNAME_RELEASE
	;;
    *:BSD/OS:*:*)
	GUESS=$UNAME_MACHINE-unknown-bsdi$UNAME_RELEASE
	;;
    arm:FreeBSD:*:*)
	UNAME_PROCESSOR=`uname -p`
	set_cc_for_build
	if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
	    | grep -q __ARM_PCS_VFP
	then
	    FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'`
	    GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL-gnueabi
	else
	    FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'`
	    GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL-gnueabihf
	fi
	;;
    *:FreeBSD:*:*)
	UNAME_PROCESSOR=`uname -p`
	case $UNAME_PROCESSOR in
	    amd64)
		UNAME_PROCESSOR=x86_64 ;;
	    i386)
		UNAME_PROCESSOR=i586 ;;
	esac
	FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'`
	GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL
	;;
    i*:CYGWIN*:*)
	GUESS=$UNAME_MACHINE-pc-cygwin
	;;
    *:MINGW64*:*)
	GUESS=$UNAME_MACHINE-pc-mingw64
	;;
    *:MINGW*:*)
	GUESS=$UNAME_MACHINE-pc-mingw32
	;;
    *:MSYS*:*)
	GUESS=$UNAME_MACHINE-pc-msys
	;;
    i*:PW*:*)
	GUESS=$UNAME_MACHINE-pc-pw32
	;;
    *:SerenityOS:*:*)
        GUESS=$UNAME_MACHINE-pc-serenity
        ;;
    *:Interix*:*)
	case $UNAME_MACHINE in
	    x86)
		GUESS=i586-pc-interix$UNAME_RELEASE
		;;
	    authenticamd | genuineintel | EM64T)
		GUESS=x86_64-unknown-interix$UNAME_RELEASE
		;;
	    IA64)
		GUESS=ia64-unknown-interix$UNAME_RELEASE
		;;
	esac ;;
    i*:UWIN*:*)
	GUESS=$UNAME_MACHINE-pc-uwin
	;;
    amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
	GUESS=x86_64-pc-cygwin
	;;
    prep*:SunOS:5.*:*)
	SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`
	GUESS=powerpcle-unknown-solaris2$SUN_REL
	;;
    *:GNU:*:*)
	# the GNU system
	GNU_ARCH=`echo "$UNAME_MACHINE" | sed -e 's,[-/].*$,,'`
	GNU_REL=`echo "$UNAME_RELEASE" | sed -e 's,/.*$,,'`
	GUESS=$GNU_ARCH-unknown-$LIBC$GNU_REL
	;;
    *:GNU/*:*:*)
	# other systems with GNU libc and userland
	GNU_SYS=`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"`
	GNU_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'`
	GUESS=$UNAME_MACHINE-unknown-$GNU_SYS$GNU_REL-$LIBC
	;;
    x86_64:[Mm]anagarm:*:*|i?86:[Mm]anagarm:*:*)
	GUESS="$UNAME_MACHINE-pc-managarm-mlibc"
	;;
    *:[Mm]anagarm:*:*)
	GUESS="$UNAME_MACHINE-unknown-managarm-mlibc"
	;;
    *:Minix:*:*)
	GUESS=$UNAME_MACHINE-unknown-minix
	;;
    aarch64:Linux:*:*)
	set_cc_for_build
	CPU=$UNAME_MACHINE
	LIBCABI=$LIBC
	if test "$CC_FOR_BUILD" != no_compiler_found; then
	    ABI=64
	    sed 's/^	    //' << EOF > "$dummy.c"
	    #ifdef __ARM_EABI__
	    #ifdef __ARM_PCS_VFP
	    ABI=eabihf
	    #else
	    ABI=eabi
	    #endif
	    #endif
EOF
	    cc_set_abi=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^ABI' | sed 's, ,,g'`
	    eval "$cc_set_abi"
	    case $ABI in
		eabi | eabihf) CPU=armv8l; LIBCABI=$LIBC$ABI ;;
	    esac
	fi
	GUESS=$CPU-unknown-linux-$LIBCABI
	;;
    aarch64_be:Linux:*:*)
	UNAME_MACHINE=aarch64_be
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
    alpha:Linux:*:*)
	case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' /proc/cpuinfo 2>/dev/null` in
	  EV5)   UNAME_MACHINE=alphaev5 ;;
	  EV56)  UNAME_MACHINE=alphaev56 ;;
	  PCA56) UNAME_MACHINE=alphapca56 ;;
	  PCA57) UNAME_MACHINE=alphapca56 ;;
	  EV6)   UNAME_MACHINE=alphaev6 ;;
	  EV67)  UNAME_MACHINE=alphaev67 ;;
	  EV68*) UNAME_MACHINE=alphaev68 ;;
	esac
	objdump --private-headers /bin/sh | grep -q ld.so.1
	if test "$?" = 0 ; then LIBC=gnulibc1 ; fi
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
    arc:Linux:*:* | arceb:Linux:*:* | arc32:Linux:*:* | arc64:Linux:*:*)
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
    arm*:Linux:*:*)
	set_cc_for_build
	if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
	    | grep -q __ARM_EABI__
	then
	    GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	else
	    if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
		| grep -q __ARM_PCS_VFP
	    then
		GUESS=$UNAME_MACHINE-unknown-linux-${LIBC}eabi
	    else
		GUESS=$UNAME_MACHINE-unknown-linux-${LIBC}eabihf
	    fi
	fi
	;;
    avr32*:Linux:*:*)
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
    cris:Linux:*:*)
	GUESS=$UNAME_MACHINE-axis-linux-$LIBC
	;;
    crisv32:Linux:*:*)
	GUESS=$UNAME_MACHINE-axis-linux-$LIBC
	;;
    e2k:Linux:*:*)
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
    frv:Linux:*:*)
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
    hexagon:Linux:*:*)
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
    i*86:Linux:*:*)
	GUESS=$UNAME_MACHINE-pc-linux-$LIBC
	;;
    ia64:Linux:*:*)
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
    k1om:Linux:*:*)
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
    kvx:Linux:*:*)
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
    kvx:cos:*:*)
	GUESS=$UNAME_MACHINE-unknown-cos
	;;
    kvx:mbr:*:*)
	GUESS=$UNAME_MACHINE-unknown-mbr
	;;
    loongarch32:Linux:*:* | loongarch64:Linux:*:*)
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
    m32r*:Linux:*:*)
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
    m68*:Linux:*:*)
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
    mips:Linux:*:* | mips64:Linux:*:*)
	set_cc_for_build
	IS_GLIBC=0
	test x"${LIBC}" = xgnu && IS_GLIBC=1
	sed 's/^	//' << EOF > "$dummy.c"
	#undef CPU
	#undef mips
	#undef mipsel
	#undef mips64
	#undef mips64el
	#if ${IS_GLIBC} && defined(_ABI64)
	LIBCABI=gnuabi64
	#else
	#if ${IS_GLIBC} && defined(_ABIN32)
	LIBCABI=gnuabin32
	#else
	LIBCABI=${LIBC}
	#endif
	#endif

	#if ${IS_GLIBC} && defined(__mips64) && defined(__mips_isa_rev) && __mips_isa_rev>=6
	CPU=mipsisa64r6
	#else
	#if ${IS_GLIBC} && !defined(__mips64) && defined(__mips_isa_rev) && __mips_isa_rev>=6
	CPU=mipsisa32r6
	#else
	#if defined(__mips64)
	CPU=mips64
	#else
	CPU=mips
	#endif
	#endif
	#endif

	#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
	MIPS_ENDIAN=el
	#else
	#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
	MIPS_ENDIAN=
	#else
	MIPS_ENDIAN=
	#endif
	#endif
EOF
	cc_set_vars=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU\|^MIPS_ENDIAN\|^LIBCABI'`
	eval "$cc_set_vars"
	test "x$CPU" != x && { echo "$CPU${MIPS_ENDIAN}-unknown-linux-$LIBCABI"; exit; }
	;;
    mips64el:Linux:*:*)
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
    openrisc*:Linux:*:*)
	GUESS=or1k-unknown-linux-$LIBC
	;;
    or32:Linux:*:* | or1k*:Linux:*:*)
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
    padre:Linux:*:*)
	GUESS=sparc-unknown-linux-$LIBC
	;;
    parisc64:Linux:*:* | hppa64:Linux:*:*)
	GUESS=hppa64-unknown-linux-$LIBC
	;;
    parisc:Linux:*:* | hppa:Linux:*:*)
	# Look for CPU level
	case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
	  PA7*) GUESS=hppa1.1-unknown-linux-$LIBC ;;
	  PA8*) GUESS=hppa2.0-unknown-linux-$LIBC ;;
	  *)    GUESS=hppa-unknown-linux-$LIBC ;;
	esac
	;;
    ppc64:Linux:*:*)
	GUESS=powerpc64-unknown-linux-$LIBC
	;;
    ppc:Linux:*:*)
	GUESS=powerpc-unknown-linux-$LIBC
	;;
    ppc64le:Linux:*:*)
	GUESS=powerpc64le-unknown-linux-$LIBC
	;;
    ppcle:Linux:*:*)
	GUESS=powerpcle-unknown-linux-$LIBC
	;;
    riscv32:Linux:*:* | riscv32be:Linux:*:* | riscv64:Linux:*:* | riscv64be:Linux:*:*)
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
    s390:Linux:*:* | s390x:Linux:*:*)
	GUESS=$UNAME_MACHINE-ibm-linux-$LIBC
	;;
    sh64*:Linux:*:*)
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
    sh*:Linux:*:*)
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
    sparc:Linux:*:* | sparc64:Linux:*:*)
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
    tile*:Linux:*:*)
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
    vax:Linux:*:*)
	GUESS=$UNAME_MACHINE-dec-linux-$LIBC
	;;
    x86_64:Linux:*:*)
	set_cc_for_build
	CPU=$UNAME_MACHINE
	LIBCABI=$LIBC
	if test "$CC_FOR_BUILD" != no_compiler_found; then
	    ABI=64
	    sed 's/^	    //' << EOF > "$dummy.c"
	    #ifdef __i386__
	    ABI=x86
	    #else
	    #ifdef __ILP32__
	    ABI=x32
	    #endif
	    #endif
EOF
	    cc_set_abi=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^ABI' | sed 's, ,,g'`
	    eval "$cc_set_abi"
	    case $ABI in
		x86) CPU=i686 ;;
		x32) LIBCABI=${LIBC}x32 ;;
	    esac
	fi
	GUESS=$CPU-pc-linux-$LIBCABI
	;;
    xtensa*:Linux:*:*)
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
    i*86:DYNIX/ptx:4*:*)
	# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
	# earlier versions are messed up and put the nodename in both
	# sysname and nodename.
	GUESS=i386-sequent-sysv4
	;;
    i*86:UNIX_SV:4.2MP:2.*)
	# Unixware is an offshoot of SVR4, but it has its own version
	# number series starting with 2...
	# I am not positive that other SVR4 systems won't match this,
	# I just have to hope.  -- rms.
	# Use sysv4.2uw... so that sysv4* matches it.
	GUESS=$UNAME_MACHINE-pc-sysv4.2uw$UNAME_VERSION
	;;
    i*86:OS/2:*:*)
	# If we were able to find 'uname', then EMX Unix compatibility
	# is probably installed.
	GUESS=$UNAME_MACHINE-pc-os2-emx
	;;
    i*86:XTS-300:*:STOP)
	GUESS=$UNAME_MACHINE-unknown-stop
	;;
    i*86:atheos:*:*)
	GUESS=$UNAME_MACHINE-unknown-atheos
	;;
    i*86:syllable:*:*)
	GUESS=$UNAME_MACHINE-pc-syllable
	;;
    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
	GUESS=i386-unknown-lynxos$UNAME_RELEASE
	;;
    i*86:*DOS:*:*)
	GUESS=$UNAME_MACHINE-pc-msdosdjgpp
	;;
    i*86:*:4.*:*)
	UNAME_REL=`echo "$UNAME_RELEASE" | sed 's/\/MP$//'`
	if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
		GUESS=$UNAME_MACHINE-univel-sysv$UNAME_REL
	else
		GUESS=$UNAME_MACHINE-pc-sysv$UNAME_REL
	fi
	;;
    i*86:*:5:[678]*)
	# UnixWare 7.x, OpenUNIX and OpenServer 6.
	case `/bin/uname -X | grep "^Machine"` in
	    *486*)	     UNAME_MACHINE=i486 ;;
	    *Pentium)	     UNAME_MACHINE=i586 ;;
	    *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
	esac
	GUESS=$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
	;;
    i*86:*:3.2:*)
	if test -f /usr/options/cb.name; then
		UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
		GUESS=$UNAME_MACHINE-pc-isc$UNAME_REL
	elif /bin/uname -X 2>/dev/null >/dev/null ; then
		UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
		(/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
		(/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
			&& UNAME_MACHINE=i586
		(/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
			&& UNAME_MACHINE=i686
		(/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
			&& UNAME_MACHINE=i686
		GUESS=$UNAME_MACHINE-pc-sco$UNAME_REL
	else
		GUESS=$UNAME_MACHINE-pc-sysv32
	fi
	;;
    pc:*:*:*)
	# Left here for compatibility:
	# uname -m prints for DJGPP always 'pc', but it prints nothing about
	# the processor, so we play safe by assuming i586.
	# Note: whatever this is, it MUST be the same as what config.sub
	# prints for the "djgpp" host, or else GDB configure will decide that
	# this is a cross-build.
	GUESS=i586-pc-msdosdjgpp
	;;
    Intel:Mach:3*:*)
	GUESS=i386-pc-mach3
	;;
    paragon:*:*:*)
	GUESS=i860-intel-osf1
	;;
    i860:*:4.*:*) # i860-SVR4
	if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
	  GUESS=i860-stardent-sysv$UNAME_RELEASE    # Stardent Vistra i860-SVR4
	else # Add other i860-SVR4 vendors below as they are discovered.
	  GUESS=i860-unknown-sysv$UNAME_RELEASE     # Unknown i860-SVR4
	fi
	;;
    mini*:CTIX:SYS*5:*)
	# "miniframe"
	GUESS=m68010-convergent-sysv
	;;
    mc68k:UNIX:SYSTEM5:3.51m)
	GUESS=m68k-convergent-sysv
	;;
    M680?0:D-NIX:5.3:*)
	GUESS=m68k-diab-dnix
	;;
    M68*:*:R3V[5678]*:*)
	test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
    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)
	OS_REL=''
	test -r /etc/.relid \
	&& OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
	/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
	  && { echo i486-ncr-sysv4.3"$OS_REL"; exit; }
	/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
	  && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;;
    3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
	/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
	  && { echo i486-ncr-sysv4; exit; } ;;
    NCR*:*:4.2:* | MPRAS*:*:4.2:*)
	OS_REL='.3'
	test -r /etc/.relid \
	    && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
	/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
	    && { echo i486-ncr-sysv4.3"$OS_REL"; exit; }
	/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
	    && { echo i586-ncr-sysv4.3"$OS_REL"; exit; }
	/bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
	    && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;;
    m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
	GUESS=m68k-unknown-lynxos$UNAME_RELEASE
	;;
    mc68030:UNIX_System_V:4.*:*)
	GUESS=m68k-atari-sysv4
	;;
    TSUNAMI:LynxOS:2.*:*)
	GUESS=sparc-unknown-lynxos$UNAME_RELEASE
	;;
    rs6000:LynxOS:2.*:*)
	GUESS=rs6000-unknown-lynxos$UNAME_RELEASE
	;;
    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
	GUESS=powerpc-unknown-lynxos$UNAME_RELEASE
	;;
    SM[BE]S:UNIX_SV:*:*)
	GUESS=mips-dde-sysv$UNAME_RELEASE
	;;
    RM*:ReliantUNIX-*:*:*)
	GUESS=mips-sni-sysv4
	;;
    RM*:SINIX-*:*:*)
	GUESS=mips-sni-sysv4
	;;
    *:SINIX-*:*:*)
	if uname -p 2>/dev/null >/dev/null ; then
		UNAME_MACHINE=`(uname -p) 2>/dev/null`
		GUESS=$UNAME_MACHINE-sni-sysv4
	else
		GUESS=ns32k-sni-sysv
	fi
	;;
    PENTIUM:*:4.0*:*)	# Unisys 'ClearPath HMP IX 4000' SVR4/MP effort
			# says <Richard.M.Bartel@@ccMail.Census.GOV>
	GUESS=i586-unisys-sysv4
	;;
    *:UNIX_System_V:4*:FTX*)
	# From Gerald Hewes <hewes@@openmarket.com>.
	# How about differentiating between stratus architectures? -djm
	GUESS=hppa1.1-stratus-sysv4
	;;
    *:*:*:FTX*)
	# From seanf@@swdc.stratus.com.
	GUESS=i860-stratus-sysv4
	;;
    i*86:VOS:*:*)
	# From Paul.Green@@stratus.com.
	GUESS=$UNAME_MACHINE-stratus-vos
	;;
    *:VOS:*:*)
	# From Paul.Green@@stratus.com.
	GUESS=hppa1.1-stratus-vos
	;;
    mc68*:A/UX:*:*)
	GUESS=m68k-apple-aux$UNAME_RELEASE
	;;
    news*:NEWS-OS:6*:*)
	GUESS=mips-sony-newsos6
	;;
    R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
	if test -d /usr/nec; then
		GUESS=mips-nec-sysv$UNAME_RELEASE
	else
		GUESS=mips-unknown-sysv$UNAME_RELEASE
	fi
	;;
    BeBox:BeOS:*:*)	# BeOS running on hardware made by Be, PPC only.
	GUESS=powerpc-be-beos
	;;
    BeMac:BeOS:*:*)	# BeOS running on Mac or Mac clone, PPC only.
	GUESS=powerpc-apple-beos
	;;
    BePC:BeOS:*:*)	# BeOS running on Intel PC compatible.
	GUESS=i586-pc-beos
	;;
    BePC:Haiku:*:*)	# Haiku running on Intel PC compatible.
	GUESS=i586-pc-haiku
	;;
    ppc:Haiku:*:*)	# Haiku running on Apple PowerPC
	GUESS=powerpc-apple-haiku
	;;
    *:Haiku:*:*)	# Haiku modern gcc (not bound by BeOS compat)
	GUESS=$UNAME_MACHINE-unknown-haiku
	;;
    SX-4:SUPER-UX:*:*)
	GUESS=sx4-nec-superux$UNAME_RELEASE
	;;
    SX-5:SUPER-UX:*:*)
	GUESS=sx5-nec-superux$UNAME_RELEASE
	;;
    SX-6:SUPER-UX:*:*)
	GUESS=sx6-nec-superux$UNAME_RELEASE
	;;
    SX-7:SUPER-UX:*:*)
	GUESS=sx7-nec-superux$UNAME_RELEASE
	;;
    SX-8:SUPER-UX:*:*)
	GUESS=sx8-nec-superux$UNAME_RELEASE
	;;
    SX-8R:SUPER-UX:*:*)
	GUESS=sx8r-nec-superux$UNAME_RELEASE
	;;
    SX-ACE:SUPER-UX:*:*)
	GUESS=sxace-nec-superux$UNAME_RELEASE
	;;
    Power*:Rhapsody:*:*)
	GUESS=powerpc-apple-rhapsody$UNAME_RELEASE
	;;
    *:Rhapsody:*:*)
	GUESS=$UNAME_MACHINE-apple-rhapsody$UNAME_RELEASE
	;;
    arm64:Darwin:*:*)
	GUESS=aarch64-apple-darwin$UNAME_RELEASE
	;;
    *:Darwin:*:*)
	UNAME_PROCESSOR=`uname -p`
	case $UNAME_PROCESSOR in
	    unknown) UNAME_PROCESSOR=powerpc ;;
	esac
	if command -v xcode-select > /dev/null 2> /dev/null && \
		! xcode-select --print-path > /dev/null 2> /dev/null ; then
	    # Avoid executing cc if there is no toolchain installed as
	    # cc will be a stub that puts up a graphical alert
	    # prompting the user to install developer tools.
	    CC_FOR_BUILD=no_compiler_found
	else
	    set_cc_for_build
	fi
	if test "$CC_FOR_BUILD" != no_compiler_found; then
	    if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
		   (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
		   grep IS_64BIT_ARCH >/dev/null
	    then
		case $UNAME_PROCESSOR in
		    i386) UNAME_PROCESSOR=x86_64 ;;
		    powerpc) UNAME_PROCESSOR=powerpc64 ;;
		esac
	    fi
	    # On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc
	    if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \
		   (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
		   grep IS_PPC >/dev/null
	    then
		UNAME_PROCESSOR=powerpc
	    fi
	elif test "$UNAME_PROCESSOR" = i386 ; then
	    # uname -m returns i386 or x86_64
	    UNAME_PROCESSOR=$UNAME_MACHINE
	fi
	GUESS=$UNAME_PROCESSOR-apple-darwin$UNAME_RELEASE
	;;
    *:procnto*:*:* | *:QNX:[0123456789]*:*)
	UNAME_PROCESSOR=`uname -p`
	if test "$UNAME_PROCESSOR" = x86; then
		UNAME_PROCESSOR=i386
		UNAME_MACHINE=pc
	fi
	GUESS=$UNAME_PROCESSOR-$UNAME_MACHINE-nto-qnx$UNAME_RELEASE
	;;
    *:QNX:*:4*)
	GUESS=i386-pc-qnx
	;;
    NEO-*:NONSTOP_KERNEL:*:*)
	GUESS=neo-tandem-nsk$UNAME_RELEASE
	;;
    NSE-*:NONSTOP_KERNEL:*:*)
	GUESS=nse-tandem-nsk$UNAME_RELEASE
	;;
    NSR-*:NONSTOP_KERNEL:*:*)
	GUESS=nsr-tandem-nsk$UNAME_RELEASE
	;;
    NSV-*:NONSTOP_KERNEL:*:*)
	GUESS=nsv-tandem-nsk$UNAME_RELEASE
	;;
    NSX-*:NONSTOP_KERNEL:*:*)
	GUESS=nsx-tandem-nsk$UNAME_RELEASE
	;;
    *:NonStop-UX:*:*)
	GUESS=mips-compaq-nonstopux
	;;
    BS2000:POSIX*:*:*)
	GUESS=bs2000-siemens-sysv
	;;
    DS/*:UNIX_System_V:*:*)
	GUESS=$UNAME_MACHINE-$UNAME_SYSTEM-$UNAME_RELEASE
	;;
    *:Plan9:*:*)
	# "uname -m" is not consistent, so use $cputype instead. 386
	# is converted to i386 for consistency with other x86
	# operating systems.
	if test "${cputype-}" = 386; then
	    UNAME_MACHINE=i386
	elif test "x${cputype-}" != x; then
	    UNAME_MACHINE=$cputype
	fi
	GUESS=$UNAME_MACHINE-unknown-plan9
	;;
    *:TOPS-10:*:*)
	GUESS=pdp10-unknown-tops10
	;;
    *:TENEX:*:*)
	GUESS=pdp10-unknown-tenex
	;;
    KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
	GUESS=pdp10-dec-tops20
	;;
    XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
	GUESS=pdp10-xkl-tops20
	;;
    *:TOPS-20:*:*)
	GUESS=pdp10-unknown-tops20
	;;
    *:ITS:*:*)
	GUESS=pdp10-unknown-its
	;;
    SEI:*:*:SEIUX)
	GUESS=mips-sei-seiux$UNAME_RELEASE
	;;
    *:DragonFly:*:*)
	DRAGONFLY_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'`
	GUESS=$UNAME_MACHINE-unknown-dragonfly$DRAGONFLY_REL
	;;
    *:*VMS:*:*)
	UNAME_MACHINE=`(uname -p) 2>/dev/null`
	case $UNAME_MACHINE in
	    A*) GUESS=alpha-dec-vms ;;
	    I*) GUESS=ia64-dec-vms ;;
	    V*) GUESS=vax-dec-vms ;;
	esac ;;
    *:XENIX:*:SysV)
	GUESS=i386-pc-xenix
	;;
    i*86:skyos:*:*)
	SKYOS_REL=`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'`
	GUESS=$UNAME_MACHINE-pc-skyos$SKYOS_REL
	;;
    i*86:rdos:*:*)
	GUESS=$UNAME_MACHINE-pc-rdos
	;;
    i*86:Fiwix:*:*)
	GUESS=$UNAME_MACHINE-pc-fiwix
	;;
    *:AROS:*:*)
	GUESS=$UNAME_MACHINE-unknown-aros
	;;
    x86_64:VMkernel:*:*)
	GUESS=$UNAME_MACHINE-unknown-esx
	;;
    amd64:Isilon\ OneFS:*:*)
	GUESS=x86_64-unknown-onefs
	;;
    *:Unleashed:*:*)
	GUESS=$UNAME_MACHINE-unknown-unleashed$UNAME_RELEASE
	;;
    *:Ironclad:*:*)
	GUESS=$UNAME_MACHINE-unknown-ironclad
	;;
esac

# Do we have a guess based on uname results?
if test "x$GUESS" != x; then
    echo "$GUESS"
    exit
fi

# No uname command or uname output not recognized.
set_cc_for_build
cat > "$dummy.c" <<EOF
#ifdef _SEQUENT_
#include <sys/types.h>
#include <sys/utsname.h>
#endif
#if defined(ultrix) || defined(_ultrix) || defined(__ultrix) || defined(__ultrix__)
#if defined (vax) || defined (__vax) || defined (__vax__) || defined(mips) || defined(__mips) || defined(__mips__) || defined(MIPS) || defined(__MIPS__)
#include <signal.h>
#if defined(_SIZE_T_) || defined(SIGLOST)
#include <sys/utsname.h>
#endif
#endif
#endif
int
main ()
{
#if defined (sony)
#if defined (MIPSEB)
  /* BFD wants "bsd" instead of "newsos".  Perhaps BFD should be changed,
     I don't know....  */
  printf ("mips-sony-bsd\n"); exit (0);
#else
#include <sys/param.h>
  printf ("m68k-sony-newsos%s\n",
#ifdef NEWSOS4
  "4"
#else
  ""
#endif
  ); exit (0);
#endif
#endif

#if defined (NeXT)
#if !defined (__ARCHITECTURE__)
#define __ARCHITECTURE__ "m68k"
#endif
  int version;
  version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
  if (version < 4)
    printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
  else
    printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
  exit (0);
#endif

#if defined (MULTIMAX) || defined (n16)
#if defined (UMAXV)
  printf ("ns32k-encore-sysv\n"); exit (0);
#else
#if defined (CMU)
  printf ("ns32k-encore-mach\n"); exit (0);
#else
  printf ("ns32k-encore-bsd\n"); exit (0);
#endif
#endif
#endif

#if defined (__386BSD__)
  printf ("i386-pc-bsd\n"); exit (0);
#endif

#if defined (sequent)
#if defined (i386)
  printf ("i386-sequent-dynix\n"); exit (0);
#endif
#if defined (ns32000)
  printf ("ns32k-sequent-dynix\n"); exit (0);
#endif
#endif

#if defined (_SEQUENT_)
  struct utsname un;

  uname(&un);
  if (strncmp(un.version, "V2", 2) == 0) {
    printf ("i386-sequent-ptx2\n"); exit (0);
  }
  if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
    printf ("i386-sequent-ptx1\n"); exit (0);
  }
  printf ("i386-sequent-ptx\n"); exit (0);
#endif

#if defined (vax)
#if !defined (ultrix)
#include <sys/param.h>
#if defined (BSD)
#if BSD == 43
  printf ("vax-dec-bsd4.3\n"); exit (0);
#else
#if BSD == 199006
  printf ("vax-dec-bsd4.3reno\n"); exit (0);
#else
  printf ("vax-dec-bsd\n"); exit (0);
#endif
#endif
#else
  printf ("vax-dec-bsd\n"); exit (0);
#endif
#else
#if defined(_SIZE_T_) || defined(SIGLOST)
  struct utsname un;
  uname (&un);
  printf ("vax-dec-ultrix%s\n", un.release); exit (0);
#else
  printf ("vax-dec-ultrix\n"); exit (0);
#endif
#endif
#endif
#if defined(ultrix) || defined(_ultrix) || defined(__ultrix) || defined(__ultrix__)
#if defined(mips) || defined(__mips) || defined(__mips__) || defined(MIPS) || defined(__MIPS__)
#if defined(_SIZE_T_) || defined(SIGLOST)
  struct utsname *un;
  uname (&un);
  printf ("mips-dec-ultrix%s\n", un.release); exit (0);
#else
  printf ("mips-dec-ultrix\n"); exit (0);
#endif
#endif
#endif

#if defined (alliant) && defined (i860)
  printf ("i860-alliant-bsd\n"); exit (0);
#endif

  exit (1);
}
EOF

$CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null && SYSTEM_NAME=`"$dummy"` &&
	{ echo "$SYSTEM_NAME"; exit; }

# Apollos put the system type in the environment.
test -d /usr/apollo && { echo "$ISP-apollo-$SYSTYPE"; exit; }

echo "$0: unable to guess system type" >&2

case $UNAME_MACHINE:$UNAME_SYSTEM in
    mips:Linux | mips64:Linux)
	# If we got here on MIPS GNU/Linux, output extra information.
	cat >&2 <<EOF

NOTE: MIPS GNU/Linux systems require a C compiler to fully recognize
the system type. Please install a C compiler and try again.
EOF
	;;
esac

cat >&2 <<EOF

This script (version $timestamp), has failed to recognize the
operating system you are using. If your script is old, overwrite *all*
copies of config.guess and config.sub with the latest versions from:

  https://git.savannah.gnu.org/cgit/config.git/plain/config.guess
and
  https://git.savannah.gnu.org/cgit/config.git/plain/config.sub
EOF

our_year=`echo $timestamp | sed 's,-.*,,'`
thisyear=`date +%Y`
# shellcheck disable=SC2003
script_age=`expr "$thisyear" - "$our_year"`
if test "$script_age" -lt 3 ; then
   cat >&2 <<EOF

If $0 has already been updated, send the following data and any
information you think might be pertinent to config-patches@@gnu.org to
provide the necessary information to handle your system.

config.guess timestamp = $timestamp

uname -m = `(uname -m) 2>/dev/null || echo unknown`
uname -r = `(uname -r) 2>/dev/null || echo unknown`
uname -s = `(uname -s) 2>/dev/null || echo unknown`
uname -v = `(uname -v) 2>/dev/null || echo unknown`

/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null`

hostinfo               = `(hostinfo) 2>/dev/null`
/bin/universe          = `(/bin/universe) 2>/dev/null`
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null`
/bin/arch              = `(/bin/arch) 2>/dev/null`
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null`
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`

UNAME_MACHINE = "$UNAME_MACHINE"
UNAME_RELEASE = "$UNAME_RELEASE"
UNAME_SYSTEM  = "$UNAME_SYSTEM"
UNAME_VERSION = "$UNAME_VERSION"
EOF
fi

exit 1

# Local variables:
# eval: (add-hook 'before-save-hook 'time-stamp)
# time-stamp-start: "timestamp='"
# time-stamp-format: "%:y-%02m-%02d"
# time-stamp-end: "'"
# End:
@


1.9
log
@libarchive: updated to 3.7.2

Libarchive 3.7.2 is a security, bugfix and feature release.

Security fixes:

Multiple vulnerabilities have been fixed in the PAX writer (1b4e0d0)
Important bugfixes:

bsdunzip(1) now correctly handles arguments following an -x after the zipfile
New features:

bsdunzip(1) now supports the "--version" flag
7-zip reader now translates Windows permissions into UNIX permissions
uudecode filter in raw mode now supports file name and file mode
zstd filter now supports the "long" write option


Libarchive 3.7.1 is a security, feature and bugfix release.

Security fixes:

SEGV and stack buffer overflow in verbose mode of cpio
Feature updates:

bsdunzip updated to match latest upstream code
Important bugfixes:

miscellaneous functional bugfixes
build fixes on multiple platforms


Libarchive 3.7.0 is a feature and bugfix release.

New features:

bsdunzip: new tool ported from FreeBSD
drop-in replacement for Info-ZIP unzip, not yet ported for Windows
7zip reader: support for Zstandard compression
7zip reader: support for ARM64 filter
zstd filter: support for multi-frame zstd archives
Other notable bugfixes and improvements:

pax: fix year 2038 problem on platforms with 64-bit time_t
Windows: Universal Windows Platform (UWP) fixes and improvements
Windows: bcrypt usage fixes and improvements
Windows: time function usage fixes and improvements
@
text
@d3 1
a3 1
#   Copyright 1992-2022 Free Software Foundation, Inc.
d7 1
a7 1
timestamp='2022-01-09'
d50 1
a50 1
Output the configuration name of the system \`$me' is run on.
d63 1
a63 1
Copyright 1992-2022 Free Software Foundation, Inc.
d69 1
a69 1
Try \`$me --help' for more information."
d105 2
a106 2
# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
# use `HOST_CC' if defined, but it is deprecated.
d126 1
a126 1
	       for driver in cc gcc c89 c99 ; do
d158 3
d168 2
d177 1
d468 1
a468 1
	# Japanese Language versions have a version number like `4.1.3-JL'.
d637 2
a638 1
		main()
d722 2
a723 1
		int main ()
d915 1
a915 1
	UNAME_PROCESSOR=`/usr/bin/uname -p`
d977 6
d987 21
a1007 1
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
d1073 10
a1082 1
    loongarch32:Linux:*:* | loongarch64:Linux:*:* | loongarchx32:Linux:*:*)
d1197 1
d1200 16
a1215 6
	    if (echo '#ifdef __ILP32__'; echo IS_X32; echo '#endif') | \
		(CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
		grep IS_X32 >/dev/null
	    then
		LIBCABI=${LIBC}x32
	    fi
d1217 1
a1217 1
	GUESS=$UNAME_MACHINE-pc-linux-$LIBCABI
d1237 1
a1237 1
	# If we were able to find `uname', then EMX Unix compatibility
d1378 1
a1378 1
    PENTIUM:*:4.0*:*)	# Unisys `ClearPath HMP IX 4000' SVR4/MP effort
d1424 5
a1428 2
    x86_64:Haiku:*:*)
	GUESS=x86_64-unknown-haiku
d1600 3
d1626 1
@


1.8
log
@libarchive: Update to 3.4.3

Libarchive 3.4.3 is a feature and bugfix release.

New features:

    support for pzstd compressed files (#1357)
    support for RHT.security.selinux tar extended attribute (#1348)

Important bugfixes:

    various zstd fixes and improvements (#1342 #1352 #1359)
    child process handling fixes (#1372)

Libarchive 3.4.2 is a feature and security release.

New features:

    support for atomic file extraction (bsdtar -x --safe-writes) (#1289)
    support for mbed TLS (PolarSSL) (#1301)

Important bugfixes:

    security fixes in RAR5 reader (#1280 #1326)
    compression buffer fix in XAR writer (#1317)
    fix uname and gname longer than 32 characters in PAX writer (#1319)
    fix segfault when archiving hard links in ISO9660 and XAR writers (#1325)
    fix support for extracting 7z archive entries with Delta filter (#987)

Libarchive 3.4.1 is a feature and security release.

New features:

    Unicode filename support for reading lha/lzh archives
    New pax write option "xattrhdr"

Important bugfixes:

    security fixes in wide string processing (#1276 #1298)
    security fixes in RAR5 reader (#1212 #1217 #1296)
    security fixes and optimizations to write filter logic (#351)
    security fix related to use of readlink(2) (1dae5a5)
    sparse file handling fixes (#1218 #1260)

Thanks to all contributors and bug reporters.
Special thanks to Christos Zoulas (@@zoulasc) from NetBSD for the atomic file extraction feature.
@
text
@d3 1
a3 1
#   Copyright 1992-2019 Free Software Foundation, Inc.
d5 3
a7 1
timestamp='2019-01-03'
d11 1
a11 1
# the Free Software Foundation; either version 3 of the License, or
d32 1
a32 1
# https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
d37 8
d63 1
a63 1
Copyright 1992-2019 Free Software Foundation, Inc.
d97 3
d115 2
d118 1
a118 1
    # shellcheck disable=SC2039
d128 1
a128 1
		       CC_FOR_BUILD="$driver"
d149 1
a149 1
UNAME_SYSTEM=`(uname -s) 2>/dev/null`  || UNAME_SYSTEM=unknown
d152 1
a152 1
case "$UNAME_SYSTEM" in
d154 1
a154 3
	# If the system lacks a compiler, then just pick glibc.
	# We could probably try harder.
	LIBC=gnu
d163 2
d166 5
a170 1
	LIBC=gnu
d173 9
a181 1
	eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`"
d183 4
a186 5
	# If ldd exists, use it to detect musl libc.
	if command -v ldd >/dev/null && \
		ldd --version 2>&1 | grep -q ^musl
	then
	    LIBC=musl
d193 1
a193 1
case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in
a204 1
	sysctl="sysctl -n hw.machine_arch"
d206 2
a207 2
	    "/sbin/$sysctl" 2>/dev/null || \
	    "/usr/sbin/$sysctl" 2>/dev/null || \
d209 2
a210 1
	case "$UNAME_MACHINE_ARCH" in
d216 2
a217 4
	    earm*)
		arch="${UNAME_MACHINE_ARCH#e}"
		arch="${arch%eb}"
		arch="${arch%hf}"
d219 1
a219 1
		machine="${arch}${endian}"-unknown
d221 1
a221 1
	    *) machine="$UNAME_MACHINE_ARCH"-unknown ;;
d225 1
a225 1
	case "$UNAME_MACHINE_ARCH" in
d246 1
a246 1
	case "$UNAME_MACHINE_ARCH" in
d248 1
a248 1
		expr='s/v[0-9]//;s/earm/-eabi/;s/eb$//'
d257 1
a257 1
	case "$UNAME_VERSION" in
d268 2
a269 2
	echo "$machine-${os}${release}${abi-}"
	exit ;;
d272 2
a273 2
	echo "$UNAME_MACHINE_ARCH"-unknown-bitrig"$UNAME_RELEASE"
	exit ;;
d276 6
a281 2
	echo "$UNAME_MACHINE_ARCH"-unknown-openbsd"$UNAME_RELEASE"
	exit ;;
d284 2
a285 2
	echo "$UNAME_MACHINE_ARCH"-unknown-libertybsd"$UNAME_RELEASE"
	exit ;;
d287 2
a288 2
	echo "$UNAME_MACHINE"-unknown-midnightbsd"$UNAME_RELEASE"
	exit ;;
d290 2
a291 2
	echo "$UNAME_MACHINE"-unknown-ekkobsd"$UNAME_RELEASE"
	exit ;;
d293 5
a297 2
	echo "$UNAME_MACHINE"-unknown-solidbsd"$UNAME_RELEASE"
	exit ;;
d299 2
a300 2
	echo powerpc-unknown-mirbsd"$UNAME_RELEASE"
	exit ;;
d302 2
a303 2
	echo "$UNAME_MACHINE"-unknown-mirbsd"$UNAME_RELEASE"
	exit ;;
d305 5
a309 2
	echo "$UNAME_MACHINE"-unknown-sortix
	exit ;;
d311 2
a312 2
	echo "$UNAME_MACHINE"-unknown-redox
	exit ;;
d314 2
a315 2
        echo mips-dec-osf1
        exit ;;
d317 2
d332 1
a332 1
	case "$ALPHA_CPU_TYPE" in
d369 3
a371 5
	echo "$UNAME_MACHINE"-dec-osf"`echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`"
	# Reset EXIT trap before exiting to avoid spurious non-zero exit code.
	exitcode=$?
	trap '' 0
	exit $exitcode ;;
d373 2
a374 2
	echo m68k-unknown-sysv4
	exit ;;
d376 2
a377 2
	echo "$UNAME_MACHINE"-unknown-amigaos
	exit ;;
d379 2
a380 2
	echo "$UNAME_MACHINE"-unknown-morphos
	exit ;;
d382 2
a383 2
	echo i370-ibm-openedition
	exit ;;
d385 2
a386 2
	echo s390-ibm-zvmoe
	exit ;;
d388 2
a389 2
	echo powerpc-ibm-os400
	exit ;;
d391 2
a392 2
	echo arm-acorn-riscix"$UNAME_RELEASE"
	exit ;;
d394 2
a395 2
	echo arm-unknown-riscos
	exit ;;
d397 2
a398 2
	echo hppa1.1-hitachi-hiuxmpp
	exit ;;
d401 5
a405 6
	if test "`(/bin/universe) 2>/dev/null`" = att ; then
		echo pyramid-pyramid-sysv3
	else
		echo pyramid-pyramid-bsd
	fi
	exit ;;
d407 2
a408 2
	echo pyramid-pyramid-svr4
	exit ;;
d410 2
a411 2
	echo sparc-icl-nx6
	exit ;;
d414 3
a416 2
	    sparc) echo sparc-icl-nx7; exit ;;
	esac ;;
d418 3
a420 2
	echo "$UNAME_MACHINE"-ibm-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`"
	exit ;;
d422 3
a424 2
	echo sparc-hal-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
	exit ;;
d426 3
a428 15
	set_cc_for_build
	SUN_ARCH=sparc
	# If there is a compiler, see if it is configured for 64-bit objects.
	# Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
	# This test works for both compilers.
	if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
	    if (echo '#ifdef __sparcv9'; echo IS_64BIT_ARCH; echo '#endif') | \
		(CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
		grep IS_64BIT_ARCH >/dev/null
	    then
		SUN_ARCH=sparcv9
	    fi
	fi
	echo "$SUN_ARCH"-sun-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
	exit ;;
d430 2
a431 2
	echo i386-pc-auroraux"$UNAME_RELEASE"
	exit ;;
d438 1
a438 1
	if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
d440 1
a440 1
		(CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
d446 3
a448 2
	echo "$SUN_ARCH"-pc-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
	exit ;;
d453 3
a455 2
	echo sparc-sun-solaris3"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
	exit ;;
d457 1
a457 1
	case "`/usr/bin/arch -k`" in
d463 3
a465 2
	echo sparc-sun-sunos"`echo "$UNAME_RELEASE"|sed -e 's/-/_/'`"
	exit ;;
d467 2
a468 2
	echo m68k-sun-sunos"$UNAME_RELEASE"
	exit ;;
d472 1
a472 1
	case "`/bin/arch`" in
d474 1
a474 1
		echo m68k-sun-sunos"$UNAME_RELEASE"
d477 1
a477 1
		echo sparc-sun-sunos"$UNAME_RELEASE"
d480 1
a480 1
	exit ;;
d482 2
a483 2
	echo sparc-auspex-sunos"$UNAME_RELEASE"
	exit ;;
d493 2
a494 2
	echo m68k-atari-mint"$UNAME_RELEASE"
	exit ;;
d496 2
a497 2
	echo m68k-atari-mint"$UNAME_RELEASE"
	exit ;;
d499 2
a500 2
	echo m68k-atari-mint"$UNAME_RELEASE"
	exit ;;
d502 2
a503 2
	echo m68k-milan-mint"$UNAME_RELEASE"
	exit ;;
d505 2
a506 2
	echo m68k-hades-mint"$UNAME_RELEASE"
	exit ;;
d508 2
a509 2
	echo m68k-unknown-mint"$UNAME_RELEASE"
	exit ;;
d511 2
a512 2
	echo m68k-apple-machten"$UNAME_RELEASE"
	exit ;;
d514 2
a515 2
	echo powerpc-apple-machten"$UNAME_RELEASE"
	exit ;;
d517 2
a518 2
	echo mips-dec-mach_bsd4.3
	exit ;;
d520 2
a521 2
	echo mips-dec-ultrix"$UNAME_RELEASE"
	exit ;;
d523 2
a524 2
	echo vax-dec-ultrix"$UNAME_RELEASE"
	exit ;;
d526 2
a527 2
	echo clipper-intergraph-clix"$UNAME_RELEASE"
	exit ;;
d555 2
a556 2
	echo mips-mips-riscos"$UNAME_RELEASE"
	exit ;;
d558 2
a559 2
	echo powerpc-motorola-powermax
	exit ;;
d561 2
a562 2
	echo powerpc-harris-powermax
	exit ;;
d564 2
a565 2
	echo powerpc-harris-powermax
	exit ;;
d567 2
a568 2
	echo powerpc-harris-powerunix
	exit ;;
d570 2
a571 2
	echo m88k-harris-cxux7
	exit ;;
d573 2
a574 2
	echo m88k-motorola-sysv4
	exit ;;
d576 2
a577 2
	echo m88k-motorola-sysv3
	exit ;;
d581 1
a581 1
	if [ "$UNAME_PROCESSOR" = mc88100 ] || [ "$UNAME_PROCESSOR" = mc88110 ]
d583 2
a584 2
	    if [ "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx ] || \
	       [ "$TARGET_BINARY_INTERFACE"x = x ]
d586 1
a586 1
		echo m88k-dg-dgux"$UNAME_RELEASE"
d588 1
a588 1
		echo m88k-dg-dguxbcs"$UNAME_RELEASE"
d591 1
a591 1
	    echo i586-dg-dgux"$UNAME_RELEASE"
d593 1
a593 1
	exit ;;
d595 2
a596 2
	echo m88k-dolphin-sysv3
	exit ;;
d599 2
a600 2
	echo m88k-motorola-sysv3
	exit ;;
d602 2
a603 2
	echo m88k-tektronix-sysv3
	exit ;;
d605 2
a606 2
	echo m68k-tektronix-bsd
	exit ;;
d608 3
a610 2
	echo mips-sgi-irix"`echo "$UNAME_RELEASE"|sed -e 's/-/_/g'`"
	exit ;;
d612 2
a613 2
	echo romp-ibm-aix     # uname -m gives an 8 hex-code CPU id
	exit ;;               # Note that: echo "'`uname -s`'" gives 'AIX '
d615 2
a616 2
	echo i386-ibm-aix
	exit ;;
d618 1
a618 1
	if [ -x /usr/bin/oslevel ] ; then
d621 1
a621 1
		IBM_REV="$UNAME_VERSION.$UNAME_RELEASE"
d623 2
a624 2
	echo "$UNAME_MACHINE"-ibm-aix"$IBM_REV"
	exit ;;
d641 1
a641 1
			echo "$SYSTEM_NAME"
d643 1
a643 1
			echo rs6000-ibm-aix3.2.5
d646 1
a646 1
		echo rs6000-ibm-aix3.2.4
d648 1
a648 1
		echo rs6000-ibm-aix3.2
d650 1
a650 1
	exit ;;
d658 2
a659 2
	if [ -x /usr/bin/lslpp ] ; then
		IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc |
d662 1
a662 1
		IBM_REV="$UNAME_VERSION.$UNAME_RELEASE"
d664 2
a665 2
	echo "$IBM_ARCH"-ibm-aix"$IBM_REV"
	exit ;;
d667 2
a668 2
	echo rs6000-ibm-aix
	exit ;;
d670 2
a671 2
	echo romp-ibm-bsd4.4
	exit ;;
d673 2
a674 2
	echo romp-ibm-bsd"$UNAME_RELEASE"   # 4.3 with uname added to
	exit ;;                             # report: romp-ibm BSD 4.3
d676 2
a677 2
	echo rs6000-bull-bosx
	exit ;;
d679 2
a680 2
	echo m68k-bull-sysv3
	exit ;;
d682 2
a683 2
	echo m68k-hp-bsd
	exit ;;
d685 2
a686 2
	echo m68k-hp-bsd4.4
	exit ;;
d688 2
a689 2
	HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'`
	case "$UNAME_MACHINE" in
d693 1
a693 1
		if [ -x /usr/bin/getconf ]; then
d696 1
a696 1
		    case "$sc_cpu_version" in
d700 1
a700 1
			case "$sc_kernel_bits" in
d707 1
a707 1
		if [ "$HP_ARCH" = "" ]; then
d746 1
a746 1
	if [ "$HP_ARCH" = hppa2.0w ]
d767 2
a768 2
	echo "$HP_ARCH"-hp-hpux"$HPUX_REV"
	exit ;;
d770 3
a772 3
	HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'`
	echo ia64-hp-hpux"$HPUX_REV"
	exit ;;
d802 2
a803 2
	echo unknown-hitachi-hiuxwe2
	exit ;;
d805 2
a806 2
	echo hppa1.1-hp-bsd
	exit ;;
d808 2
a809 2
	echo hppa1.0-hp-bsd
	exit ;;
d811 2
a812 2
	echo hppa1.0-hp-mpeix
	exit ;;
d814 2
a815 2
	echo hppa1.1-hp-osf
	exit ;;
d817 2
a818 2
	echo hppa1.0-hp-osf
	exit ;;
d820 2
a821 2
	if [ -x /usr/sbin/sysversion ] ; then
	    echo "$UNAME_MACHINE"-unknown-osf1mk
d823 1
a823 1
	    echo "$UNAME_MACHINE"-unknown-osf1
d825 1
a825 1
	exit ;;
d827 2
a828 2
	echo hppa1.1-hp-lites
	exit ;;
d830 2
a831 2
	echo c1-convex-bsd
	exit ;;
d839 2
a840 2
	echo c34-convex-bsd
	exit ;;
d842 2
a843 2
	echo c38-convex-bsd
	exit ;;
d845 2
a846 2
	echo c4-convex-bsd
	exit ;;
d848 3
a850 2
	echo ymp-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
	exit ;;
d858 3
a860 2
	echo t90-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
	exit ;;
d862 3
a864 2
	echo alphaev5-cray-unicosmk"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
	exit ;;
d866 3
a868 2
	echo sv1-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
	exit ;;
d870 3
a872 2
	echo craynv-cray-unicosmp"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
	exit ;;
d877 2
a878 2
	echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
	exit ;;
d882 2
a883 2
	echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
	exit ;;
d885 2
a886 2
	echo "$UNAME_MACHINE"-pc-bsdi"$UNAME_RELEASE"
	exit ;;
d888 2
a889 2
	echo sparc-unknown-bsdi"$UNAME_RELEASE"
	exit ;;
d891 2
a892 2
	echo "$UNAME_MACHINE"-unknown-bsdi"$UNAME_RELEASE"
	exit ;;
d899 2
a900 1
	    echo "${UNAME_PROCESSOR}"-unknown-freebsd"`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`"-gnueabi
d902 2
a903 1
	    echo "${UNAME_PROCESSOR}"-unknown-freebsd"`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`"-gnueabihf
d905 1
a905 1
	exit ;;
d908 1
a908 1
	case "$UNAME_PROCESSOR" in
d914 3
a916 2
	echo "$UNAME_PROCESSOR"-unknown-freebsd"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`"
	exit ;;
d918 2
a919 2
	echo "$UNAME_MACHINE"-pc-cygwin
	exit ;;
d921 2
a922 2
	echo "$UNAME_MACHINE"-pc-mingw64
	exit ;;
d924 2
a925 2
	echo "$UNAME_MACHINE"-pc-mingw32
	exit ;;
d927 2
a928 2
	echo "$UNAME_MACHINE"-pc-msys
	exit ;;
d930 5
a934 2
	echo "$UNAME_MACHINE"-pc-pw32
	exit ;;
d936 1
a936 1
	case "$UNAME_MACHINE" in
d938 2
a939 2
		echo i586-pc-interix"$UNAME_RELEASE"
		exit ;;
d941 2
a942 2
		echo x86_64-unknown-interix"$UNAME_RELEASE"
		exit ;;
d944 2
a945 2
		echo ia64-unknown-interix"$UNAME_RELEASE"
		exit ;;
d948 2
a949 2
	echo "$UNAME_MACHINE"-pc-uwin
	exit ;;
d951 2
a952 2
	echo x86_64-pc-cygwin
	exit ;;
d954 3
a956 2
	echo powerpcle-unknown-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
	exit ;;
d959 4
a962 2
	echo "`echo "$UNAME_MACHINE"|sed -e 's,[-/].*$,,'`-unknown-$LIBC`echo "$UNAME_RELEASE"|sed -e 's,/.*$,,'`"
	exit ;;
d965 4
a968 2
	echo "$UNAME_MACHINE-unknown-`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`-$LIBC"
	exit ;;
d970 2
a971 2
	echo "$UNAME_MACHINE"-unknown-minix
	exit ;;
d973 2
a974 2
	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
	exit ;;
d977 2
a978 2
	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
	exit ;;
d980 1
a980 1
	case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
d991 5
a995 5
	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
	exit ;;
    arc:Linux:*:* | arceb:Linux:*:*)
	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
	exit ;;
d1001 1
a1001 1
	    echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
d1006 1
a1006 1
		echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabi
d1008 1
a1008 1
		echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabihf
d1011 1
a1011 1
	exit ;;
d1013 2
a1014 2
	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
	exit ;;
d1016 2
a1017 2
	echo "$UNAME_MACHINE"-axis-linux-"$LIBC"
	exit ;;
d1019 2
a1020 2
	echo "$UNAME_MACHINE"-axis-linux-"$LIBC"
	exit ;;
d1022 2
a1023 2
	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
	exit ;;
d1025 2
a1026 2
	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
	exit ;;
d1028 2
a1029 2
	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
	exit ;;
d1031 2
a1032 2
	echo "$UNAME_MACHINE"-pc-linux-"$LIBC"
	exit ;;
d1034 2
a1035 2
	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
	exit ;;
d1037 5
a1041 2
	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
	exit ;;
d1043 2
a1044 2
	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
	exit ;;
d1046 2
a1047 2
	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
	exit ;;
d1050 2
d1054 28
a1081 2
	#undef ${UNAME_MACHINE}
	#undef ${UNAME_MACHINE}el
d1083 1
a1083 1
	CPU=${UNAME_MACHINE}el
d1086 1
a1086 1
	CPU=${UNAME_MACHINE}
d1088 1
a1088 1
	CPU=
d1092 3
a1094 2
	eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU'`"
	test "x$CPU" != x && { echo "$CPU-unknown-linux-$LIBC"; exit; }
d1097 2
a1098 2
	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
	exit ;;
d1100 2
a1101 2
	echo or1k-unknown-linux-"$LIBC"
	exit ;;
d1103 2
a1104 2
	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
	exit ;;
d1106 2
a1107 2
	echo sparc-unknown-linux-"$LIBC"
	exit ;;
d1109 2
a1110 2
	echo hppa64-unknown-linux-"$LIBC"
	exit ;;
d1114 3
a1116 3
	  PA7*) echo hppa1.1-unknown-linux-"$LIBC" ;;
	  PA8*) echo hppa2.0-unknown-linux-"$LIBC" ;;
	  *)    echo hppa-unknown-linux-"$LIBC" ;;
d1118 1
a1118 1
	exit ;;
d1120 2
a1121 2
	echo powerpc64-unknown-linux-"$LIBC"
	exit ;;
d1123 2
a1124 2
	echo powerpc-unknown-linux-"$LIBC"
	exit ;;
d1126 2
a1127 2
	echo powerpc64le-unknown-linux-"$LIBC"
	exit ;;
d1129 5
a1133 5
	echo powerpcle-unknown-linux-"$LIBC"
	exit ;;
    riscv32:Linux:*:* | riscv64:Linux:*:*)
	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
	exit ;;
d1135 2
a1136 2
	echo "$UNAME_MACHINE"-ibm-linux-"$LIBC"
	exit ;;
d1138 2
a1139 2
	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
	exit ;;
d1141 2
a1142 2
	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
	exit ;;
d1144 2
a1145 2
	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
	exit ;;
d1147 2
a1148 2
	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
	exit ;;
d1150 2
a1151 2
	echo "$UNAME_MACHINE"-dec-linux-"$LIBC"
	exit ;;
d1153 12
a1164 2
	echo "$UNAME_MACHINE"-pc-linux-"$LIBC"
	exit ;;
d1166 2
a1167 2
	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
	exit ;;
d1172 2
a1173 2
	echo i386-sequent-sysv4
	exit ;;
d1180 2
a1181 2
	echo "$UNAME_MACHINE"-pc-sysv4.2uw"$UNAME_VERSION"
	exit ;;
d1185 2
a1186 2
	echo "$UNAME_MACHINE"-pc-os2-emx
	exit ;;
d1188 2
a1189 2
	echo "$UNAME_MACHINE"-unknown-stop
	exit ;;
d1191 2
a1192 2
	echo "$UNAME_MACHINE"-unknown-atheos
	exit ;;
d1194 2
a1195 2
	echo "$UNAME_MACHINE"-pc-syllable
	exit ;;
d1197 2
a1198 2
	echo i386-unknown-lynxos"$UNAME_RELEASE"
	exit ;;
d1200 2
a1201 2
	echo "$UNAME_MACHINE"-pc-msdosdjgpp
	exit ;;
d1205 1
a1205 1
		echo "$UNAME_MACHINE"-univel-sysv"$UNAME_REL"
d1207 1
a1207 1
		echo "$UNAME_MACHINE"-pc-sysv"$UNAME_REL"
d1209 1
a1209 1
	exit ;;
d1217 2
a1218 2
	echo "$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}{$UNAME_VERSION}"
	exit ;;
d1222 1
a1222 1
		echo "$UNAME_MACHINE"-pc-isc"$UNAME_REL"
d1232 1
a1232 1
		echo "$UNAME_MACHINE"-pc-sco"$UNAME_REL"
d1234 1
a1234 1
		echo "$UNAME_MACHINE"-pc-sysv32
d1236 1
a1236 1
	exit ;;
d1244 2
a1245 2
	echo i586-pc-msdosdjgpp
	exit ;;
d1247 2
a1248 2
	echo i386-pc-mach3
	exit ;;
d1250 2
a1251 2
	echo i860-intel-osf1
	exit ;;
d1254 1
a1254 1
	  echo i860-stardent-sysv"$UNAME_RELEASE" # Stardent Vistra i860-SVR4
d1256 1
a1256 1
	  echo i860-unknown-sysv"$UNAME_RELEASE"  # Unknown i860-SVR4
d1258 1
a1258 1
	exit ;;
d1261 2
a1262 2
	echo m68010-convergent-sysv
	exit ;;
d1264 2
a1265 2
	echo m68k-convergent-sysv
	exit ;;
d1267 2
a1268 2
	echo m68k-diab-dnix
	exit ;;
d1293 2
a1294 2
	echo m68k-unknown-lynxos"$UNAME_RELEASE"
	exit ;;
d1296 2
a1297 2
	echo m68k-atari-sysv4
	exit ;;
d1299 2
a1300 2
	echo sparc-unknown-lynxos"$UNAME_RELEASE"
	exit ;;
d1302 2
a1303 2
	echo rs6000-unknown-lynxos"$UNAME_RELEASE"
	exit ;;
d1305 2
a1306 2
	echo powerpc-unknown-lynxos"$UNAME_RELEASE"
	exit ;;
d1308 2
a1309 2
	echo mips-dde-sysv"$UNAME_RELEASE"
	exit ;;
d1311 2
a1312 2
	echo mips-sni-sysv4
	exit ;;
d1314 2
a1315 2
	echo mips-sni-sysv4
	exit ;;
d1319 1
a1319 1
		echo "$UNAME_MACHINE"-sni-sysv4
d1321 1
a1321 1
		echo ns32k-sni-sysv
d1323 1
a1323 1
	exit ;;
d1326 2
a1327 2
	echo i586-unisys-sysv4
	exit ;;
d1331 2
a1332 2
	echo hppa1.1-stratus-sysv4
	exit ;;
d1335 2
a1336 2
	echo i860-stratus-sysv4
	exit ;;
d1339 2
a1340 2
	echo "$UNAME_MACHINE"-stratus-vos
	exit ;;
d1343 2
a1344 2
	echo hppa1.1-stratus-vos
	exit ;;
d1346 2
a1347 2
	echo m68k-apple-aux"$UNAME_RELEASE"
	exit ;;
d1349 2
a1350 2
	echo mips-sony-newsos6
	exit ;;
d1352 2
a1353 2
	if [ -d /usr/nec ]; then
		echo mips-nec-sysv"$UNAME_RELEASE"
d1355 1
a1355 1
		echo mips-unknown-sysv"$UNAME_RELEASE"
d1357 1
a1357 1
	exit ;;
d1359 2
a1360 2
	echo powerpc-be-beos
	exit ;;
d1362 2
a1363 2
	echo powerpc-apple-beos
	exit ;;
d1365 2
a1366 2
	echo i586-pc-beos
	exit ;;
d1368 2
a1369 2
	echo i586-pc-haiku
	exit ;;
d1371 2
a1372 2
	echo x86_64-unknown-haiku
	exit ;;
d1374 2
a1375 2
	echo sx4-nec-superux"$UNAME_RELEASE"
	exit ;;
d1377 2
a1378 2
	echo sx5-nec-superux"$UNAME_RELEASE"
	exit ;;
d1380 2
a1381 2
	echo sx6-nec-superux"$UNAME_RELEASE"
	exit ;;
d1383 2
a1384 2
	echo sx7-nec-superux"$UNAME_RELEASE"
	exit ;;
d1386 2
a1387 2
	echo sx8-nec-superux"$UNAME_RELEASE"
	exit ;;
d1389 2
a1390 2
	echo sx8r-nec-superux"$UNAME_RELEASE"
	exit ;;
d1392 2
a1393 2
	echo sxace-nec-superux"$UNAME_RELEASE"
	exit ;;
d1395 2
a1396 2
	echo powerpc-apple-rhapsody"$UNAME_RELEASE"
	exit ;;
d1398 5
a1402 2
	echo "$UNAME_MACHINE"-apple-rhapsody"$UNAME_RELEASE"
	exit ;;
d1404 12
a1415 4
	UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
	set_cc_for_build
	if test "$UNAME_PROCESSOR" = unknown ; then
	    UNAME_PROCESSOR=powerpc
d1417 16
a1432 18
	if test "`echo "$UNAME_RELEASE" | sed -e 's/\..*//'`" -le 10 ; then
	    if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
		if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
		       (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
		       grep IS_64BIT_ARCH >/dev/null
		then
		    case $UNAME_PROCESSOR in
			i386) UNAME_PROCESSOR=x86_64 ;;
			powerpc) UNAME_PROCESSOR=powerpc64 ;;
		    esac
		fi
		# On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc
		if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \
		       (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
		       grep IS_PPC >/dev/null
		then
		    UNAME_PROCESSOR=powerpc
		fi
d1435 2
a1436 7
	    # Avoid executing cc on OS X 10.9, as it ships with a stub
	    # that puts up a graphical alert prompting to install
	    # developer tools.  Any system running Mac OS X 10.7 or
	    # later (Darwin 11 and later) is required to have a 64-bit
	    # processor. This is not true of the ARM version of Darwin
	    # that Apple uses in portable devices.
	    UNAME_PROCESSOR=x86_64
d1438 2
a1439 2
	echo "$UNAME_PROCESSOR"-apple-darwin"$UNAME_RELEASE"
	exit ;;
d1446 2
a1447 2
	echo "$UNAME_PROCESSOR"-"$UNAME_MACHINE"-nto-qnx"$UNAME_RELEASE"
	exit ;;
d1449 2
a1450 2
	echo i386-pc-qnx
	exit ;;
d1452 2
a1453 2
	echo neo-tandem-nsk"$UNAME_RELEASE"
	exit ;;
d1455 2
a1456 2
	echo nse-tandem-nsk"$UNAME_RELEASE"
	exit ;;
d1458 2
a1459 2
	echo nsr-tandem-nsk"$UNAME_RELEASE"
	exit ;;
d1461 2
a1462 2
	echo nsv-tandem-nsk"$UNAME_RELEASE"
	exit ;;
d1464 2
a1465 2
	echo nsx-tandem-nsk"$UNAME_RELEASE"
	exit ;;
d1467 2
a1468 2
	echo mips-compaq-nonstopux
	exit ;;
d1470 2
a1471 2
	echo bs2000-siemens-sysv
	exit ;;
d1473 2
a1474 2
	echo "$UNAME_MACHINE"-"$UNAME_SYSTEM"-"$UNAME_RELEASE"
	exit ;;
d1479 1
a1479 2
	# shellcheck disable=SC2154
	if test "$cputype" = 386; then
d1481 2
a1482 2
	else
	    UNAME_MACHINE="$cputype"
d1484 2
a1485 2
	echo "$UNAME_MACHINE"-unknown-plan9
	exit ;;
d1487 2
a1488 2
	echo pdp10-unknown-tops10
	exit ;;
d1490 2
a1491 2
	echo pdp10-unknown-tenex
	exit ;;
d1493 2
a1494 2
	echo pdp10-dec-tops20
	exit ;;
d1496 2
a1497 2
	echo pdp10-xkl-tops20
	exit ;;
d1499 2
a1500 2
	echo pdp10-unknown-tops20
	exit ;;
d1502 2
a1503 2
	echo pdp10-unknown-its
	exit ;;
d1505 2
a1506 2
	echo mips-sei-seiux"$UNAME_RELEASE"
	exit ;;
d1508 3
a1510 2
	echo "$UNAME_MACHINE"-unknown-dragonfly"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`"
	exit ;;
d1513 4
a1516 4
	case "$UNAME_MACHINE" in
	    A*) echo alpha-dec-vms ; exit ;;
	    I*) echo ia64-dec-vms ; exit ;;
	    V*) echo vax-dec-vms ; exit ;;
d1519 2
a1520 2
	echo i386-pc-xenix
	exit ;;
d1522 3
a1524 2
	echo "$UNAME_MACHINE"-pc-skyos"`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'`"
	exit ;;
d1526 8
a1533 5
	echo "$UNAME_MACHINE"-pc-rdos
	exit ;;
    i*86:AROS:*:*)
	echo "$UNAME_MACHINE"-pc-aros
	exit ;;
d1535 2
a1536 2
	echo "$UNAME_MACHINE"-unknown-esx
	exit ;;
d1538 2
a1539 2
	echo x86_64-unknown-onefs
	exit ;;
d1541 2
a1542 2
	echo "$UNAME_MACHINE"-unknown-unleashed"$UNAME_RELEASE"
	exit ;;
d1545 143
d1690 1
a1690 1
case "$UNAME_MACHINE:$UNAME_SYSTEM" in
d1707 1
a1707 1
  https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
d1709 9
a1717 1
  https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
d1745 1
@


1.7
log
@Update for libarchive-3.4.0:
- improvements for Android APK and JAR archives
- better support for non-recursive list and extract
- tar --exclude-vcs support
- fixes for file attributes and flags handling
- zipx support
- rar 5.0 reader
@
text
@d5 1
a5 1
timestamp='2019-06-10'
d190 4
a193 2
	    earmv*)
		arch=`echo "$UNAME_MACHINE_ARCH" | sed -e 's,^e\(armv[0-9]\).*$,\1,'`
d224 1
a224 1
		expr='s/^earmv[0-9]/-eabi/;s/eb$//'
a266 3
    *:OS108:*:*)
	echo "$UNAME_MACHINE"-unknown-os108_"$UNAME_RELEASE"
	exit ;;
d390 14
a403 1
	echo sparc-sun-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`"
a1002 2
	IS_GLIBC=0
	test x"${LIBC}" = xgnu && IS_GLIBC=1
d1005 2
a1006 28
	#undef mips
	#undef mipsel
	#undef mips64
	#undef mips64el
	#if ${IS_GLIBC} && defined(_ABI64)
	LIBCABI=gnuabi64
	#else
	#if ${IS_GLIBC} && defined(_ABIN32)
	LIBCABI=gnuabin32
	#else
	LIBCABI=${LIBC}
	#endif
	#endif

	#if ${IS_GLIBC} && defined(__mips64) && defined(__mips_isa_rev) && __mips_isa_rev>=6
	CPU=mipsisa64r6
	#else
	#if ${IS_GLIBC} && !defined(__mips64) && defined(__mips_isa_rev) && __mips_isa_rev>=6
	CPU=mipsisa32r6
	#else
	#if defined(__mips64)
	CPU=mips64
	#else
	CPU=mips
	#endif
	#endif
	#endif

d1008 1
a1008 1
	MIPS_ENDIAN=el
d1011 1
a1011 1
	MIPS_ENDIAN=
d1013 1
a1013 1
	MIPS_ENDIAN=
d1017 2
a1018 2
	eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU\|^MIPS_ENDIAN\|^LIBCABI'`"
	test "x$CPU" != x && { echo "$CPU${MIPS_ENDIAN}-unknown-linux-$LIBCABI"; exit; }
d1131 1
a1131 1
	echo "$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}"
d1315 4
a1318 12
	UNAME_PROCESSOR=`uname -p`
	case $UNAME_PROCESSOR in
	    unknown) UNAME_PROCESSOR=powerpc ;;
	esac
	if command -v xcode-select > /dev/null 2> /dev/null && \
		! xcode-select --print-path > /dev/null 2> /dev/null ; then
	    # Avoid executing cc if there is no toolchain installed as
	    # cc will be a stub that puts up a graphical alert
	    # prompting the user to install developer tools.
	    CC_FOR_BUILD=no_compiler_found
	else
	    set_cc_for_build
d1320 18
a1337 16
	if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
	    if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
		   (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
		   grep IS_64BIT_ARCH >/dev/null
	    then
		case $UNAME_PROCESSOR in
		    i386) UNAME_PROCESSOR=x86_64 ;;
		    powerpc) UNAME_PROCESSOR=powerpc64 ;;
		esac
	    fi
	    # On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc
	    if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \
		   (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
		   grep IS_PPC >/dev/null
	    then
		UNAME_PROCESSOR=powerpc
d1340 7
a1346 2
	    # uname -m returns i386 or x86_64
	    UNAME_PROCESSOR=$UNAME_MACHINE
a1450 137
# No uname command or uname output not recognized.
set_cc_for_build
cat > "$dummy.c" <<EOF
#ifdef _SEQUENT_
#include <sys/types.h>
#include <sys/utsname.h>
#endif
#if defined(ultrix) || defined(_ultrix) || defined(__ultrix) || defined(__ultrix__)
#if defined (vax) || defined (__vax) || defined (__vax__) || defined(mips) || defined(__mips) || defined(__mips__) || defined(MIPS) || defined(__MIPS__)
#include <signal.h>
#if defined(_SIZE_T_) || defined(SIGLOST)
#include <sys/utsname.h>
#endif
#endif
#endif
main ()
{
#if defined (sony)
#if defined (MIPSEB)
  /* BFD wants "bsd" instead of "newsos".  Perhaps BFD should be changed,
     I don't know....  */
  printf ("mips-sony-bsd\n"); exit (0);
#else
#include <sys/param.h>
  printf ("m68k-sony-newsos%s\n",
#ifdef NEWSOS4
  "4"
#else
  ""
#endif
  ); exit (0);
#endif
#endif

#if defined (NeXT)
#if !defined (__ARCHITECTURE__)
#define __ARCHITECTURE__ "m68k"
#endif
  int version;
  version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
  if (version < 4)
    printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
  else
    printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
  exit (0);
#endif

#if defined (MULTIMAX) || defined (n16)
#if defined (UMAXV)
  printf ("ns32k-encore-sysv\n"); exit (0);
#else
#if defined (CMU)
  printf ("ns32k-encore-mach\n"); exit (0);
#else
  printf ("ns32k-encore-bsd\n"); exit (0);
#endif
#endif
#endif

#if defined (__386BSD__)
  printf ("i386-pc-bsd\n"); exit (0);
#endif

#if defined (sequent)
#if defined (i386)
  printf ("i386-sequent-dynix\n"); exit (0);
#endif
#if defined (ns32000)
  printf ("ns32k-sequent-dynix\n"); exit (0);
#endif
#endif

#if defined (_SEQUENT_)
  struct utsname un;

  uname(&un);
  if (strncmp(un.version, "V2", 2) == 0) {
    printf ("i386-sequent-ptx2\n"); exit (0);
  }
  if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
    printf ("i386-sequent-ptx1\n"); exit (0);
  }
  printf ("i386-sequent-ptx\n"); exit (0);
#endif

#if defined (vax)
#if !defined (ultrix)
#include <sys/param.h>
#if defined (BSD)
#if BSD == 43
  printf ("vax-dec-bsd4.3\n"); exit (0);
#else
#if BSD == 199006
  printf ("vax-dec-bsd4.3reno\n"); exit (0);
#else
  printf ("vax-dec-bsd\n"); exit (0);
#endif
#endif
#else
  printf ("vax-dec-bsd\n"); exit (0);
#endif
#else
#if defined(_SIZE_T_) || defined(SIGLOST)
  struct utsname un;
  uname (&un);
  printf ("vax-dec-ultrix%s\n", un.release); exit (0);
#else
  printf ("vax-dec-ultrix\n"); exit (0);
#endif
#endif
#endif
#if defined(ultrix) || defined(_ultrix) || defined(__ultrix) || defined(__ultrix__)
#if defined(mips) || defined(__mips) || defined(__mips__) || defined(MIPS) || defined(__MIPS__)
#if defined(_SIZE_T_) || defined(SIGLOST)
  struct utsname *un;
  uname (&un);
  printf ("mips-dec-ultrix%s\n", un.release); exit (0);
#else
  printf ("mips-dec-ultrix\n"); exit (0);
#endif
#endif
#endif

#if defined (alliant) && defined (i860)
  printf ("i860-alliant-bsd\n"); exit (0);
#endif

  exit (1);
}
EOF

$CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null && SYSTEM_NAME=`$dummy` &&
	{ echo "$SYSTEM_NAME"; exit; }

# Apollos put the system type in the environment.
test -d /usr/apollo && { echo "$ISP-apollo-$SYSTYPE"; exit; }

@


1.6
log
@libarchive: updated to 3.3.3

libarchive 3.3.3:
Avoid super-linear slowdown on malformed mtree files
Many fixes for building with Visual Studio
NO_OVERWRITE doesn't change existing directory attributes
New support for Zstandard read and write filters
@
text
@d3 1
a3 1
#   Copyright 1992-2018 Free Software Foundation, Inc.
d5 1
a5 1
timestamp='2018-08-29'
d53 1
a53 1
Copyright 1992-2018 Free Software Foundation, Inc.
d99 1
a99 2
trap 'test -z "$tmp" || rm -fr "$tmp"' 1 2 13 15
trap 'exitcode=$?; test -z "$tmp" || rm -fr "$tmp"; exit $exitcode' 0
d265 3
d397 14
a410 9
	UNAME_REL="`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`"
	case `isainfo -b` in
	    32)
		echo i386-pc-solaris2"$UNAME_REL"
		;;
	    64)
		echo x86_64-pc-solaris2"$UNAME_REL"
		;;
	esac
d900 1
a900 1
	echo x86_64-unknown-cygwin
d991 2
d995 28
a1022 2
	#undef ${UNAME_MACHINE}
	#undef ${UNAME_MACHINE}el
d1024 1
a1024 1
	CPU=${UNAME_MACHINE}el
d1027 1
a1027 1
	CPU=${UNAME_MACHINE}
d1029 1
a1029 1
	CPU=
d1033 2
a1034 2
	eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU'`"
	test "x$CPU" != x && { echo "$CPU-unknown-linux-$LIBC"; exit; }
d1147 1
a1147 1
	echo "$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}{$UNAME_VERSION}"
d1331 12
a1342 4
	UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
	set_cc_for_build
	if test "$UNAME_PROCESSOR" = unknown ; then
	    UNAME_PROCESSOR=powerpc
d1344 16
a1359 18
	if test "`echo "$UNAME_RELEASE" | sed -e 's/\..*//'`" -le 10 ; then
	    if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
		if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
		       (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
		       grep IS_64BIT_ARCH >/dev/null
		then
		    case $UNAME_PROCESSOR in
			i386) UNAME_PROCESSOR=x86_64 ;;
			powerpc) UNAME_PROCESSOR=powerpc64 ;;
		    esac
		fi
		# On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc
		if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \
		       (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
		       grep IS_PPC >/dev/null
		then
		    UNAME_PROCESSOR=powerpc
		fi
d1362 2
a1363 7
	    # Avoid executing cc on OS X 10.9, as it ships with a stub
	    # that puts up a graphical alert prompting to install
	    # developer tools.  Any system running Mac OS X 10.7 or
	    # later (Darwin 11 and later) is required to have a 64-bit
	    # processor. This is not true of the ARM version of Darwin
	    # that Apple uses in portable devices.
	    UNAME_PROCESSOR=x86_64
d1463 3
d1468 137
@


1.5
log
@Merge for libarchive-3.3.2.
@
text
@d3 1
a3 1
#   Copyright 1992-2017 Free Software Foundation, Inc.
d5 1
a5 1
timestamp='2017-05-27'
d18 1
a18 1
# along with this program; if not, see <http://www.gnu.org/licenses/>.
d30 1
a30 1
# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
d42 1
a42 1
Operation modes:
d53 1
a53 1
Copyright 1992-2017 Free Software Foundation, Inc.
a86 2
trap 'exit 1' 1 2 15

d97 29
a125 24
set_cc_for_build='
trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
: ${TMPDIR=/tmp} ;
 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
dummy=$tmp/dummy ;
tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
case $CC_FOR_BUILD,$HOST_CC,$CC in
 ,,)    echo "int x;" > $dummy.c ;
	for c in cc gcc c89 c99 ; do
	  if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
	     CC_FOR_BUILD="$c"; break ;
	  fi ;
	done ;
	if test x"$CC_FOR_BUILD" = x ; then
	  CC_FOR_BUILD=no_compiler_found ;
	fi
	;;
 ,,*)   CC_FOR_BUILD=$CC ;;
 ,*,*)  CC_FOR_BUILD=$HOST_CC ;;
esac ; set_cc_for_build= ;'
d129 1
a129 1
if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
d138 1
a138 1
case "${UNAME_SYSTEM}" in
d144 2
a145 2
	eval $set_cc_for_build
	cat <<-EOF > $dummy.c
d155 8
a162 1
	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`
d168 1
a168 1
case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
d182 2
a183 2
	    /sbin/$sysctl 2>/dev/null || \
	    /usr/sbin/$sysctl 2>/dev/null || \
d185 1
a185 1
	case "${UNAME_MACHINE_ARCH}" in
d192 3
a194 3
		arch=`echo ${UNAME_MACHINE_ARCH} | sed -e 's,^e\(armv[0-9]\).*$,\1,'`
		endian=`echo ${UNAME_MACHINE_ARCH} | sed -ne 's,^.*\(eb\)$,\1,p'`
		machine=${arch}${endian}-unknown
d196 1
a196 1
	    *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
d200 1
a200 1
	case "${UNAME_MACHINE_ARCH}" in
d205 1
a205 1
		eval $set_cc_for_build
d221 1
a221 1
	case "${UNAME_MACHINE_ARCH}" in
d224 1
a224 1
		abi=`echo ${UNAME_MACHINE_ARCH} | sed -e "$expr"`
d232 1
a232 1
	case "${UNAME_VERSION}" in
d237 1
a237 1
		release=`echo ${UNAME_RELEASE} | sed -e 's/[-_].*//' | cut -d. -f1,2`
d243 1
a243 1
	echo "${machine}-${os}${release}${abi}"
d247 1
a247 1
	echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
d251 1
a251 1
	echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
d255 4
a258 1
	echo ${UNAME_MACHINE_ARCH}-unknown-libertybsd${UNAME_RELEASE}
d261 1
a261 1
	echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
d264 1
a264 1
	echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
d267 1
a267 1
	echo powerpc-unknown-mirbsd${UNAME_RELEASE}
d270 1
a270 1
	echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
d273 1
a273 1
	echo ${UNAME_MACHINE}-unknown-sortix
d275 6
d332 1
a332 1
	echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
a336 9
    Alpha\ *:Windows_NT*:*)
	# How do we know it's Interix rather than the generic POSIX subsystem?
	# Should we change UNAME_MACHINE based on the output of uname instead
	# of the specific Alpha model?
	echo alpha-pc-interix
	exit ;;
    21064:Windows_NT:50:3)
	echo alpha-dec-winnt3.5
	exit ;;
d341 1
a341 1
	echo ${UNAME_MACHINE}-unknown-amigaos
d344 1
a344 1
	echo ${UNAME_MACHINE}-unknown-morphos
d356 1
a356 1
	echo arm-acorn-riscix${UNAME_RELEASE}
d383 1
a383 1
	echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
d386 1
a386 1
	echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
d389 1
a389 1
	echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
d392 1
a392 1
	echo i386-pc-auroraux${UNAME_RELEASE}
d395 9
a403 14
	eval $set_cc_for_build
	SUN_ARCH=i386
	# If there is a compiler, see if it is configured for 64-bit objects.
	# Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
	# This test works for both compilers.
	if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
	    if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
		(CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
		grep IS_64BIT_ARCH >/dev/null
	    then
		SUN_ARCH=x86_64
	    fi
	fi
	echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
d409 1
a409 1
	echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
d418 1
a418 1
	echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
d421 1
a421 1
	echo m68k-sun-sunos${UNAME_RELEASE}
d425 1
a425 1
	test "x${UNAME_RELEASE}" = x && UNAME_RELEASE=3
d428 1
a428 1
		echo m68k-sun-sunos${UNAME_RELEASE}
d431 1
a431 1
		echo sparc-sun-sunos${UNAME_RELEASE}
d436 1
a436 1
	echo sparc-auspex-sunos${UNAME_RELEASE}
d447 1
a447 1
	echo m68k-atari-mint${UNAME_RELEASE}
d450 1
a450 1
	echo m68k-atari-mint${UNAME_RELEASE}
d453 1
a453 1
	echo m68k-atari-mint${UNAME_RELEASE}
d456 1
a456 1
	echo m68k-milan-mint${UNAME_RELEASE}
d459 1
a459 1
	echo m68k-hades-mint${UNAME_RELEASE}
d462 1
a462 1
	echo m68k-unknown-mint${UNAME_RELEASE}
d465 1
a465 1
	echo m68k-apple-machten${UNAME_RELEASE}
d468 1
a468 1
	echo powerpc-apple-machten${UNAME_RELEASE}
d474 1
a474 1
	echo mips-dec-ultrix${UNAME_RELEASE}
d477 1
a477 1
	echo vax-dec-ultrix${UNAME_RELEASE}
d480 1
a480 1
	echo clipper-intergraph-clix${UNAME_RELEASE}
d483 2
a484 2
	eval $set_cc_for_build
	sed 's/^	//' << EOF >$dummy.c
d493 1
a493 1
	  printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
d496 1
a496 1
	  printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
d499 1
a499 1
	  printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
d505 3
a507 3
	$CC_FOR_BUILD -o $dummy $dummy.c &&
	  dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
	  SYSTEM_NAME=`$dummy $dummyarg` &&
d509 1
a509 1
	echo mips-mips-riscos${UNAME_RELEASE}
d535 1
a535 1
	if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
d537 2
a538 2
	    if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
	       [ ${TARGET_BINARY_INTERFACE}x = x ]
d540 1
a540 1
		echo m88k-dg-dgux${UNAME_RELEASE}
d542 1
a542 1
		echo m88k-dg-dguxbcs${UNAME_RELEASE}
d545 1
a545 1
	    echo i586-dg-dgux${UNAME_RELEASE}
d562 1
a562 1
	echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
d574 1
a574 1
		IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
d576 1
a576 1
	echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
d580 2
a581 2
		eval $set_cc_for_build
		sed 's/^		//' << EOF >$dummy.c
d592 1
a592 1
		if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
d606 1
a606 1
	if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
d615 1
a615 1
		IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
d617 1
a617 1
	echo ${IBM_ARCH}-ibm-aix${IBM_REV}
d622 1
a622 1
    ibmrt:4.4BSD:*|romp-ibm:BSD:*)
d626 1
a626 1
	echo romp-ibm-bsd${UNAME_RELEASE}   # 4.3 with uname added to
d641 4
a644 4
	HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
	case "${UNAME_MACHINE}" in
	    9000/31? )            HP_ARCH=m68000 ;;
	    9000/[34]?? )         HP_ARCH=m68k ;;
d649 1
a649 1
		    case "${sc_cpu_version}" in
d653 1
a653 1
			case "${sc_kernel_bits}" in
d660 3
a662 3
		if [ "${HP_ARCH}" = "" ]; then
		    eval $set_cc_for_build
		    sed 's/^		//' << EOF >$dummy.c
d695 1
a695 1
		    (CCOPTS="" $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
d699 1
a699 1
	if [ ${HP_ARCH} = hppa2.0w ]
d701 1
a701 1
	    eval $set_cc_for_build
d720 1
a720 1
	echo ${HP_ARCH}-hp-hpux${HPUX_REV}
d723 2
a724 2
	HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
	echo ia64-hp-hpux${HPUX_REV}
d727 2
a728 2
	eval $set_cc_for_build
	sed 's/^	//' << EOF >$dummy.c
d753 1
a753 1
	$CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
d757 1
a757 1
    9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
d766 1
a766 1
    hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
d774 1
a774 1
	    echo ${UNAME_MACHINE}-unknown-osf1mk
d776 1
a776 1
	    echo ${UNAME_MACHINE}-unknown-osf1
d801 1
a801 1
	echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
d804 1
a804 1
	echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
d810 1
a810 1
	echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
d813 1
a813 1
	echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
d816 1
a816 1
	echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
d819 1
a819 1
	echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
d824 1
a824 1
	FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
d829 1
a829 1
	FUJITSU_REL=`echo ${UNAME_RELEASE} | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'`
d833 1
a833 1
	echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
d836 1
a836 1
	echo sparc-unknown-bsdi${UNAME_RELEASE}
d839 12
a850 1
	echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
d854 1
a854 1
	case ${UNAME_PROCESSOR} in
d860 1
a860 1
	echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
d863 1
a863 1
	echo ${UNAME_MACHINE}-pc-cygwin
d866 1
a866 1
	echo ${UNAME_MACHINE}-pc-mingw64
d869 1
a869 1
	echo ${UNAME_MACHINE}-pc-mingw32
d872 1
a872 5
	echo ${UNAME_MACHINE}-pc-msys
	exit ;;
    i*:windows32*:*)
	# uname -m includes "-pc" on this system.
	echo ${UNAME_MACHINE}-mingw32
d875 1
a875 1
	echo ${UNAME_MACHINE}-pc-pw32
d878 1
a878 1
	case ${UNAME_MACHINE} in
d880 1
a880 1
		echo i586-pc-interix${UNAME_RELEASE}
d883 1
a883 1
		echo x86_64-unknown-interix${UNAME_RELEASE}
d886 1
a886 1
		echo ia64-unknown-interix${UNAME_RELEASE}
a888 12
    [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
	echo i${UNAME_MACHINE}-pc-mks
	exit ;;
    8664:Windows_NT:*)
	echo x86_64-pc-mks
	exit ;;
    i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
	# How do we know it's Interix rather than the generic POSIX subsystem?
	# It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
	# UNAME_MACHINE based on the output of uname instead of i386?
	echo i586-pc-interix
	exit ;;
d890 1
a890 1
	echo ${UNAME_MACHINE}-pc-uwin
a894 3
    p*:CYGWIN*:*)
	echo powerpcle-unknown-cygwin
	exit ;;
d896 1
a896 1
	echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
d900 1
a900 1
	echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
d904 1
a904 1
	echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}
d906 2
a907 2
    i*86:Minix:*:*)
	echo ${UNAME_MACHINE}-pc-minix
d910 1
a910 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d914 1
a914 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d928 1
a928 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d931 1
a931 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d934 1
a934 1
	eval $set_cc_for_build
d938 1
a938 1
	    echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d943 1
a943 1
		echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi
d945 1
a945 1
		echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf
d950 1
a950 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d953 1
a953 1
	echo ${UNAME_MACHINE}-axis-linux-${LIBC}
d956 1
a956 1
	echo ${UNAME_MACHINE}-axis-linux-${LIBC}
d959 1
a959 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d962 1
a962 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d965 1
a965 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d968 1
a968 1
	echo ${UNAME_MACHINE}-pc-linux-${LIBC}
d971 1
a971 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d974 1
a974 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d977 1
a977 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d980 1
a980 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d983 2
a984 2
	eval $set_cc_for_build
	sed 's/^	//' << EOF >$dummy.c
d998 2
a999 2
	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
	test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
d1002 1
a1002 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d1005 1
a1005 1
	echo or1k-unknown-linux-${LIBC}
d1008 1
a1008 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d1011 1
a1011 1
	echo sparc-unknown-linux-${LIBC}
d1014 1
a1014 1
	echo hppa64-unknown-linux-${LIBC}
d1019 3
a1021 3
	  PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;
	  PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;
	  *)    echo hppa-unknown-linux-${LIBC} ;;
d1025 1
a1025 1
	echo powerpc64-unknown-linux-${LIBC}
d1028 1
a1028 1
	echo powerpc-unknown-linux-${LIBC}
d1031 1
a1031 1
	echo powerpc64le-unknown-linux-${LIBC}
d1034 1
a1034 1
	echo powerpcle-unknown-linux-${LIBC}
d1037 1
a1037 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d1040 1
a1040 1
	echo ${UNAME_MACHINE}-ibm-linux-${LIBC}
d1043 1
a1043 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d1046 1
a1046 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d1049 1
a1049 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d1052 1
a1052 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d1055 1
a1055 1
	echo ${UNAME_MACHINE}-dec-linux-${LIBC}
d1058 1
a1058 1
	echo ${UNAME_MACHINE}-pc-linux-${LIBC}
d1061 1
a1061 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d1075 1
a1075 1
	echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
d1080 1
a1080 1
	echo ${UNAME_MACHINE}-pc-os2-emx
d1083 1
a1083 1
	echo ${UNAME_MACHINE}-unknown-stop
d1086 1
a1086 1
	echo ${UNAME_MACHINE}-unknown-atheos
d1089 1
a1089 1
	echo ${UNAME_MACHINE}-pc-syllable
d1092 1
a1092 1
	echo i386-unknown-lynxos${UNAME_RELEASE}
d1095 1
a1095 1
	echo ${UNAME_MACHINE}-pc-msdosdjgpp
d1097 2
a1098 2
    i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
	UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
d1100 1
a1100 1
		echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
d1102 1
a1102 1
		echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
d1112 1
a1112 1
	echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
d1117 1
a1117 1
		echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
d1127 1
a1127 1
		echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
d1129 1
a1129 1
		echo ${UNAME_MACHINE}-pc-sysv32
d1149 1
a1149 1
	  echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
d1151 1
a1151 1
	  echo i860-unknown-sysv${UNAME_RELEASE}  # Unknown i860-SVR4
d1171 1
a1171 1
	  && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
d1173 1
a1173 1
	  && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
d1182 1
a1182 1
	    && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
d1184 1
a1184 1
	    && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
d1186 1
a1186 1
	    && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
d1188 1
a1188 1
	echo m68k-unknown-lynxos${UNAME_RELEASE}
d1194 1
a1194 1
	echo sparc-unknown-lynxos${UNAME_RELEASE}
d1197 1
a1197 1
	echo rs6000-unknown-lynxos${UNAME_RELEASE}
d1200 1
a1200 1
	echo powerpc-unknown-lynxos${UNAME_RELEASE}
d1203 1
a1203 1
	echo mips-dde-sysv${UNAME_RELEASE}
d1214 1
a1214 1
		echo ${UNAME_MACHINE}-sni-sysv4
d1234 1
a1234 1
	echo ${UNAME_MACHINE}-stratus-vos
d1241 1
a1241 1
	echo m68k-apple-aux${UNAME_RELEASE}
d1248 1
a1248 1
		echo mips-nec-sysv${UNAME_RELEASE}
d1250 1
a1250 1
		echo mips-unknown-sysv${UNAME_RELEASE}
d1269 1
a1269 1
	echo sx4-nec-superux${UNAME_RELEASE}
d1272 1
a1272 1
	echo sx5-nec-superux${UNAME_RELEASE}
d1275 1
a1275 1
	echo sx6-nec-superux${UNAME_RELEASE}
d1278 1
a1278 1
	echo sx7-nec-superux${UNAME_RELEASE}
d1281 1
a1281 1
	echo sx8-nec-superux${UNAME_RELEASE}
d1284 1
a1284 1
	echo sx8r-nec-superux${UNAME_RELEASE}
d1287 1
a1287 1
	echo sxace-nec-superux${UNAME_RELEASE}
d1290 1
a1290 1
	echo powerpc-apple-rhapsody${UNAME_RELEASE}
d1293 1
a1293 1
	echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
d1297 1
a1297 1
	eval $set_cc_for_build
d1301 1
a1301 1
	if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then
d1329 1
a1329 1
	echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
d1337 1
a1337 1
	echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
d1343 1
a1343 1
	echo neo-tandem-nsk${UNAME_RELEASE}
d1346 1
a1346 1
	echo nse-tandem-nsk${UNAME_RELEASE}
d1349 4
a1352 1
	echo nsr-tandem-nsk${UNAME_RELEASE}
d1355 1
a1355 1
	echo nsx-tandem-nsk${UNAME_RELEASE}
d1364 1
a1364 1
	echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
d1370 1
d1376 1
a1376 1
	echo ${UNAME_MACHINE}-unknown-plan9
d1397 1
a1397 1
	echo mips-sei-seiux${UNAME_RELEASE}
d1400 1
a1400 1
	echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
d1404 1
a1404 1
	case "${UNAME_MACHINE}" in
d1413 1
a1413 1
	echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE} | sed -e 's/ .*$//'`
d1416 1
a1416 1
	echo ${UNAME_MACHINE}-pc-rdos
d1419 1
a1419 1
	echo ${UNAME_MACHINE}-pc-aros
d1422 1
a1422 1
	echo ${UNAME_MACHINE}-unknown-esx
d1429 13
a1442 1
$0: unable to guess system type
d1445 2
a1446 2
operating system you are using. If your script is old, overwrite
config.guess and config.sub with the latest versions from:
d1448 1
a1448 1
  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
d1450 1
a1450 1
  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
d1473 4
a1476 4
UNAME_MACHINE = ${UNAME_MACHINE}
UNAME_RELEASE = ${UNAME_RELEASE}
UNAME_SYSTEM  = ${UNAME_SYSTEM}
UNAME_VERSION = ${UNAME_VERSION}
d1482 1
a1482 1
# eval: (add-hook 'write-file-hooks 'time-stamp)
@


1.4
log
@Merge libarchive-3.3.1.
@
text
@d5 1
a5 1
timestamp='2017-02-07'
d840 3
a842 3
		echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
	    *)
		echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
d844 1
d1307 2
a1308 2
		    (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
		    grep IS_64BIT_ARCH >/dev/null
d1315 7
d1345 1
a1345 1
    NEO-?:NONSTOP_KERNEL:*:*)
d1351 1
a1351 1
    NSR-?:NONSTOP_KERNEL:*:*)
d1354 1
a1354 1
    NSX-?:NONSTOP_KERNEL:*:*)
@


1.3
log
@Update for libarchive 3.2.1.
@
text
@d3 1
a3 1
#   Copyright 1992-2016 Free Software Foundation, Inc.
d5 1
a5 1
timestamp='2016-05-15'
d53 1
a53 1
Copyright 1992-2016 Free Software Foundation, Inc.
d1003 3
d1038 3
d1346 3
@


1.2
log
@Changes 3.1.2:
This is a maintenance update to fix issues with the new RAR seeking
feature. This new release also contains fixes for build failures when
building libarchive using Visual Studio 2012 and MinGW.
@
text
@d3 1
a3 1
#   Copyright 1992-2013 Free Software Foundation, Inc.
d5 1
a5 1
timestamp='2013-02-04'
d27 1
a27 1
# Originally written by Per Bothner.
d30 1
a30 1
# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
d32 1
a32 1
# Please send patches with a ChangeLog entry to config-patches@@gnu.org.
d53 1
a53 1
Copyright 1992-2013 Free Software Foundation, Inc.
d135 21
d171 4
a174 2
	UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
	    /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
d181 5
d189 1
a189 1
	# to ELF recently, or will in the future.
d191 3
d210 7
d227 1
a227 1
		release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
d233 1
a233 1
	echo "${machine}-${os}${release}"
d243 4
d259 3
d278 1
a278 1
		UNAME_MACHINE="alpha" ;;
d280 1
a280 1
		UNAME_MACHINE="alpha" ;;
d282 1
a282 1
		UNAME_MACHINE="alpha" ;;
d284 1
a284 1
		UNAME_MACHINE="alphaev5" ;;
d286 1
a286 1
		UNAME_MACHINE="alphaev56" ;;
d288 1
a288 1
		UNAME_MACHINE="alphapca56" ;;
d290 1
a290 1
		UNAME_MACHINE="alphapca57" ;;
d292 1
a292 1
		UNAME_MACHINE="alphaev6" ;;
d294 1
a294 1
		UNAME_MACHINE="alphaev67" ;;
d296 1
a296 1
		UNAME_MACHINE="alphaev68" ;;
d298 1
a298 1
		UNAME_MACHINE="alphaev68" ;;
d300 1
a300 1
		UNAME_MACHINE="alphaev68" ;;
d302 1
a302 1
		UNAME_MACHINE="alphaev69" ;;
d304 1
a304 1
		UNAME_MACHINE="alphaev7" ;;
d306 1
a306 1
		UNAME_MACHINE="alphaev79" ;;
d313 1
a313 1
	echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
d386 1
a386 1
	SUN_ARCH="i386"
d390 1
a390 1
	if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
d392 1
a392 1
		(CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
d395 1
a395 1
		SUN_ARCH="x86_64"
d420 1
a420 1
	test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
d606 3
a608 2
	if [ -x /usr/bin/oslevel ] ; then
		IBM_REV=`/usr/bin/oslevel`
d645 2
a646 2
		      523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
		      528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
d649 3
a651 3
			  32) HP_ARCH="hppa2.0n" ;;
			  64) HP_ARCH="hppa2.0w" ;;
			  '') HP_ARCH="hppa2.0" ;;   # HP-UX 10.20
d690 1
a690 1
		    (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
d694 1
a694 1
	if [ ${HP_ARCH} = "hppa2.0w" ]
d707 1
a707 1
	    if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
d710 1
a710 1
		HP_ARCH="hppa2.0w"
d712 1
a712 1
		HP_ARCH="hppa64"
d817 2
a818 2
	FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
	FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
d823 2
a824 2
	FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
	FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
d854 1
a854 1
    i*:MSYS*:*)
d902 1
a902 1
	echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
d906 1
a906 1
	echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
d912 1
a912 1
	echo ${UNAME_MACHINE}-unknown-linux-gnu
d916 1
a916 1
	echo ${UNAME_MACHINE}-unknown-linux-gnu
d929 5
a933 2
	if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
	echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
d940 1
a940 1
	    echo ${UNAME_MACHINE}-unknown-linux-gnu
d945 1
a945 1
		echo ${UNAME_MACHINE}-unknown-linux-gnueabi
d947 1
a947 1
		echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
d952 1
a952 1
	echo ${UNAME_MACHINE}-unknown-linux-gnu
d955 1
a955 1
	echo ${UNAME_MACHINE}-axis-linux-gnu
d958 4
a961 1
	echo ${UNAME_MACHINE}-axis-linux-gnu
d964 1
a964 1
	echo ${UNAME_MACHINE}-unknown-linux-gnu
d967 1
a967 1
	echo ${UNAME_MACHINE}-unknown-linux-gnu
d970 1
a970 9
	LIBC=gnu
	eval $set_cc_for_build
	sed 's/^	//' << EOF >$dummy.c
	#ifdef __dietlibc__
	LIBC=dietlibc
	#endif
EOF
	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
	echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
d973 4
a976 1
	echo ${UNAME_MACHINE}-unknown-linux-gnu
d979 1
a979 1
	echo ${UNAME_MACHINE}-unknown-linux-gnu
d982 1
a982 1
	echo ${UNAME_MACHINE}-unknown-linux-gnu
d1001 1
a1001 1
	test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
d1003 5
a1007 2
    or32:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-gnu
d1010 1
a1010 1
	echo sparc-unknown-linux-gnu
d1013 1
a1013 1
	echo hppa64-unknown-linux-gnu
d1018 3
a1020 3
	  PA7*) echo hppa1.1-unknown-linux-gnu ;;
	  PA8*) echo hppa2.0-unknown-linux-gnu ;;
	  *)    echo hppa-unknown-linux-gnu ;;
d1024 1
a1024 1
	echo powerpc64-unknown-linux-gnu
d1027 7
a1033 1
	echo powerpc-unknown-linux-gnu
d1036 1
a1036 1
	echo ${UNAME_MACHINE}-ibm-linux
d1039 1
a1039 1
	echo ${UNAME_MACHINE}-unknown-linux-gnu
d1042 1
a1042 1
	echo ${UNAME_MACHINE}-unknown-linux-gnu
d1045 1
a1045 1
	echo ${UNAME_MACHINE}-unknown-linux-gnu
d1048 1
a1048 1
	echo ${UNAME_MACHINE}-unknown-linux-gnu
d1051 1
a1051 1
	echo ${UNAME_MACHINE}-dec-linux-gnu
d1054 1
a1054 1
	echo ${UNAME_MACHINE}-unknown-linux-gnu
d1057 1
a1057 1
	echo ${UNAME_MACHINE}-unknown-linux-gnu
d1133 1
a1133 1
	# prints for the "djgpp" host, or else GDB configury will decide that
d1282 3
d1293 25
a1317 13
	case $UNAME_PROCESSOR in
	    i386)
		eval $set_cc_for_build
		if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
		  if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
		      (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
		      grep IS_64BIT_ARCH >/dev/null
		  then
		      UNAME_PROCESSOR="x86_64"
		  fi
		fi ;;
	    unknown) UNAME_PROCESSOR=powerpc ;;
	esac
d1322 1
a1322 1
	if test "$UNAME_PROCESSOR" = "x86"; then
d1353 1
a1353 1
	if test "$cputype" = "386"; then
d1395 1
a1395 1
	echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
d1406 3
a1410 148
eval $set_cc_for_build
cat >$dummy.c <<EOF
#ifdef _SEQUENT_
# include <sys/types.h>
# include <sys/utsname.h>
#endif
main ()
{
#if defined (sony)
#if defined (MIPSEB)
  /* BFD wants "bsd" instead of "newsos".  Perhaps BFD should be changed,
     I don't know....  */
  printf ("mips-sony-bsd\n"); exit (0);
#else
#include <sys/param.h>
  printf ("m68k-sony-newsos%s\n",
#ifdef NEWSOS4
	"4"
#else
	""
#endif
	); exit (0);
#endif
#endif

#if defined (__arm) && defined (__acorn) && defined (__unix)
  printf ("arm-acorn-riscix\n"); exit (0);
#endif

#if defined (hp300) && !defined (hpux)
  printf ("m68k-hp-bsd\n"); exit (0);
#endif

#if defined (NeXT)
#if !defined (__ARCHITECTURE__)
#define __ARCHITECTURE__ "m68k"
#endif
  int version;
  version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
  if (version < 4)
    printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
  else
    printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
  exit (0);
#endif

#if defined (MULTIMAX) || defined (n16)
#if defined (UMAXV)
  printf ("ns32k-encore-sysv\n"); exit (0);
#else
#if defined (CMU)
  printf ("ns32k-encore-mach\n"); exit (0);
#else
  printf ("ns32k-encore-bsd\n"); exit (0);
#endif
#endif
#endif

#if defined (__386BSD__)
  printf ("i386-pc-bsd\n"); exit (0);
#endif

#if defined (sequent)
#if defined (i386)
  printf ("i386-sequent-dynix\n"); exit (0);
#endif
#if defined (ns32000)
  printf ("ns32k-sequent-dynix\n"); exit (0);
#endif
#endif

#if defined (_SEQUENT_)
    struct utsname un;

    uname(&un);

    if (strncmp(un.version, "V2", 2) == 0) {
	printf ("i386-sequent-ptx2\n"); exit (0);
    }
    if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
	printf ("i386-sequent-ptx1\n"); exit (0);
    }
    printf ("i386-sequent-ptx\n"); exit (0);

#endif

#if defined (vax)
# if !defined (ultrix)
#  include <sys/param.h>
#  if defined (BSD)
#   if BSD == 43
      printf ("vax-dec-bsd4.3\n"); exit (0);
#   else
#    if BSD == 199006
      printf ("vax-dec-bsd4.3reno\n"); exit (0);
#    else
      printf ("vax-dec-bsd\n"); exit (0);
#    endif
#   endif
#  else
    printf ("vax-dec-bsd\n"); exit (0);
#  endif
# else
    printf ("vax-dec-ultrix\n"); exit (0);
# endif
#endif

#if defined (alliant) && defined (i860)
  printf ("i860-alliant-bsd\n"); exit (0);
#endif

  exit (1);
}
EOF

$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
	{ echo "$SYSTEM_NAME"; exit; }

# Apollos put the system type in the environment.

test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }

# Convex versions that predate uname can use getsysinfo(1)

if [ -x /usr/convex/getsysinfo ]
then
    case `getsysinfo -f cpu_type` in
    c1*)
	echo c1-convex-bsd
	exit ;;
    c2*)
	if getsysinfo -f scalar_acc
	then echo c32-convex-bsd
	else echo c2-convex-bsd
	fi
	exit ;;
    c34*)
	echo c34-convex-bsd
	exit ;;
    c38*)
	echo c38-convex-bsd
	exit ;;
    c4*)
	echo c4-convex-bsd
	exit ;;
    esac
fi

d1414 3
a1416 3
This script, last modified $timestamp, has failed to recognize
the operating system you are using. It is advised that you
download the most up to date version of the config scripts from
d1418 1
a1418 1
  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
d1420 1
a1420 1
  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
d1422 3
a1424 4
If the version you run ($0) is already up to date, please
send the following data and any information you think might be
pertinent to <config-patches@@gnu.org> in order to provide the needed
information to handle your system.
@


1.1
log
@Initial revision
@
text
@d3 1
a3 2
#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
#   2000, 2001, 2002, 2003 Free Software Foundation, Inc.
d5 1
a5 1
timestamp='2003-07-02'
d9 1
a9 1
# the Free Software Foundation; either version 2 of the License, or
d18 1
a18 2
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
d23 5
a27 5
# the same distribution terms that you use for the rest of that program.

# Originally written by Per Bothner <per@@bothner.com>.
# Please send patches to <config-patches@@gnu.org>.  Submit a context
# diff and a properly formatted ChangeLog entry.
d29 2
a30 3
# This script attempts to guess a canonical system name similar to
# config.sub.  If it succeeds, it prints the system name on stdout, and
# exits with 0.  Otherwise, it exits with 1.
d32 2
a33 2
# The plan is that this can be called by configure scripts if you
# don't specify an explicit build system type.
d53 1
a53 2
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
Free Software Foundation, Inc.
d65 1
a65 1
       echo "$timestamp" ; exit 0 ;;
d67 1
a67 1
       echo "$version" ; exit 0 ;;
d69 1
a69 1
       echo "$usage"; exit 0 ;;
d103 1
a103 1
 { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
d122 1
a122 1
esac ;'
d140 1
a140 1
	# more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
d157 1
d166 1
a166 1
			| grep __ELF__ >/dev/null
d176 1
a176 1
	        os=netbsd
d196 5
a200 37
	exit 0 ;;
    amiga:OpenBSD:*:*)
	echo m68k-unknown-openbsd${UNAME_RELEASE}
	exit 0 ;;
    arc:OpenBSD:*:*)
	echo mipsel-unknown-openbsd${UNAME_RELEASE}
	exit 0 ;;
    hp300:OpenBSD:*:*)
	echo m68k-unknown-openbsd${UNAME_RELEASE}
	exit 0 ;;
    mac68k:OpenBSD:*:*)
	echo m68k-unknown-openbsd${UNAME_RELEASE}
	exit 0 ;;
    macppc:OpenBSD:*:*)
	echo powerpc-unknown-openbsd${UNAME_RELEASE}
	exit 0 ;;
    mvme68k:OpenBSD:*:*)
	echo m68k-unknown-openbsd${UNAME_RELEASE}
	exit 0 ;;
    mvme88k:OpenBSD:*:*)
	echo m88k-unknown-openbsd${UNAME_RELEASE}
	exit 0 ;;
    mvmeppc:OpenBSD:*:*)
	echo powerpc-unknown-openbsd${UNAME_RELEASE}
	exit 0 ;;
    pmax:OpenBSD:*:*)
	echo mipsel-unknown-openbsd${UNAME_RELEASE}
	exit 0 ;;
    sgi:OpenBSD:*:*)
	echo mipseb-unknown-openbsd${UNAME_RELEASE}
	exit 0 ;;
    sun3:OpenBSD:*:*)
	echo m68k-unknown-openbsd${UNAME_RELEASE}
	exit 0 ;;
    wgrisc:OpenBSD:*:*)
	echo mipsel-unknown-openbsd${UNAME_RELEASE}
	exit 0 ;;
d202 15
a216 2
	echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
	exit 0 ;;
d218 2
a219 1
	if test $UNAME_RELEASE = "V4.0"; then
d221 5
a225 1
	fi
d263 1
d268 5
a272 5
	echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
	exit 0 ;;
    Alpha*:OpenVMS:*:*)
	echo alpha-hp-vms
	exit 0 ;;
d278 1
a278 1
	exit 0 ;;
d281 1
a281 1
	exit 0 ;;
d284 1
a284 1
	exit 0;;
d287 1
a287 1
	exit 0 ;;
d290 1
a290 1
	exit 0 ;;
d293 7
a299 1
	exit 0 ;;
d302 4
a305 1
	exit 0;;
d308 1
a308 1
	exit 0;;
d316 1
a316 1
	exit 0 ;;
d319 1
a319 1
	exit 0 ;;
d322 2
a323 2
	exit 0 ;;
    DRS?6000:UNIX_SV:4.2*:7*)
d325 1
a325 1
	    sparc) echo sparc-icl-nx7 && exit 0 ;;
d327 3
d332 1
a332 1
	exit 0 ;;
d335 20
a354 4
	exit 0 ;;
    i86pc:SunOS:5.*:*)
	echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
	exit 0 ;;
d360 1
a360 1
	exit 0 ;;
d369 1
a369 1
	exit 0 ;;
d372 1
a372 1
	exit 0 ;;
d384 1
a384 1
	exit 0 ;;
d387 1
a387 1
	exit 0 ;;
d397 2
a398 2
        echo m68k-atari-mint${UNAME_RELEASE}
	exit 0 ;;
d401 1
a401 1
        exit 0 ;;
d403 2
a404 2
        echo m68k-atari-mint${UNAME_RELEASE}
	exit 0 ;;
d406 2
a407 2
        echo m68k-milan-mint${UNAME_RELEASE}
        exit 0 ;;
d409 2
a410 2
        echo m68k-hades-mint${UNAME_RELEASE}
        exit 0 ;;
d412 5
a416 2
        echo m68k-unknown-mint${UNAME_RELEASE}
        exit 0 ;;
d419 1
a419 1
	exit 0 ;;
d422 1
a422 1
	exit 0 ;;
d425 1
a425 1
	exit 0 ;;
d428 1
a428 1
	exit 0 ;;
d431 1
a431 1
	exit 0 ;;
d455 4
a458 3
	$CC_FOR_BUILD -o $dummy $dummy.c \
	  && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
	  && exit 0
d460 1
a460 1
	exit 0 ;;
d463 1
a463 1
	exit 0 ;;
d466 1
a466 1
	exit 0 ;;
d469 1
a469 1
	exit 0 ;;
d472 1
a472 1
	exit 0 ;;
d475 1
a475 1
	exit 0 ;;
d478 1
a478 1
	exit 0 ;;
d481 1
a481 1
	exit 0 ;;
d483 2
a484 2
        # DG/UX returns AViiON for all architectures
        UNAME_PROCESSOR=`/usr/bin/uname -p`
d497 1
a497 1
 	exit 0 ;;
d500 1
a500 1
	exit 0 ;;
d504 1
a504 1
	exit 0 ;;
d507 1
a507 1
	exit 0 ;;
d510 1
a510 1
	exit 0 ;;
d513 1
a513 1
	exit 0 ;;
d515 2
a516 2
	echo romp-ibm-aix      # uname -m gives an 8 hex-code CPU id
	exit 0 ;;              # Note that: echo "'`uname -s`'" gives 'AIX '
d519 1
a519 1
	exit 0 ;;
d527 1
a527 1
	exit 0 ;;
d542 6
a547 2
		$CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
		echo rs6000-ibm-aix3.2.5
d553 2
a554 2
	exit 0 ;;
    *:AIX:*:[45])
d567 1
a567 1
	exit 0 ;;
d570 1
a570 1
	exit 0 ;;
d573 1
a573 1
	exit 0 ;;
d576 1
a576 1
	exit 0 ;;                           # report: romp-ibm BSD 4.3
d579 1
a579 1
	exit 0 ;;
d582 1
a582 1
	exit 0 ;;
d585 1
a585 1
	exit 0 ;;
d588 1
a588 1
	exit 0 ;;
d597 8
a604 8
                    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
                    case "${sc_cpu_version}" in
                      523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
                      528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
                      532)                      # CPU_PA_RISC2_0
                        case "${sc_kernel_bits}" in
                          32) HP_ARCH="hppa2.0n" ;;
                          64) HP_ARCH="hppa2.0w" ;;
d606 2
a607 2
                        esac ;;
                    esac
d611 1
a611 1
		    sed 's/^              //' << EOF >$dummy.c
d613 30
a642 30
              #define _HPUX_SOURCE
              #include <stdlib.h>
              #include <unistd.h>

              int main ()
              {
              #if defined(_SC_KERNEL_BITS)
                  long bits = sysconf(_SC_KERNEL_BITS);
              #endif
                  long cpu  = sysconf (_SC_CPU_VERSION);

                  switch (cpu)
              	{
              	case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
              	case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
              	case CPU_PA_RISC2_0:
              #if defined(_SC_KERNEL_BITS)
              	    switch (bits)
              		{
              		case 64: puts ("hppa2.0w"); break;
              		case 32: puts ("hppa2.0n"); break;
              		default: puts ("hppa2.0"); break;
              		} break;
              #else  /* !defined(_SC_KERNEL_BITS) */
              	    puts ("hppa2.0"); break;
              #endif
              	default: puts ("hppa1.0"); break;
              	}
                  exit (0);
              }
d650 13
a662 3
	    # avoid double evaluation of $set_cc_for_build
	    test -n "$CC_FOR_BUILD" || eval $set_cc_for_build
	    if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null
d670 1
a670 1
	exit 0 ;;
d674 1
a674 1
	exit 0 ;;
d702 2
a703 1
	$CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
d705 1
a705 1
	exit 0 ;;
d708 1
a708 1
	exit 0 ;;
d711 1
a711 1
	exit 0 ;;
d714 1
a714 1
	exit 0 ;;
d717 1
a717 1
	exit 0 ;;
d720 1
a720 1
	exit 0 ;;
d727 1
a727 1
	exit 0 ;;
d730 1
a730 1
	exit 0 ;;
d733 1
a733 1
        exit 0 ;;
d739 1
a739 1
        exit 0 ;;
d742 1
a742 1
        exit 0 ;;
d745 1
a745 1
        exit 0 ;;
d748 1
a748 1
        exit 0 ;;
d751 1
a751 1
	exit 0 ;;
d757 1
a757 1
	exit 0 ;;
d760 1
a760 1
	exit 0 ;;
d763 1
a763 1
	exit 0 ;;
d766 1
a766 1
	exit 0 ;;
d768 2
a769 2
	echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 
	exit 0 ;;
d772 9
a780 4
        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
        FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
        echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
        exit 0 ;;
d783 1
a783 1
	exit 0 ;;
d786 1
a786 1
	exit 0 ;;
d789 10
a798 18
	exit 0 ;;
    *:FreeBSD:*:*|*:GNU/FreeBSD:*:*)
	# Determine whether the default compiler uses glibc.
	eval $set_cc_for_build
	sed 's/^	//' << EOF >$dummy.c
	#include <features.h>
	#if __GLIBC__ >= 2
	LIBC=gnu
	#else
	LIBC=
	#endif
EOF
	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
	# GNU/FreeBSD systems have a "k" prefix to indicate we are using
	# FreeBSD's kernel, but not the complete OS.
	case ${LIBC} in gnu) kernel_only='k' ;; esac
	echo ${UNAME_MACHINE}-unknown-${kernel_only}freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC}
	exit 0 ;;
d801 5
a805 2
	exit 0 ;;
    i*:MINGW*:*)
d807 8
a814 1
	exit 0 ;;
d817 13
a829 4
	exit 0 ;;
    x86:Interix*:[34]*)
	echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
	exit 0 ;;
d832 4
a835 1
	exit 0 ;;
d841 1
a841 1
	exit 0 ;;
d844 4
a847 1
	exit 0 ;;
d850 1
a850 1
	exit 0 ;;
d853 1
a853 1
	exit 0 ;;
d855 1
d857 5
a861 1
	exit 0 ;;
d864 22
a885 1
	exit 0 ;;
d887 16
d904 1
a904 1
	exit 0 ;;
d906 6
a911 3
	echo cris-axis-linux-gnu
	exit 0 ;;
    ia64:Linux:*:*)
d913 2
a914 2
	exit 0 ;;
    m68*:Linux:*:*)
d916 3
a918 2
	exit 0 ;;
    mips:Linux:*:*)
d921 2
a922 11
	#undef CPU
	#undef mips
	#undef mipsel
	#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
	CPU=mipsel
	#else
	#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
	CPU=mips
	#else
	CPU=
	#endif
d925 13
a937 4
	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
	test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
	;;
    mips64:Linux:*:*)
d941 2
a942 2
	#undef mips64
	#undef mips64el
d944 1
a944 1
	CPU=mips64el
d947 1
a947 1
	CPU=mips64
d953 2
a954 2
	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
	test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
d956 9
a964 20
    ppc:Linux:*:*)
	echo powerpc-unknown-linux-gnu
	exit 0 ;;
    ppc64:Linux:*:*)
	echo powerpc64-unknown-linux-gnu
	exit 0 ;;
    alpha:Linux:*:*)
	case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
	  EV5)   UNAME_MACHINE=alphaev5 ;;
	  EV56)  UNAME_MACHINE=alphaev56 ;;
	  PCA56) UNAME_MACHINE=alphapca56 ;;
	  PCA57) UNAME_MACHINE=alphapca56 ;;
	  EV6)   UNAME_MACHINE=alphaev6 ;;
	  EV67)  UNAME_MACHINE=alphaev67 ;;
	  EV68*) UNAME_MACHINE=alphaev68 ;;
        esac
	objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
	if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
	echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
	exit 0 ;;
d972 7
a978 4
	exit 0 ;;
    parisc64:Linux:*:* | hppa64:Linux:*:*)
	echo hppa64-unknown-linux-gnu
	exit 0 ;;
d981 1
a981 1
	exit 0 ;;
d983 2
a984 2
    	echo ${UNAME_MACHINE}-unknown-linux-gnu
	exit 0 ;;
d987 1
a987 1
	exit 0 ;;
d990 7
a996 1
	exit 0 ;;
d998 5
a1002 55
	echo x86_64-unknown-linux-gnu
	exit 0 ;;
    i*86:Linux:*:*)
	# The BFD linker knows what the default object file format is, so
	# first see if it will tell us. cd to the root directory to prevent
	# problems with other programs or directories called `ld' in the path.
	# Set LC_ALL=C to ensure ld outputs messages in English.
	ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
			 | sed -ne '/supported targets:/!d
				    s/[ 	][ 	]*/ /g
				    s/.*supported targets: *//
				    s/ .*//
				    p'`
        case "$ld_supported_targets" in
	  elf32-i386)
		TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
		;;
	  a.out-i386-linux)
		echo "${UNAME_MACHINE}-pc-linux-gnuaout"
		exit 0 ;;
	  coff-i386)
		echo "${UNAME_MACHINE}-pc-linux-gnucoff"
		exit 0 ;;
	  "")
		# Either a pre-BFD a.out linker (linux-gnuoldld) or
		# one that does not give us useful --help.
		echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
		exit 0 ;;
	esac
	# Determine whether the default compiler is a.out or elf
	eval $set_cc_for_build
	sed 's/^	//' << EOF >$dummy.c
	#include <features.h>
	#ifdef __ELF__
	# ifdef __GLIBC__
	#  if __GLIBC__ >= 2
	LIBC=gnu
	#  else
	LIBC=gnulibc1
	#  endif
	# else
	LIBC=gnulibc1
	# endif
	#else
	#ifdef __INTEL_COMPILER
	LIBC=gnu
	#else
	LIBC=gnuaout
	#endif
	#endif
EOF
	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
	test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
	test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
	;;
d1008 1
a1008 1
	exit 0 ;;
d1010 3
a1012 3
        # Unixware is an offshoot of SVR4, but it has its own version
        # number series starting with 2...
        # I am not positive that other SVR4 systems won't match this,
d1014 1
a1014 1
        # Use sysv4.2uw... so that sysv4* matches it.
d1016 1
a1016 1
	exit 0 ;;
d1021 1
a1021 1
	exit 0 ;;
d1024 1
a1024 1
	exit 0 ;;
d1027 5
a1031 2
	exit 0 ;;
    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
d1033 1
a1033 1
	exit 0 ;;
d1036 1
a1036 1
	exit 0 ;;
d1044 3
a1046 2
	exit 0 ;;
    i*86:*:5:[78]*)
d1053 1
a1053 1
	exit 0 ;;
d1071 1
a1071 1
	exit 0 ;;
d1074 7
a1080 4
        # uname -m prints for DJGPP always 'pc', but it prints nothing about
        # the processor, so we play safe by assuming i386.
	echo i386-pc-msdosdjgpp
        exit 0 ;;
d1083 1
a1083 1
	exit 0 ;;
d1086 1
a1086 1
	exit 0 ;;
d1093 1
a1093 1
	exit 0 ;;
d1097 1
a1097 1
	exit 0 ;;
d1100 1
a1100 1
	exit 0 ;;
d1103 4
a1106 4
	exit 0 ;;
    M68*:*:R3V[567]*:*)
	test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
    3[34]??:*: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)
d1111 1
a1111 1
	  && echo i486-ncr-sysv4.3${OS_REL} && exit 0
d1113 1
a1113 1
	  && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;;
d1115 12
a1126 2
        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
          && echo i486-ncr-sysv4 && exit 0 ;;
d1129 1
a1129 1
	exit 0 ;;
d1132 1
a1132 1
	exit 0 ;;
d1135 1
a1135 1
	exit 0 ;;
d1138 2
a1139 2
	exit 0 ;;
    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
d1141 1
a1141 1
	exit 0 ;;
d1144 1
a1144 1
	exit 0 ;;
d1147 1
a1147 1
	exit 0 ;;
d1150 1
a1150 1
	exit 0 ;;
d1158 5
a1162 5
	exit 0 ;;
    PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
                      # says <Richard.M.Bartel@@ccMail.Census.GOV>
        echo i586-unisys-sysv4
        exit 0 ;;
d1167 1
a1167 1
	exit 0 ;;
d1171 5
a1175 1
	exit 0 ;;
d1179 1
a1179 1
	exit 0 ;;
d1182 1
a1182 1
	exit 0 ;;
d1185 1
a1185 1
	exit 0 ;;
d1188 1
a1188 1
	        echo mips-nec-sysv${UNAME_RELEASE}
d1190 1
a1190 1
	        echo mips-unknown-sysv${UNAME_RELEASE}
d1192 1
a1192 1
        exit 0 ;;
d1195 1
a1195 1
	exit 0 ;;
d1198 1
a1198 1
	exit 0 ;;
d1201 7
a1207 1
	exit 0 ;;
d1210 1
a1210 1
	exit 0 ;;
d1213 1
a1213 1
	exit 0 ;;
d1216 10
a1225 1
	exit 0 ;;
d1228 1
a1228 1
	exit 0 ;;
d1231 1
a1231 1
	exit 0 ;;
d1233 13
a1245 3
	case `uname -p` in
	    *86) UNAME_PROCESSOR=i686 ;;
	    powerpc) UNAME_PROCESSOR=powerpc ;;
d1248 1
a1248 1
	exit 0 ;;
d1256 1
a1256 1
	exit 0 ;;
d1259 8
a1266 2
	exit 0 ;;
    NSR-[DGKLNPTVW]:NONSTOP_KERNEL:*:*)
d1268 1
a1268 1
	exit 0 ;;
d1271 1
a1271 1
	exit 0 ;;
d1274 1
a1274 1
	exit 0 ;;
d1277 1
a1277 1
	exit 0 ;;
d1288 1
a1288 1
	exit 0 ;;
d1291 1
a1291 1
	exit 0 ;;
d1294 1
a1294 1
	exit 0 ;;
d1297 1
a1297 1
	exit 0 ;;
d1300 1
a1300 1
	exit 0 ;;
d1303 1
a1303 1
	exit 0 ;;
d1306 1
a1306 1
	exit 0 ;;
d1308 27
a1334 2
        echo mips-sei-seiux${UNAME_RELEASE}
	exit 0 ;;
a1336 3
#echo '(No uname command or uname output not recognized.)' 1>&2
#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2

d1354 1
a1354 1
          "4"
d1356 1
a1356 1
	  ""
d1358 1
a1358 1
         ); exit (0);
d1363 1
a1363 1
  printf ("arm-acorn-riscix"); exit (0);
d1452 2
a1453 1
$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0
d1457 1
a1457 1
test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; }
d1466 1
a1466 1
	exit 0 ;;
d1472 1
a1472 1
	exit 0 ;;
d1475 1
a1475 1
	exit 0 ;;
d1478 1
a1478 1
	exit 0 ;;
d1481 1
a1481 1
	exit 0 ;;
d1492 3
a1494 1
    ftp://ftp.gnu.org/pub/gnu/config/
@


1.1.1.1
log
@Import libarchive 2.8.0:
- Infrastructure:
  - Allow command line tools as fallback for missing compression
    libraries. If compiled without gzip for example, gunzip will
    be used automatically.
  - Improved support for a number of platforms like high-resolution
    timestamps and Extended Attributes on various Unix systems
  - New convience interface for creating archives based on disk content,
    complement of the archive_write_disk interface.
- Frontends:
  - bsdcpio ready for public consumption
  - hand-written date parser replaces the yacc code
- Filter system:
  - Simplified read filter chains
  - Option support for filters
  - LZMA, XZ, uudecode handled
- Format support:
  - Write support for mtree files based on file system or archive
    content
  - Basic read support for Joliet
  - Write support for zip files
  - Write support for shar archives, both text-only and binary-safe
@
text
@@


1.1.1.2
log
@libarchive-2.8.2:
- Fix NULL deference for short self-extracting zip archives
- Don't dereference symlinks on Linux when reading ACLs
- Better detection of SHA2 support for old OpenSSL versions
- Fix parsing of input files for bsdtar -T
- Do not leak setup_xattr into the global namespace
- Fix build when an older libarchive is already installed
- Use O_BINARY opening files in bsdtar
- Include missing archive_crc32.h
- Correctly include iconv.h required by libxml2
@
text
@d4 1
a4 2
#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
#   Free Software Foundation, Inc.
d6 1
a6 1
timestamp='2009-12-30'
d20 1
a20 2
# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
# 02110-1301, USA.
d27 3
a29 4

# Originally written by Per Bothner.  Please send patches (context
# diff format) to <config-patches@@gnu.org> and include a ChangeLog
# entry.
d35 2
a36 2
# You can get the latest version of this script from:
# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
d56 2
a57 3
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free
Software Foundation, Inc.
d69 1
a69 1
       echo "$timestamp" ; exit ;;
d71 1
a71 1
       echo "$version" ; exit ;;
d73 1
a73 1
       echo "$usage"; exit ;;
d107 1
a107 1
 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
d126 1
a126 1
esac ; set_cc_for_build= ;'
a160 1
	    sh5el) machine=sh5le-unknown ;;
d169 1
a169 1
			| grep -q __ELF__
d199 37
a235 1
	exit ;;
d237 2
a238 15
	UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
	echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
	exit ;;
    *:ekkoBSD:*:*)
	echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
	exit ;;
    *:SolidBSD:*:*)
	echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
	exit ;;
    macppc:MirBSD:*:*)
	echo powerpc-unknown-mirbsd${UNAME_RELEASE}
	exit ;;
    *:MirBSD:*:*)
	echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
	exit ;;
d240 1
a240 2
	case $UNAME_RELEASE in
	*4.0)
d242 1
a242 5
		;;
	*5.*)
	        UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
		;;
	esac
a279 1
	# A Pn.n version is a patched version.
d284 5
a288 2
	echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
	exit ;;
d294 1
a294 1
	exit ;;
d297 1
a297 1
	exit ;;
d300 1
a300 1
	exit ;;
d303 1
a303 1
	exit ;;
d306 1
a306 1
	exit ;;
d309 1
a309 7
	exit ;;
    *:z/VM:*:*)
	echo s390-ibm-zvmoe
	exit ;;
    *:OS400:*:*)
        echo powerpc-ibm-os400
	exit ;;
d312 1
a312 4
	exit ;;
    arm:riscos:*:*|arm:RISCOS:*:*)
	echo arm-unknown-riscos
	exit ;;
d315 1
a315 1
	exit ;;
d323 1
a323 1
	exit ;;
d326 1
a326 1
	exit ;;
d329 2
a330 2
	exit ;;
    DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
d332 1
a332 1
	    sparc) echo sparc-icl-nx7; exit ;;
a333 3
    s390x:SunOS:*:*)
	echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
	exit ;;
d336 1
a336 1
	exit ;;
d339 4
a342 20
	exit ;;
    i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
	echo i386-pc-auroraux${UNAME_RELEASE}
	exit ;;
    i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
	eval $set_cc_for_build
	SUN_ARCH="i386"
	# If there is a compiler, see if it is configured for 64-bit objects.
	# Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
	# This test works for both compilers.
	if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
	    if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
		(CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
		grep IS_64BIT_ARCH >/dev/null
	    then
		SUN_ARCH="x86_64"
	    fi
	fi
	echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
	exit ;;
d348 1
a348 1
	exit ;;
d357 1
a357 1
	exit ;;
d360 1
a360 1
	exit ;;
d372 1
a372 1
	exit ;;
d375 1
a375 1
	exit ;;
d386 1
a386 1
	exit ;;
d389 1
a389 1
        exit ;;
d392 1
a392 1
	exit ;;
d395 1
a395 1
        exit ;;
d398 1
a398 1
        exit ;;
d401 1
a401 4
        exit ;;
    m68k:machten:*:*)
	echo m68k-apple-machten${UNAME_RELEASE}
	exit ;;
d404 1
a404 1
	exit ;;
d407 1
a407 1
	exit ;;
d410 1
a410 1
	exit ;;
d413 1
a413 1
	exit ;;
d416 1
a416 1
	exit ;;
d440 3
a442 4
	$CC_FOR_BUILD -o $dummy $dummy.c &&
	  dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
	  SYSTEM_NAME=`$dummy $dummyarg` &&
	    { echo "$SYSTEM_NAME"; exit; }
d444 1
a444 1
	exit ;;
d447 1
a447 1
	exit ;;
d450 1
a450 1
	exit ;;
d453 1
a453 1
	exit ;;
d456 1
a456 1
	exit ;;
d459 1
a459 1
	exit ;;
d462 1
a462 1
	exit ;;
d465 1
a465 1
	exit ;;
d481 1
a481 1
 	exit ;;
d484 1
a484 1
	exit ;;
d488 1
a488 1
	exit ;;
d491 1
a491 1
	exit ;;
d494 1
a494 1
	exit ;;
d497 1
a497 1
	exit ;;
d499 2
a500 2
	echo romp-ibm-aix     # uname -m gives an 8 hex-code CPU id
	exit ;;               # Note that: echo "'`uname -s`'" gives 'AIX '
d503 1
a503 1
	exit ;;
d511 1
a511 1
	exit ;;
d526 2
a527 6
		if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
		then
			echo "$SYSTEM_NAME"
		else
			echo rs6000-ibm-aix3.2.5
		fi
d533 2
a534 2
	exit ;;
    *:AIX:*:[456])
d547 1
a547 1
	exit ;;
d550 1
a550 1
	exit ;;
d553 1
a553 1
	exit ;;
d556 1
a556 1
	exit ;;                             # report: romp-ibm BSD 4.3
d559 1
a559 1
	exit ;;
d562 1
a562 1
	exit ;;
d565 1
a565 1
	exit ;;
d568 1
a568 1
	exit ;;
d630 3
a632 13
	    eval $set_cc_for_build

	    # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
	    # 32-bit code.  hppa64-hp-hpux* has the same kernel and a compiler
	    # generating 64-bit code.  GNU and HP use different nomenclature:
	    #
	    # $ CC_FOR_BUILD=cc ./config.guess
	    # => hppa2.0w-hp-hpux11.23
	    # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
	    # => hppa64-hp-hpux11.23

	    if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
		grep -q __LP64__
d640 1
a640 1
	exit ;;
d644 1
a644 1
	exit ;;
d672 1
a672 2
	$CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
		{ echo "$SYSTEM_NAME"; exit; }
d674 1
a674 1
	exit ;;
d677 1
a677 1
	exit ;;
d680 1
a680 1
	exit ;;
d683 1
a683 1
	exit ;;
d686 1
a686 1
	exit ;;
d689 1
a689 1
	exit ;;
d696 1
a696 1
	exit ;;
d699 1
a699 1
	exit ;;
d702 1
a702 1
        exit ;;
d708 1
a708 1
        exit ;;
d711 1
a711 1
        exit ;;
d714 1
a714 1
        exit ;;
d717 1
a717 1
        exit ;;
d720 1
a720 1
	exit ;;
d726 1
a726 1
	exit ;;
d729 1
a729 1
	exit ;;
d732 1
a732 1
	exit ;;
d735 1
a735 1
	exit ;;
d737 2
a738 2
	echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
	exit ;;
d744 1
a744 6
        exit ;;
    5000:UNIX_System_V:4.*:*)
        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
        FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
        echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
	exit ;;
d747 1
a747 1
	exit ;;
d750 1
a750 1
	exit ;;
d753 18
a770 11
	exit ;;
    *:FreeBSD:*:*)
	case ${UNAME_MACHINE} in
	    pc98)
		echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
	    amd64)
		echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
	    *)
		echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
	esac
	exit ;;
d773 2
a774 2
	exit ;;
    *:MINGW*:*)
d776 1
a776 5
	exit ;;
    i*:windows32*:*)
    	# uname -m includes "-pc" on this system.
    	echo ${UNAME_MACHINE}-mingw32
	exit ;;
d779 4
a782 13
	exit ;;
    *:Interix*:*)
    	case ${UNAME_MACHINE} in
	    x86)
		echo i586-pc-interix${UNAME_RELEASE}
		exit ;;
	    authenticamd | genuineintel | EM64T)
		echo x86_64-unknown-interix${UNAME_RELEASE}
		exit ;;
	    IA64)
		echo ia64-unknown-interix${UNAME_RELEASE}
		exit ;;
	esac ;;
d785 1
a785 4
	exit ;;
    8664:Windows_NT:*)
	echo x86_64-pc-mks
	exit ;;
d791 1
a791 1
	exit ;;
d794 1
a794 4
	exit ;;
    amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
	echo x86_64-unknown-cygwin
	exit ;;
d797 1
a797 1
	exit ;;
d800 1
a800 1
	exit ;;
a801 1
	# the GNU system
d803 1
a803 5
	exit ;;
    *:GNU/*:*:*)
	# other systems with GNU libc and userland
	echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
	exit ;;
d806 1
a806 15
	exit ;;
    alpha:Linux:*:*)
	case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
	  EV5)   UNAME_MACHINE=alphaev5 ;;
	  EV56)  UNAME_MACHINE=alphaev56 ;;
	  PCA56) UNAME_MACHINE=alphapca56 ;;
	  PCA57) UNAME_MACHINE=alphapca56 ;;
	  EV6)   UNAME_MACHINE=alphaev6 ;;
	  EV67)  UNAME_MACHINE=alphaev67 ;;
	  EV68*) UNAME_MACHINE=alphaev68 ;;
        esac
	objdump --private-headers /bin/sh | grep -q ld.so.1
	if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
	echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
	exit ;;
a807 10
	eval $set_cc_for_build
	if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
	    | grep -q __ARM_EABI__
	then
	    echo ${UNAME_MACHINE}-unknown-linux-gnu
	else
	    echo ${UNAME_MACHINE}-unknown-linux-gnueabi
	fi
	exit ;;
    avr32*:Linux:*:*)
d809 1
a809 1
	exit ;;
d812 8
a819 9
	exit ;;
    crisv32:Linux:*:*)
	echo crisv32-axis-linux-gnu
	exit ;;
    frv:Linux:*:*)
    	echo frv-unknown-linux-gnu
	exit ;;
    i*86:Linux:*:*)
	LIBC=gnu
d822 11
a832 2
	#ifdef __dietlibc__
	LIBC=dietlibc
d835 4
a838 13
	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
	echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
	exit ;;
    ia64:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-gnu
	exit ;;
    m32r*:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-gnu
	exit ;;
    m68*:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-gnu
	exit ;;
    mips:Linux:*:* | mips64:Linux:*:*)
d842 2
a843 2
	#undef ${UNAME_MACHINE}
	#undef ${UNAME_MACHINE}el
d845 1
a845 1
	CPU=${UNAME_MACHINE}el
d848 1
a848 1
	CPU=${UNAME_MACHINE}
d854 2
a855 2
	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
	test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
d857 20
a876 9
    or32:Linux:*:*)
	echo or32-unknown-linux-gnu
	exit ;;
    padre:Linux:*:*)
	echo sparc-unknown-linux-gnu
	exit ;;
    parisc64:Linux:*:* | hppa64:Linux:*:*)
	echo hppa64-unknown-linux-gnu
	exit ;;
d884 4
a887 7
	exit ;;
    ppc64:Linux:*:*)
	echo powerpc64-unknown-linux-gnu
	exit ;;
    ppc:Linux:*:*)
	echo powerpc-unknown-linux-gnu
	exit ;;
d890 1
a890 1
	exit ;;
d893 1
a893 1
	exit ;;
d896 1
a896 1
	exit ;;
d899 1
a899 4
	exit ;;
    vax:Linux:*:*)
	echo ${UNAME_MACHINE}-dec-linux-gnu
	exit ;;
d902 54
a955 4
	exit ;;
    xtensa*:Linux:*:*)
    	echo ${UNAME_MACHINE}-unknown-linux-gnu
	exit ;;
d961 1
a961 1
	exit ;;
d969 1
a969 1
	exit ;;
d974 1
a974 1
	exit ;;
d977 1
a977 1
	exit ;;
d980 2
a981 5
	exit ;;
    i*86:syllable:*:*)
	echo ${UNAME_MACHINE}-pc-syllable
	exit ;;
    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
d983 1
a983 1
	exit ;;
d986 1
a986 1
	exit ;;
d994 2
a995 3
	exit ;;
    i*86:*:5:[678]*)
    	# UnixWare 7.x, OpenUNIX and OpenServer 6.
d1002 1
a1002 1
	exit ;;
d1020 1
a1020 1
	exit ;;
d1024 3
a1026 6
        # the processor, so we play safe by assuming i586.
	# Note: whatever this is, it MUST be the same as what config.sub
	# prints for the "djgpp" host, or else GDB configury will decide that
	# this is a cross-build.
	echo i586-pc-msdosdjgpp
        exit ;;
d1029 1
a1029 1
	exit ;;
d1032 1
a1032 1
	exit ;;
d1039 1
a1039 1
	exit ;;
d1043 1
a1043 1
	exit ;;
d1046 1
a1046 1
	exit ;;
d1049 4
a1052 4
	exit ;;
    M68*:*:R3V[5678]*:*)
	test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
    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)
d1057 1
a1057 1
	  && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
d1059 1
a1059 1
	  && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
d1062 1
a1062 11
          && { echo i486-ncr-sysv4; exit; } ;;
    NCR*:*:4.2:* | MPRAS*:*:4.2:*)
	OS_REL='.3'
	test -r /etc/.relid \
	    && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
	/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
	    && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
	/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
	    && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
	/bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
	    && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
d1065 1
a1065 1
	exit ;;
d1068 1
a1068 1
	exit ;;
d1071 1
a1071 1
	exit ;;
d1074 2
a1075 2
	exit ;;
    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
d1077 1
a1077 1
	exit ;;
d1080 1
a1080 1
	exit ;;
d1083 1
a1083 1
	exit ;;
d1086 1
a1086 1
	exit ;;
d1094 1
a1094 1
	exit ;;
d1098 1
a1098 1
        exit ;;
d1103 1
a1103 1
	exit ;;
d1107 1
a1107 5
	exit ;;
    i*86:VOS:*:*)
	# From Paul.Green@@stratus.com.
	echo ${UNAME_MACHINE}-stratus-vos
	exit ;;
d1111 1
a1111 1
	exit ;;
d1114 1
a1114 1
	exit ;;
d1117 1
a1117 1
	exit ;;
d1124 1
a1124 1
        exit ;;
d1127 1
a1127 1
	exit ;;
d1130 1
a1130 1
	exit ;;
d1133 1
a1133 4
	exit ;;
    BePC:Haiku:*:*)	# Haiku running on Intel PC compatible.
	echo i586-pc-haiku
	exit ;;
d1136 1
a1136 1
	exit ;;
d1139 1
a1139 1
	exit ;;
d1142 1
a1142 10
	exit ;;
    SX-7:SUPER-UX:*:*)
	echo sx7-nec-superux${UNAME_RELEASE}
	exit ;;
    SX-8:SUPER-UX:*:*)
	echo sx8-nec-superux${UNAME_RELEASE}
	exit ;;
    SX-8R:SUPER-UX:*:*)
	echo sx8r-nec-superux${UNAME_RELEASE}
	exit ;;
d1145 1
a1145 1
	exit ;;
d1148 1
a1148 1
	exit ;;
d1150 3
a1152 13
	UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
	case $UNAME_PROCESSOR in
	    i386)
		eval $set_cc_for_build
		if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
		  if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
		      (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
		      grep IS_64BIT_ARCH >/dev/null
		  then
		      UNAME_PROCESSOR="x86_64"
		  fi
		fi ;;
	    unknown) UNAME_PROCESSOR=powerpc ;;
d1155 1
a1155 1
	exit ;;
d1163 1
a1163 1
	exit ;;
d1166 2
a1167 5
	exit ;;
    NSE-?:NONSTOP_KERNEL:*:*)
	echo nse-tandem-nsk${UNAME_RELEASE}
	exit ;;
    NSR-?:NONSTOP_KERNEL:*:*)
d1169 1
a1169 1
	exit ;;
d1172 1
a1172 1
	exit ;;
d1175 1
a1175 1
	exit ;;
d1178 1
a1178 1
	exit ;;
d1189 1
a1189 1
	exit ;;
d1192 1
a1192 1
	exit ;;
d1195 1
a1195 1
	exit ;;
d1198 1
a1198 1
	exit ;;
d1201 1
a1201 1
	exit ;;
d1204 1
a1204 1
	exit ;;
d1207 1
a1207 1
	exit ;;
d1210 1
a1210 23
	exit ;;
    *:DragonFly:*:*)
	echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
	exit ;;
    *:*VMS:*:*)
    	UNAME_MACHINE=`(uname -p) 2>/dev/null`
	case "${UNAME_MACHINE}" in
	    A*) echo alpha-dec-vms ; exit ;;
	    I*) echo ia64-dec-vms ; exit ;;
	    V*) echo vax-dec-vms ; exit ;;
	esac ;;
    *:XENIX:*:SysV)
	echo i386-pc-xenix
	exit ;;
    i*86:skyos:*:*)
	echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
	exit ;;
    i*86:rdos:*:*)
	echo ${UNAME_MACHINE}-pc-rdos
	exit ;;
    i*86:AROS:*:*)
	echo ${UNAME_MACHINE}-pc-aros
	exit ;;
d1242 1
a1242 1
  printf ("arm-acorn-riscix\n"); exit (0);
d1331 1
a1331 2
$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
	{ echo "$SYSTEM_NAME"; exit; }
d1335 1
a1335 1
test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
d1344 1
a1344 1
	exit ;;
d1350 1
a1350 1
	exit ;;
d1353 1
a1353 1
	exit ;;
d1356 1
a1356 1
	exit ;;
d1359 1
a1359 1
	exit ;;
d1370 1
a1370 3
  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
and
  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
@


1.1.1.3
log
@libarchive-2.8.3: Build fix for Linux
@
text
@d4 2
a5 1
#   2000, 2001, 2002, 2003 Free Software Foundation, Inc.
d7 1
a7 1
timestamp='2003-07-02'
d21 2
a22 1
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
d29 4
a32 3
# Originally written by Per Bothner <per@@bothner.com>.
# Please send patches to <config-patches@@gnu.org>.  Submit a context
# diff and a properly formatted ChangeLog entry.
d38 2
a39 2
# The plan is that this can be called by configure scripts if you
# don't specify an explicit build system type.
d59 3
a61 2
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
Free Software Foundation, Inc.
d73 1
a73 1
       echo "$timestamp" ; exit 0 ;;
d75 1
a75 1
       echo "$version" ; exit 0 ;;
d77 1
a77 1
       echo "$usage"; exit 0 ;;
d111 1
a111 1
 { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
d130 1
a130 1
esac ;'
d165 1
d174 1
a174 1
			| grep __ELF__ >/dev/null
d204 1
a204 37
	exit 0 ;;
    amiga:OpenBSD:*:*)
	echo m68k-unknown-openbsd${UNAME_RELEASE}
	exit 0 ;;
    arc:OpenBSD:*:*)
	echo mipsel-unknown-openbsd${UNAME_RELEASE}
	exit 0 ;;
    hp300:OpenBSD:*:*)
	echo m68k-unknown-openbsd${UNAME_RELEASE}
	exit 0 ;;
    mac68k:OpenBSD:*:*)
	echo m68k-unknown-openbsd${UNAME_RELEASE}
	exit 0 ;;
    macppc:OpenBSD:*:*)
	echo powerpc-unknown-openbsd${UNAME_RELEASE}
	exit 0 ;;
    mvme68k:OpenBSD:*:*)
	echo m68k-unknown-openbsd${UNAME_RELEASE}
	exit 0 ;;
    mvme88k:OpenBSD:*:*)
	echo m88k-unknown-openbsd${UNAME_RELEASE}
	exit 0 ;;
    mvmeppc:OpenBSD:*:*)
	echo powerpc-unknown-openbsd${UNAME_RELEASE}
	exit 0 ;;
    pmax:OpenBSD:*:*)
	echo mipsel-unknown-openbsd${UNAME_RELEASE}
	exit 0 ;;
    sgi:OpenBSD:*:*)
	echo mipseb-unknown-openbsd${UNAME_RELEASE}
	exit 0 ;;
    sun3:OpenBSD:*:*)
	echo m68k-unknown-openbsd${UNAME_RELEASE}
	exit 0 ;;
    wgrisc:OpenBSD:*:*)
	echo mipsel-unknown-openbsd${UNAME_RELEASE}
	exit 0 ;;
d206 15
a220 2
	echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
	exit 0 ;;
d222 2
a223 1
	if test $UNAME_RELEASE = "V4.0"; then
d225 5
a229 1
	fi
d267 1
d272 2
a273 5
	echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
	exit 0 ;;
    Alpha*:OpenVMS:*:*)
	echo alpha-hp-vms
	exit 0 ;;
d279 1
a279 1
	exit 0 ;;
d282 1
a282 1
	exit 0 ;;
d285 1
a285 1
	exit 0;;
d288 1
a288 1
	exit 0 ;;
d291 1
a291 1
	exit 0 ;;
d294 7
a300 1
	exit 0 ;;
d303 4
a306 1
	exit 0;;
d309 1
a309 1
	exit 0;;
d317 1
a317 1
	exit 0 ;;
d320 1
a320 1
	exit 0 ;;
d323 2
a324 2
	exit 0 ;;
    DRS?6000:UNIX_SV:4.2*:7*)
d326 1
a326 1
	    sparc) echo sparc-icl-nx7 && exit 0 ;;
d328 3
d333 1
a333 1
	exit 0 ;;
d336 20
a355 4
	exit 0 ;;
    i86pc:SunOS:5.*:*)
	echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
	exit 0 ;;
d361 1
a361 1
	exit 0 ;;
d370 1
a370 1
	exit 0 ;;
d373 1
a373 1
	exit 0 ;;
d385 1
a385 1
	exit 0 ;;
d388 1
a388 1
	exit 0 ;;
d399 1
a399 1
	exit 0 ;;
d402 1
a402 1
        exit 0 ;;
d405 1
a405 1
	exit 0 ;;
d408 1
a408 1
        exit 0 ;;
d411 1
a411 1
        exit 0 ;;
d414 4
a417 1
        exit 0 ;;
d420 1
a420 1
	exit 0 ;;
d423 1
a423 1
	exit 0 ;;
d426 1
a426 1
	exit 0 ;;
d429 1
a429 1
	exit 0 ;;
d432 1
a432 1
	exit 0 ;;
d456 4
a459 3
	$CC_FOR_BUILD -o $dummy $dummy.c \
	  && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
	  && exit 0
d461 1
a461 1
	exit 0 ;;
d464 1
a464 1
	exit 0 ;;
d467 1
a467 1
	exit 0 ;;
d470 1
a470 1
	exit 0 ;;
d473 1
a473 1
	exit 0 ;;
d476 1
a476 1
	exit 0 ;;
d479 1
a479 1
	exit 0 ;;
d482 1
a482 1
	exit 0 ;;
d498 1
a498 1
 	exit 0 ;;
d501 1
a501 1
	exit 0 ;;
d505 1
a505 1
	exit 0 ;;
d508 1
a508 1
	exit 0 ;;
d511 1
a511 1
	exit 0 ;;
d514 1
a514 1
	exit 0 ;;
d516 2
a517 2
	echo romp-ibm-aix      # uname -m gives an 8 hex-code CPU id
	exit 0 ;;              # Note that: echo "'`uname -s`'" gives 'AIX '
d520 1
a520 1
	exit 0 ;;
d528 1
a528 1
	exit 0 ;;
d543 6
a548 2
		$CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
		echo rs6000-ibm-aix3.2.5
d554 2
a555 2
	exit 0 ;;
    *:AIX:*:[45])
d568 1
a568 1
	exit 0 ;;
d571 1
a571 1
	exit 0 ;;
d574 1
a574 1
	exit 0 ;;
d577 1
a577 1
	exit 0 ;;                           # report: romp-ibm BSD 4.3
d580 1
a580 1
	exit 0 ;;
d583 1
a583 1
	exit 0 ;;
d586 1
a586 1
	exit 0 ;;
d589 1
a589 1
	exit 0 ;;
d651 13
a663 3
	    # avoid double evaluation of $set_cc_for_build
	    test -n "$CC_FOR_BUILD" || eval $set_cc_for_build
	    if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null
d671 1
a671 1
	exit 0 ;;
d675 1
a675 1
	exit 0 ;;
d703 2
a704 1
	$CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
d706 1
a706 1
	exit 0 ;;
d709 1
a709 1
	exit 0 ;;
d712 1
a712 1
	exit 0 ;;
d715 1
a715 1
	exit 0 ;;
d718 1
a718 1
	exit 0 ;;
d721 1
a721 1
	exit 0 ;;
d728 1
a728 1
	exit 0 ;;
d731 1
a731 1
	exit 0 ;;
d734 1
a734 1
        exit 0 ;;
d740 1
a740 1
        exit 0 ;;
d743 1
a743 1
        exit 0 ;;
d746 1
a746 1
        exit 0 ;;
d749 1
a749 1
        exit 0 ;;
d752 1
a752 1
	exit 0 ;;
d758 1
a758 1
	exit 0 ;;
d761 1
a761 1
	exit 0 ;;
d764 1
a764 1
	exit 0 ;;
d767 1
a767 1
	exit 0 ;;
d769 2
a770 2
	echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 
	exit 0 ;;
d776 6
a781 1
        exit 0 ;;
d784 1
a784 1
	exit 0 ;;
d787 1
a787 1
	exit 0 ;;
d790 11
a800 18
	exit 0 ;;
    *:FreeBSD:*:*|*:GNU/FreeBSD:*:*)
	# Determine whether the default compiler uses glibc.
	eval $set_cc_for_build
	sed 's/^	//' << EOF >$dummy.c
	#include <features.h>
	#if __GLIBC__ >= 2
	LIBC=gnu
	#else
	LIBC=
	#endif
EOF
	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
	# GNU/FreeBSD systems have a "k" prefix to indicate we are using
	# FreeBSD's kernel, but not the complete OS.
	case ${LIBC} in gnu) kernel_only='k' ;; esac
	echo ${UNAME_MACHINE}-unknown-${kernel_only}freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC}
	exit 0 ;;
d803 2
a804 2
	exit 0 ;;
    i*:MINGW*:*)
d806 5
a810 1
	exit 0 ;;
d813 13
a825 4
	exit 0 ;;
    x86:Interix*:[34]*)
	echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
	exit 0 ;;
d828 4
a831 1
	exit 0 ;;
d837 1
a837 1
	exit 0 ;;
d840 4
a843 1
	exit 0 ;;
d846 1
a846 1
	exit 0 ;;
d849 1
a849 1
	exit 0 ;;
d851 1
d853 5
a857 1
	exit 0 ;;
d860 15
a874 1
	exit 0 ;;
d876 10
d887 1
a887 1
	exit 0 ;;
d890 18
a907 1
	exit 0 ;;
d910 4
a913 1
	exit 0 ;;
d916 2
a917 2
	exit 0 ;;
    mips:Linux:*:*)
d921 2
a922 2
	#undef mips
	#undef mipsel
d924 1
a924 1
	CPU=mipsel
d927 1
a927 1
	CPU=mips
d933 2
a934 2
	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
	test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
d936 9
a944 39
    mips64:Linux:*:*)
	eval $set_cc_for_build
	sed 's/^	//' << EOF >$dummy.c
	#undef CPU
	#undef mips64
	#undef mips64el
	#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
	CPU=mips64el
	#else
	#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
	CPU=mips64
	#else
	CPU=
	#endif
	#endif
EOF
	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
	test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
	;;
    ppc:Linux:*:*)
	echo powerpc-unknown-linux-gnu
	exit 0 ;;
    ppc64:Linux:*:*)
	echo powerpc64-unknown-linux-gnu
	exit 0 ;;
    alpha:Linux:*:*)
	case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
	  EV5)   UNAME_MACHINE=alphaev5 ;;
	  EV56)  UNAME_MACHINE=alphaev56 ;;
	  PCA56) UNAME_MACHINE=alphapca56 ;;
	  PCA57) UNAME_MACHINE=alphapca56 ;;
	  EV6)   UNAME_MACHINE=alphaev6 ;;
	  EV67)  UNAME_MACHINE=alphaev67 ;;
	  EV68*) UNAME_MACHINE=alphaev68 ;;
        esac
	objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
	if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
	echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
	exit 0 ;;
d952 7
a958 4
	exit 0 ;;
    parisc64:Linux:*:* | hppa64:Linux:*:*)
	echo hppa64-unknown-linux-gnu
	exit 0 ;;
d961 1
a961 1
	exit 0 ;;
d964 1
a964 1
	exit 0 ;;
d967 1
a967 1
	exit 0 ;;
d970 4
a973 1
	exit 0 ;;
d976 4
a979 54
	exit 0 ;;
    i*86:Linux:*:*)
	# The BFD linker knows what the default object file format is, so
	# first see if it will tell us. cd to the root directory to prevent
	# problems with other programs or directories called `ld' in the path.
	# Set LC_ALL=C to ensure ld outputs messages in English.
	ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
			 | sed -ne '/supported targets:/!d
				    s/[ 	][ 	]*/ /g
				    s/.*supported targets: *//
				    s/ .*//
				    p'`
        case "$ld_supported_targets" in
	  elf32-i386)
		TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
		;;
	  a.out-i386-linux)
		echo "${UNAME_MACHINE}-pc-linux-gnuaout"
		exit 0 ;;
	  coff-i386)
		echo "${UNAME_MACHINE}-pc-linux-gnucoff"
		exit 0 ;;
	  "")
		# Either a pre-BFD a.out linker (linux-gnuoldld) or
		# one that does not give us useful --help.
		echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
		exit 0 ;;
	esac
	# Determine whether the default compiler is a.out or elf
	eval $set_cc_for_build
	sed 's/^	//' << EOF >$dummy.c
	#include <features.h>
	#ifdef __ELF__
	# ifdef __GLIBC__
	#  if __GLIBC__ >= 2
	LIBC=gnu
	#  else
	LIBC=gnulibc1
	#  endif
	# else
	LIBC=gnulibc1
	# endif
	#else
	#ifdef __INTEL_COMPILER
	LIBC=gnu
	#else
	LIBC=gnuaout
	#endif
	#endif
EOF
	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
	test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
	test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
	;;
d985 1
a985 1
	exit 0 ;;
d993 1
a993 1
	exit 0 ;;
d998 1
a998 1
	exit 0 ;;
d1001 1
a1001 1
	exit 0 ;;
d1004 5
a1008 2
	exit 0 ;;
    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
d1010 1
a1010 1
	exit 0 ;;
d1013 1
a1013 1
	exit 0 ;;
d1021 3
a1023 2
	exit 0 ;;
    i*86:*:5:[78]*)
d1030 1
a1030 1
	exit 0 ;;
d1048 1
a1048 1
	exit 0 ;;
d1052 6
a1057 3
        # the processor, so we play safe by assuming i386.
	echo i386-pc-msdosdjgpp
        exit 0 ;;
d1060 1
a1060 1
	exit 0 ;;
d1063 1
a1063 1
	exit 0 ;;
d1070 1
a1070 1
	exit 0 ;;
d1074 1
a1074 1
	exit 0 ;;
d1077 1
a1077 1
	exit 0 ;;
d1080 4
a1083 4
	exit 0 ;;
    M68*:*:R3V[567]*:*)
	test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
    3[34]??:*: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)
d1088 1
a1088 1
	  && echo i486-ncr-sysv4.3${OS_REL} && exit 0
d1090 1
a1090 1
	  && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;;
d1093 11
a1103 1
          && echo i486-ncr-sysv4 && exit 0 ;;
d1106 1
a1106 1
	exit 0 ;;
d1109 1
a1109 1
	exit 0 ;;
d1112 1
a1112 1
	exit 0 ;;
d1115 2
a1116 2
	exit 0 ;;
    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
d1118 1
a1118 1
	exit 0 ;;
d1121 1
a1121 1
	exit 0 ;;
d1124 1
a1124 1
	exit 0 ;;
d1127 1
a1127 1
	exit 0 ;;
d1135 1
a1135 1
	exit 0 ;;
d1139 1
a1139 1
        exit 0 ;;
d1144 1
a1144 1
	exit 0 ;;
d1148 5
a1152 1
	exit 0 ;;
d1156 1
a1156 1
	exit 0 ;;
d1159 1
a1159 1
	exit 0 ;;
d1162 1
a1162 1
	exit 0 ;;
d1169 1
a1169 1
        exit 0 ;;
d1172 1
a1172 1
	exit 0 ;;
d1175 1
a1175 1
	exit 0 ;;
d1178 4
a1181 1
	exit 0 ;;
d1184 1
a1184 1
	exit 0 ;;
d1187 1
a1187 1
	exit 0 ;;
d1190 10
a1199 1
	exit 0 ;;
d1202 1
a1202 1
	exit 0 ;;
d1205 1
a1205 1
	exit 0 ;;
d1207 13
a1219 3
	case `uname -p` in
	    *86) UNAME_PROCESSOR=i686 ;;
	    powerpc) UNAME_PROCESSOR=powerpc ;;
d1222 1
a1222 1
	exit 0 ;;
d1230 1
a1230 1
	exit 0 ;;
d1233 5
a1237 2
	exit 0 ;;
    NSR-[DGKLNPTVW]:NONSTOP_KERNEL:*:*)
d1239 1
a1239 1
	exit 0 ;;
d1242 1
a1242 1
	exit 0 ;;
d1245 1
a1245 1
	exit 0 ;;
d1248 1
a1248 1
	exit 0 ;;
d1259 1
a1259 1
	exit 0 ;;
d1262 1
a1262 1
	exit 0 ;;
d1265 1
a1265 1
	exit 0 ;;
d1268 1
a1268 1
	exit 0 ;;
d1271 1
a1271 1
	exit 0 ;;
d1274 1
a1274 1
	exit 0 ;;
d1277 1
a1277 1
	exit 0 ;;
d1280 23
a1302 1
	exit 0 ;;
d1334 1
a1334 1
  printf ("arm-acorn-riscix"); exit (0);
d1423 2
a1424 1
$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0
d1428 1
a1428 1
test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; }
d1437 1
a1437 1
	exit 0 ;;
d1443 1
a1443 1
	exit 0 ;;
d1446 1
a1446 1
	exit 0 ;;
d1449 1
a1449 1
	exit 0 ;;
d1452 1
a1452 1
	exit 0 ;;
d1463 3
a1465 1
    ftp://ftp.gnu.org/pub/gnu/config/
@


1.1.1.4
log
@Import libarchive-2.8.4:
- Improved reliability of hash function detection
- Fix issues on ancient FreeBSD, QNX, ancient NetBSD and Minix
@
text
@d4 1
a4 2
#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
#   Free Software Foundation, Inc.
d6 1
a6 1
timestamp='2009-12-30'
d20 1
a20 2
# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
# 02110-1301, USA.
d27 3
a29 4

# Originally written by Per Bothner.  Please send patches (context
# diff format) to <config-patches@@gnu.org> and include a ChangeLog
# entry.
d35 2
a36 2
# You can get the latest version of this script from:
# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
d56 2
a57 3
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free
Software Foundation, Inc.
d69 1
a69 1
       echo "$timestamp" ; exit ;;
d71 1
a71 1
       echo "$version" ; exit ;;
d73 1
a73 1
       echo "$usage"; exit ;;
d107 1
a107 1
 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
d126 1
a126 1
esac ; set_cc_for_build= ;'
a160 1
	    sh5el) machine=sh5le-unknown ;;
d169 1
a169 1
			| grep -q __ELF__
d199 37
a235 1
	exit ;;
d237 2
a238 15
	UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
	echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
	exit ;;
    *:ekkoBSD:*:*)
	echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
	exit ;;
    *:SolidBSD:*:*)
	echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
	exit ;;
    macppc:MirBSD:*:*)
	echo powerpc-unknown-mirbsd${UNAME_RELEASE}
	exit ;;
    *:MirBSD:*:*)
	echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
	exit ;;
d240 1
a240 2
	case $UNAME_RELEASE in
	*4.0)
d242 1
a242 5
		;;
	*5.*)
	        UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
		;;
	esac
a279 1
	# A Pn.n version is a patched version.
d284 5
a288 2
	echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
	exit ;;
d294 1
a294 1
	exit ;;
d297 1
a297 1
	exit ;;
d300 1
a300 1
	exit ;;
d303 1
a303 1
	exit ;;
d306 1
a306 1
	exit ;;
d309 1
a309 7
	exit ;;
    *:z/VM:*:*)
	echo s390-ibm-zvmoe
	exit ;;
    *:OS400:*:*)
        echo powerpc-ibm-os400
	exit ;;
d312 1
a312 4
	exit ;;
    arm:riscos:*:*|arm:RISCOS:*:*)
	echo arm-unknown-riscos
	exit ;;
d315 1
a315 1
	exit ;;
d323 1
a323 1
	exit ;;
d326 1
a326 1
	exit ;;
d329 2
a330 2
	exit ;;
    DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
d332 1
a332 1
	    sparc) echo sparc-icl-nx7; exit ;;
a333 3
    s390x:SunOS:*:*)
	echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
	exit ;;
d336 1
a336 1
	exit ;;
d339 4
a342 20
	exit ;;
    i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
	echo i386-pc-auroraux${UNAME_RELEASE}
	exit ;;
    i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
	eval $set_cc_for_build
	SUN_ARCH="i386"
	# If there is a compiler, see if it is configured for 64-bit objects.
	# Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
	# This test works for both compilers.
	if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
	    if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
		(CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
		grep IS_64BIT_ARCH >/dev/null
	    then
		SUN_ARCH="x86_64"
	    fi
	fi
	echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
	exit ;;
d348 1
a348 1
	exit ;;
d357 1
a357 1
	exit ;;
d360 1
a360 1
	exit ;;
d372 1
a372 1
	exit ;;
d375 1
a375 1
	exit ;;
d386 1
a386 1
	exit ;;
d389 1
a389 1
        exit ;;
d392 1
a392 1
	exit ;;
d395 1
a395 1
        exit ;;
d398 1
a398 1
        exit ;;
d401 1
a401 4
        exit ;;
    m68k:machten:*:*)
	echo m68k-apple-machten${UNAME_RELEASE}
	exit ;;
d404 1
a404 1
	exit ;;
d407 1
a407 1
	exit ;;
d410 1
a410 1
	exit ;;
d413 1
a413 1
	exit ;;
d416 1
a416 1
	exit ;;
d440 3
a442 4
	$CC_FOR_BUILD -o $dummy $dummy.c &&
	  dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
	  SYSTEM_NAME=`$dummy $dummyarg` &&
	    { echo "$SYSTEM_NAME"; exit; }
d444 1
a444 1
	exit ;;
d447 1
a447 1
	exit ;;
d450 1
a450 1
	exit ;;
d453 1
a453 1
	exit ;;
d456 1
a456 1
	exit ;;
d459 1
a459 1
	exit ;;
d462 1
a462 1
	exit ;;
d465 1
a465 1
	exit ;;
d481 1
a481 1
 	exit ;;
d484 1
a484 1
	exit ;;
d488 1
a488 1
	exit ;;
d491 1
a491 1
	exit ;;
d494 1
a494 1
	exit ;;
d497 1
a497 1
	exit ;;
d499 2
a500 2
	echo romp-ibm-aix     # uname -m gives an 8 hex-code CPU id
	exit ;;               # Note that: echo "'`uname -s`'" gives 'AIX '
d503 1
a503 1
	exit ;;
d511 1
a511 1
	exit ;;
d526 2
a527 6
		if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
		then
			echo "$SYSTEM_NAME"
		else
			echo rs6000-ibm-aix3.2.5
		fi
d533 2
a534 2
	exit ;;
    *:AIX:*:[456])
d547 1
a547 1
	exit ;;
d550 1
a550 1
	exit ;;
d553 1
a553 1
	exit ;;
d556 1
a556 1
	exit ;;                             # report: romp-ibm BSD 4.3
d559 1
a559 1
	exit ;;
d562 1
a562 1
	exit ;;
d565 1
a565 1
	exit ;;
d568 1
a568 1
	exit ;;
d630 3
a632 13
	    eval $set_cc_for_build

	    # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
	    # 32-bit code.  hppa64-hp-hpux* has the same kernel and a compiler
	    # generating 64-bit code.  GNU and HP use different nomenclature:
	    #
	    # $ CC_FOR_BUILD=cc ./config.guess
	    # => hppa2.0w-hp-hpux11.23
	    # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
	    # => hppa64-hp-hpux11.23

	    if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
		grep -q __LP64__
d640 1
a640 1
	exit ;;
d644 1
a644 1
	exit ;;
d672 1
a672 2
	$CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
		{ echo "$SYSTEM_NAME"; exit; }
d674 1
a674 1
	exit ;;
d677 1
a677 1
	exit ;;
d680 1
a680 1
	exit ;;
d683 1
a683 1
	exit ;;
d686 1
a686 1
	exit ;;
d689 1
a689 1
	exit ;;
d696 1
a696 1
	exit ;;
d699 1
a699 1
	exit ;;
d702 1
a702 1
        exit ;;
d708 1
a708 1
        exit ;;
d711 1
a711 1
        exit ;;
d714 1
a714 1
        exit ;;
d717 1
a717 1
        exit ;;
d720 1
a720 1
	exit ;;
d726 1
a726 1
	exit ;;
d729 1
a729 1
	exit ;;
d732 1
a732 1
	exit ;;
d735 1
a735 1
	exit ;;
d737 2
a738 2
	echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
	exit ;;
d744 1
a744 6
        exit ;;
    5000:UNIX_System_V:4.*:*)
        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
        FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
        echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
	exit ;;
d747 1
a747 1
	exit ;;
d750 1
a750 1
	exit ;;
d753 18
a770 11
	exit ;;
    *:FreeBSD:*:*)
	case ${UNAME_MACHINE} in
	    pc98)
		echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
	    amd64)
		echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
	    *)
		echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
	esac
	exit ;;
d773 2
a774 2
	exit ;;
    *:MINGW*:*)
d776 1
a776 5
	exit ;;
    i*:windows32*:*)
    	# uname -m includes "-pc" on this system.
    	echo ${UNAME_MACHINE}-mingw32
	exit ;;
d779 4
a782 13
	exit ;;
    *:Interix*:*)
    	case ${UNAME_MACHINE} in
	    x86)
		echo i586-pc-interix${UNAME_RELEASE}
		exit ;;
	    authenticamd | genuineintel | EM64T)
		echo x86_64-unknown-interix${UNAME_RELEASE}
		exit ;;
	    IA64)
		echo ia64-unknown-interix${UNAME_RELEASE}
		exit ;;
	esac ;;
d785 1
a785 4
	exit ;;
    8664:Windows_NT:*)
	echo x86_64-pc-mks
	exit ;;
d791 1
a791 1
	exit ;;
d794 1
a794 4
	exit ;;
    amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
	echo x86_64-unknown-cygwin
	exit ;;
d797 1
a797 1
	exit ;;
d800 1
a800 1
	exit ;;
a801 1
	# the GNU system
d803 1
a803 5
	exit ;;
    *:GNU/*:*:*)
	# other systems with GNU libc and userland
	echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
	exit ;;
d806 1
a806 15
	exit ;;
    alpha:Linux:*:*)
	case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
	  EV5)   UNAME_MACHINE=alphaev5 ;;
	  EV56)  UNAME_MACHINE=alphaev56 ;;
	  PCA56) UNAME_MACHINE=alphapca56 ;;
	  PCA57) UNAME_MACHINE=alphapca56 ;;
	  EV6)   UNAME_MACHINE=alphaev6 ;;
	  EV67)  UNAME_MACHINE=alphaev67 ;;
	  EV68*) UNAME_MACHINE=alphaev68 ;;
        esac
	objdump --private-headers /bin/sh | grep -q ld.so.1
	if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
	echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
	exit ;;
a807 10
	eval $set_cc_for_build
	if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
	    | grep -q __ARM_EABI__
	then
	    echo ${UNAME_MACHINE}-unknown-linux-gnu
	else
	    echo ${UNAME_MACHINE}-unknown-linux-gnueabi
	fi
	exit ;;
    avr32*:Linux:*:*)
d809 1
a809 1
	exit ;;
d812 8
a819 9
	exit ;;
    crisv32:Linux:*:*)
	echo crisv32-axis-linux-gnu
	exit ;;
    frv:Linux:*:*)
    	echo frv-unknown-linux-gnu
	exit ;;
    i*86:Linux:*:*)
	LIBC=gnu
d822 11
a832 2
	#ifdef __dietlibc__
	LIBC=dietlibc
d835 4
a838 13
	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
	echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
	exit ;;
    ia64:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-gnu
	exit ;;
    m32r*:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-gnu
	exit ;;
    m68*:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-gnu
	exit ;;
    mips:Linux:*:* | mips64:Linux:*:*)
d842 2
a843 2
	#undef ${UNAME_MACHINE}
	#undef ${UNAME_MACHINE}el
d845 1
a845 1
	CPU=${UNAME_MACHINE}el
d848 1
a848 1
	CPU=${UNAME_MACHINE}
d854 2
a855 2
	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
	test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
d857 20
a876 9
    or32:Linux:*:*)
	echo or32-unknown-linux-gnu
	exit ;;
    padre:Linux:*:*)
	echo sparc-unknown-linux-gnu
	exit ;;
    parisc64:Linux:*:* | hppa64:Linux:*:*)
	echo hppa64-unknown-linux-gnu
	exit ;;
d884 4
a887 7
	exit ;;
    ppc64:Linux:*:*)
	echo powerpc64-unknown-linux-gnu
	exit ;;
    ppc:Linux:*:*)
	echo powerpc-unknown-linux-gnu
	exit ;;
d890 1
a890 1
	exit ;;
d893 1
a893 1
	exit ;;
d896 1
a896 1
	exit ;;
d899 1
a899 4
	exit ;;
    vax:Linux:*:*)
	echo ${UNAME_MACHINE}-dec-linux-gnu
	exit ;;
d902 54
a955 4
	exit ;;
    xtensa*:Linux:*:*)
    	echo ${UNAME_MACHINE}-unknown-linux-gnu
	exit ;;
d961 1
a961 1
	exit ;;
d969 1
a969 1
	exit ;;
d974 1
a974 1
	exit ;;
d977 1
a977 1
	exit ;;
d980 2
a981 5
	exit ;;
    i*86:syllable:*:*)
	echo ${UNAME_MACHINE}-pc-syllable
	exit ;;
    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
d983 1
a983 1
	exit ;;
d986 1
a986 1
	exit ;;
d994 2
a995 3
	exit ;;
    i*86:*:5:[678]*)
    	# UnixWare 7.x, OpenUNIX and OpenServer 6.
d1002 1
a1002 1
	exit ;;
d1020 1
a1020 1
	exit ;;
d1024 3
a1026 6
        # the processor, so we play safe by assuming i586.
	# Note: whatever this is, it MUST be the same as what config.sub
	# prints for the "djgpp" host, or else GDB configury will decide that
	# this is a cross-build.
	echo i586-pc-msdosdjgpp
        exit ;;
d1029 1
a1029 1
	exit ;;
d1032 1
a1032 1
	exit ;;
d1039 1
a1039 1
	exit ;;
d1043 1
a1043 1
	exit ;;
d1046 1
a1046 1
	exit ;;
d1049 4
a1052 4
	exit ;;
    M68*:*:R3V[5678]*:*)
	test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
    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)
d1057 1
a1057 1
	  && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
d1059 1
a1059 1
	  && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
d1062 1
a1062 11
          && { echo i486-ncr-sysv4; exit; } ;;
    NCR*:*:4.2:* | MPRAS*:*:4.2:*)
	OS_REL='.3'
	test -r /etc/.relid \
	    && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
	/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
	    && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
	/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
	    && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
	/bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
	    && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
d1065 1
a1065 1
	exit ;;
d1068 1
a1068 1
	exit ;;
d1071 1
a1071 1
	exit ;;
d1074 2
a1075 2
	exit ;;
    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
d1077 1
a1077 1
	exit ;;
d1080 1
a1080 1
	exit ;;
d1083 1
a1083 1
	exit ;;
d1086 1
a1086 1
	exit ;;
d1094 1
a1094 1
	exit ;;
d1098 1
a1098 1
        exit ;;
d1103 1
a1103 1
	exit ;;
d1107 1
a1107 5
	exit ;;
    i*86:VOS:*:*)
	# From Paul.Green@@stratus.com.
	echo ${UNAME_MACHINE}-stratus-vos
	exit ;;
d1111 1
a1111 1
	exit ;;
d1114 1
a1114 1
	exit ;;
d1117 1
a1117 1
	exit ;;
d1124 1
a1124 1
        exit ;;
d1127 1
a1127 1
	exit ;;
d1130 1
a1130 1
	exit ;;
d1133 1
a1133 4
	exit ;;
    BePC:Haiku:*:*)	# Haiku running on Intel PC compatible.
	echo i586-pc-haiku
	exit ;;
d1136 1
a1136 1
	exit ;;
d1139 1
a1139 1
	exit ;;
d1142 1
a1142 10
	exit ;;
    SX-7:SUPER-UX:*:*)
	echo sx7-nec-superux${UNAME_RELEASE}
	exit ;;
    SX-8:SUPER-UX:*:*)
	echo sx8-nec-superux${UNAME_RELEASE}
	exit ;;
    SX-8R:SUPER-UX:*:*)
	echo sx8r-nec-superux${UNAME_RELEASE}
	exit ;;
d1145 1
a1145 1
	exit ;;
d1148 1
a1148 1
	exit ;;
d1150 3
a1152 13
	UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
	case $UNAME_PROCESSOR in
	    i386)
		eval $set_cc_for_build
		if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
		  if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
		      (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
		      grep IS_64BIT_ARCH >/dev/null
		  then
		      UNAME_PROCESSOR="x86_64"
		  fi
		fi ;;
	    unknown) UNAME_PROCESSOR=powerpc ;;
d1155 1
a1155 1
	exit ;;
d1163 1
a1163 1
	exit ;;
d1166 2
a1167 5
	exit ;;
    NSE-?:NONSTOP_KERNEL:*:*)
	echo nse-tandem-nsk${UNAME_RELEASE}
	exit ;;
    NSR-?:NONSTOP_KERNEL:*:*)
d1169 1
a1169 1
	exit ;;
d1172 1
a1172 1
	exit ;;
d1175 1
a1175 1
	exit ;;
d1178 1
a1178 1
	exit ;;
d1189 1
a1189 1
	exit ;;
d1192 1
a1192 1
	exit ;;
d1195 1
a1195 1
	exit ;;
d1198 1
a1198 1
	exit ;;
d1201 1
a1201 1
	exit ;;
d1204 1
a1204 1
	exit ;;
d1207 1
a1207 1
	exit ;;
d1210 1
a1210 23
	exit ;;
    *:DragonFly:*:*)
	echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
	exit ;;
    *:*VMS:*:*)
    	UNAME_MACHINE=`(uname -p) 2>/dev/null`
	case "${UNAME_MACHINE}" in
	    A*) echo alpha-dec-vms ; exit ;;
	    I*) echo ia64-dec-vms ; exit ;;
	    V*) echo vax-dec-vms ; exit ;;
	esac ;;
    *:XENIX:*:SysV)
	echo i386-pc-xenix
	exit ;;
    i*86:skyos:*:*)
	echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
	exit ;;
    i*86:rdos:*:*)
	echo ${UNAME_MACHINE}-pc-rdos
	exit ;;
    i*86:AROS:*:*)
	echo ${UNAME_MACHINE}-pc-aros
	exit ;;
d1242 1
a1242 1
  printf ("arm-acorn-riscix\n"); exit (0);
d1331 1
a1331 2
$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
	{ echo "$SYSTEM_NAME"; exit; }
d1335 1
a1335 1
test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
d1344 1
a1344 1
	exit ;;
d1350 1
a1350 1
	exit ;;
d1353 1
a1353 1
	exit ;;
d1356 1
a1356 1
	exit ;;
d1359 1
a1359 1
	exit ;;
d1370 1
a1370 3
  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
and
  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
@


1.1.1.5
log
@Import libarchive-3.2.1:
- security fixes and other bugfixes
- support for multhreading in xz 5.2+
@
text
@d3 3
a5 1
#   Copyright 1992-2016 Free Software Foundation, Inc.
d7 1
a7 1
timestamp='2016-05-15'
d11 1
a11 1
# the Free Software Foundation; either version 3 of the License, or
d20 3
a22 1
# along with this program; if not, see <http://www.gnu.org/licenses/>.
d27 6
a32 3
# the same distribution terms that you use for the rest of that
# program.  This Exception is an additional permission under section 7
# of the GNU General Public License, version 3 ("GPLv3").
d34 3
a36 1
# Originally written by Per Bothner; maintained since 2000 by Ben Elliston.
d39 1
a39 4
# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
#
# Please send patches to <config-patches@@gnu.org>.

d59 3
a61 1
Copyright 1992-2016 Free Software Foundation, Inc.
a142 21
case "${UNAME_SYSTEM}" in
Linux|GNU|GNU/*)
	# If the system lacks a compiler, then just pick glibc.
	# We could probably try harder.
	LIBC=gnu

	eval $set_cc_for_build
	cat <<-EOF > $dummy.c
	#include <features.h>
	#if defined(__UCLIBC__)
	LIBC=uclibc
	#elif defined(__dietlibc__)
	LIBC=dietlibc
	#else
	LIBC=gnu
	#endif
	EOF
	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`
	;;
esac

d148 1
a148 1
	# more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
d158 2
a159 4
	UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \
	    /sbin/$sysctl 2>/dev/null || \
	    /usr/sbin/$sysctl 2>/dev/null || \
	    echo unknown)`
a165 5
	    earmv*)
		arch=`echo ${UNAME_MACHINE_ARCH} | sed -e 's,^e\(armv[0-9]\).*$,\1,'`
		endian=`echo ${UNAME_MACHINE_ARCH} | sed -ne 's,^.*\(eb\)$,\1,p'`
		machine=${arch}${endian}-unknown
		;;
d169 1
a169 1
	# to ELF recently (or will in the future) and ABI.
a170 3
	    earm*)
		os=netbsdelf
		;;
d184 1
a184 8
		os=netbsd
		;;
	esac
	# Determine ABI tags.
	case "${UNAME_MACHINE_ARCH}" in
	    earm*)
		expr='s/^earmv[0-9]/-eabi/;s/eb$//'
		abi=`echo ${UNAME_MACHINE_ARCH} | sed -e "$expr"`
d197 1
a197 1
		release=`echo ${UNAME_RELEASE} | sed -e 's/[-_].*//' | cut -d. -f1,2`
d203 1
a203 5
	echo "${machine}-${os}${release}${abi}"
	exit ;;
    *:Bitrig:*:*)
	UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
	echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
a208 4
    *:LibertyBSD:*:*)
	UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'`
	echo ${UNAME_MACHINE_ARCH}-unknown-libertybsd${UNAME_RELEASE}
	exit ;;
a220 3
    *:Sortix:*:*)
	echo ${UNAME_MACHINE}-unknown-sortix
	exit ;;
d227 1
a227 1
		UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
d237 1
a237 1
		UNAME_MACHINE=alpha ;;
d239 1
a239 1
		UNAME_MACHINE=alpha ;;
d241 1
a241 1
		UNAME_MACHINE=alpha ;;
d243 1
a243 1
		UNAME_MACHINE=alphaev5 ;;
d245 1
a245 1
		UNAME_MACHINE=alphaev56 ;;
d247 1
a247 1
		UNAME_MACHINE=alphapca56 ;;
d249 1
a249 1
		UNAME_MACHINE=alphapca57 ;;
d251 1
a251 1
		UNAME_MACHINE=alphaev6 ;;
d253 1
a253 1
		UNAME_MACHINE=alphaev67 ;;
d255 1
a255 1
		UNAME_MACHINE=alphaev68 ;;
d257 1
a257 1
		UNAME_MACHINE=alphaev68 ;;
d259 1
a259 1
		UNAME_MACHINE=alphaev68 ;;
d261 1
a261 1
		UNAME_MACHINE=alphaev69 ;;
d263 1
a263 1
		UNAME_MACHINE=alphaev7 ;;
d265 1
a265 1
		UNAME_MACHINE=alphaev79 ;;
d272 2
a273 5
	echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
	# Reset EXIT trap before exiting to avoid spurious non-zero exit code.
	exitcode=$?
	trap '' 0
	exit $exitcode ;;
d299 1
a299 1
	echo powerpc-ibm-os400
d304 1
a304 1
    arm*:riscos:*:*|arm*:RISCOS:*:*)
d342 1
a342 1
	SUN_ARCH=i386
d346 1
a346 1
	if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
d348 1
a348 1
		(CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
d351 1
a351 1
		SUN_ARCH=x86_64
d376 1
a376 1
	test "x${UNAME_RELEASE}" = x && UNAME_RELEASE=3
d398 1
a398 1
	echo m68k-atari-mint${UNAME_RELEASE}
d402 1
a402 1
	exit ;;
d404 1
a404 1
	echo m68k-atari-mint${UNAME_RELEASE}
d407 2
a408 2
	echo m68k-milan-mint${UNAME_RELEASE}
	exit ;;
d410 2
a411 2
	echo m68k-hades-mint${UNAME_RELEASE}
	exit ;;
d413 2
a414 2
	echo m68k-unknown-mint${UNAME_RELEASE}
	exit ;;
d484 2
a485 2
	# DG/UX returns AViiON for all architectures
	UNAME_PROCESSOR=`/usr/bin/uname -p`
d498 1
a498 1
	exit ;;
d555 1
a555 1
    *:AIX:*:[4567])
d562 2
a563 3
	if [ -x /usr/bin/lslpp ] ; then
		IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc |
			   awk -F: '{ print $3 }' | sed s/[0-9]*$/0/`
d598 11
a608 11
		    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
		    case "${sc_cpu_version}" in
		      523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0
		      528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1
		      532)                      # CPU_PA_RISC2_0
			case "${sc_kernel_bits}" in
			  32) HP_ARCH=hppa2.0n ;;
			  64) HP_ARCH=hppa2.0w ;;
			  '') HP_ARCH=hppa2.0 ;;   # HP-UX 10.20
			esac ;;
		    esac
d612 1
a612 1
		    sed 's/^		//' << EOF >$dummy.c
d614 30
a643 30
		#define _HPUX_SOURCE
		#include <stdlib.h>
		#include <unistd.h>

		int main ()
		{
		#if defined(_SC_KERNEL_BITS)
		    long bits = sysconf(_SC_KERNEL_BITS);
		#endif
		    long cpu  = sysconf (_SC_CPU_VERSION);

		    switch (cpu)
			{
			case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
			case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
			case CPU_PA_RISC2_0:
		#if defined(_SC_KERNEL_BITS)
			    switch (bits)
				{
				case 64: puts ("hppa2.0w"); break;
				case 32: puts ("hppa2.0n"); break;
				default: puts ("hppa2.0"); break;
				} break;
		#else  /* !defined(_SC_KERNEL_BITS) */
			    puts ("hppa2.0"); break;
		#endif
			default: puts ("hppa1.0"); break;
			}
		    exit (0);
		}
d645 1
a645 1
		    (CCOPTS="" $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
d649 1
a649 1
	if [ ${HP_ARCH} = hppa2.0w ]
d662 1
a662 1
	    if echo __LP64__ | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) |
d665 1
a665 1
		HP_ARCH=hppa2.0w
d667 1
a667 1
		HP_ARCH=hppa64
d734 1
a734 1
	exit ;;
d740 1
a740 1
	exit ;;
d743 1
a743 1
	exit ;;
d746 1
a746 1
	exit ;;
d749 1
a749 1
	exit ;;
d772 5
a776 5
	FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
	FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
	FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
	echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
	exit ;;
d778 3
a780 3
	FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
	FUJITSU_REL=`echo ${UNAME_RELEASE} | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'`
	echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
d792 3
a794 2
	UNAME_PROCESSOR=`/usr/bin/uname -p`
	case ${UNAME_PROCESSOR} in
d798 1
a798 1
		echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
a803 3
    *:MINGW64*:*)
	echo ${UNAME_MACHINE}-pc-mingw64
	exit ;;
a806 3
    *:MSYS*:*)
	echo ${UNAME_MACHINE}-pc-msys
	exit ;;
d808 2
a809 2
	# uname -m includes "-pc" on this system.
	echo ${UNAME_MACHINE}-mingw32
d815 1
a815 1
	case ${UNAME_MACHINE} in
d852 1
a852 1
	echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
d856 1
a856 1
	echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}
a860 7
    aarch64:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
    aarch64_be:Linux:*:*)
	UNAME_MACHINE=aarch64_be
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
d870 1
a870 1
	esac
d872 2
a873 5
	if test "$?" = 0 ; then LIBC=gnulibc1 ; fi
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
    arc:Linux:*:* | arceb:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d880 1
a880 1
	    echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d882 1
a882 7
	    if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
		| grep -q __ARM_PCS_VFP
	    then
		echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi
	    else
		echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf
	    fi
d886 1
a886 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d889 1
a889 1
	echo ${UNAME_MACHINE}-axis-linux-${LIBC}
d892 1
a892 4
	echo ${UNAME_MACHINE}-axis-linux-${LIBC}
	exit ;;
    e2k:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d895 1
a895 4
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
    hexagon:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d898 9
a906 1
	echo ${UNAME_MACHINE}-pc-linux-${LIBC}
d909 1
a909 4
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
    k1om:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d912 1
a912 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d915 1
a915 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d934 1
a934 1
	test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
d936 2
a937 5
    openrisc*:Linux:*:*)
	echo or1k-unknown-linux-${LIBC}
	exit ;;
    or32:Linux:*:* | or1k*:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d940 1
a940 1
	echo sparc-unknown-linux-${LIBC}
d943 1
a943 1
	echo hppa64-unknown-linux-${LIBC}
d948 3
a950 3
	  PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;
	  PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;
	  *)    echo hppa-unknown-linux-${LIBC} ;;
d954 1
a954 1
	echo powerpc64-unknown-linux-${LIBC}
d957 1
a957 7
	echo powerpc-unknown-linux-${LIBC}
	exit ;;
    ppc64le:Linux:*:*)
	echo powerpc64le-unknown-linux-${LIBC}
	exit ;;
    ppcle:Linux:*:*)
	echo powerpcle-unknown-linux-${LIBC}
d960 1
a960 1
	echo ${UNAME_MACHINE}-ibm-linux-${LIBC}
d963 1
a963 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d966 1
a966 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d969 1
a969 4
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
    tile*:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d972 1
a972 1
	echo ${UNAME_MACHINE}-dec-linux-${LIBC}
d975 1
a975 1
	echo ${UNAME_MACHINE}-pc-linux-${LIBC}
d978 1
a978 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d987 3
a989 3
	# Unixware is an offshoot of SVR4, but it has its own version
	# number series starting with 2...
	# I am not positive that other SVR4 systems won't match this,
d991 1
a991 1
	# Use sysv4.2uw... so that sysv4* matches it.
d1023 1
a1023 1
	# UnixWare 7.x, OpenUNIX and OpenServer 6.
d1051 2
a1052 2
	# uname -m prints for DJGPP always 'pc', but it prints nothing about
	# the processor, so we play safe by assuming i586.
d1054 1
a1054 1
	# prints for the "djgpp" host, or else GDB configure will decide that
d1057 1
a1057 1
	exit ;;
d1092 2
a1093 2
	/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
	  && { echo i486-ncr-sysv4; exit; } ;;
d1136 4
a1139 4
    PENTIUM:*:4.0*:*)	# Unisys `ClearPath HMP IX 4000' SVR4/MP effort
			# says <Richard.M.Bartel@@ccMail.Census.GOV>
	echo i586-unisys-sysv4
	exit ;;
d1165 1
a1165 1
		echo mips-nec-sysv${UNAME_RELEASE}
d1167 1
a1167 1
		echo mips-unknown-sysv${UNAME_RELEASE}
d1169 1
a1169 1
	exit ;;
a1181 3
    x86_64:Haiku:*:*)
	echo x86_64-unknown-haiku
	exit ;;
a1199 3
    SX-ACE:SUPER-UX:*:*)
	echo sxace-nec-superux${UNAME_RELEASE}
	exit ;;
d1208 13
a1220 25
	eval $set_cc_for_build
	if test "$UNAME_PROCESSOR" = unknown ; then
	    UNAME_PROCESSOR=powerpc
	fi
	if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then
	    if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
		if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
		    (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
		    grep IS_64BIT_ARCH >/dev/null
		then
		    case $UNAME_PROCESSOR in
			i386) UNAME_PROCESSOR=x86_64 ;;
			powerpc) UNAME_PROCESSOR=powerpc64 ;;
		    esac
		fi
	    fi
	elif test "$UNAME_PROCESSOR" = i386 ; then
	    # Avoid executing cc on OS X 10.9, as it ships with a stub
	    # that puts up a graphical alert prompting to install
	    # developer tools.  Any system running Mac OS X 10.7 or
	    # later (Darwin 11 and later) is required to have a 64-bit
	    # processor. This is not true of the ARM version of Darwin
	    # that Apple uses in portable devices.
	    UNAME_PROCESSOR=x86_64
	fi
d1225 1
a1225 1
	if test "$UNAME_PROCESSOR" = x86; then
d1234 1
a1234 4
    NEO-?:NONSTOP_KERNEL:*:*)
	echo neo-tandem-nsk${UNAME_RELEASE}
	exit ;;
    NSE-*:NONSTOP_KERNEL:*:*)
d1253 1
a1253 1
	if test "$cputype" = 386; then
d1279 1
a1279 1
	echo mips-sei-seiux${UNAME_RELEASE}
d1285 1
a1285 1
	UNAME_MACHINE=`(uname -p) 2>/dev/null`
d1295 1
a1295 1
	echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE} | sed -e 's/ .*$//'`
d1303 146
a1448 2
    x86_64:VMkernel:*:*)
	echo ${UNAME_MACHINE}-unknown-esx
d1450 2
a1451 2
    amd64:Isilon\ OneFS:*:*)
	echo x86_64-unknown-onefs
d1453 2
a1454 1
esac
d1459 3
a1461 3
This script (version $timestamp), has failed to recognize the
operating system you are using. If your script is old, overwrite
config.guess and config.sub with the latest versions from:
d1463 1
a1463 1
  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
d1465 1
a1465 1
  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
d1467 4
a1470 3
If $0 has already been updated, send the following data and any
information you think might be pertinent to config-patches@@gnu.org to
provide the necessary information to handle your system.
@


1.1.1.6
log
@Import libarchive-3.3.1.
@
text
@d3 1
a3 1
#   Copyright 1992-2017 Free Software Foundation, Inc.
d5 1
a5 1
timestamp='2017-02-07'
d53 1
a53 1
Copyright 1992-2017 Free Software Foundation, Inc.
a1002 3
    mips64el:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
a1034 3
    riscv32:Linux:*:* | riscv64:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
a1339 3
    NSX-?:NONSTOP_KERNEL:*:*)
	echo nsx-tandem-nsk${UNAME_RELEASE}
	exit ;;
@


1.1.1.7
log
@Import libarchive-3.3.2 + 9de5f3 + f9dacbf:
- Support NFS4 ACLs on Linux
- Bugfixes
@
text
@d5 1
a5 1
timestamp='2017-05-27'
d840 3
a842 3
		UNAME_PROCESSOR=x86_64 ;;
	    i386)
		UNAME_PROCESSOR=i586 ;;
a843 1
	echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
d1306 2
a1307 2
		       (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
		       grep IS_64BIT_ARCH >/dev/null
a1313 7
		# On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc
		if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \
		       (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
		       grep IS_PPC >/dev/null
		then
		    UNAME_PROCESSOR=powerpc
		fi
d1337 1
a1337 1
    NEO-*:NONSTOP_KERNEL:*:*)
d1343 1
a1343 1
    NSR-*:NONSTOP_KERNEL:*:*)
d1346 1
a1346 1
    NSX-*:NONSTOP_KERNEL:*:*)
@


1.1.1.8
log
@Import libarchive-3.3.3 as should have done originally.
@
text
@d3 1
a3 1
#   Copyright 1992-2018 Free Software Foundation, Inc.
d5 1
a5 1
timestamp='2018-08-29'
d18 1
a18 1
# along with this program; if not, see <https://www.gnu.org/licenses/>.
d30 1
a30 1
# https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
d42 1
a42 1
Options:
d53 1
a53 1
Copyright 1992-2018 Free Software Foundation, Inc.
d87 2
d99 24
a122 29
tmp=
# shellcheck disable=SC2172
trap 'test -z "$tmp" || rm -fr "$tmp"' 1 2 13 15
trap 'exitcode=$?; test -z "$tmp" || rm -fr "$tmp"; exit $exitcode' 0

set_cc_for_build() {
    : "${TMPDIR=/tmp}"
    # shellcheck disable=SC2039
    { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
	{ test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir "$tmp" 2>/dev/null) ; } ||
	{ tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir "$tmp" 2>/dev/null) && echo "Warning: creating insecure temp directory" >&2 ; } ||
	{ echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; }
    dummy=$tmp/dummy
    case ${CC_FOR_BUILD-},${HOST_CC-},${CC-} in
	,,)    echo "int x;" > "$dummy.c"
	       for driver in cc gcc c89 c99 ; do
		   if ($driver -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then
		       CC_FOR_BUILD="$driver"
		       break
		   fi
	       done
	       if test x"$CC_FOR_BUILD" = x ; then
		   CC_FOR_BUILD=no_compiler_found
	       fi
	       ;;
	,,*)   CC_FOR_BUILD=$CC ;;
	,*,*)  CC_FOR_BUILD=$HOST_CC ;;
    esac
}
d126 1
a126 1
if test -f /.attbin/uname ; then
d135 1
a135 1
case "$UNAME_SYSTEM" in
d141 2
a142 2
	set_cc_for_build
	cat <<-EOF > "$dummy.c"
d152 1
a152 8
	eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`"

	# If ldd exists, use it to detect musl libc.
	if command -v ldd >/dev/null && \
		ldd --version 2>&1 | grep -q ^musl
	then
	    LIBC=musl
	fi
d158 1
a158 1
case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in
d172 2
a173 2
	    "/sbin/$sysctl" 2>/dev/null || \
	    "/usr/sbin/$sysctl" 2>/dev/null || \
d175 1
a175 1
	case "$UNAME_MACHINE_ARCH" in
d182 3
a184 3
		arch=`echo "$UNAME_MACHINE_ARCH" | sed -e 's,^e\(armv[0-9]\).*$,\1,'`
		endian=`echo "$UNAME_MACHINE_ARCH" | sed -ne 's,^.*\(eb\)$,\1,p'`
		machine="${arch}${endian}"-unknown
d186 1
a186 1
	    *) machine="$UNAME_MACHINE_ARCH"-unknown ;;
d190 1
a190 1
	case "$UNAME_MACHINE_ARCH" in
d195 1
a195 1
		set_cc_for_build
d211 1
a211 1
	case "$UNAME_MACHINE_ARCH" in
d214 1
a214 1
		abi=`echo "$UNAME_MACHINE_ARCH" | sed -e "$expr"`
d222 1
a222 1
	case "$UNAME_VERSION" in
d227 1
a227 1
		release=`echo "$UNAME_RELEASE" | sed -e 's/[-_].*//' | cut -d. -f1,2`
d233 1
a233 1
	echo "$machine-${os}${release}${abi-}"
d237 1
a237 1
	echo "$UNAME_MACHINE_ARCH"-unknown-bitrig"$UNAME_RELEASE"
d241 1
a241 1
	echo "$UNAME_MACHINE_ARCH"-unknown-openbsd"$UNAME_RELEASE"
d245 1
a245 4
	echo "$UNAME_MACHINE_ARCH"-unknown-libertybsd"$UNAME_RELEASE"
	exit ;;
    *:MidnightBSD:*:*)
	echo "$UNAME_MACHINE"-unknown-midnightbsd"$UNAME_RELEASE"
d248 1
a248 1
	echo "$UNAME_MACHINE"-unknown-ekkobsd"$UNAME_RELEASE"
d251 1
a251 1
	echo "$UNAME_MACHINE"-unknown-solidbsd"$UNAME_RELEASE"
d254 1
a254 1
	echo powerpc-unknown-mirbsd"$UNAME_RELEASE"
d257 1
a257 1
	echo "$UNAME_MACHINE"-unknown-mirbsd"$UNAME_RELEASE"
d260 1
a260 1
	echo "$UNAME_MACHINE"-unknown-sortix
a261 6
    *:Redox:*:*)
	echo "$UNAME_MACHINE"-unknown-redox
	exit ;;
    mips:OSF1:*.*)
        echo mips-dec-osf1
        exit ;;
d313 1
a313 1
	echo "$UNAME_MACHINE"-dec-osf"`echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`"
d318 9
d331 1
a331 1
	echo "$UNAME_MACHINE"-unknown-amigaos
d334 1
a334 1
	echo "$UNAME_MACHINE"-unknown-morphos
d346 1
a346 1
	echo arm-acorn-riscix"$UNAME_RELEASE"
d373 1
a373 1
	echo "$UNAME_MACHINE"-ibm-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`"
d376 1
a376 1
	echo sparc-hal-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
d379 1
a379 1
	echo sparc-sun-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`"
d382 1
a382 1
	echo i386-pc-auroraux"$UNAME_RELEASE"
d385 14
a398 9
	UNAME_REL="`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`"
	case `isainfo -b` in
	    32)
		echo i386-pc-solaris2"$UNAME_REL"
		;;
	    64)
		echo x86_64-pc-solaris2"$UNAME_REL"
		;;
	esac
d404 1
a404 1
	echo sparc-sun-solaris3"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
d413 1
a413 1
	echo sparc-sun-sunos"`echo "$UNAME_RELEASE"|sed -e 's/-/_/'`"
d416 1
a416 1
	echo m68k-sun-sunos"$UNAME_RELEASE"
d420 1
a420 1
	test "x$UNAME_RELEASE" = x && UNAME_RELEASE=3
d423 1
a423 1
		echo m68k-sun-sunos"$UNAME_RELEASE"
d426 1
a426 1
		echo sparc-sun-sunos"$UNAME_RELEASE"
d431 1
a431 1
	echo sparc-auspex-sunos"$UNAME_RELEASE"
d442 1
a442 1
	echo m68k-atari-mint"$UNAME_RELEASE"
d445 1
a445 1
	echo m68k-atari-mint"$UNAME_RELEASE"
d448 1
a448 1
	echo m68k-atari-mint"$UNAME_RELEASE"
d451 1
a451 1
	echo m68k-milan-mint"$UNAME_RELEASE"
d454 1
a454 1
	echo m68k-hades-mint"$UNAME_RELEASE"
d457 1
a457 1
	echo m68k-unknown-mint"$UNAME_RELEASE"
d460 1
a460 1
	echo m68k-apple-machten"$UNAME_RELEASE"
d463 1
a463 1
	echo powerpc-apple-machten"$UNAME_RELEASE"
d469 1
a469 1
	echo mips-dec-ultrix"$UNAME_RELEASE"
d472 1
a472 1
	echo vax-dec-ultrix"$UNAME_RELEASE"
d475 1
a475 1
	echo clipper-intergraph-clix"$UNAME_RELEASE"
d478 2
a479 2
	set_cc_for_build
	sed 's/^	//' << EOF > "$dummy.c"
d488 1
a488 1
	  printf ("mips-mips-riscos%ssysv\\n", argv[1]); exit (0);
d491 1
a491 1
	  printf ("mips-mips-riscos%ssvr4\\n", argv[1]); exit (0);
d494 1
a494 1
	  printf ("mips-mips-riscos%sbsd\\n", argv[1]); exit (0);
d500 3
a502 3
	$CC_FOR_BUILD -o "$dummy" "$dummy.c" &&
	  dummyarg=`echo "$UNAME_RELEASE" | sed -n 's/\([0-9]*\).*/\1/p'` &&
	  SYSTEM_NAME=`"$dummy" "$dummyarg"` &&
d504 1
a504 1
	echo mips-mips-riscos"$UNAME_RELEASE"
d530 1
a530 1
	if [ "$UNAME_PROCESSOR" = mc88100 ] || [ "$UNAME_PROCESSOR" = mc88110 ]
d532 2
a533 2
	    if [ "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx ] || \
	       [ "$TARGET_BINARY_INTERFACE"x = x ]
d535 1
a535 1
		echo m88k-dg-dgux"$UNAME_RELEASE"
d537 1
a537 1
		echo m88k-dg-dguxbcs"$UNAME_RELEASE"
d540 1
a540 1
	    echo i586-dg-dgux"$UNAME_RELEASE"
d557 1
a557 1
	echo mips-sgi-irix"`echo "$UNAME_RELEASE"|sed -e 's/-/_/g'`"
d569 1
a569 1
		IBM_REV="$UNAME_VERSION.$UNAME_RELEASE"
d571 1
a571 1
	echo "$UNAME_MACHINE"-ibm-aix"$IBM_REV"
d575 2
a576 2
		set_cc_for_build
		sed 's/^		//' << EOF > "$dummy.c"
d587 1
a587 1
		if $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"`
d601 1
a601 1
	if /usr/sbin/lsattr -El "$IBM_CPU_ID" | grep ' POWER' >/dev/null 2>&1; then
d610 1
a610 1
		IBM_REV="$UNAME_VERSION.$UNAME_RELEASE"
d612 1
a612 1
	echo "$IBM_ARCH"-ibm-aix"$IBM_REV"
d617 1
a617 1
    ibmrt:4.4BSD:*|romp-ibm:4.4BSD:*)
d621 1
a621 1
	echo romp-ibm-bsd"$UNAME_RELEASE"   # 4.3 with uname added to
d636 4
a639 4
	HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'`
	case "$UNAME_MACHINE" in
	    9000/31?)            HP_ARCH=m68000 ;;
	    9000/[34]??)         HP_ARCH=m68k ;;
d644 1
a644 1
		    case "$sc_cpu_version" in
d648 1
a648 1
			case "$sc_kernel_bits" in
d655 3
a657 3
		if [ "$HP_ARCH" = "" ]; then
		    set_cc_for_build
		    sed 's/^		//' << EOF > "$dummy.c"
d690 1
a690 1
		    (CCOPTS="" $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null) && HP_ARCH=`"$dummy"`
d694 1
a694 1
	if [ "$HP_ARCH" = hppa2.0w ]
d696 1
a696 1
	    set_cc_for_build
d715 1
a715 1
	echo "$HP_ARCH"-hp-hpux"$HPUX_REV"
d718 2
a719 2
	HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'`
	echo ia64-hp-hpux"$HPUX_REV"
d722 2
a723 2
	set_cc_for_build
	sed 's/^	//' << EOF > "$dummy.c"
d748 1
a748 1
	$CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` &&
d752 1
a752 1
    9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:*)
d761 1
a761 1
    hp7??:OSF1:*:* | hp8?[79]:OSF1:*:*)
d769 1
a769 1
	    echo "$UNAME_MACHINE"-unknown-osf1mk
d771 1
a771 1
	    echo "$UNAME_MACHINE"-unknown-osf1
d796 1
a796 1
	echo ymp-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
d799 1
a799 1
	echo "$UNAME_MACHINE"-cray-unicos"$UNAME_RELEASE" \
d805 1
a805 1
	echo t90-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
d808 1
a808 1
	echo alphaev5-cray-unicosmk"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
d811 1
a811 1
	echo sv1-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
d814 1
a814 1
	echo craynv-cray-unicosmp"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
d819 1
a819 1
	FUJITSU_REL=`echo "$UNAME_RELEASE" | sed -e 's/ /_/'`
d824 1
a824 1
	FUJITSU_REL=`echo "$UNAME_RELEASE" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'`
d828 1
a828 1
	echo "$UNAME_MACHINE"-pc-bsdi"$UNAME_RELEASE"
d831 1
a831 1
	echo sparc-unknown-bsdi"$UNAME_RELEASE"
d834 1
a834 12
	echo "$UNAME_MACHINE"-unknown-bsdi"$UNAME_RELEASE"
	exit ;;
    arm:FreeBSD:*:*)
	UNAME_PROCESSOR=`uname -p`
	set_cc_for_build
	if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
	    | grep -q __ARM_PCS_VFP
	then
	    echo "${UNAME_PROCESSOR}"-unknown-freebsd"`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`"-gnueabi
	else
	    echo "${UNAME_PROCESSOR}"-unknown-freebsd"`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`"-gnueabihf
	fi
d838 1
a838 1
	case "$UNAME_PROCESSOR" in
d844 1
a844 1
	echo "$UNAME_PROCESSOR"-unknown-freebsd"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`"
d847 1
a847 1
	echo "$UNAME_MACHINE"-pc-cygwin
d850 1
a850 1
	echo "$UNAME_MACHINE"-pc-mingw64
d853 1
a853 1
	echo "$UNAME_MACHINE"-pc-mingw32
d856 5
a860 1
	echo "$UNAME_MACHINE"-pc-msys
d863 1
a863 1
	echo "$UNAME_MACHINE"-pc-pw32
d866 1
a866 1
	case "$UNAME_MACHINE" in
d868 1
a868 1
		echo i586-pc-interix"$UNAME_RELEASE"
d871 1
a871 1
		echo x86_64-unknown-interix"$UNAME_RELEASE"
d874 1
a874 1
		echo ia64-unknown-interix"$UNAME_RELEASE"
d877 12
d890 1
a890 1
	echo "$UNAME_MACHINE"-pc-uwin
d895 3
d899 1
a899 1
	echo powerpcle-unknown-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
d903 1
a903 1
	echo "`echo "$UNAME_MACHINE"|sed -e 's,[-/].*$,,'`-unknown-$LIBC`echo "$UNAME_RELEASE"|sed -e 's,/.*$,,'`"
d907 1
a907 1
	echo "$UNAME_MACHINE-unknown-`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`-$LIBC"
d909 2
a910 2
    *:Minix:*:*)
	echo "$UNAME_MACHINE"-unknown-minix
d913 1
a913 1
	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
d917 1
a917 1
	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
d931 1
a931 1
	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
d934 1
a934 1
	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
d937 1
a937 1
	set_cc_for_build
d941 1
a941 1
	    echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
d946 1
a946 1
		echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabi
d948 1
a948 1
		echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabihf
d953 1
a953 1
	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
d956 1
a956 1
	echo "$UNAME_MACHINE"-axis-linux-"$LIBC"
d959 1
a959 1
	echo "$UNAME_MACHINE"-axis-linux-"$LIBC"
d962 1
a962 1
	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
d965 1
a965 1
	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
d968 1
a968 1
	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
d971 1
a971 1
	echo "$UNAME_MACHINE"-pc-linux-"$LIBC"
d974 1
a974 1
	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
d977 1
a977 1
	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
d980 1
a980 1
	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
d983 1
a983 1
	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
d986 2
a987 2
	set_cc_for_build
	sed 's/^	//' << EOF > "$dummy.c"
d1001 2
a1002 2
	eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU'`"
	test "x$CPU" != x && { echo "$CPU-unknown-linux-$LIBC"; exit; }
d1005 1
a1005 1
	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
d1008 1
a1008 1
	echo or1k-unknown-linux-"$LIBC"
d1011 1
a1011 1
	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
d1014 1
a1014 1
	echo sparc-unknown-linux-"$LIBC"
d1017 1
a1017 1
	echo hppa64-unknown-linux-"$LIBC"
d1022 3
a1024 3
	  PA7*) echo hppa1.1-unknown-linux-"$LIBC" ;;
	  PA8*) echo hppa2.0-unknown-linux-"$LIBC" ;;
	  *)    echo hppa-unknown-linux-"$LIBC" ;;
d1028 1
a1028 1
	echo powerpc64-unknown-linux-"$LIBC"
d1031 1
a1031 1
	echo powerpc-unknown-linux-"$LIBC"
d1034 1
a1034 1
	echo powerpc64le-unknown-linux-"$LIBC"
d1037 1
a1037 1
	echo powerpcle-unknown-linux-"$LIBC"
d1040 1
a1040 1
	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
d1043 1
a1043 1
	echo "$UNAME_MACHINE"-ibm-linux-"$LIBC"
d1046 1
a1046 1
	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
d1049 1
a1049 1
	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
d1052 1
a1052 1
	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
d1055 1
a1055 1
	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
d1058 1
a1058 1
	echo "$UNAME_MACHINE"-dec-linux-"$LIBC"
d1061 1
a1061 1
	echo "$UNAME_MACHINE"-pc-linux-"$LIBC"
d1064 1
a1064 1
	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
d1078 1
a1078 1
	echo "$UNAME_MACHINE"-pc-sysv4.2uw"$UNAME_VERSION"
d1083 1
a1083 1
	echo "$UNAME_MACHINE"-pc-os2-emx
d1086 1
a1086 1
	echo "$UNAME_MACHINE"-unknown-stop
d1089 1
a1089 1
	echo "$UNAME_MACHINE"-unknown-atheos
d1092 1
a1092 1
	echo "$UNAME_MACHINE"-pc-syllable
d1095 1
a1095 1
	echo i386-unknown-lynxos"$UNAME_RELEASE"
d1098 1
a1098 1
	echo "$UNAME_MACHINE"-pc-msdosdjgpp
d1100 2
a1101 2
    i*86:*:4.*:*)
	UNAME_REL=`echo "$UNAME_RELEASE" | sed 's/\/MP$//'`
d1103 1
a1103 1
		echo "$UNAME_MACHINE"-univel-sysv"$UNAME_REL"
d1105 1
a1105 1
		echo "$UNAME_MACHINE"-pc-sysv"$UNAME_REL"
d1115 1
a1115 1
	echo "$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}{$UNAME_VERSION}"
d1120 1
a1120 1
		echo "$UNAME_MACHINE"-pc-isc"$UNAME_REL"
d1130 1
a1130 1
		echo "$UNAME_MACHINE"-pc-sco"$UNAME_REL"
d1132 1
a1132 1
		echo "$UNAME_MACHINE"-pc-sysv32
d1152 1
a1152 1
	  echo i860-stardent-sysv"$UNAME_RELEASE" # Stardent Vistra i860-SVR4
d1154 1
a1154 1
	  echo i860-unknown-sysv"$UNAME_RELEASE"  # Unknown i860-SVR4
d1174 1
a1174 1
	  && { echo i486-ncr-sysv4.3"$OS_REL"; exit; }
d1176 1
a1176 1
	  && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;;
d1185 1
a1185 1
	    && { echo i486-ncr-sysv4.3"$OS_REL"; exit; }
d1187 1
a1187 1
	    && { echo i586-ncr-sysv4.3"$OS_REL"; exit; }
d1189 1
a1189 1
	    && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;;
d1191 1
a1191 1
	echo m68k-unknown-lynxos"$UNAME_RELEASE"
d1197 1
a1197 1
	echo sparc-unknown-lynxos"$UNAME_RELEASE"
d1200 1
a1200 1
	echo rs6000-unknown-lynxos"$UNAME_RELEASE"
d1203 1
a1203 1
	echo powerpc-unknown-lynxos"$UNAME_RELEASE"
d1206 1
a1206 1
	echo mips-dde-sysv"$UNAME_RELEASE"
d1217 1
a1217 1
		echo "$UNAME_MACHINE"-sni-sysv4
d1237 1
a1237 1
	echo "$UNAME_MACHINE"-stratus-vos
d1244 1
a1244 1
	echo m68k-apple-aux"$UNAME_RELEASE"
d1251 1
a1251 1
		echo mips-nec-sysv"$UNAME_RELEASE"
d1253 1
a1253 1
		echo mips-unknown-sysv"$UNAME_RELEASE"
d1272 1
a1272 1
	echo sx4-nec-superux"$UNAME_RELEASE"
d1275 1
a1275 1
	echo sx5-nec-superux"$UNAME_RELEASE"
d1278 1
a1278 1
	echo sx6-nec-superux"$UNAME_RELEASE"
d1281 1
a1281 1
	echo sx7-nec-superux"$UNAME_RELEASE"
d1284 1
a1284 1
	echo sx8-nec-superux"$UNAME_RELEASE"
d1287 1
a1287 1
	echo sx8r-nec-superux"$UNAME_RELEASE"
d1290 1
a1290 1
	echo sxace-nec-superux"$UNAME_RELEASE"
d1293 1
a1293 1
	echo powerpc-apple-rhapsody"$UNAME_RELEASE"
d1296 1
a1296 1
	echo "$UNAME_MACHINE"-apple-rhapsody"$UNAME_RELEASE"
d1300 1
a1300 1
	set_cc_for_build
d1304 1
a1304 1
	if test "`echo "$UNAME_RELEASE" | sed -e 's/\..*//'`" -le 10 ; then
d1332 1
a1332 1
	echo "$UNAME_PROCESSOR"-apple-darwin"$UNAME_RELEASE"
d1340 1
a1340 1
	echo "$UNAME_PROCESSOR"-"$UNAME_MACHINE"-nto-qnx"$UNAME_RELEASE"
d1346 1
a1346 1
	echo neo-tandem-nsk"$UNAME_RELEASE"
d1349 1
a1349 1
	echo nse-tandem-nsk"$UNAME_RELEASE"
d1352 1
a1352 4
	echo nsr-tandem-nsk"$UNAME_RELEASE"
	exit ;;
    NSV-*:NONSTOP_KERNEL:*:*)
	echo nsv-tandem-nsk"$UNAME_RELEASE"
d1355 1
a1355 1
	echo nsx-tandem-nsk"$UNAME_RELEASE"
d1364 1
a1364 1
	echo "$UNAME_MACHINE"-"$UNAME_SYSTEM"-"$UNAME_RELEASE"
a1369 1
	# shellcheck disable=SC2154
d1375 1
a1375 1
	echo "$UNAME_MACHINE"-unknown-plan9
d1396 1
a1396 1
	echo mips-sei-seiux"$UNAME_RELEASE"
d1399 1
a1399 1
	echo "$UNAME_MACHINE"-unknown-dragonfly"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`"
d1403 1
a1403 1
	case "$UNAME_MACHINE" in
d1412 1
a1412 1
	echo "$UNAME_MACHINE"-pc-skyos"`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'`"
d1415 1
a1415 1
	echo "$UNAME_MACHINE"-pc-rdos
d1418 1
a1418 1
	echo "$UNAME_MACHINE"-pc-aros
d1421 1
a1421 1
	echo "$UNAME_MACHINE"-unknown-esx
a1427 13
echo "$0: unable to guess system type" >&2

case "$UNAME_MACHINE:$UNAME_SYSTEM" in
    mips:Linux | mips64:Linux)
	# If we got here on MIPS GNU/Linux, output extra information.
	cat >&2 <<EOF

NOTE: MIPS GNU/Linux systems require a C compiler to fully recognize
the system type. Please install a C compiler and try again.
EOF
	;;
esac

d1429 1
d1432 2
a1433 2
operating system you are using. If your script is old, overwrite *all*
copies of config.guess and config.sub with the latest versions from:
d1435 1
a1435 1
  https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
d1437 1
a1437 1
  https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
d1460 4
a1463 4
UNAME_MACHINE = "$UNAME_MACHINE"
UNAME_RELEASE = "$UNAME_RELEASE"
UNAME_SYSTEM  = "$UNAME_SYSTEM"
UNAME_VERSION = "$UNAME_VERSION"
d1469 1
a1469 1
# eval: (add-hook 'before-save-hook 'time-stamp)
@


1.1.1.9
log
@Import libarchive 3.4.0
@
text
@d3 1
a3 1
#   Copyright 1992-2019 Free Software Foundation, Inc.
d5 1
a5 1
timestamp='2019-06-10'
d53 1
a53 1
Copyright 1992-2019 Free Software Foundation, Inc.
d99 2
a100 1
trap 'test -z "$tmp" || rm -fr "$tmp"' 0 1 2 13 15
a265 3
    *:OS108:*:*)
	echo "$UNAME_MACHINE"-unknown-os108_"$UNAME_RELEASE"
	exit ;;
d395 9
a403 14
	set_cc_for_build
	SUN_ARCH=i386
	# If there is a compiler, see if it is configured for 64-bit objects.
	# Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
	# This test works for both compilers.
	if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
	    if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
		(CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
		grep IS_64BIT_ARCH >/dev/null
	    then
		SUN_ARCH=x86_64
	    fi
	fi
	echo "$SUN_ARCH"-pc-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
d893 1
a893 1
	echo x86_64-pc-cygwin
a983 2
	IS_GLIBC=0
	test x"${LIBC}" = xgnu && IS_GLIBC=1
d986 2
a987 28
	#undef mips
	#undef mipsel
	#undef mips64
	#undef mips64el
	#if ${IS_GLIBC} && defined(_ABI64)
	LIBCABI=gnuabi64
	#else
	#if ${IS_GLIBC} && defined(_ABIN32)
	LIBCABI=gnuabin32
	#else
	LIBCABI=${LIBC}
	#endif
	#endif

	#if ${IS_GLIBC} && defined(__mips64) && defined(__mips_isa_rev) && __mips_isa_rev>=6
	CPU=mipsisa64r6
	#else
	#if ${IS_GLIBC} && !defined(__mips64) && defined(__mips_isa_rev) && __mips_isa_rev>=6
	CPU=mipsisa32r6
	#else
	#if defined(__mips64)
	CPU=mips64
	#else
	CPU=mips
	#endif
	#endif
	#endif

d989 1
a989 1
	MIPS_ENDIAN=el
d992 1
a992 1
	MIPS_ENDIAN=
d994 1
a994 1
	MIPS_ENDIAN=
d998 2
a999 2
	eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU\|^MIPS_ENDIAN\|^LIBCABI'`"
	test "x$CPU" != x && { echo "$CPU${MIPS_ENDIAN}-unknown-linux-$LIBCABI"; exit; }
d1112 1
a1112 1
	echo "$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}"
d1296 4
a1299 12
	UNAME_PROCESSOR=`uname -p`
	case $UNAME_PROCESSOR in
	    unknown) UNAME_PROCESSOR=powerpc ;;
	esac
	if command -v xcode-select > /dev/null 2> /dev/null && \
		! xcode-select --print-path > /dev/null 2> /dev/null ; then
	    # Avoid executing cc if there is no toolchain installed as
	    # cc will be a stub that puts up a graphical alert
	    # prompting the user to install developer tools.
	    CC_FOR_BUILD=no_compiler_found
	else
	    set_cc_for_build
d1301 18
a1318 16
	if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
	    if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
		   (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
		   grep IS_64BIT_ARCH >/dev/null
	    then
		case $UNAME_PROCESSOR in
		    i386) UNAME_PROCESSOR=x86_64 ;;
		    powerpc) UNAME_PROCESSOR=powerpc64 ;;
		esac
	    fi
	    # On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc
	    if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \
		   (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
		   grep IS_PPC >/dev/null
	    then
		UNAME_PROCESSOR=powerpc
d1321 7
a1327 2
	    # uname -m returns i386 or x86_64
	    UNAME_PROCESSOR=$UNAME_MACHINE
a1426 3
    *:Unleashed:*:*)
	echo "$UNAME_MACHINE"-unknown-unleashed"$UNAME_RELEASE"
	exit ;;
a1428 137
# No uname command or uname output not recognized.
set_cc_for_build
cat > "$dummy.c" <<EOF
#ifdef _SEQUENT_
#include <sys/types.h>
#include <sys/utsname.h>
#endif
#if defined(ultrix) || defined(_ultrix) || defined(__ultrix) || defined(__ultrix__)
#if defined (vax) || defined (__vax) || defined (__vax__) || defined(mips) || defined(__mips) || defined(__mips__) || defined(MIPS) || defined(__MIPS__)
#include <signal.h>
#if defined(_SIZE_T_) || defined(SIGLOST)
#include <sys/utsname.h>
#endif
#endif
#endif
main ()
{
#if defined (sony)
#if defined (MIPSEB)
  /* BFD wants "bsd" instead of "newsos".  Perhaps BFD should be changed,
     I don't know....  */
  printf ("mips-sony-bsd\n"); exit (0);
#else
#include <sys/param.h>
  printf ("m68k-sony-newsos%s\n",
#ifdef NEWSOS4
  "4"
#else
  ""
#endif
  ); exit (0);
#endif
#endif

#if defined (NeXT)
#if !defined (__ARCHITECTURE__)
#define __ARCHITECTURE__ "m68k"
#endif
  int version;
  version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
  if (version < 4)
    printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
  else
    printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
  exit (0);
#endif

#if defined (MULTIMAX) || defined (n16)
#if defined (UMAXV)
  printf ("ns32k-encore-sysv\n"); exit (0);
#else
#if defined (CMU)
  printf ("ns32k-encore-mach\n"); exit (0);
#else
  printf ("ns32k-encore-bsd\n"); exit (0);
#endif
#endif
#endif

#if defined (__386BSD__)
  printf ("i386-pc-bsd\n"); exit (0);
#endif

#if defined (sequent)
#if defined (i386)
  printf ("i386-sequent-dynix\n"); exit (0);
#endif
#if defined (ns32000)
  printf ("ns32k-sequent-dynix\n"); exit (0);
#endif
#endif

#if defined (_SEQUENT_)
  struct utsname un;

  uname(&un);
  if (strncmp(un.version, "V2", 2) == 0) {
    printf ("i386-sequent-ptx2\n"); exit (0);
  }
  if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
    printf ("i386-sequent-ptx1\n"); exit (0);
  }
  printf ("i386-sequent-ptx\n"); exit (0);
#endif

#if defined (vax)
#if !defined (ultrix)
#include <sys/param.h>
#if defined (BSD)
#if BSD == 43
  printf ("vax-dec-bsd4.3\n"); exit (0);
#else
#if BSD == 199006
  printf ("vax-dec-bsd4.3reno\n"); exit (0);
#else
  printf ("vax-dec-bsd\n"); exit (0);
#endif
#endif
#else
  printf ("vax-dec-bsd\n"); exit (0);
#endif
#else
#if defined(_SIZE_T_) || defined(SIGLOST)
  struct utsname un;
  uname (&un);
  printf ("vax-dec-ultrix%s\n", un.release); exit (0);
#else
  printf ("vax-dec-ultrix\n"); exit (0);
#endif
#endif
#endif
#if defined(ultrix) || defined(_ultrix) || defined(__ultrix) || defined(__ultrix__)
#if defined(mips) || defined(__mips) || defined(__mips__) || defined(MIPS) || defined(__MIPS__)
#if defined(_SIZE_T_) || defined(SIGLOST)
  struct utsname *un;
  uname (&un);
  printf ("mips-dec-ultrix%s\n", un.release); exit (0);
#else
  printf ("mips-dec-ultrix\n"); exit (0);
#endif
#endif
#endif

#if defined (alliant) && defined (i860)
  printf ("i860-alliant-bsd\n"); exit (0);
#endif

  exit (1);
}
EOF

$CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null && SYSTEM_NAME=`$dummy` &&
	{ echo "$SYSTEM_NAME"; exit; }

# Apollos put the system type in the environment.
test -d /usr/apollo && { echo "$ISP-apollo-$SYSTYPE"; exit; }

@


1.1.1.10
log
@Import libarchive 3.7.2
@
text
@d3 1
a3 1
#   Copyright 1992-2022 Free Software Foundation, Inc.
d5 1
a5 3
# shellcheck disable=SC2006,SC2268 # see below for rationale

timestamp='2022-01-09'
d9 1
a9 1
# the Free Software Foundation, either version 3 of the License, or
d30 1
a30 1
# https://git.savannah.gnu.org/cgit/config.git/plain/config.guess
a34 8
# The "shellcheck disable" line above the timestamp inhibits complaints
# about features and limitations of the classic Bourne shell that were
# superseded or lifted in POSIX.  However, this script identifies a wide
# variety of pre-POSIX systems that do not have POSIX shells at all, and
# even some reasonably current systems (Solaris 10 as case-in-point) still
# have a pre-POSIX /bin/sh.


d53 1
a53 1
Copyright 1992-2022 Free Software Foundation, Inc.
a86 3
# Just in case it came from the environment.
GUESS=

a101 2
    # prevent multiple calls if $tmp is already set
    test "$tmp" && return 0
d103 1
a103 1
    # shellcheck disable=SC2039,SC3028
d113 1
a113 1
		       CC_FOR_BUILD=$driver
d134 1
a134 1
UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
d137 1
a137 1
case $UNAME_SYSTEM in
d139 3
a141 1
	LIBC=unknown
d150 1
a150 1
	#elif defined(__GLIBC__)
a151 6
	#else
	#include <stdarg.h>
	/* First heuristic to detect musl libc.  */
	#ifdef __DEFINED_va_list
	LIBC=musl
	#endif
d154 1
a154 2
	cc_set_libc=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`
	eval "$cc_set_libc"
d156 5
a160 11
	# Second heuristic to detect musl libc.
	if [ "$LIBC" = unknown ] &&
	   command -v ldd >/dev/null &&
	   ldd --version 2>&1 | grep -q ^musl; then
		LIBC=musl
	fi

	# If the system lacks a compiler, then just pick glibc.
	# We could probably try harder.
	if [ "$LIBC" = unknown ]; then
		LIBC=gnu
d167 1
a167 1
case $UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION in
d179 1
d181 2
a182 2
	    /sbin/sysctl -n hw.machine_arch 2>/dev/null || \
	    /usr/sbin/sysctl -n hw.machine_arch 2>/dev/null || \
d184 1
a184 2
	case $UNAME_MACHINE_ARCH in
	    aarch64eb) machine=aarch64_be-unknown ;;
d193 1
a193 1
		machine=${arch}${endian}-unknown
d195 1
a195 1
	    *) machine=$UNAME_MACHINE_ARCH-unknown ;;
d199 1
a199 1
	case $UNAME_MACHINE_ARCH in
d220 1
a220 1
	case $UNAME_MACHINE_ARCH in
d231 1
a231 1
	case $UNAME_VERSION in
d242 2
a243 2
	GUESS=$machine-${os}${release}${abi-}
	;;
d246 2
a247 2
	GUESS=$UNAME_MACHINE_ARCH-unknown-bitrig$UNAME_RELEASE
	;;
d250 2
a251 6
	GUESS=$UNAME_MACHINE_ARCH-unknown-openbsd$UNAME_RELEASE
	;;
    *:SecBSD:*:*)
	UNAME_MACHINE_ARCH=`arch | sed 's/SecBSD.//'`
	GUESS=$UNAME_MACHINE_ARCH-unknown-secbsd$UNAME_RELEASE
	;;
d254 2
a255 2
	GUESS=$UNAME_MACHINE_ARCH-unknown-libertybsd$UNAME_RELEASE
	;;
d257 2
a258 2
	GUESS=$UNAME_MACHINE-unknown-midnightbsd$UNAME_RELEASE
	;;
d260 2
a261 2
	GUESS=$UNAME_MACHINE-unknown-ekkobsd$UNAME_RELEASE
	;;
d263 2
a264 2
	GUESS=$UNAME_MACHINE-unknown-solidbsd$UNAME_RELEASE
	;;
d266 2
a267 2
	GUESS=$UNAME_MACHINE-unknown-os108_$UNAME_RELEASE
	;;
d269 2
a270 2
	GUESS=powerpc-unknown-mirbsd$UNAME_RELEASE
	;;
d272 2
a273 2
	GUESS=$UNAME_MACHINE-unknown-mirbsd$UNAME_RELEASE
	;;
d275 2
a276 5
	GUESS=$UNAME_MACHINE-unknown-sortix
	;;
    *:Twizzler:*:*)
	GUESS=$UNAME_MACHINE-unknown-twizzler
	;;
d278 2
a279 2
	GUESS=$UNAME_MACHINE-unknown-redox
	;;
d281 2
a282 2
	GUESS=mips-dec-osf1
	;;
a283 2
	# Reset EXIT trap before exiting to avoid spurious non-zero exit code.
	trap '' 0
d297 1
a297 1
	case $ALPHA_CPU_TYPE in
d334 5
a338 3
	OSF_REL=`echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
	GUESS=$UNAME_MACHINE-dec-osf$OSF_REL
	;;
d340 2
a341 2
	GUESS=m68k-unknown-sysv4
	;;
d343 2
a344 2
	GUESS=$UNAME_MACHINE-unknown-amigaos
	;;
d346 2
a347 2
	GUESS=$UNAME_MACHINE-unknown-morphos
	;;
d349 2
a350 2
	GUESS=i370-ibm-openedition
	;;
d352 2
a353 2
	GUESS=s390-ibm-zvmoe
	;;
d355 2
a356 2
	GUESS=powerpc-ibm-os400
	;;
d358 2
a359 2
	GUESS=arm-acorn-riscix$UNAME_RELEASE
	;;
d361 2
a362 2
	GUESS=arm-unknown-riscos
	;;
d364 2
a365 2
	GUESS=hppa1.1-hitachi-hiuxmpp
	;;
d368 6
a373 5
	case `(/bin/universe) 2>/dev/null` in
	    att) GUESS=pyramid-pyramid-sysv3 ;;
	    *)   GUESS=pyramid-pyramid-bsd   ;;
	esac
	;;
d375 2
a376 2
	GUESS=pyramid-pyramid-svr4
	;;
d378 2
a379 2
	GUESS=sparc-icl-nx6
	;;
d382 2
a383 3
	    sparc) GUESS=sparc-icl-nx7 ;;
	esac
	;;
d385 2
a386 3
	SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`
	GUESS=$UNAME_MACHINE-ibm-solaris2$SUN_REL
	;;
d388 2
a389 3
	SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`
	GUESS=sparc-hal-solaris2$SUN_REL
	;;
d391 2
a392 3
	SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`
	GUESS=sparc-sun-solaris2$SUN_REL
	;;
d394 2
a395 2
	GUESS=i386-pc-auroraux$UNAME_RELEASE
	;;
d402 1
a402 1
	if test "$CC_FOR_BUILD" != no_compiler_found; then
d404 1
a404 1
		(CCOPTS="" $CC_FOR_BUILD -m64 -E - 2>/dev/null) | \
d410 2
a411 3
	SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`
	GUESS=$SUN_ARCH-pc-solaris2$SUN_REL
	;;
d416 2
a417 3
	SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`
	GUESS=sparc-sun-solaris3$SUN_REL
	;;
d419 1
a419 1
	case `/usr/bin/arch -k` in
d425 2
a426 3
	SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/-/_/'`
	GUESS=sparc-sun-sunos$SUN_REL
	;;
d428 2
a429 2
	GUESS=m68k-sun-sunos$UNAME_RELEASE
	;;
d433 1
a433 1
	case `/bin/arch` in
d435 1
a435 1
		GUESS=m68k-sun-sunos$UNAME_RELEASE
d438 1
a438 1
		GUESS=sparc-sun-sunos$UNAME_RELEASE
d441 1
a441 1
	;;
d443 2
a444 2
	GUESS=sparc-auspex-sunos$UNAME_RELEASE
	;;
d454 2
a455 2
	GUESS=m68k-atari-mint$UNAME_RELEASE
	;;
d457 2
a458 2
	GUESS=m68k-atari-mint$UNAME_RELEASE
	;;
d460 2
a461 2
	GUESS=m68k-atari-mint$UNAME_RELEASE
	;;
d463 2
a464 2
	GUESS=m68k-milan-mint$UNAME_RELEASE
	;;
d466 2
a467 2
	GUESS=m68k-hades-mint$UNAME_RELEASE
	;;
d469 2
a470 2
	GUESS=m68k-unknown-mint$UNAME_RELEASE
	;;
d472 2
a473 2
	GUESS=m68k-apple-machten$UNAME_RELEASE
	;;
d475 2
a476 2
	GUESS=powerpc-apple-machten$UNAME_RELEASE
	;;
d478 2
a479 2
	GUESS=mips-dec-mach_bsd4.3
	;;
d481 2
a482 2
	GUESS=mips-dec-ultrix$UNAME_RELEASE
	;;
d484 2
a485 2
	GUESS=vax-dec-ultrix$UNAME_RELEASE
	;;
d487 2
a488 2
	GUESS=clipper-intergraph-clix$UNAME_RELEASE
	;;
d516 2
a517 2
	GUESS=mips-mips-riscos$UNAME_RELEASE
	;;
d519 2
a520 2
	GUESS=powerpc-motorola-powermax
	;;
d522 2
a523 2
	GUESS=powerpc-harris-powermax
	;;
d525 2
a526 2
	GUESS=powerpc-harris-powermax
	;;
d528 2
a529 2
	GUESS=powerpc-harris-powerunix
	;;
d531 2
a532 2
	GUESS=m88k-harris-cxux7
	;;
d534 2
a535 2
	GUESS=m88k-motorola-sysv4
	;;
d537 2
a538 2
	GUESS=m88k-motorola-sysv3
	;;
d542 1
a542 1
	if test "$UNAME_PROCESSOR" = mc88100 || test "$UNAME_PROCESSOR" = mc88110
d544 2
a545 2
	    if test "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx || \
	       test "$TARGET_BINARY_INTERFACE"x = x
d547 1
a547 1
		GUESS=m88k-dg-dgux$UNAME_RELEASE
d549 1
a549 1
		GUESS=m88k-dg-dguxbcs$UNAME_RELEASE
d552 1
a552 1
	    GUESS=i586-dg-dgux$UNAME_RELEASE
d554 1
a554 1
	;;
d556 2
a557 2
	GUESS=m88k-dolphin-sysv3
	;;
d560 2
a561 2
	GUESS=m88k-motorola-sysv3
	;;
d563 2
a564 2
	GUESS=m88k-tektronix-sysv3
	;;
d566 2
a567 2
	GUESS=m68k-tektronix-bsd
	;;
d569 2
a570 3
	IRIX_REL=`echo "$UNAME_RELEASE" | sed -e 's/-/_/g'`
	GUESS=mips-sgi-irix$IRIX_REL
	;;
d572 2
a573 2
	GUESS=romp-ibm-aix    # uname -m gives an 8 hex-code CPU id
	;;                    # Note that: echo "'`uname -s`'" gives 'AIX '
d575 2
a576 2
	GUESS=i386-ibm-aix
	;;
d578 1
a578 1
	if test -x /usr/bin/oslevel ; then
d581 1
a581 1
		IBM_REV=$UNAME_VERSION.$UNAME_RELEASE
d583 2
a584 2
	GUESS=$UNAME_MACHINE-ibm-aix$IBM_REV
	;;
d601 1
a601 1
			GUESS=$SYSTEM_NAME
d603 1
a603 1
			GUESS=rs6000-ibm-aix3.2.5
d606 1
a606 1
		GUESS=rs6000-ibm-aix3.2.4
d608 1
a608 1
		GUESS=rs6000-ibm-aix3.2
d610 1
a610 1
	;;
d618 2
a619 2
	if test -x /usr/bin/lslpp ; then
		IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc | \
d622 1
a622 1
		IBM_REV=$UNAME_VERSION.$UNAME_RELEASE
d624 2
a625 2
	GUESS=$IBM_ARCH-ibm-aix$IBM_REV
	;;
d627 2
a628 2
	GUESS=rs6000-ibm-aix
	;;
d630 2
a631 2
	GUESS=romp-ibm-bsd4.4
	;;
d633 2
a634 2
	GUESS=romp-ibm-bsd$UNAME_RELEASE    # 4.3 with uname added to
	;;                                  # report: romp-ibm BSD 4.3
d636 2
a637 2
	GUESS=rs6000-bull-bosx
	;;
d639 2
a640 2
	GUESS=m68k-bull-sysv3
	;;
d642 2
a643 2
	GUESS=m68k-hp-bsd
	;;
d645 2
a646 2
	GUESS=m68k-hp-bsd4.4
	;;
d648 2
a649 2
	HPUX_REV=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*.[0B]*//'`
	case $UNAME_MACHINE in
d653 1
a653 1
		if test -x /usr/bin/getconf; then
d656 1
a656 1
		    case $sc_cpu_version in
d660 1
a660 1
			case $sc_kernel_bits in
d667 1
a667 1
		if test "$HP_ARCH" = ""; then
d706 1
a706 1
	if test "$HP_ARCH" = hppa2.0w
d727 2
a728 2
	GUESS=$HP_ARCH-hp-hpux$HPUX_REV
	;;
d730 3
a732 3
	HPUX_REV=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*.[0B]*//'`
	GUESS=ia64-hp-hpux$HPUX_REV
	;;
d762 2
a763 2
	GUESS=unknown-hitachi-hiuxwe2
	;;
d765 2
a766 2
	GUESS=hppa1.1-hp-bsd
	;;
d768 2
a769 2
	GUESS=hppa1.0-hp-bsd
	;;
d771 2
a772 2
	GUESS=hppa1.0-hp-mpeix
	;;
d774 2
a775 2
	GUESS=hppa1.1-hp-osf
	;;
d777 2
a778 2
	GUESS=hppa1.0-hp-osf
	;;
d780 2
a781 2
	if test -x /usr/sbin/sysversion ; then
	    GUESS=$UNAME_MACHINE-unknown-osf1mk
d783 1
a783 1
	    GUESS=$UNAME_MACHINE-unknown-osf1
d785 1
a785 1
	;;
d787 2
a788 2
	GUESS=hppa1.1-hp-lites
	;;
d790 2
a791 2
	GUESS=c1-convex-bsd
	;;
d799 2
a800 2
	GUESS=c34-convex-bsd
	;;
d802 2
a803 2
	GUESS=c38-convex-bsd
	;;
d805 2
a806 2
	GUESS=c4-convex-bsd
	;;
d808 2
a809 3
	CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'`
	GUESS=ymp-cray-unicos$CRAY_REL
	;;
d817 2
a818 3
	CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'`
	GUESS=t90-cray-unicos$CRAY_REL
	;;
d820 2
a821 3
	CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'`
	GUESS=alphaev5-cray-unicosmk$CRAY_REL
	;;
d823 2
a824 3
	CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'`
	GUESS=sv1-cray-unicos$CRAY_REL
	;;
d826 2
a827 3
	CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'`
	GUESS=craynv-cray-unicosmp$CRAY_REL
	;;
d832 2
a833 2
	GUESS=${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}
	;;
d837 2
a838 2
	GUESS=sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}
	;;
d840 2
a841 2
	GUESS=$UNAME_MACHINE-pc-bsdi$UNAME_RELEASE
	;;
d843 2
a844 2
	GUESS=sparc-unknown-bsdi$UNAME_RELEASE
	;;
d846 2
a847 2
	GUESS=$UNAME_MACHINE-unknown-bsdi$UNAME_RELEASE
	;;
d854 1
a854 2
	    FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'`
	    GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL-gnueabi
d856 1
a856 2
	    FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'`
	    GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL-gnueabihf
d858 1
a858 1
	;;
d861 1
a861 1
	case $UNAME_PROCESSOR in
d867 2
a868 3
	FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'`
	GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL
	;;
d870 2
a871 2
	GUESS=$UNAME_MACHINE-pc-cygwin
	;;
d873 2
a874 2
	GUESS=$UNAME_MACHINE-pc-mingw64
	;;
d876 2
a877 2
	GUESS=$UNAME_MACHINE-pc-mingw32
	;;
d879 2
a880 2
	GUESS=$UNAME_MACHINE-pc-msys
	;;
d882 2
a883 5
	GUESS=$UNAME_MACHINE-pc-pw32
	;;
    *:SerenityOS:*:*)
        GUESS=$UNAME_MACHINE-pc-serenity
        ;;
d885 1
a885 1
	case $UNAME_MACHINE in
d887 2
a888 2
		GUESS=i586-pc-interix$UNAME_RELEASE
		;;
d890 2
a891 2
		GUESS=x86_64-unknown-interix$UNAME_RELEASE
		;;
d893 2
a894 2
		GUESS=ia64-unknown-interix$UNAME_RELEASE
		;;
d897 2
a898 2
	GUESS=$UNAME_MACHINE-pc-uwin
	;;
d900 2
a901 2
	GUESS=x86_64-pc-cygwin
	;;
d903 2
a904 3
	SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`
	GUESS=powerpcle-unknown-solaris2$SUN_REL
	;;
d907 2
a908 4
	GNU_ARCH=`echo "$UNAME_MACHINE" | sed -e 's,[-/].*$,,'`
	GNU_REL=`echo "$UNAME_RELEASE" | sed -e 's,/.*$,,'`
	GUESS=$GNU_ARCH-unknown-$LIBC$GNU_REL
	;;
d911 2
a912 4
	GNU_SYS=`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"`
	GNU_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'`
	GUESS=$UNAME_MACHINE-unknown-$GNU_SYS$GNU_REL-$LIBC
	;;
d914 2
a915 2
	GUESS=$UNAME_MACHINE-unknown-minix
	;;
d917 2
a918 2
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
d921 2
a922 2
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
d924 1
a924 1
	case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' /proc/cpuinfo 2>/dev/null` in
d935 5
a939 5
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
    arc:Linux:*:* | arceb:Linux:*:* | arc32:Linux:*:* | arc64:Linux:*:*)
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
d945 1
a945 1
	    GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
d950 1
a950 1
		GUESS=$UNAME_MACHINE-unknown-linux-${LIBC}eabi
d952 1
a952 1
		GUESS=$UNAME_MACHINE-unknown-linux-${LIBC}eabihf
d955 1
a955 1
	;;
d957 2
a958 2
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
d960 2
a961 2
	GUESS=$UNAME_MACHINE-axis-linux-$LIBC
	;;
d963 2
a964 2
	GUESS=$UNAME_MACHINE-axis-linux-$LIBC
	;;
d966 2
a967 2
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
d969 2
a970 2
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
d972 2
a973 2
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
d975 2
a976 2
	GUESS=$UNAME_MACHINE-pc-linux-$LIBC
	;;
d978 2
a979 2
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
d981 2
a982 5
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
    loongarch32:Linux:*:* | loongarch64:Linux:*:* | loongarchx32:Linux:*:*)
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
d984 2
a985 2
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
d987 2
a988 2
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
d1033 1
a1033 2
	cc_set_vars=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU\|^MIPS_ENDIAN\|^LIBCABI'`
	eval "$cc_set_vars"
d1037 2
a1038 2
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
d1040 2
a1041 2
	GUESS=or1k-unknown-linux-$LIBC
	;;
d1043 2
a1044 2
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
d1046 2
a1047 2
	GUESS=sparc-unknown-linux-$LIBC
	;;
d1049 2
a1050 2
	GUESS=hppa64-unknown-linux-$LIBC
	;;
d1054 3
a1056 3
	  PA7*) GUESS=hppa1.1-unknown-linux-$LIBC ;;
	  PA8*) GUESS=hppa2.0-unknown-linux-$LIBC ;;
	  *)    GUESS=hppa-unknown-linux-$LIBC ;;
d1058 1
a1058 1
	;;
d1060 2
a1061 2
	GUESS=powerpc64-unknown-linux-$LIBC
	;;
d1063 2
a1064 2
	GUESS=powerpc-unknown-linux-$LIBC
	;;
d1066 2
a1067 2
	GUESS=powerpc64le-unknown-linux-$LIBC
	;;
d1069 5
a1073 5
	GUESS=powerpcle-unknown-linux-$LIBC
	;;
    riscv32:Linux:*:* | riscv32be:Linux:*:* | riscv64:Linux:*:* | riscv64be:Linux:*:*)
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
d1075 2
a1076 2
	GUESS=$UNAME_MACHINE-ibm-linux-$LIBC
	;;
d1078 2
a1079 2
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
d1081 2
a1082 2
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
d1084 2
a1085 2
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
d1087 2
a1088 2
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
d1090 2
a1091 2
	GUESS=$UNAME_MACHINE-dec-linux-$LIBC
	;;
d1093 2
a1094 12
	set_cc_for_build
	LIBCABI=$LIBC
	if test "$CC_FOR_BUILD" != no_compiler_found; then
	    if (echo '#ifdef __ILP32__'; echo IS_X32; echo '#endif') | \
		(CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
		grep IS_X32 >/dev/null
	    then
		LIBCABI=${LIBC}x32
	    fi
	fi
	GUESS=$UNAME_MACHINE-pc-linux-$LIBCABI
	;;
d1096 2
a1097 2
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
d1102 2
a1103 2
	GUESS=i386-sequent-sysv4
	;;
d1110 2
a1111 2
	GUESS=$UNAME_MACHINE-pc-sysv4.2uw$UNAME_VERSION
	;;
d1115 2
a1116 2
	GUESS=$UNAME_MACHINE-pc-os2-emx
	;;
d1118 2
a1119 2
	GUESS=$UNAME_MACHINE-unknown-stop
	;;
d1121 2
a1122 2
	GUESS=$UNAME_MACHINE-unknown-atheos
	;;
d1124 2
a1125 2
	GUESS=$UNAME_MACHINE-pc-syllable
	;;
d1127 2
a1128 2
	GUESS=i386-unknown-lynxos$UNAME_RELEASE
	;;
d1130 2
a1131 2
	GUESS=$UNAME_MACHINE-pc-msdosdjgpp
	;;
d1135 1
a1135 1
		GUESS=$UNAME_MACHINE-univel-sysv$UNAME_REL
d1137 1
a1137 1
		GUESS=$UNAME_MACHINE-pc-sysv$UNAME_REL
d1139 1
a1139 1
	;;
d1147 2
a1148 2
	GUESS=$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
	;;
d1152 1
a1152 1
		GUESS=$UNAME_MACHINE-pc-isc$UNAME_REL
d1162 1
a1162 1
		GUESS=$UNAME_MACHINE-pc-sco$UNAME_REL
d1164 1
a1164 1
		GUESS=$UNAME_MACHINE-pc-sysv32
d1166 1
a1166 1
	;;
d1174 2
a1175 2
	GUESS=i586-pc-msdosdjgpp
	;;
d1177 2
a1178 2
	GUESS=i386-pc-mach3
	;;
d1180 2
a1181 2
	GUESS=i860-intel-osf1
	;;
d1184 1
a1184 1
	  GUESS=i860-stardent-sysv$UNAME_RELEASE    # Stardent Vistra i860-SVR4
d1186 1
a1186 1
	  GUESS=i860-unknown-sysv$UNAME_RELEASE     # Unknown i860-SVR4
d1188 1
a1188 1
	;;
d1191 2
a1192 2
	GUESS=m68010-convergent-sysv
	;;
d1194 2
a1195 2
	GUESS=m68k-convergent-sysv
	;;
d1197 2
a1198 2
	GUESS=m68k-diab-dnix
	;;
d1223 2
a1224 2
	GUESS=m68k-unknown-lynxos$UNAME_RELEASE
	;;
d1226 2
a1227 2
	GUESS=m68k-atari-sysv4
	;;
d1229 2
a1230 2
	GUESS=sparc-unknown-lynxos$UNAME_RELEASE
	;;
d1232 2
a1233 2
	GUESS=rs6000-unknown-lynxos$UNAME_RELEASE
	;;
d1235 2
a1236 2
	GUESS=powerpc-unknown-lynxos$UNAME_RELEASE
	;;
d1238 2
a1239 2
	GUESS=mips-dde-sysv$UNAME_RELEASE
	;;
d1241 2
a1242 2
	GUESS=mips-sni-sysv4
	;;
d1244 2
a1245 2
	GUESS=mips-sni-sysv4
	;;
d1249 1
a1249 1
		GUESS=$UNAME_MACHINE-sni-sysv4
d1251 1
a1251 1
		GUESS=ns32k-sni-sysv
d1253 1
a1253 1
	;;
d1256 2
a1257 2
	GUESS=i586-unisys-sysv4
	;;
d1261 2
a1262 2
	GUESS=hppa1.1-stratus-sysv4
	;;
d1265 2
a1266 2
	GUESS=i860-stratus-sysv4
	;;
d1269 2
a1270 2
	GUESS=$UNAME_MACHINE-stratus-vos
	;;
d1273 2
a1274 2
	GUESS=hppa1.1-stratus-vos
	;;
d1276 2
a1277 2
	GUESS=m68k-apple-aux$UNAME_RELEASE
	;;
d1279 2
a1280 2
	GUESS=mips-sony-newsos6
	;;
d1282 2
a1283 2
	if test -d /usr/nec; then
		GUESS=mips-nec-sysv$UNAME_RELEASE
d1285 1
a1285 1
		GUESS=mips-unknown-sysv$UNAME_RELEASE
d1287 1
a1287 1
	;;
d1289 2
a1290 2
	GUESS=powerpc-be-beos
	;;
d1292 2
a1293 2
	GUESS=powerpc-apple-beos
	;;
d1295 2
a1296 2
	GUESS=i586-pc-beos
	;;
d1298 2
a1299 2
	GUESS=i586-pc-haiku
	;;
d1301 2
a1302 2
	GUESS=x86_64-unknown-haiku
	;;
d1304 2
a1305 2
	GUESS=sx4-nec-superux$UNAME_RELEASE
	;;
d1307 2
a1308 2
	GUESS=sx5-nec-superux$UNAME_RELEASE
	;;
d1310 2
a1311 2
	GUESS=sx6-nec-superux$UNAME_RELEASE
	;;
d1313 2
a1314 2
	GUESS=sx7-nec-superux$UNAME_RELEASE
	;;
d1316 2
a1317 2
	GUESS=sx8-nec-superux$UNAME_RELEASE
	;;
d1319 2
a1320 2
	GUESS=sx8r-nec-superux$UNAME_RELEASE
	;;
d1322 2
a1323 2
	GUESS=sxace-nec-superux$UNAME_RELEASE
	;;
d1325 2
a1326 2
	GUESS=powerpc-apple-rhapsody$UNAME_RELEASE
	;;
d1328 2
a1329 5
	GUESS=$UNAME_MACHINE-apple-rhapsody$UNAME_RELEASE
	;;
    arm64:Darwin:*:*)
	GUESS=aarch64-apple-darwin$UNAME_RELEASE
	;;
d1344 1
a1344 1
	if test "$CC_FOR_BUILD" != no_compiler_found; then
d1365 2
a1366 2
	GUESS=$UNAME_PROCESSOR-apple-darwin$UNAME_RELEASE
	;;
d1373 2
a1374 2
	GUESS=$UNAME_PROCESSOR-$UNAME_MACHINE-nto-qnx$UNAME_RELEASE
	;;
d1376 2
a1377 2
	GUESS=i386-pc-qnx
	;;
d1379 2
a1380 2
	GUESS=neo-tandem-nsk$UNAME_RELEASE
	;;
d1382 2
a1383 2
	GUESS=nse-tandem-nsk$UNAME_RELEASE
	;;
d1385 2
a1386 2
	GUESS=nsr-tandem-nsk$UNAME_RELEASE
	;;
d1388 2
a1389 2
	GUESS=nsv-tandem-nsk$UNAME_RELEASE
	;;
d1391 2
a1392 2
	GUESS=nsx-tandem-nsk$UNAME_RELEASE
	;;
d1394 2
a1395 2
	GUESS=mips-compaq-nonstopux
	;;
d1397 2
a1398 2
	GUESS=bs2000-siemens-sysv
	;;
d1400 2
a1401 2
	GUESS=$UNAME_MACHINE-$UNAME_SYSTEM-$UNAME_RELEASE
	;;
d1406 2
a1407 1
	if test "${cputype-}" = 386; then
d1409 2
a1410 2
	elif test "x${cputype-}" != x; then
	    UNAME_MACHINE=$cputype
d1412 2
a1413 2
	GUESS=$UNAME_MACHINE-unknown-plan9
	;;
d1415 2
a1416 2
	GUESS=pdp10-unknown-tops10
	;;
d1418 2
a1419 2
	GUESS=pdp10-unknown-tenex
	;;
d1421 2
a1422 2
	GUESS=pdp10-dec-tops20
	;;
d1424 2
a1425 2
	GUESS=pdp10-xkl-tops20
	;;
d1427 2
a1428 2
	GUESS=pdp10-unknown-tops20
	;;
d1430 2
a1431 2
	GUESS=pdp10-unknown-its
	;;
d1433 2
a1434 2
	GUESS=mips-sei-seiux$UNAME_RELEASE
	;;
d1436 2
a1437 3
	DRAGONFLY_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'`
	GUESS=$UNAME_MACHINE-unknown-dragonfly$DRAGONFLY_REL
	;;
d1440 4
a1443 4
	case $UNAME_MACHINE in
	    A*) GUESS=alpha-dec-vms ;;
	    I*) GUESS=ia64-dec-vms ;;
	    V*) GUESS=vax-dec-vms ;;
d1446 2
a1447 2
	GUESS=i386-pc-xenix
	;;
d1449 2
a1450 3
	SKYOS_REL=`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'`
	GUESS=$UNAME_MACHINE-pc-skyos$SKYOS_REL
	;;
d1452 5
a1456 8
	GUESS=$UNAME_MACHINE-pc-rdos
	;;
    i*86:Fiwix:*:*)
	GUESS=$UNAME_MACHINE-pc-fiwix
	;;
    *:AROS:*:*)
	GUESS=$UNAME_MACHINE-unknown-aros
	;;
d1458 2
a1459 2
	GUESS=$UNAME_MACHINE-unknown-esx
	;;
d1461 2
a1462 2
	GUESS=x86_64-unknown-onefs
	;;
d1464 2
a1465 2
	GUESS=$UNAME_MACHINE-unknown-unleashed$UNAME_RELEASE
	;;
a1467 6
# Do we have a guess based on uname results?
if test "x$GUESS" != x; then
    echo "$GUESS"
    exit
fi

d1599 1
a1599 1
$CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null && SYSTEM_NAME=`"$dummy"` &&
d1607 1
a1607 1
case $UNAME_MACHINE:$UNAME_SYSTEM in
d1624 1
a1624 1
  https://git.savannah.gnu.org/cgit/config.git/plain/config.guess
d1626 1
a1626 9
  https://git.savannah.gnu.org/cgit/config.git/plain/config.sub
EOF

our_year=`echo $timestamp | sed 's,-.*,,'`
thisyear=`date +%Y`
# shellcheck disable=SC2003
script_age=`expr "$thisyear" - "$our_year"`
if test "$script_age" -lt 3 ; then
   cat >&2 <<EOF
a1653 1
fi
@


1.1.1.11
log
@libarchive: import version 3.8.3
@
text
@d3 1
a3 1
#   Copyright 1992-2024 Free Software Foundation, Inc.
d7 1
a7 1
timestamp='2024-07-27'
d50 1
a50 1
Output the configuration name of the system '$me' is run on.
d63 1
a63 1
Copyright 1992-2024 Free Software Foundation, Inc.
d69 1
a69 1
Try '$me --help' for more information."
d105 2
a106 2
# Historically, 'CC_FOR_BUILD' used to be named 'HOST_CC'. We still
# use 'HOST_CC' if defined, but it is deprecated.
d126 1
a126 1
	       for driver in cc gcc c17 c99 c89 ; do
a157 3
	#if defined(__ANDROID__)
	LIBC=android
	#else
a164 2
	#elif defined(__LLVM_LIBC__)
	LIBC=llvm
a171 1
	#endif
d462 1
a462 1
	# Japanese Language versions have a version number like '4.1.3-JL'.
d631 1
a631 2
		int
		main ()
d715 1
a715 2
		int
		main ()
d907 1
a907 1
	UNAME_PROCESSOR=`uname -p`
a968 6
    x86_64:[Mm]anagarm:*:*|i?86:[Mm]anagarm:*:*)
	GUESS="$UNAME_MACHINE-pc-managarm-mlibc"
	;;
    *:[Mm]anagarm:*:*)
	GUESS="$UNAME_MACHINE-unknown-managarm-mlibc"
	;;
d973 1
a973 21
	set_cc_for_build
	CPU=$UNAME_MACHINE
	LIBCABI=$LIBC
	if test "$CC_FOR_BUILD" != no_compiler_found; then
	    ABI=64
	    sed 's/^	    //' << EOF > "$dummy.c"
	    #ifdef __ARM_EABI__
	    #ifdef __ARM_PCS_VFP
	    ABI=eabihf
	    #else
	    ABI=eabi
	    #endif
	    #endif
EOF
	    cc_set_abi=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^ABI' | sed 's, ,,g'`
	    eval "$cc_set_abi"
	    case $ABI in
		eabi | eabihf) CPU=armv8l; LIBCABI=$LIBC$ABI ;;
	    esac
	fi
	GUESS=$CPU-unknown-linux-$LIBCABI
d1039 1
a1039 10
    kvx:Linux:*:*)
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
    kvx:cos:*:*)
	GUESS=$UNAME_MACHINE-unknown-cos
	;;
    kvx:mbr:*:*)
	GUESS=$UNAME_MACHINE-unknown-mbr
	;;
    loongarch32:Linux:*:* | loongarch64:Linux:*:*)
a1153 1
	CPU=$UNAME_MACHINE
d1156 6
a1161 16
	    ABI=64
	    sed 's/^	    //' << EOF > "$dummy.c"
	    #ifdef __i386__
	    ABI=x86
	    #else
	    #ifdef __ILP32__
	    ABI=x32
	    #endif
	    #endif
EOF
	    cc_set_abi=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^ABI' | sed 's, ,,g'`
	    eval "$cc_set_abi"
	    case $ABI in
		x86) CPU=i686 ;;
		x32) LIBCABI=${LIBC}x32 ;;
	    esac
d1163 1
a1163 1
	GUESS=$CPU-pc-linux-$LIBCABI
d1183 1
a1183 1
	# If we were able to find 'uname', then EMX Unix compatibility
d1324 1
a1324 1
    PENTIUM:*:4.0*:*)	# Unisys 'ClearPath HMP IX 4000' SVR4/MP effort
d1370 2
a1371 5
    ppc:Haiku:*:*)	# Haiku running on Apple PowerPC
	GUESS=powerpc-apple-haiku
	;;
    *:Haiku:*:*)	# Haiku modern gcc (not bound by BeOS compat)
	GUESS=$UNAME_MACHINE-unknown-haiku
a1542 3
    *:Ironclad:*:*)
	GUESS=$UNAME_MACHINE-unknown-ironclad
	;;
a1565 1
int
@


