head	1.11;
access;
symbols
	libarchive-3-8-7:1.1.1.11
	libarchive-3-8-6:1.1.1.11
	pkgsrc-2026Q1:1.11.0.4
	pkgsrc-2026Q1-base:1.11
	libarchive-3-8-5:1.1.1.11
	libarchive-3-8-4:1.1.1.11
	pkgsrc-2025Q4:1.11.0.2
	pkgsrc-2025Q4-base:1.11
	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.11
date	2025.11.20.06.08.24;	author adam;	state Exp;
branches;
next	1.10;
commitid	kB7NF5kSlmUaVfjG;

1.10
date	2025.09.20.22.14.41;	author jklos;	state Exp;
branches;
next	1.9;
commitid	pH0B4pdiX2ccevbG;

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.28;	author joerg;	state Exp;
branches;
next	1.1.1.3;

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

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

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

1.1.1.6
date	2017.02.25.20.55.33;	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.11
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
# Configuration validation subroutine script.
#   Copyright 1992-2024 Free Software Foundation, Inc.

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

timestamp='2024-05-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").


# Please send patches to <config-patches@@gnu.org>.
#
# Configuration subroutine to validate and canonicalize a configuration type.
# Supply the specified configuration type as an argument.
# If it is invalid, we print an error message on stderr and exit with code 1.
# Otherwise, we print the canonical config type on stdout and succeed.

# You can get the latest version of this script from:
# https://git.savannah.gnu.org/cgit/config.git/plain/config.sub

# This file is supposed to be the same for all GNU packages
# and recognize all the CPU types, system types and aliases
# that are meaningful with *any* GNU software.
# Each package is responsible for reporting which valid configurations
# it does not support.  The user should be able to distinguish
# a failure to support a valid configuration from a meaningless
# configuration.

# The goal of this file is to map all the various variations of a given
# machine specification into a single specification in the form:
#	CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
# or in some cases, the newer four-part form:
#	CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
# It is wrong to echo any other type of specification.

# 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] CPU-MFR-OPSYS or ALIAS

Canonicalize a configuration name.

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.sub ($timestamp)

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 ;;

    *local*)
       # First pass through any local machine types.
       echo "$1"
       exit ;;

    * )
       break ;;
  esac
done

case $# in
 0) echo "$me: missing argument$help" >&2
    exit 1;;
 1) ;;
 *) echo "$me: too many arguments$help" >&2
    exit 1;;
esac

# Split fields of configuration type
saved_IFS=$IFS
IFS="-" read field1 field2 field3 field4 <<EOF
$1
EOF
IFS=$saved_IFS

# Separate into logical components for further validation
case $1 in
	*-*-*-*-*)
		echo "Invalid configuration '$1': more than four components" >&2
		exit 1
		;;
	*-*-*-*)
		basic_machine=$field1-$field2
		basic_os=$field3-$field4
		;;
	*-*-*)
		# Ambiguous whether COMPANY is present, or skipped and KERNEL-OS is two
		# parts
		maybe_os=$field2-$field3
		case $maybe_os in
			  cloudabi*-eabi* \
			| kfreebsd*-gnu* \
			| knetbsd*-gnu* \
			| kopensolaris*-gnu* \
			| linux-* \
			| managarm-* \
			| netbsd*-eabi* \
			| netbsd*-gnu* \
			| nto-qnx* \
			| os2-emx* \
			| rtmk-nova* \
			| storm-chaos* \
			| uclinux-gnu* \
			| uclinux-uclibc* \
			| windows-* )
				basic_machine=$field1
				basic_os=$maybe_os
				;;
			android-linux)
				basic_machine=$field1-unknown
				basic_os=linux-android
				;;
			*)
				basic_machine=$field1-$field2
				basic_os=$field3
				;;
		esac
		;;
	*-*)
		case $field1-$field2 in
			# Shorthands that happen to contain a single dash
			convex-c[12] | convex-c3[248])
				basic_machine=$field2-convex
				basic_os=
				;;
			decstation-3100)
				basic_machine=mips-dec
				basic_os=
				;;
			*-*)
				# Second component is usually, but not always the OS
				case $field2 in
					# Do not treat sunos as a manufacturer
					sun*os*)
						basic_machine=$field1
						basic_os=$field2
						;;
					# Manufacturers
					  3100* \
					| 32* \
					| 3300* \
					| 3600* \
					| 7300* \
					| acorn \
					| altos* \
					| apollo \
					| apple \
					| atari \
					| att* \
					| axis \
					| be \
					| bull \
					| cbm \
					| ccur \
					| cisco \
					| commodore \
					| convergent* \
					| convex* \
					| cray \
					| crds \
					| dec* \
					| delta* \
					| dg \
					| digital \
					| dolphin \
					| encore* \
					| gould \
					| harris \
					| highlevel \
					| hitachi* \
					| hp \
					| ibm* \
					| intergraph \
					| isi* \
					| knuth \
					| masscomp \
					| microblaze* \
					| mips* \
					| motorola* \
					| ncr* \
					| news \
					| next \
					| ns \
					| oki \
					| omron* \
					| pc533* \
					| rebel \
					| rom68k \
					| rombug \
					| semi \
					| sequent* \
					| siemens \
					| sgi* \
					| siemens \
					| sim \
					| sni \
					| sony* \
					| stratus \
					| sun \
					| sun[234]* \
					| tektronix \
					| tti* \
					| ultra \
					| unicom* \
					| wec \
					| winbond \
					| wrs)
						basic_machine=$field1-$field2
						basic_os=
						;;
					zephyr*)
						basic_machine=$field1-unknown
						basic_os=$field2
						;;
					*)
						basic_machine=$field1
						basic_os=$field2
						;;
				esac
			;;
		esac
		;;
	*)
		# Convert single-component short-hands not valid as part of
		# multi-component configurations.
		case $field1 in
			386bsd)
				basic_machine=i386-pc
				basic_os=bsd
				;;
			a29khif)
				basic_machine=a29k-amd
				basic_os=udi
				;;
			adobe68k)
				basic_machine=m68010-adobe
				basic_os=scout
				;;
			alliant)
				basic_machine=fx80-alliant
				basic_os=
				;;
			altos | altos3068)
				basic_machine=m68k-altos
				basic_os=
				;;
			am29k)
				basic_machine=a29k-none
				basic_os=bsd
				;;
			amdahl)
				basic_machine=580-amdahl
				basic_os=sysv
				;;
			amiga)
				basic_machine=m68k-unknown
				basic_os=
				;;
			amigaos | amigados)
				basic_machine=m68k-unknown
				basic_os=amigaos
				;;
			amigaunix | amix)
				basic_machine=m68k-unknown
				basic_os=sysv4
				;;
			apollo68)
				basic_machine=m68k-apollo
				basic_os=sysv
				;;
			apollo68bsd)
				basic_machine=m68k-apollo
				basic_os=bsd
				;;
			aros)
				basic_machine=i386-pc
				basic_os=aros
				;;
			aux)
				basic_machine=m68k-apple
				basic_os=aux
				;;
			balance)
				basic_machine=ns32k-sequent
				basic_os=dynix
				;;
			blackfin)
				basic_machine=bfin-unknown
				basic_os=linux
				;;
			cegcc)
				basic_machine=arm-unknown
				basic_os=cegcc
				;;
			cray)
				basic_machine=j90-cray
				basic_os=unicos
				;;
			crds | unos)
				basic_machine=m68k-crds
				basic_os=
				;;
			da30)
				basic_machine=m68k-da30
				basic_os=
				;;
			decstation | pmax | pmin | dec3100 | decstatn)
				basic_machine=mips-dec
				basic_os=
				;;
			delta88)
				basic_machine=m88k-motorola
				basic_os=sysv3
				;;
			dicos)
				basic_machine=i686-pc
				basic_os=dicos
				;;
			djgpp)
				basic_machine=i586-pc
				basic_os=msdosdjgpp
				;;
			ebmon29k)
				basic_machine=a29k-amd
				basic_os=ebmon
				;;
			es1800 | OSE68k | ose68k | ose | OSE)
				basic_machine=m68k-ericsson
				basic_os=ose
				;;
			gmicro)
				basic_machine=tron-gmicro
				basic_os=sysv
				;;
			go32)
				basic_machine=i386-pc
				basic_os=go32
				;;
			h8300hms)
				basic_machine=h8300-hitachi
				basic_os=hms
				;;
			h8300xray)
				basic_machine=h8300-hitachi
				basic_os=xray
				;;
			h8500hms)
				basic_machine=h8500-hitachi
				basic_os=hms
				;;
			harris)
				basic_machine=m88k-harris
				basic_os=sysv3
				;;
			hp300 | hp300hpux)
				basic_machine=m68k-hp
				basic_os=hpux
				;;
			hp300bsd)
				basic_machine=m68k-hp
				basic_os=bsd
				;;
			hppaosf)
				basic_machine=hppa1.1-hp
				basic_os=osf
				;;
			hppro)
				basic_machine=hppa1.1-hp
				basic_os=proelf
				;;
			i386mach)
				basic_machine=i386-mach
				basic_os=mach
				;;
			isi68 | isi)
				basic_machine=m68k-isi
				basic_os=sysv
				;;
			m68knommu)
				basic_machine=m68k-unknown
				basic_os=linux
				;;
			magnum | m3230)
				basic_machine=mips-mips
				basic_os=sysv
				;;
			merlin)
				basic_machine=ns32k-utek
				basic_os=sysv
				;;
			mingw64)
				basic_machine=x86_64-pc
				basic_os=mingw64
				;;
			mingw32)
				basic_machine=i686-pc
				basic_os=mingw32
				;;
			mingw32ce)
				basic_machine=arm-unknown
				basic_os=mingw32ce
				;;
			monitor)
				basic_machine=m68k-rom68k
				basic_os=coff
				;;
			morphos)
				basic_machine=powerpc-unknown
				basic_os=morphos
				;;
			moxiebox)
				basic_machine=moxie-unknown
				basic_os=moxiebox
				;;
			msdos)
				basic_machine=i386-pc
				basic_os=msdos
				;;
			msys)
				basic_machine=i686-pc
				basic_os=msys
				;;
			mvs)
				basic_machine=i370-ibm
				basic_os=mvs
				;;
			nacl)
				basic_machine=le32-unknown
				basic_os=nacl
				;;
			ncr3000)
				basic_machine=i486-ncr
				basic_os=sysv4
				;;
			netbsd386)
				basic_machine=i386-pc
				basic_os=netbsd
				;;
			netwinder)
				basic_machine=armv4l-rebel
				basic_os=linux
				;;
			news | news700 | news800 | news900)
				basic_machine=m68k-sony
				basic_os=newsos
				;;
			news1000)
				basic_machine=m68030-sony
				basic_os=newsos
				;;
			necv70)
				basic_machine=v70-nec
				basic_os=sysv
				;;
			nh3000)
				basic_machine=m68k-harris
				basic_os=cxux
				;;
			nh[45]000)
				basic_machine=m88k-harris
				basic_os=cxux
				;;
			nindy960)
				basic_machine=i960-intel
				basic_os=nindy
				;;
			mon960)
				basic_machine=i960-intel
				basic_os=mon960
				;;
			nonstopux)
				basic_machine=mips-compaq
				basic_os=nonstopux
				;;
			os400)
				basic_machine=powerpc-ibm
				basic_os=os400
				;;
			OSE68000 | ose68000)
				basic_machine=m68000-ericsson
				basic_os=ose
				;;
			os68k)
				basic_machine=m68k-none
				basic_os=os68k
				;;
			paragon)
				basic_machine=i860-intel
				basic_os=osf
				;;
			parisc)
				basic_machine=hppa-unknown
				basic_os=linux
				;;
			psp)
				basic_machine=mipsallegrexel-sony
				basic_os=psp
				;;
			pw32)
				basic_machine=i586-unknown
				basic_os=pw32
				;;
			rdos | rdos64)
				basic_machine=x86_64-pc
				basic_os=rdos
				;;
			rdos32)
				basic_machine=i386-pc
				basic_os=rdos
				;;
			rom68k)
				basic_machine=m68k-rom68k
				basic_os=coff
				;;
			sa29200)
				basic_machine=a29k-amd
				basic_os=udi
				;;
			sei)
				basic_machine=mips-sei
				basic_os=seiux
				;;
			sequent)
				basic_machine=i386-sequent
				basic_os=
				;;
			sps7)
				basic_machine=m68k-bull
				basic_os=sysv2
				;;
			st2000)
				basic_machine=m68k-tandem
				basic_os=
				;;
			stratus)
				basic_machine=i860-stratus
				basic_os=sysv4
				;;
			sun2)
				basic_machine=m68000-sun
				basic_os=
				;;
			sun2os3)
				basic_machine=m68000-sun
				basic_os=sunos3
				;;
			sun2os4)
				basic_machine=m68000-sun
				basic_os=sunos4
				;;
			sun3)
				basic_machine=m68k-sun
				basic_os=
				;;
			sun3os3)
				basic_machine=m68k-sun
				basic_os=sunos3
				;;
			sun3os4)
				basic_machine=m68k-sun
				basic_os=sunos4
				;;
			sun4)
				basic_machine=sparc-sun
				basic_os=
				;;
			sun4os3)
				basic_machine=sparc-sun
				basic_os=sunos3
				;;
			sun4os4)
				basic_machine=sparc-sun
				basic_os=sunos4
				;;
			sun4sol2)
				basic_machine=sparc-sun
				basic_os=solaris2
				;;
			sun386 | sun386i | roadrunner)
				basic_machine=i386-sun
				basic_os=
				;;
			sv1)
				basic_machine=sv1-cray
				basic_os=unicos
				;;
			symmetry)
				basic_machine=i386-sequent
				basic_os=dynix
				;;
			t3e)
				basic_machine=alphaev5-cray
				basic_os=unicos
				;;
			t90)
				basic_machine=t90-cray
				basic_os=unicos
				;;
			toad1)
				basic_machine=pdp10-xkl
				basic_os=tops20
				;;
			tpf)
				basic_machine=s390x-ibm
				basic_os=tpf
				;;
			udi29k)
				basic_machine=a29k-amd
				basic_os=udi
				;;
			ultra3)
				basic_machine=a29k-nyu
				basic_os=sym1
				;;
			v810 | necv810)
				basic_machine=v810-nec
				basic_os=none
				;;
			vaxv)
				basic_machine=vax-dec
				basic_os=sysv
				;;
			vms)
				basic_machine=vax-dec
				basic_os=vms
				;;
			vsta)
				basic_machine=i386-pc
				basic_os=vsta
				;;
			vxworks960)
				basic_machine=i960-wrs
				basic_os=vxworks
				;;
			vxworks68)
				basic_machine=m68k-wrs
				basic_os=vxworks
				;;
			vxworks29k)
				basic_machine=a29k-wrs
				basic_os=vxworks
				;;
			xbox)
				basic_machine=i686-pc
				basic_os=mingw32
				;;
			ymp)
				basic_machine=ymp-cray
				basic_os=unicos
				;;
			*)
				basic_machine=$1
				basic_os=
				;;
		esac
		;;
esac

# Decode 1-component or ad-hoc basic machines
case $basic_machine in
	# Here we handle the default manufacturer of certain CPU types.  It is in
	# some cases the only manufacturer, in others, it is the most popular.
	w89k)
		cpu=hppa1.1
		vendor=winbond
		;;
	op50n)
		cpu=hppa1.1
		vendor=oki
		;;
	op60c)
		cpu=hppa1.1
		vendor=oki
		;;
	ibm*)
		cpu=i370
		vendor=ibm
		;;
	orion105)
		cpu=clipper
		vendor=highlevel
		;;
	mac | mpw | mac-mpw)
		cpu=m68k
		vendor=apple
		;;
	pmac | pmac-mpw)
		cpu=powerpc
		vendor=apple
		;;

	# Recognize the various machine names and aliases which stand
	# for a CPU type and a company and sometimes even an OS.
	3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
		cpu=m68000
		vendor=att
		;;
	3b*)
		cpu=we32k
		vendor=att
		;;
	bluegene*)
		cpu=powerpc
		vendor=ibm
		basic_os=cnk
		;;
	decsystem10* | dec10*)
		cpu=pdp10
		vendor=dec
		basic_os=tops10
		;;
	decsystem20* | dec20*)
		cpu=pdp10
		vendor=dec
		basic_os=tops20
		;;
	delta | 3300 | delta-motorola | 3300-motorola | motorola-delta | motorola-3300)
		cpu=m68k
		vendor=motorola
		;;
	# This used to be dpx2*, but that gets the RS6000-based
	# DPX/20 and the x86-based DPX/2-100 wrong.  See
	# https://oldskool.silicium.org/stations/bull_dpx20.htm
	# https://www.feb-patrimoine.com/english/bull_dpx2.htm
	# https://www.feb-patrimoine.com/english/unix_and_bull.htm
	dpx2 | dpx2[23]00 | dpx2[23]xx)
		cpu=m68k
		vendor=bull
		;;
	dpx2100 | dpx21xx)
		cpu=i386
		vendor=bull
		;;
	dpx20)
		cpu=rs6000
		vendor=bull
		;;
	encore | umax | mmax)
		cpu=ns32k
		vendor=encore
		;;
	elxsi)
		cpu=elxsi
		vendor=elxsi
		basic_os=${basic_os:-bsd}
		;;
	fx2800)
		cpu=i860
		vendor=alliant
		;;
	genix)
		cpu=ns32k
		vendor=ns
		;;
	h3050r* | hiux*)
		cpu=hppa1.1
		vendor=hitachi
		basic_os=hiuxwe2
		;;
	hp3k9[0-9][0-9] | hp9[0-9][0-9])
		cpu=hppa1.0
		vendor=hp
		;;
	hp9k2[0-9][0-9] | hp9k31[0-9])
		cpu=m68000
		vendor=hp
		;;
	hp9k3[2-9][0-9])
		cpu=m68k
		vendor=hp
		;;
	hp9k6[0-9][0-9] | hp6[0-9][0-9])
		cpu=hppa1.0
		vendor=hp
		;;
	hp9k7[0-79][0-9] | hp7[0-79][0-9])
		cpu=hppa1.1
		vendor=hp
		;;
	hp9k78[0-9] | hp78[0-9])
		# FIXME: really hppa2.0-hp
		cpu=hppa1.1
		vendor=hp
		;;
	hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
		# FIXME: really hppa2.0-hp
		cpu=hppa1.1
		vendor=hp
		;;
	hp9k8[0-9][13679] | hp8[0-9][13679])
		cpu=hppa1.1
		vendor=hp
		;;
	hp9k8[0-9][0-9] | hp8[0-9][0-9])
		cpu=hppa1.0
		vendor=hp
		;;
	i*86v32)
		cpu=`echo "$1" | sed -e 's/86.*/86/'`
		vendor=pc
		basic_os=sysv32
		;;
	i*86v4*)
		cpu=`echo "$1" | sed -e 's/86.*/86/'`
		vendor=pc
		basic_os=sysv4
		;;
	i*86v)
		cpu=`echo "$1" | sed -e 's/86.*/86/'`
		vendor=pc
		basic_os=sysv
		;;
	i*86sol2)
		cpu=`echo "$1" | sed -e 's/86.*/86/'`
		vendor=pc
		basic_os=solaris2
		;;
	j90 | j90-cray)
		cpu=j90
		vendor=cray
		basic_os=${basic_os:-unicos}
		;;
	iris | iris4d)
		cpu=mips
		vendor=sgi
		case $basic_os in
		    irix*)
			;;
		    *)
			basic_os=irix4
			;;
		esac
		;;
	miniframe)
		cpu=m68000
		vendor=convergent
		;;
	*mint | mint[0-9]* | *MiNT | *MiNT[0-9]*)
		cpu=m68k
		vendor=atari
		basic_os=mint
		;;
	news-3600 | risc-news)
		cpu=mips
		vendor=sony
		basic_os=newsos
		;;
	next | m*-next)
		cpu=m68k
		vendor=next
		;;
	np1)
		cpu=np1
		vendor=gould
		;;
	op50n-* | op60c-*)
		cpu=hppa1.1
		vendor=oki
		basic_os=proelf
		;;
	pa-hitachi)
		cpu=hppa1.1
		vendor=hitachi
		basic_os=hiuxwe2
		;;
	pbd)
		cpu=sparc
		vendor=tti
		;;
	pbb)
		cpu=m68k
		vendor=tti
		;;
	pc532)
		cpu=ns32k
		vendor=pc532
		;;
	pn)
		cpu=pn
		vendor=gould
		;;
	power)
		cpu=power
		vendor=ibm
		;;
	ps2)
		cpu=i386
		vendor=ibm
		;;
	rm[46]00)
		cpu=mips
		vendor=siemens
		;;
	rtpc | rtpc-*)
		cpu=romp
		vendor=ibm
		;;
	sde)
		cpu=mipsisa32
		vendor=sde
		basic_os=${basic_os:-elf}
		;;
	simso-wrs)
		cpu=sparclite
		vendor=wrs
		basic_os=vxworks
		;;
	tower | tower-32)
		cpu=m68k
		vendor=ncr
		;;
	vpp*|vx|vx-*)
		cpu=f301
		vendor=fujitsu
		;;
	w65)
		cpu=w65
		vendor=wdc
		;;
	w89k-*)
		cpu=hppa1.1
		vendor=winbond
		basic_os=proelf
		;;
	none)
		cpu=none
		vendor=none
		;;
	leon|leon[3-9])
		cpu=sparc
		vendor=$basic_machine
		;;
	leon-*|leon[3-9]-*)
		cpu=sparc
		vendor=`echo "$basic_machine" | sed 's/-.*//'`
		;;

	*-*)
		saved_IFS=$IFS
		IFS="-" read cpu vendor <<EOF
$basic_machine
EOF
		IFS=$saved_IFS
		;;
	# We use 'pc' rather than 'unknown'
	# because (1) that's what they normally are, and
	# (2) the word "unknown" tends to confuse beginning users.
	i*86 | x86_64)
		cpu=$basic_machine
		vendor=pc
		;;
	# These rules are duplicated from below for sake of the special case above;
	# i.e. things that normalized to x86 arches should also default to "pc"
	pc98)
		cpu=i386
		vendor=pc
		;;
	x64 | amd64)
		cpu=x86_64
		vendor=pc
		;;
	# Recognize the basic CPU types without company name.
	*)
		cpu=$basic_machine
		vendor=unknown
		;;
esac

unset -v basic_machine

# Decode basic machines in the full and proper CPU-Company form.
case $cpu-$vendor in
	# Here we handle the default manufacturer of certain CPU types in canonical form.
	# It is in some cases the only manufacturer, in others, it is the most popular.
	c[12]-convex | c[12]-unknown | c3[248]-convex | c3[248]-unknown)
		vendor=convex
		basic_os=${basic_os:-bsd}
		;;
	craynv-unknown)
		vendor=cray
		basic_os=${basic_os:-unicosmp}
		;;
	c90-unknown | c90-cray)
		vendor=cray
		basic_os=${basic_os:-unicos}
		;;
	fx80-unknown)
		vendor=alliant
		;;
	romp-unknown)
		vendor=ibm
		;;
	mmix-unknown)
		vendor=knuth
		;;
	microblaze-unknown | microblazeel-unknown)
		vendor=xilinx
		;;
	rs6000-unknown)
		vendor=ibm
		;;
	vax-unknown)
		vendor=dec
		;;
	pdp11-unknown)
		vendor=dec
		;;
	we32k-unknown)
		vendor=att
		;;
	cydra-unknown)
		vendor=cydrome
		;;
	i370-ibm*)
		vendor=ibm
		;;
	orion-unknown)
		vendor=highlevel
		;;
	xps-unknown | xps100-unknown)
		cpu=xps100
		vendor=honeywell
		;;

	# Here we normalize CPU types with a missing or matching vendor
	armh-unknown | armh-alt)
		cpu=armv7l
		vendor=alt
		basic_os=${basic_os:-linux-gnueabihf}
		;;

	# Normalized CPU+vendor pairs that imply an OS, if not otherwise specified
	m68k-isi)
		basic_os=${basic_os:-sysv}
		;;
	m68k-sony)
		basic_os=${basic_os:-newsos}
		;;
	m68k-tektronix)
		basic_os=${basic_os:-bsd}
		;;
	m88k-harris)
		basic_os=${basic_os:-sysv3}
		;;
	i386-bull | m68k-bull)
		basic_os=${basic_os:-sysv3}
		;;
	rs6000-bull)
		basic_os=${basic_os:-bosx}
		;;
	mips-sni)
		basic_os=${basic_os:-sysv4}
		;;

	# Here we normalize CPU types irrespective of the vendor
	amd64-*)
		cpu=x86_64
		;;
	blackfin-*)
		cpu=bfin
		basic_os=${basic_os:-linux}
		;;
	c54x-*)
		cpu=tic54x
		;;
	c55x-*)
		cpu=tic55x
		;;
	c6x-*)
		cpu=tic6x
		;;
	e500v[12]-*)
		cpu=powerpc
		basic_os=${basic_os}"spe"
		;;
	mips3*-*)
		cpu=mips64
		;;
	ms1-*)
		cpu=mt
		;;
	m68knommu-*)
		cpu=m68k
		basic_os=${basic_os:-linux}
		;;
	m9s12z-* | m68hcs12z-* | hcs12z-* | s12z-*)
		cpu=s12z
		;;
	openrisc-*)
		cpu=or32
		;;
	parisc-*)
		cpu=hppa
		basic_os=${basic_os:-linux}
		;;
	pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
		cpu=i586
		;;
	pentiumpro-* | p6-* | 6x86-* | athlon-* | athlon_*-*)
		cpu=i686
		;;
	pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
		cpu=i686
		;;
	pentium4-*)
		cpu=i786
		;;
	ppc-* | ppcbe-*)
		cpu=powerpc
		;;
	ppcle-* | powerpclittle-*)
		cpu=powerpcle
		;;
	ppc64-*)
		cpu=powerpc64
		;;
	ppc64le-* | powerpc64little-*)
		cpu=powerpc64le
		;;
	sb1-*)
		cpu=mipsisa64sb1
		;;
	sb1el-*)
		cpu=mipsisa64sb1el
		;;
	sh5e[lb]-*)
		cpu=`echo "$cpu" | sed 's/^\(sh.\)e\(.\)$/\1\2e/'`
		;;
	spur-*)
		cpu=spur
		;;
	strongarm-* | thumb-*)
		cpu=arm
		;;
	tx39-*)
		cpu=mipstx39
		;;
	tx39el-*)
		cpu=mipstx39el
		;;
	xscale-* | xscalee[bl]-*)
		cpu=`echo "$cpu" | sed 's/^xscale/arm/'`
		;;
	arm64-* | aarch64le-*)
		cpu=aarch64
		;;

	# Recognize the canonical CPU Types that limit and/or modify the
	# company names they are paired with.
	cr16-*)
		basic_os=${basic_os:-elf}
		;;
	crisv32-* | etraxfs*-*)
		cpu=crisv32
		vendor=axis
		;;
	cris-* | etrax*-*)
		cpu=cris
		vendor=axis
		;;
	crx-*)
		basic_os=${basic_os:-elf}
		;;
	neo-tandem)
		cpu=neo
		vendor=tandem
		;;
	nse-tandem)
		cpu=nse
		vendor=tandem
		;;
	nsr-tandem)
		cpu=nsr
		vendor=tandem
		;;
	nsv-tandem)
		cpu=nsv
		vendor=tandem
		;;
	nsx-tandem)
		cpu=nsx
		vendor=tandem
		;;
	mipsallegrexel-sony)
		cpu=mipsallegrexel
		vendor=sony
		;;
	tile*-*)
		basic_os=${basic_os:-linux-gnu}
		;;

	*)
		# Recognize the canonical CPU types that are allowed with any
		# company name.
		case $cpu in
			  1750a \
			| 580 \
			| [cjt]90 \
			| a29k \
			| aarch64 \
			| aarch64_be \
			| aarch64c \
			| abacus \
			| alpha \
			| alpha64 \
			| alpha64ev56 \
			| alpha64ev6[78] \
			| alpha64ev[4-8] \
			| alpha64pca5[67] \
			| alphaev56 \
			| alphaev6[78] \
			| alphaev[4-8] \
			| alphapca5[67] \
			| am33_2.0 \
			| amdgcn \
			| arc \
			| arc32 \
			| arc64 \
			| arceb \
			| arm \
			| arm64e \
			| arm64ec \
			| arm[lb]e \
			| arme[lb] \
			| armv* \
			| asmjs \
			| avr \
			| avr32 \
			| ba \
			| be32 \
			| be64 \
			| bfin \
			| bpf \
			| bs2000 \
			| c30 \
			| c4x \
			| c8051 \
			| c[123]* \
			| clipper \
			| craynv \
			| csky \
			| cydra \
			| d10v \
			| d30v \
			| dlx \
			| dsp16xx \
			| e2k \
			| elxsi \
			| epiphany \
			| f30[01] \
			| f700 \
			| fido \
			| fr30 \
			| frv \
			| ft32 \
			| fx80 \
			| h8300 \
			| h8500 \
			| hexagon \
			| hppa \
			| hppa1.[01] \
			| hppa2.0 \
			| hppa2.0[nw] \
			| hppa64 \
			| i*86 \
			| i370 \
			| i860 \
			| i960 \
			| ia16 \
			| ia64 \
			| ip2k \
			| iq2000 \
			| javascript \
			| k1om \
			| kvx \
			| le32 \
			| le64 \
			| lm32 \
			| loongarch32 \
			| loongarch64 \
			| m32c \
			| m32r \
			| m32rle \
			| m5200 \
			| m68000 \
			| m680[012346]0 \
			| m6811 \
			| m6812 \
			| m68360 \
			| m683?2 \
			| m68hc11 \
			| m68hc12 \
			| m68hcs12x \
			| m68k \
			| m88110 \
			| m88k \
			| maxq \
			| mb \
			| mcore \
			| mep \
			| metag \
			| microblaze \
			| microblazeel \
			| mips* \
			| mmix \
			| mn10200 \
			| mn10300 \
			| moxie \
			| msp430 \
			| mt \
			| nanomips* \
			| nds32 \
			| nds32be \
			| nds32le \
			| nfp \
			| nios \
			| nios2 \
			| nios2eb \
			| nios2el \
			| none \
			| np1 \
			| ns16k \
			| ns32k \
			| nvptx \
			| open8 \
			| or1k* \
			| or32 \
			| orion \
			| pdp10 \
			| pdp11 \
			| picochip \
			| pj \
			| pjl \
			| pn \
			| power \
			| powerpc \
			| powerpc64 \
			| powerpc64le \
			| powerpcle \
			| powerpcspe \
			| pru \
			| pyramid \
			| riscv \
			| riscv32 \
			| riscv32be \
			| riscv64 \
			| riscv64be \
			| rl78 \
			| romp \
			| rs6000 \
			| rx \
			| s390 \
			| s390x \
			| score \
			| sh \
			| sh64 \
			| sh64le \
			| sh[12345][lb]e \
			| sh[1234] \
			| sh[1234]e[lb] \
			| sh[23]e \
			| sh[23]ele \
			| sh[24]a \
			| sh[24]ae[lb] \
			| sh[lb]e \
			| she[lb] \
			| shl \
			| sparc \
			| sparc64 \
			| sparc64b \
			| sparc64v \
			| sparc86x \
			| sparclet \
			| sparclite \
			| sparcv8 \
			| sparcv9 \
			| sparcv9b \
			| sparcv9v \
			| spu \
			| sv1 \
			| sx* \
			| tahoe \
			| thumbv7* \
			| tic30 \
			| tic4x \
			| tic54x \
			| tic55x \
			| tic6x \
			| tic80 \
			| tron \
			| ubicom32 \
			| v70 \
			| v810 \
			| v850 \
			| v850e \
			| v850e1 \
			| v850e2 \
			| v850e2v3 \
			| v850es \
			| vax \
			| vc4 \
			| visium \
			| w65 \
			| wasm32 \
			| wasm64 \
			| we32k \
			| x86 \
			| x86_64 \
			| xc16x \
			| xgate \
			| xps100 \
			| xstormy16 \
			| xtensa* \
			| ymp \
			| z80 \
			| z8k)
				;;

			*)
				echo "Invalid configuration '$1': machine '$cpu-$vendor' not recognized" 1>&2
				exit 1
				;;
		esac
		;;
esac

# Here we canonicalize certain aliases for manufacturers.
case $vendor in
	digital*)
		vendor=dec
		;;
	commodore*)
		vendor=cbm
		;;
	*)
		;;
esac

# Decode manufacturer-specific aliases for certain operating systems.

if test x"$basic_os" != x
then

# First recognize some ad-hoc cases, or perhaps split kernel-os, or else just
# set os.
obj=
case $basic_os in
	gnu/linux*)
		kernel=linux
		os=`echo "$basic_os" | sed -e 's|gnu/linux|gnu|'`
		;;
	os2-emx)
		kernel=os2
		os=`echo "$basic_os" | sed -e 's|os2-emx|emx|'`
		;;
	nto-qnx*)
		kernel=nto
		os=`echo "$basic_os" | sed -e 's|nto-qnx|qnx|'`
		;;
	*-*)
		saved_IFS=$IFS
		IFS="-" read kernel os <<EOF
$basic_os
EOF
		IFS=$saved_IFS
		;;
	# Default OS when just kernel was specified
	nto*)
		kernel=nto
		os=`echo "$basic_os" | sed -e 's|nto|qnx|'`
		;;
	linux*)
		kernel=linux
		os=`echo "$basic_os" | sed -e 's|linux|gnu|'`
		;;
	managarm*)
		kernel=managarm
		os=`echo "$basic_os" | sed -e 's|managarm|mlibc|'`
		;;
	*)
		kernel=
		os=$basic_os
		;;
esac

# Now, normalize the OS (knowing we just have one component, it's not a kernel,
# etc.)
case $os in
	# First match some system type aliases that might get confused
	# with valid system types.
	# solaris* is a basic system type, with this one exception.
	auroraux)
		os=auroraux
		;;
	bluegene*)
		os=cnk
		;;
	solaris1 | solaris1.*)
		os=`echo "$os" | sed -e 's|solaris1|sunos4|'`
		;;
	solaris)
		os=solaris2
		;;
	unixware*)
		os=sysv4.2uw
		;;
	# The marketing names for NeXT's operating systems were
	# NeXTSTEP, NeXTSTEP 2, OpenSTEP 3, OpenSTEP 4.  'openstep' is
	# mapped to 'openstep3', but 'openstep1' and 'openstep2' are
	# mapped to 'nextstep' and 'nextstep2', consistent with the
	# treatment of SunOS/Solaris.
	ns | ns1 | nextstep | nextstep1 | openstep1)
		os=nextstep
		;;
	ns2 | nextstep2 | openstep2)
		os=nextstep2
		;;
	ns3 | nextstep3 | openstep | openstep3)
		os=openstep3
		;;
	ns4 | nextstep4 | openstep4)
		os=openstep4
		;;
	# es1800 is here to avoid being matched by es* (a different OS)
	es1800*)
		os=ose
		;;
	# Some version numbers need modification
	chorusos*)
		os=chorusos
		;;
	isc)
		os=isc2.2
		;;
	sco6)
		os=sco5v6
		;;
	sco5)
		os=sco3.2v5
		;;
	sco4)
		os=sco3.2v4
		;;
	sco3.2.[4-9]*)
		os=`echo "$os" | sed -e 's/sco3.2./sco3.2v/'`
		;;
	sco*v* | scout)
		# Don't match below
		;;
	sco*)
		os=sco3.2v2
		;;
	psos*)
		os=psos
		;;
	qnx*)
		os=qnx
		;;
	hiux*)
		os=hiuxwe2
		;;
	lynx*178)
		os=lynxos178
		;;
	lynx*5)
		os=lynxos5
		;;
	lynxos*)
		# don't get caught up in next wildcard
		;;
	lynx*)
		os=lynxos
		;;
	mac[0-9]*)
		os=`echo "$os" | sed -e 's|mac|macos|'`
		;;
	opened*)
		os=openedition
		;;
	os400*)
		os=os400
		;;
	sunos5*)
		os=`echo "$os" | sed -e 's|sunos5|solaris2|'`
		;;
	sunos6*)
		os=`echo "$os" | sed -e 's|sunos6|solaris3|'`
		;;
	wince*)
		os=wince
		;;
	utek*)
		os=bsd
		vendor=`echo "$vendor" | sed -e 's|^unknown$|tektronix|'`
		;;
	dynix*)
		os=bsd
		;;
	acis*)
		os=aos
		;;
	atheos*)
		os=atheos
		;;
	syllable*)
		os=syllable
		;;
	386bsd)
		os=bsd
		;;
	ctix*)
		os=sysv
		vendor=`echo "$vendor" | sed -e 's|^unknown$|convergent|'`
		;;
	uts*)
		os=sysv
		;;
	nova*)
		kernel=rtmk
		os=nova
		;;
	# Preserve the version number of sinix5.
	sinix5.*)
		os=`echo "$os" | sed -e 's|sinix|sysv|'`
		vendor=`echo "$vendor" | sed -e 's|^unknown$|sni|'`
		;;
	sinix*)
		os=sysv4
		vendor=`echo "$vendor" | sed -e 's|^unknown$|sni|'`
		;;
	tpf*)
		os=tpf
		;;
	triton*)
		os=sysv3
		;;
	oss*)
		os=sysv3
		;;
	svr4*)
		os=sysv4
		;;
	svr3)
		os=sysv3
		;;
	sysvr4)
		os=sysv4
		;;
	ose*)
		os=ose
		;;
	*mint | mint[0-9]* | *MiNT | MiNT[0-9]*)
		os=mint
		;;
	dicos*)
		os=dicos
		;;
	pikeos*)
		# Until real need of OS specific support for
		# particular features comes up, bare metal
		# configurations are quite functional.
		case $cpu in
		    arm*)
			os=eabi
			;;
		    *)
			os=
			obj=elf
			;;
		esac
		;;
	aout* | coff* | elf* | pe*)
		# These are machine code file formats, not OSes
		obj=$os
		os=
		;;
	*)
		# No normalization, but not necessarily accepted, that comes below.
		;;
esac

else

# Here we handle the default operating systems that come with various machines.
# The value should be what the vendor currently ships out the door with their
# machine or put another way, the most popular os provided with the machine.

# Note that if you're going to try to match "-MANUFACTURER" here (say,
# "-sun"), then you have to tell the case statement up towards the top
# that MANUFACTURER isn't an operating system.  Otherwise, code above
# will signal an error saying that MANUFACTURER isn't an operating
# system, and we'll never get to this point.

kernel=
obj=
case $cpu-$vendor in
	score-*)
		os=
		obj=elf
		;;
	spu-*)
		os=
		obj=elf
		;;
	*-acorn)
		os=riscix1.2
		;;
	arm*-rebel)
		kernel=linux
		os=gnu
		;;
	arm*-semi)
		os=
		obj=aout
		;;
	c4x-* | tic4x-*)
		os=
		obj=coff
		;;
	c8051-*)
		os=
		obj=elf
		;;
	clipper-intergraph)
		os=clix
		;;
	hexagon-*)
		os=
		obj=elf
		;;
	tic54x-*)
		os=
		obj=coff
		;;
	tic55x-*)
		os=
		obj=coff
		;;
	tic6x-*)
		os=
		obj=coff
		;;
	# This must come before the *-dec entry.
	pdp10-*)
		os=tops20
		;;
	pdp11-*)
		os=none
		;;
	*-dec | vax-*)
		os=ultrix4.2
		;;
	m68*-apollo)
		os=domain
		;;
	i386-sun)
		os=sunos4.0.2
		;;
	m68000-sun)
		os=sunos3
		;;
	m68*-cisco)
		os=
		obj=aout
		;;
	mep-*)
		os=
		obj=elf
		;;
	# The -sgi and -siemens entries must be before the mips- entry
	# or we get the wrong os.
	*-sgi)
		os=irix
		;;
	*-siemens)
		os=sysv4
		;;
	mips*-cisco)
		os=
		obj=elf
		;;
	mips*-*|nanomips*-*)
		os=
		obj=elf
		;;
	or32-*)
		os=
		obj=coff
		;;
	# This must be before the sparc-* entry or we get the wrong os.
	*-tti)
		os=sysv3
		;;
	sparc-* | *-sun)
		os=sunos4.1.1
		;;
	pru-*)
		os=
		obj=elf
		;;
	*-be)
		os=beos
		;;
	*-ibm)
		os=aix
		;;
	*-knuth)
		os=mmixware
		;;
	*-wec)
		os=proelf
		;;
	*-winbond)
		os=proelf
		;;
	*-oki)
		os=proelf
		;;
	*-hp)
		os=hpux
		;;
	*-hitachi)
		os=hiuxwe2
		;;
	i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
		os=sysv
		;;
	*-cbm)
		os=amigaos
		;;
	*-dg)
		os=dgux
		;;
	*-dolphin)
		os=sysv3
		;;
	m68k-ccur)
		os=rtu
		;;
	m88k-omron*)
		os=luna
		;;
	*-next)
		os=nextstep
		;;
	*-sequent)
		os=ptx
		;;
	*-crds)
		os=unos
		;;
	*-ns)
		os=genix
		;;
	i370-*)
		os=mvs
		;;
	*-gould)
		os=sysv
		;;
	*-highlevel)
		os=bsd
		;;
	*-encore)
		os=bsd
		;;
	*-masscomp)
		os=rtu
		;;
	f30[01]-fujitsu | f700-fujitsu)
		os=uxpv
		;;
	*-rom68k)
		os=
		obj=coff
		;;
	*-*bug)
		os=
		obj=coff
		;;
	*-apple)
		os=macos
		;;
	*-atari*)
		os=mint
		;;
	*-wrs)
		os=vxworks
		;;
	*)
		os=none
		;;
esac

fi

# Now, validate our (potentially fixed-up) individual pieces (OS, OBJ).

case $os in
	# Sometimes we do "kernel-libc", so those need to count as OSes.
	llvm* | musl* | newlib* | relibc* | uclibc*)
		;;
	# Likewise for "kernel-abi"
	eabi* | gnueabi*)
		;;
	# VxWorks passes extra cpu info in the 4th filed.
	simlinux | simwindows | spe)
		;;
	# See `case $cpu-$os` validation below
	ghcjs)
		;;
	# Now accept the basic system types.
	# Each alternative MUST end in a * to match a version number.
	  abug \
	| aix* \
	| amdhsa* \
	| amigados* \
	| amigaos* \
	| android* \
	| aof* \
	| aos* \
	| aros* \
	| atheos* \
	| auroraux* \
	| aux* \
	| beos* \
	| bitrig* \
	| bme* \
	| bosx* \
	| bsd* \
	| cegcc* \
	| chorusos* \
	| chorusrdb* \
	| clix* \
	| cloudabi* \
	| cnk* \
	| conix* \
	| cos* \
	| cxux* \
	| cygwin* \
	| darwin* \
	| dgux* \
	| dicos* \
	| dnix* \
	| domain* \
	| dragonfly* \
	| drops* \
	| ebmon* \
	| ecoff* \
	| ekkobsd* \
	| emscripten* \
	| emx* \
	| es* \
	| fiwix* \
	| freebsd* \
	| fuchsia* \
	| genix* \
	| genode* \
	| glidix* \
	| gnu* \
	| go32* \
	| haiku* \
	| hcos* \
	| hiux* \
	| hms* \
	| hpux* \
	| ieee* \
	| interix* \
	| ios* \
	| iris* \
	| irix* \
	| ironclad* \
	| isc* \
	| its* \
	| l4re* \
	| libertybsd* \
	| lites* \
	| lnews* \
	| luna* \
	| lynxos* \
	| mach* \
	| macos* \
	| magic* \
	| mbr* \
	| midipix* \
	| midnightbsd* \
	| mingw32* \
	| mingw64* \
	| minix* \
	| mint* \
	| mirbsd* \
	| mks* \
	| mlibc* \
	| mmixware* \
	| mon960* \
	| morphos* \
	| moss* \
	| moxiebox* \
	| mpeix* \
	| mpw* \
	| msdos* \
	| msys* \
	| mvs* \
	| nacl* \
	| netbsd* \
	| netware* \
	| newsos* \
	| nextstep* \
	| nindy* \
	| nonstopux* \
	| nova* \
	| nsk* \
	| nucleus* \
	| nx6 \
	| nx7 \
	| oabi* \
	| ohos* \
	| onefs* \
	| openbsd* \
	| openedition* \
	| openstep* \
	| os108* \
	| os2* \
	| os400* \
	| os68k* \
	| os9* \
	| ose* \
	| osf* \
	| oskit* \
	| osx* \
	| palmos* \
	| phoenix* \
	| plan9* \
	| powermax* \
	| powerunix* \
	| proelf* \
	| psos* \
	| psp* \
	| ptx* \
	| pw32* \
	| qnx* \
	| rdos* \
	| redox* \
	| rhapsody* \
	| riscix* \
	| riscos* \
	| rtems* \
	| rtmk* \
	| rtu* \
	| scout* \
	| secbsd* \
	| sei* \
	| serenity* \
	| sim* \
	| skyos* \
	| solaris* \
	| solidbsd* \
	| sortix* \
	| storm-chaos* \
	| sunos \
	| sunos[34]* \
	| superux* \
	| syllable* \
	| sym* \
	| sysv* \
	| tenex* \
	| tirtos* \
	| toppers* \
	| tops10* \
	| tops20* \
	| tpf* \
	| tvos* \
	| twizzler* \
	| uclinux* \
	| udi* \
	| udk* \
	| ultrix* \
	| unicos* \
	| uniplus* \
	| unleashed* \
	| unos* \
	| uwin* \
	| uxpv* \
	| v88r* \
	|*vms* \
	| vos* \
	| vsta* \
	| vxsim* \
	| vxworks* \
	| wasi* \
	| watchos* \
	| wince* \
	| windiss* \
	| windows* \
	| winnt* \
	| xenix* \
	| xray* \
	| zephyr* \
	| zvmoe* )
		;;
	# This one is extra strict with allowed versions
	sco3.2v2 | sco3.2v[4-9]* | sco5v6*)
		# Don't forget version if it is 3.2v4 or newer.
		;;
	# This refers to builds using the UEFI calling convention
	# (which depends on the architecture) and PE file format.
	# Note that this is both a different calling convention and
	# different file format than that of GNU-EFI
	# (x86_64-w64-mingw32).
	uefi)
		;;
	none)
		;;
	kernel* | msvc* )
		# Restricted further below
		;;
	'')
		if test x"$obj" = x
		then
			echo "Invalid configuration '$1': Blank OS only allowed with explicit machine code file format" 1>&2
		fi
		;;
	*)
		echo "Invalid configuration '$1': OS '$os' not recognized" 1>&2
		exit 1
		;;
esac

case $obj in
	aout* | coff* | elf* | pe*)
		;;
	'')
		# empty is fine
		;;
	*)
		echo "Invalid configuration '$1': Machine code format '$obj' not recognized" 1>&2
		exit 1
		;;
esac

# Here we handle the constraint that a (synthetic) cpu and os are
# valid only in combination with each other and nowhere else.
case $cpu-$os in
	# The "javascript-unknown-ghcjs" triple is used by GHC; we
	# accept it here in order to tolerate that, but reject any
	# variations.
	javascript-ghcjs)
		;;
	javascript-* | *-ghcjs)
		echo "Invalid configuration '$1': cpu '$cpu' is not valid with os '$os$obj'" 1>&2
		exit 1
		;;
esac

# As a final step for OS-related things, validate the OS-kernel combination
# (given a valid OS), if there is a kernel.
case $kernel-$os-$obj in
	linux-gnu*- | linux-android*- | linux-dietlibc*- | linux-llvm*- \
		    | linux-mlibc*- | linux-musl*- | linux-newlib*- \
		    | linux-relibc*- | linux-uclibc*- | linux-ohos*- )
		;;
	uclinux-uclibc*- | uclinux-gnu*- )
		;;
	managarm-mlibc*- | managarm-kernel*- )
		;;
	windows*-msvc*-)
		;;
	-dietlibc*- | -llvm*- | -mlibc*- | -musl*- | -newlib*- | -relibc*- \
		    | -uclibc*- )
		# These are just libc implementations, not actual OSes, and thus
		# require a kernel.
		echo "Invalid configuration '$1': libc '$os' needs explicit kernel." 1>&2
		exit 1
		;;
	-kernel*- )
		echo "Invalid configuration '$1': '$os' needs explicit kernel." 1>&2
		exit 1
		;;
	*-kernel*- )
		echo "Invalid configuration '$1': '$kernel' does not support '$os'." 1>&2
		exit 1
		;;
	*-msvc*- )
		echo "Invalid configuration '$1': '$os' needs 'windows'." 1>&2
		exit 1
		;;
	kfreebsd*-gnu*- | knetbsd*-gnu*- | netbsd*-gnu*- | kopensolaris*-gnu*-)
		;;
	vxworks-simlinux- | vxworks-simwindows- | vxworks-spe-)
		;;
	nto-qnx*-)
		;;
	os2-emx-)
		;;
	rtmk-nova-)
		;;
	*-eabi*- | *-gnueabi*-)
		;;
	none--*)
		# None (no kernel, i.e. freestanding / bare metal),
		# can be paired with an machine code file format
		;;
	-*-)
		# Blank kernel with real OS is always fine.
		;;
	--*)
		# Blank kernel and OS with real machine code file format is always fine.
		;;
	*-*-*)
		echo "Invalid configuration '$1': Kernel '$kernel' not known to work with OS '$os'." 1>&2
		exit 1
		;;
esac

# Here we handle the case where we know the os, and the CPU type, but not the
# manufacturer.  We pick the logical manufacturer.
case $vendor in
	unknown)
		case $cpu-$os in
			*-riscix*)
				vendor=acorn
				;;
			*-sunos* | *-solaris*)
				vendor=sun
				;;
			*-cnk* | *-aix*)
				vendor=ibm
				;;
			*-beos*)
				vendor=be
				;;
			*-hpux*)
				vendor=hp
				;;
			*-mpeix*)
				vendor=hp
				;;
			*-hiux*)
				vendor=hitachi
				;;
			*-unos*)
				vendor=crds
				;;
			*-dgux*)
				vendor=dg
				;;
			*-luna*)
				vendor=omron
				;;
			*-genix*)
				vendor=ns
				;;
			*-clix*)
				vendor=intergraph
				;;
			*-mvs* | *-opened*)
				vendor=ibm
				;;
			*-os400*)
				vendor=ibm
				;;
			s390-* | s390x-*)
				vendor=ibm
				;;
			*-ptx*)
				vendor=sequent
				;;
			*-tpf*)
				vendor=ibm
				;;
			*-vxsim* | *-vxworks* | *-windiss*)
				vendor=wrs
				;;
			*-aux*)
				vendor=apple
				;;
			*-hms*)
				vendor=hitachi
				;;
			*-mpw* | *-macos*)
				vendor=apple
				;;
			*-*mint | *-mint[0-9]* | *-*MiNT | *-MiNT[0-9]*)
				vendor=atari
				;;
			*-vos*)
				vendor=stratus
				;;
		esac
		;;
esac

echo "$cpu-$vendor${kernel:+-$kernel}${os:+-$os}${obj:+-$obj}"
exit

# 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.10
log
@Make aarch64eb work.
@
text
@d3 1
a3 1
#   Copyright 1992-2022 Free Software Foundation, Inc.
d5 1
a5 1
# shellcheck disable=SC2006,SC2268 # see below for rationale
d7 1
a7 1
timestamp='2022-01-03'
d79 1
a79 1
Copyright 1992-2022 Free Software Foundation, Inc.
d85 1
a85 1
Try \`$me --help' for more information."
a122 1
# shellcheck disable=SC2162
d132 1
a132 1
		echo Invalid configuration \`"$1"\': more than four components >&2
d144 15
a158 4
			nto-qnx* | linux-* | uclinux-uclibc* \
			| uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* \
			| netbsd*-eabi* | kopensolaris*-gnu* | cloudabi*-eabi* \
			| storm-chaos* | os2-emx* | rtmk-nova*)
a172 1
		# A lone config we happen to match not fitting any pattern
d174 5
d186 1
a186 1
					# Prevent following clause from handling this valid os
d191 73
a267 13
					# Manufacturers
					dec* | mips* | sequent* | encore* | pc533* | sgi* | sony* \
					| att* | 7300* | 3300* | delta* | motorola* | sun[234]* \
					| unicom* | ibm* | next | hp | isi* | apollo | altos* \
					| convergent* | ncr* | news | 32* | 3600* | 3100* \
					| hitachi* | c[123]* | convex* | sun | crds | omron* | dg \
					| ultra | tti* | harris | dolphin | highlevel | gould \
					| cbm | ns | masscomp | apple | axis | knuth | cray \
					| microblaze* | sim | cisco \
					| oki | wec | wrs | winbond)
						basic_machine=$field1-$field2
						basic_os=
						;;
a347 20
			convex-c1)
				basic_machine=c1-convex
				basic_os=bsd
				;;
			convex-c2)
				basic_machine=c2-convex
				basic_os=bsd
				;;
			convex-c32)
				basic_machine=c32-convex
				basic_os=bsd
				;;
			convex-c34)
				basic_machine=c34-convex
				basic_os=bsd
				;;
			convex-c38)
				basic_machine=c38-convex
				basic_os=bsd
				;;
d770 1
a770 2
	delta | 3300 | motorola-3300 | motorola-delta \
	      | 3300-motorola | delta-motorola)
d774 6
a779 1
	dpx2*)
d782 8
a789 1
		basic_os=sysv3
a903 12
		case $basic_os in
		    openstep*)
		        ;;
		    nextstep*)
			;;
		    ns2*)
		      basic_os=nextstep2
			;;
		    *)
		      basic_os=nextstep3
			;;
		esac
a991 1
		# shellcheck disable=SC2162
d998 1
a998 1
	# We use `pc' rather than `unknown'
d1026 6
a1031 2
	# Here we handle the default manufacturer of certain CPU types in canonical form. It is in
	# some cases the only manufacturer, in others, it is the most popular.
d1038 1
a1038 1
		basic_os=${Basic_os:-unicos}
d1084 18
a1101 3
	dpx20-unknown | dpx20-bull)
		cpu=rs6000
		vendor=bull
d1104 3
d1114 1
a1114 1
		basic_os=linux
d1137 1
a1137 1
		basic_os=linux
d1147 1
a1147 1
		basic_os=linux
d1152 1
a1152 1
	pentiumpro-* | p6-* | 6x86-* | athlon-* | athalon_*-*)
a1160 3
	pc98-*)
		cpu=i386
		;;
a1193 3
	x64-*)
		cpu=x86_64
		;;
d1249 3
a1251 1
			1750a | 580 \
d1253 3
a1255 1
			| aarch64 | aarch64_be | aarch64eb \
d1257 10
a1266 3
			| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] \
			| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] \
			| alphapca5[67] | alpha64pca5[67] \
d1269 10
a1278 3
			| arc | arceb | arc32 | arc64 \
			| arm | arm[lb]e | arme[lb] | armv* \
			| avr | avr32 \
d1280 2
d1283 29
a1311 9
			| be32 | be64 \
			| bfin | bpf | bs2000 \
			| c[123]* | c30 | [cjt]90 | c4x \
			| c8051 | clipper | craynv | csky | cydra \
			| d10v | d30v | dlx | dsp16xx \
			| e2k | elxsi | epiphany \
			| f30[01] | f700 | fido | fr30 | frv | ft32 | fx80 \
			| h8300 | h8500 \
			| hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
d1313 14
a1326 2
			| i370 | i*86 | i860 | i960 | ia16 | ia64 \
			| ip2k | iq2000 \
d1328 3
a1330 1
			| le32 | le64 \
d1332 26
a1357 31
			| loongarch32 | loongarch64 | loongarchx32 \
			| m32c | m32r | m32rle \
			| m5200 | m68000 | m680[012346]0 | m68360 | m683?2 | m68k \
			| m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x \
			| m88110 | m88k | maxq | mb | mcore | mep | metag \
			| microblaze | microblazeel \
			| mips | mipsbe | mipseb | mipsel | mipsle \
			| mips16 \
			| mips64 | mips64eb | mips64el \
			| mips64octeon | mips64octeonel \
			| mips64orion | mips64orionel \
			| mips64r5900 | mips64r5900el \
			| mips64vr | mips64vrel \
			| mips64vr4100 | mips64vr4100el \
			| mips64vr4300 | mips64vr4300el \
			| mips64vr5000 | mips64vr5000el \
			| mips64vr5900 | mips64vr5900el \
			| mipsisa32 | mipsisa32el \
			| mipsisa32r2 | mipsisa32r2el \
			| mipsisa32r3 | mipsisa32r3el \
			| mipsisa32r5 | mipsisa32r5el \
			| mipsisa32r6 | mipsisa32r6el \
			| mipsisa64 | mipsisa64el \
			| mipsisa64r2 | mipsisa64r2el \
			| mipsisa64r3 | mipsisa64r3el \
			| mipsisa64r5 | mipsisa64r5el \
			| mipsisa64r6 | mipsisa64r6el \
			| mipsisa64sb1 | mipsisa64sb1el \
			| mipsisa64sr71k | mipsisa64sr71kel \
			| mipsr5900 | mipsr5900el \
			| mipstx39 | mipstx39el \
d1359 2
a1360 1
			| mn10200 | mn10300 \
d1362 1
d1364 4
a1367 2
			| msp430 \
			| nds32 | nds32le | nds32be \
d1369 9
a1377 2
			| nios | nios2 | nios2eb | nios2el \
			| none | np1 | ns16k | ns32k | nvptx \
d1382 2
d1385 9
a1393 2
			| pdp10 | pdp11 | pj | pjl | pn | power \
			| powerpc | powerpc64 | powerpc64le | powerpcle | powerpcspe \
d1396 11
a1406 3
			| riscv | riscv32 | riscv32be | riscv64 | riscv64be \
			| rl78 | romp | rs6000 | rx \
			| s390 | s390x \
d1408 19
a1426 4
			| sh | shl \
			| sh[1234] | sh[24]a | sh[24]ae[lb] | sh[23]e | she[lb] | sh[lb]e \
			| sh[1234]e[lb] |  sh[12345][lb]e | sh[23]ele | sh64 | sh64le \
			| sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet \
d1428 4
a1431 1
			| sparcv8 | sparcv9 | sparcv9b | sparcv9v | sv1 | sx* \
d1433 2
d1437 6
a1442 1
			| tic30 | tic4x | tic54x | tic55x | tic6x | tic80 \
d1445 8
a1452 1
			| v70 | v850 | v850e | v850e1 | v850es | v850e2 | v850e2v3 \
d1454 1
d1457 2
a1458 1
			| wasm32 | wasm64 \
d1460 7
a1466 2
			| x86 | x86_64 | xc16x | xgate | xps100 \
			| xstormy16 | xtensa* \
d1468 2
a1469 1
			| z8k | z80)
d1473 1
a1473 1
				echo Invalid configuration \`"$1"\': machine \`"$cpu-$vendor"\' not recognized 1>&2
d1494 1
a1494 1
if test x$basic_os != x
d1499 1
a1513 1
		# shellcheck disable=SC2162
d1529 4
d1560 17
d1647 1
d1664 5
a1668 1
	ctix* | uts*)
d1672 2
a1673 4
		os=rtmk-nova
		;;
	ns2)
		os=nextstep2
d1678 1
d1682 1
d1720 2
a1721 1
			os=elf
d1725 5
d1748 1
d1751 2
a1752 1
		os=elf
d1755 2
a1756 1
		os=elf
d1766 2
a1767 1
		os=aout
d1770 2
a1771 1
		os=coff
d1774 2
a1775 1
		os=elf
d1781 2
a1782 1
		os=elf
d1785 2
a1786 1
		os=coff
d1789 2
a1790 1
		os=coff
d1793 2
a1794 1
		os=coff
d1816 2
a1817 1
		os=aout
d1820 10
a1829 1
		os=elf
d1832 2
a1833 1
		os=elf
d1835 3
a1837 2
	mips*-*)
		os=elf
d1840 2
a1841 1
		os=coff
d1843 2
a1844 1
	*-tti)	# must be before sparc entry or we get the wrong os.
d1851 2
a1852 1
		os=elf
d1876 1
a1876 1
		os=hiux
a1919 6
	*-sgi)
		os=irix
		;;
	*-siemens)
		os=sysv4
		;;
d1927 2
a1928 1
		os=coff
d1931 2
a1932 1
		os=coff
d1950 2
a1951 1
# Now, validate our (potentially fixed-up) OS.
d1954 1
a1954 1
	musl* | newlib* | relibc* | uclibc*)
d1962 3
a1965 1
	# The portable systems comes first.
d1967 186
a2152 32
	gnu* | android* | bsd* | mach* | minix* | genix* | ultrix* | irix* \
	     | *vms* | esix* | aix* | cnk* | sunos | sunos[34]* \
	     | hpux* | unos* | osf* | luna* | dgux* | auroraux* | solaris* \
	     | sym* |  plan9* | psp* | sim* | xray* | os68k* | v88r* \
	     | hiux* | abug | nacl* | netware* | windows* \
	     | os9* | macos* | osx* | ios* \
	     | mpw* | magic* | mmixware* | mon960* | lnews* \
	     | amigaos* | amigados* | msdos* | newsos* | unicos* | aof* \
	     | aos* | aros* | cloudabi* | sortix* | twizzler* \
	     | nindy* | vxsim* | vxworks* | ebmon* | hms* | mvs* \
	     | clix* | riscos* | uniplus* | iris* | isc* | rtu* | xenix* \
	     | mirbsd* | netbsd* | dicos* | openedition* | ose* \
	     | bitrig* | openbsd* | secbsd* | solidbsd* | libertybsd* | os108* \
	     | ekkobsd* | freebsd* | riscix* | lynxos* | os400* \
	     | bosx* | nextstep* | cxux* | aout* | elf* | oabi* \
	     | ptx* | coff* | ecoff* | winnt* | domain* | vsta* \
	     | udi* | lites* | ieee* | go32* | aux* | hcos* \
	     | chorusrdb* | cegcc* | glidix* | serenity* \
	     | cygwin* | msys* | pe* | moss* | proelf* | rtems* \
	     | midipix* | mingw32* | mingw64* | mint* \
	     | uxpv* | beos* | mpeix* | udk* | moxiebox* \
	     | interix* | uwin* | mks* | rhapsody* | darwin* \
	     | openstep* | oskit* | conix* | pw32* | nonstopux* \
	     | storm-chaos* | tops10* | tenex* | tops20* | its* \
	     | os2* | vos* | palmos* | uclinux* | nucleus* | morphos* \
	     | scout* | superux* | sysv* | rtmk* | tpf* | windiss* \
	     | powermax* | dnix* | nx6 | nx7 | sei* | dragonfly* \
	     | skyos* | haiku* | rdos* | toppers* | drops* | es* \
	     | onefs* | tirtos* | phoenix* | fuchsia* | redox* | bme* \
	     | midnightbsd* | amdhsa* | unleashed* | emscripten* | wasi* \
	     | nsk* | powerunix* | genode* | zvmoe* | qnx* | emx* | zephyr* \
	     | fiwix* )
d2158 7
d2167 9
d2177 27
a2203 1
		echo Invalid configuration \`"$1"\': OS \`"$os"\' not recognized 1>&2
d2210 8
a2217 3
case $kernel-$os in
	linux-gnu* | linux-dietlibc* | linux-android* | linux-newlib* \
		   | linux-musl* | linux-relibc* | linux-uclibc* )
d2219 1
a2219 1
	uclinux-uclibc* )
d2221 2
a2222 1
	-dietlibc* | -newlib* | -musl* | -relibc* | -uclibc* )
d2225 1
a2225 1
		echo "Invalid configuration \`$1': libc \`$os' needs explicit kernel." 1>&2
d2228 15
a2242 1
	kfreebsd*-gnu* | kopensolaris*-gnu*)
d2244 1
a2244 1
	vxworks-simlinux | vxworks-simwindows | vxworks-spe)
d2246 3
a2248 1
	nto-qnx*)
d2250 1
a2250 1
	os2-emx)
d2252 3
a2254 1
	*-eabi* | *-gnueabi*)
d2256 1
a2256 1
	-*)
d2259 5
a2263 2
	*-*)
		echo "Invalid configuration \`$1': Kernel \`$kernel' not known to work with OS \`$os'." 1>&2
d2276 1
a2276 1
			*-sunos*)
d2346 1
a2346 1
echo "$cpu-$vendor-${kernel:+$kernel-}$os"
@


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
@d1183 1
a1183 1
			| aarch64 | aarch64_be \
@


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-05'
d11 1
a11 1
# the Free Software Foundation; either version 3 of the License, or
d38 1
a38 1
# https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
d55 7
d79 1
a79 1
Copyright 1992-2019 Free Software Foundation, Inc.
d124 1
d128 1
d138 1
a138 1
		os=$field3-$field4
d145 1
a145 2
			nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc \
			| linux-newlib* | linux-musl* | linux-uclibc* | uclinux-uclibc* \
d150 1
a150 1
				os=$maybe_os
d154 1
a154 1
				os=linux-android
d158 1
a158 1
				os=$field3
d167 1
a167 1
				os=
d175 5
a179 1
						os=$field2
d192 1
a192 1
						os=
d196 1
a196 1
						os=$field2
d208 1
a208 1
				os=bsd
d212 1
a212 1
				os=udi
d216 1
a216 1
				os=scout
d220 1
a220 1
				os=
d224 1
a224 1
				os=
d228 1
a228 1
				os=bsd
d232 1
a232 1
				os=sysv
d236 1
a236 1
				os=
d240 1
a240 1
				os=amigaos
d244 1
a244 1
				os=sysv4
d248 1
a248 1
				os=sysv
d252 1
a252 1
				os=bsd
d256 1
a256 1
				os=aros
d260 1
a260 1
				os=aux
d264 1
a264 1
				os=dynix
d268 1
a268 1
				os=linux
d272 1
a272 1
				os=cegcc
d276 1
a276 1
				os=bsd
d280 1
a280 1
				os=bsd
d284 1
a284 1
				os=bsd
d288 1
a288 1
				os=bsd
d292 1
a292 1
				os=bsd
d296 1
a296 1
				os=unicos
d300 1
a300 1
				os=
d304 1
a304 1
				os=
d308 1
a308 1
				os=
d312 1
a312 1
				os=sysv3
d316 1
a316 1
				os=dicos
d320 1
a320 1
				os=msdosdjgpp
d324 1
a324 1
				os=ebmon
d328 1
a328 1
				os=ose
d332 1
a332 1
				os=sysv
d336 1
a336 1
				os=go32
d340 1
a340 1
				os=hms
d344 1
a344 1
				os=xray
d348 1
a348 1
				os=hms
d352 1
a352 1
				os=sysv3
d354 1
a354 1
			hp300)
d356 1
d360 1
a360 5
				os=bsd
				;;
			hp300hpux)
				basic_machine=m68k-hp
				os=hpux
d364 1
a364 1
				os=osf
d368 1
a368 1
				os=proelf
d372 1
a372 5
				os=mach
				;;
			vsta)
				basic_machine=i386-pc
				os=vsta
d376 1
a376 1
				os=sysv
d380 1
a380 1
				os=linux
d384 1
a384 1
				os=sysv
d388 1
a388 1
				os=sysv
d392 1
a392 1
				os=mingw64
d396 1
a396 1
				os=mingw32
d400 1
a400 1
				os=mingw32ce
d404 1
a404 1
				os=coff
d408 1
a408 1
				os=morphos
d412 1
a412 1
				os=moxiebox
d416 1
a416 1
				os=msdos
d420 1
a420 1
				os=msys
d424 1
a424 1
				os=mvs
d428 1
a428 1
				os=nacl
d432 1
a432 1
				os=sysv4
d436 1
a436 1
				os=netbsd
d440 1
a440 1
				os=linux
d444 1
a444 1
				os=newsos
d448 1
a448 1
				os=newsos
d452 1
a452 1
				os=sysv
d456 1
a456 1
				os=cxux
d460 1
a460 1
				os=cxux
d464 1
a464 1
				os=nindy
d468 1
a468 1
				os=mon960
d472 1
a472 1
				os=nonstopux
d476 1
a476 1
				os=os400
d480 1
a480 1
				os=ose
d484 1
a484 1
				os=os68k
d488 1
a488 1
				os=osf
d492 5
a496 1
				os=linux
d500 1
a500 1
				os=pw32
d504 1
a504 1
				os=rdos
d508 1
a508 1
				os=rdos
d512 1
a512 1
				os=coff
d516 1
a516 1
				os=udi
d520 1
a520 1
				os=seiux
d524 1
a524 1
				os=
d528 1
a528 1
				os=sysv2
d532 1
a532 1
				os=
d536 1
a536 1
				os=sysv4
d540 1
a540 1
				os=
d544 1
a544 1
				os=sunos3
d548 1
a548 1
				os=sunos4
d552 1
a552 1
				os=
d556 1
a556 1
				os=sunos3
d560 1
a560 1
				os=sunos4
d564 1
a564 1
				os=
d568 1
a568 1
				os=sunos3
d572 1
a572 1
				os=sunos4
d576 1
a576 1
				os=solaris2
d580 1
a580 1
				os=
d584 1
a584 1
				os=unicos
d588 1
a588 1
				os=dynix
d592 1
a592 1
				os=unicos
d596 1
a596 1
				os=unicos
d600 1
a600 1
				os=tops20
d604 1
a604 1
				os=tpf
d608 1
a608 1
				os=udi
d612 1
a612 1
				os=sym1
d616 1
a616 1
				os=none
d620 1
a620 1
				os=sysv
d624 5
a628 1
				os=vms
d632 1
a632 1
				os=vxworks
d636 1
a636 1
				os=vxworks
d640 1
a640 1
				os=vxworks
d644 1
a644 1
				os=mingw32
d648 1
a648 1
				os=unicos
d652 1
a652 1
				os=
d704 1
a704 1
		os=cnk
d709 1
a709 1
		os=tops10
d714 1
a714 1
		os=tops20
d724 1
a724 1
		os=sysv3
d733 1
a733 1
		os=${os:-bsd}
d746 1
a746 1
		os=hiuxwe2
d789 1
a789 1
		os=sysv32
d794 1
a794 1
		os=sysv4
d799 1
a799 1
		os=sysv
d804 1
a804 1
		os=solaris2
d809 1
a809 1
		os=${os:-unicos}
d814 1
a814 1
		case $os in
d818 1
a818 1
			os=irix4
d829 1
a829 1
		os=mint
d834 1
a834 1
		os=newsos
d839 4
a842 2
		case $os in
		    nextstep* )
d845 1
a845 1
		      os=nextstep2
d848 1
a848 1
		      os=nextstep3
d859 1
a859 1
		os=proelf
d864 1
a864 1
		os=hiuxwe2
d901 1
a901 1
		os=${os:-elf}
d906 1
a906 1
		os=vxworks
d923 1
a923 1
		os=proelf
d940 1
d944 1
d978 1
a978 1
		os=${os:-unicosmp}
d982 1
a982 1
		os=${os:-unicos}
d1023 5
d1031 1
a1031 1
		os=${os:-bosx}
d1040 1
a1040 1
		os=linux
d1053 1
a1053 1
		os=$os"spe"
d1063 1
a1063 1
		os=linux
d1073 1
a1073 1
		os=linux
d1129 3
d1136 1
a1136 1
		os=${os:-elf}
d1147 1
a1147 1
		os=${os:-elf}
d1169 3
a1171 7
	s390-*)
		cpu=s390
		vendor=ibm
		;;
	s390x-*)
		cpu=s390x
		vendor=ibm
d1174 1
a1174 1
		os=${os:-linux-gnu}
d1190 2
a1191 2
			| arc | arceb \
			| arm  | arm[lb]e | arme[lb] | armv* \
d1196 1
a1196 1
			| bfin | bs2000 \
d1210 1
d1229 2
d1234 2
d1259 1
a1259 1
			| riscv | riscv32 | riscv64 \
d1261 1
d1271 1
d1278 2
a1279 1
			| w65 | wasm32 \
d1309 1
a1309 1
if [ x$os != x ]
d1311 41
d1363 1
a1363 1
		os=`echo $os | sed -e 's|solaris1|sunos4|'`
a1370 3
	gnu/linux*)
		os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
		;;
d1392 1
a1392 1
		os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
d1394 1
a1394 4
	sco3.2v[4-9]* | sco5v6*)
		# Don't forget version if it is 3.2v4 or newer.
		;;
	scout)
a1402 34
	# Now accept the basic system types.
	# The portable systems comes first.
	# Each alternative MUST end in a * to match a version number.
	# sysv* is not here because it comes later, after sysvr4.
	gnu* | bsd* | mach* | minix* | genix* | ultrix* | irix* \
	     | *vms* | esix* | aix* | cnk* | sunos | sunos[34]*\
	     | hpux* | unos* | osf* | luna* | dgux* | auroraux* | solaris* \
	     | sym* | kopensolaris* | plan9* \
	     | amigaos* | amigados* | msdos* | newsos* | unicos* | aof* \
	     | aos* | aros* | cloudabi* | sortix* \
	     | nindy* | vxsim* | vxworks* | ebmon* | hms* | mvs* \
	     | clix* | riscos* | uniplus* | iris* | isc* | rtu* | xenix* \
	     | knetbsd* | mirbsd* | netbsd* \
	     | bitrig* | openbsd* | solidbsd* | libertybsd* \
	     | ekkobsd* | kfreebsd* | freebsd* | riscix* | lynxos* \
	     | bosx* | nextstep* | cxux* | aout* | elf* | oabi* \
	     | ptx* | coff* | ecoff* | winnt* | domain* | vsta* \
	     | udi* | eabi* | lites* | ieee* | go32* | aux* | hcos* \
	     | chorusrdb* | cegcc* | glidix* \
	     | cygwin* | msys* | pe* | moss* | proelf* | rtems* \
	     | midipix* | mingw32* | mingw64* | linux-gnu* | linux-android* \
	     | linux-newlib* | linux-musl* | linux-uclibc* \
	     | uxpv* | beos* | mpeix* | udk* | moxiebox* \
	     | interix* | uwin* | mks* | rhapsody* | darwin* \
	     | openstep* | oskit* | conix* | pw32* | nonstopux* \
	     | storm-chaos* | tops10* | tenex* | tops20* | its* \
	     | os2* | vos* | palmos* | uclinux* | nucleus* \
	     | morphos* | superux* | rtmk* | windiss* \
	     | powermax* | dnix* | nx6 | nx7 | sei* | dragonfly* \
	     | skyos* | haiku* | rdos* | toppers* | drops* | es* \
	     | onefs* | tirtos* | phoenix* | fuchsia* | redox* | bme* \
	     | midnightbsd* | amdhsa* | unleashed* | emscripten*)
	# Remember, each alternative MUST END IN *, to match a version number.
		;;
d1404 1
a1404 7
		case $cpu in
		    x86 | i*86)
			;;
		    *)
			os=nto-$os
			;;
		esac
a1408 15
	nto-qnx*)
		;;
	nto*)
		os=`echo $os | sed -e 's|nto|nto-qnx|'`
		;;
	sim | xray | os68k* | v88r* \
	    | windows* | osx | abug | netware* | os9* \
	    | macos* | mpw* | magic* | mmixware* | mon960* | lnews*)
		;;
	linux-dietlibc)
		os=linux-dietlibc
		;;
	linux*)
		os=`echo $os | sed -e 's|linux|linux-gnu|'`
		;;
d1415 3
d1421 1
a1421 1
	mac*)
a1465 3
	nsk*)
		os=nsk
		;;
d1468 1
a1468 1
		os=`echo $os | sed -e 's|sinix|sysv|'`
a1490 3
	# This must come after sysvr4.
	sysv*)
		;;
a1496 3
	zvmoe)
		os=zvmoe
		;;
a1512 8
	nacl*)
		;;
	ios)
		;;
	none)
		;;
	*-eabi)
		;;
d1514 1
a1514 2
		echo Invalid configuration \`"$1"\': system \`"$os"\' not recognized 1>&2
		exit 1
d1517 1
d1530 1
d1542 2
a1543 1
		os=linux
d1709 1
d1712 92
d1808 2
a1809 2
		case $os in
			riscix*)
d1812 1
a1812 1
			sunos*)
d1815 1
a1815 1
			cnk*|-aix*)
d1818 1
a1818 1
			beos*)
d1821 1
a1821 1
			hpux*)
d1824 1
a1824 1
			mpeix*)
d1827 1
a1827 1
			hiux*)
d1830 1
a1830 1
			unos*)
d1833 1
a1833 1
			dgux*)
d1836 1
a1836 1
			luna*)
d1839 1
a1839 1
			genix*)
d1842 1
a1842 1
			clix*)
d1845 4
a1848 1
			mvs* | opened*)
d1851 1
a1851 1
			os400*)
d1854 1
a1854 1
			ptx*)
d1857 1
a1857 1
			tpf*)
d1860 1
a1860 1
			vxsim* | vxworks* | windiss*)
d1863 1
a1863 1
			aux*)
d1866 1
a1866 1
			hms*)
d1869 1
a1869 1
			mpw* | macos*)
d1872 1
a1872 1
			*mint | mint[0-9]* | *MiNT | MiNT[0-9]*)
d1875 1
a1875 1
			vos*)
d1882 1
a1882 1
echo "$cpu-$vendor-$os"
@


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-05-23'
d825 1
a825 3
		    openstep*)
		        ;;
		    nextstep*)
d1173 1
a1173 1
			| bfin | bpf | bs2000 \
d1248 1
a1248 2
			| w65 \
			| wasm32 | wasm64 \
d1368 1
a1368 1
	     | midnightbsd* | amdhsa* | unleashed* | emscripten* | wasi*)
@


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'
d70 1
a70 1
Copyright 1992-2018 Free Software Foundation, Inc.
d92 1
a92 1
       echo "$me: invalid option $1$help"
d114 2
a115 1
IFS="-" read -r field1 field2 field3 field4 <<EOF
d153 1
a153 1
		# A lone config we happen to match not fitting any patern
d825 3
a827 1
		    nextstep* )
d924 2
a925 1
		IFS="-" read -r cpu vendor <<EOF
d957 1
a957 1
	# Here we handle the default manufacturer of certain CPU types in cannonical form. It is in
d1108 1
a1108 1
	# Recognize the cannonical CPU Types that limit and/or modify the
d1157 1
a1157 1
		# Recognize the cannonical CPU types that are allowed with any
d1168 1
d1175 1
a1175 1
			| bfin | bs2000 \
d1190 2
a1191 2
			| m5200 | m68000 | m680[012346]0 | m68360 | m683?2 | m68k | v70 | w65 \
			| m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip \
d1196 1
a1196 1
			| mips64 | mips64el \
d1223 1
a1223 1
			| none | np1 | ns16k | ns32k \
d1228 1
d1236 2
a1237 1
			| sh | sh[1234] | sh[24]a | sh[24]ae[lb] | sh[23]e | she[lb] | sh[lb]e \
d1247 1
a1247 1
			| v850 | v850e | v850e1 | v850es | v850e2 | v850e2v3 \
d1250 2
a1251 1
			| wasm32 \
d1371 1
a1371 1
	     | midnightbsd*)
@


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-04-02'
d18 1
a18 1
# along with this program; if not, see <http://www.gnu.org/licenses/>.
d36 1
a36 1
# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
d60 1
a60 1
Operation modes:
d70 1
a70 1
Copyright 1992-2017 Free Software Foundation, Inc.
d97 1
a97 1
       echo $1
d113 10
a122 31
# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
# Here we must recognize all the valid KERNEL-OS combinations.
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
case $maybe_os in
  nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
  linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
  knetbsd*-gnu* | netbsd*-gnu* | netbsd*-eabi* | \
  kopensolaris*-gnu* | cloudabi*-eabi* | \
  storm-chaos* | os2-emx* | rtmk-nova*)
    os=-$maybe_os
    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
    ;;
  android-linux)
    os=-linux-android
    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
    ;;
  *)
    basic_machine=`echo $1 | sed 's/-[^-]*$//'`
    if [ $basic_machine != $1 ]
    then os=`echo $1 | sed 's/.*-/-/'`
    else os=; fi
    ;;
esac

### Let's recognize common machines as not being operating systems so
### that things like config.sub decstation-3100 work.  We also
### recognize some manufacturers as not being operating systems, so we
### can provide default operating systems below.
case $os in
	-sun*os*)
		# Prevent following clause from handling this invalid input.
d124 3
a126 45
	-dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
	-att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
	-unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
	-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
	-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
	-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
	-apple | -axis | -knuth | -cray | -microblaze*)
		os=
		basic_machine=$1
		;;
	-bluegene*)
		os=-cnk
		;;
	-sim | -cisco | -oki | -wec | -winbond)
		os=
		basic_machine=$1
		;;
	-scout)
		;;
	-wrs)
		os=-vxworks
		basic_machine=$1
		;;
	-chorusos*)
		os=-chorusos
		basic_machine=$1
		;;
	-chorusrdb)
		os=-chorusrdb
		basic_machine=$1
		;;
	-hiux*)
		os=-hiuxwe2
		;;
	-sco6)
		os=-sco5v6
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
		;;
	-sco5)
		os=-sco3.2v5
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
		;;
	-sco4)
		os=-sco3.2v4
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
d128 22
a149 3
	-sco3.2.[4-9]*)
		os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
d151 35
a185 3
	-sco3.2v[4-9]*)
		# Don't forget version if it is 3.2v4 or newer.
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
d187 452
a638 42
	-sco5v6*)
		# Don't forget version if it is 3.2v4 or newer.
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
		;;
	-sco*)
		os=-sco3.2v2
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
		;;
	-udk*)
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
		;;
	-isc)
		os=-isc2.2
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
		;;
	-clix*)
		basic_machine=clipper-intergraph
		;;
	-isc*)
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
		;;
	-lynx*178)
		os=-lynxos178
		;;
	-lynx*5)
		os=-lynxos5
		;;
	-lynx*)
		os=-lynxos
		;;
	-ptx*)
		basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
		;;
	-windowsnt*)
		os=`echo $os | sed -e 's/windowsnt/winnt/'`
		;;
	-psos*)
		os=-psos
		;;
	-mint | -mint[0-9]*)
		basic_machine=m68k-atari
		os=-mint
d642 1
a642 1
# Decode aliases for certain CPU-COMPANY combinations.
d644 5
a648 77
	# Recognize the basic CPU types without company name.
	# Some are omitted here because they have special meanings below.
	1750a | 580 \
	| a29k \
	| aarch64 | aarch64_be \
	| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
	| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
	| am33_2.0 \
	| arc | arceb \
	| arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \
	| avr | avr32 \
	| ba \
	| be32 | be64 \
	| bfin \
	| c4x | c8051 | clipper \
	| d10v | d30v | dlx | dsp16xx \
	| e2k | epiphany \
	| fido | fr30 | frv | ft32 \
	| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
	| hexagon \
	| i370 | i860 | i960 | ia16 | ia64 \
	| ip2k | iq2000 \
	| k1om \
	| le32 | le64 \
	| lm32 \
	| m32c | m32r | m32rle | m68000 | m68k | m88k \
	| maxq | mb | microblaze | microblazeel | mcore | mep | metag \
	| mips | mipsbe | mipseb | mipsel | mipsle \
	| mips16 \
	| mips64 | mips64el \
	| mips64octeon | mips64octeonel \
	| mips64orion | mips64orionel \
	| mips64r5900 | mips64r5900el \
	| mips64vr | mips64vrel \
	| mips64vr4100 | mips64vr4100el \
	| mips64vr4300 | mips64vr4300el \
	| mips64vr5000 | mips64vr5000el \
	| mips64vr5900 | mips64vr5900el \
	| mipsisa32 | mipsisa32el \
	| mipsisa32r2 | mipsisa32r2el \
	| mipsisa32r6 | mipsisa32r6el \
	| mipsisa64 | mipsisa64el \
	| mipsisa64r2 | mipsisa64r2el \
	| mipsisa64r6 | mipsisa64r6el \
	| mipsisa64sb1 | mipsisa64sb1el \
	| mipsisa64sr71k | mipsisa64sr71kel \
	| mipsr5900 | mipsr5900el \
	| mipstx39 | mipstx39el \
	| mn10200 | mn10300 \
	| moxie \
	| mt \
	| msp430 \
	| nds32 | nds32le | nds32be \
	| nios | nios2 | nios2eb | nios2el \
	| ns16k | ns32k \
	| open8 | or1k | or1knd | or32 \
	| pdp10 | pdp11 | pj | pjl \
	| powerpc | powerpc64 | powerpc64le | powerpcle \
	| pru \
	| pyramid \
	| riscv32 | riscv64 \
	| rl78 | rx \
	| score \
	| sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[234]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
	| sh64 | sh64le \
	| sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
	| sparcv8 | sparcv9 | sparcv9b | sparcv9v \
	| spu \
	| tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
	| ubicom32 \
	| v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
	| visium \
	| wasm32 \
	| we32k \
	| x86 | xc16x | xstormy16 | xtensa \
	| z8k | z80)
		basic_machine=$basic_machine-unknown
d650 3
a652 2
	c54x)
		basic_machine=tic54x-unknown
d654 3
a656 2
	c55x)
		basic_machine=tic55x-unknown
d658 3
a660 2
	c6x)
		basic_machine=tic6x-unknown
d662 3
a664 2
	leon|leon[3-9])
		basic_machine=sparc-$basic_machine
d666 3
a668 3
	m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip)
		basic_machine=$basic_machine-unknown
		os=-none
d670 3
a672 4
	m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
		;;
	ms1)
		basic_machine=mt-unknown
a674 115
	strongarm | thumb | xscale)
		basic_machine=arm-unknown
		;;
	xgate)
		basic_machine=$basic_machine-unknown
		os=-none
		;;
	xscaleeb)
		basic_machine=armeb-unknown
		;;

	xscaleel)
		basic_machine=armel-unknown
		;;

	# We use `pc' rather than `unknown'
	# because (1) that's what they normally are, and
	# (2) the word "unknown" tends to confuse beginning users.
	i*86 | x86_64)
	  basic_machine=$basic_machine-pc
	  ;;
	# Object if more than one company name word.
	*-*-*)
		echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
		exit 1
		;;
	# Recognize the basic CPU types with company name.
	580-* \
	| a29k-* \
	| aarch64-* | aarch64_be-* \
	| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
	| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
	| alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \
	| arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
	| avr-* | avr32-* \
	| ba-* \
	| be32-* | be64-* \
	| bfin-* | bs2000-* \
	| c[123]* | c30-* | [cjt]90-* | c4x-* \
	| c8051-* | clipper-* | craynv-* | cydra-* \
	| d10v-* | d30v-* | dlx-* \
	| e2k-* | elxsi-* \
	| f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
	| h8300-* | h8500-* \
	| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
	| hexagon-* \
	| i*86-* | i860-* | i960-* | ia16-* | ia64-* \
	| ip2k-* | iq2000-* \
	| k1om-* \
	| le32-* | le64-* \
	| lm32-* \
	| m32c-* | m32r-* | m32rle-* \
	| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
	| m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
	| microblaze-* | microblazeel-* \
	| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
	| mips16-* \
	| mips64-* | mips64el-* \
	| mips64octeon-* | mips64octeonel-* \
	| mips64orion-* | mips64orionel-* \
	| mips64r5900-* | mips64r5900el-* \
	| mips64vr-* | mips64vrel-* \
	| mips64vr4100-* | mips64vr4100el-* \
	| mips64vr4300-* | mips64vr4300el-* \
	| mips64vr5000-* | mips64vr5000el-* \
	| mips64vr5900-* | mips64vr5900el-* \
	| mipsisa32-* | mipsisa32el-* \
	| mipsisa32r2-* | mipsisa32r2el-* \
	| mipsisa32r6-* | mipsisa32r6el-* \
	| mipsisa64-* | mipsisa64el-* \
	| mipsisa64r2-* | mipsisa64r2el-* \
	| mipsisa64r6-* | mipsisa64r6el-* \
	| mipsisa64sb1-* | mipsisa64sb1el-* \
	| mipsisa64sr71k-* | mipsisa64sr71kel-* \
	| mipsr5900-* | mipsr5900el-* \
	| mipstx39-* | mipstx39el-* \
	| mmix-* \
	| mt-* \
	| msp430-* \
	| nds32-* | nds32le-* | nds32be-* \
	| nios-* | nios2-* | nios2eb-* | nios2el-* \
	| none-* | np1-* | ns16k-* | ns32k-* \
	| open8-* \
	| or1k*-* \
	| orion-* \
	| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
	| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
	| pru-* \
	| pyramid-* \
	| riscv32-* | riscv64-* \
	| rl78-* | romp-* | rs6000-* | rx-* \
	| sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
	| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
	| sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
	| sparclite-* \
	| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx*-* \
	| tahoe-* \
	| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
	| tile*-* \
	| tron-* \
	| ubicom32-* \
	| v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
	| vax-* \
	| visium-* \
	| wasm32-* \
	| we32k-* \
	| x86-* | x86_64-* | xc16x-* | xps100-* \
	| xstormy16-* | xtensa*-* \
	| ymp-* \
	| z8k-* | z80-*)
		;;
	# Recognize the basic CPU types without company name, with glob match.
	xtensa*)
		basic_machine=$basic_machine-unknown
		;;
a676 4
	386bsd)
		basic_machine=i386-unknown
		os=-bsd
		;;
d678 2
a679 1
		basic_machine=m68000-att
d682 2
a683 74
		basic_machine=we32k-att
		;;
	a29khif)
		basic_machine=a29k-amd
		os=-udi
		;;
	abacus)
		basic_machine=abacus-unknown
		;;
	adobe68k)
		basic_machine=m68010-adobe
		os=-scout
		;;
	alliant | fx80)
		basic_machine=fx80-alliant
		;;
	altos | altos3068)
		basic_machine=m68k-altos
		;;
	am29k)
		basic_machine=a29k-none
		os=-bsd
		;;
	amd64)
		basic_machine=x86_64-pc
		;;
	amd64-*)
		basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
		;;
	amdahl)
		basic_machine=580-amdahl
		os=-sysv
		;;
	amiga | amiga-*)
		basic_machine=m68k-unknown
		;;
	amigaos | amigados)
		basic_machine=m68k-unknown
		os=-amigaos
		;;
	amigaunix | amix)
		basic_machine=m68k-unknown
		os=-sysv4
		;;
	apollo68)
		basic_machine=m68k-apollo
		os=-sysv
		;;
	apollo68bsd)
		basic_machine=m68k-apollo
		os=-bsd
		;;
	aros)
		basic_machine=i386-pc
		os=-aros
		;;
	asmjs)
		basic_machine=asmjs-unknown
		;;
	aux)
		basic_machine=m68k-apple
		os=-aux
		;;
	balance)
		basic_machine=ns32k-sequent
		os=-dynix
		;;
	blackfin)
		basic_machine=bfin-unknown
		os=-linux
		;;
	blackfin-*)
		basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
		os=-linux
d686 3
a688 70
		basic_machine=powerpc-ibm
		os=-cnk
		;;
	c54x-*)
		basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
		;;
	c55x-*)
		basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
		;;
	c6x-*)
		basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
		;;
	c90)
		basic_machine=c90-cray
		os=-unicos
		;;
	cegcc)
		basic_machine=arm-unknown
		os=-cegcc
		;;
	convex-c1)
		basic_machine=c1-convex
		os=-bsd
		;;
	convex-c2)
		basic_machine=c2-convex
		os=-bsd
		;;
	convex-c32)
		basic_machine=c32-convex
		os=-bsd
		;;
	convex-c34)
		basic_machine=c34-convex
		os=-bsd
		;;
	convex-c38)
		basic_machine=c38-convex
		os=-bsd
		;;
	cray | j90)
		basic_machine=j90-cray
		os=-unicos
		;;
	craynv)
		basic_machine=craynv-cray
		os=-unicosmp
		;;
	cr16 | cr16-*)
		basic_machine=cr16-unknown
		os=-elf
		;;
	crds | unos)
		basic_machine=m68k-crds
		;;
	crisv32 | crisv32-* | etraxfs*)
		basic_machine=crisv32-axis
		;;
	cris | cris-* | etrax*)
		basic_machine=cris-axis
		;;
	crx)
		basic_machine=crx-unknown
		os=-elf
		;;
	da30 | da30-*)
		basic_machine=m68k-da30
		;;
	decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
		basic_machine=mips-dec
d691 3
a693 2
		basic_machine=pdp10-dec
		os=-tops10
d696 3
a698 2
		basic_machine=pdp10-dec
		os=-tops20
d702 2
a703 1
		basic_machine=m68k-motorola
d705 4
a708 19
	delta88)
		basic_machine=m88k-motorola
		os=-sysv3
		;;
	dicos)
		basic_machine=i686-pc
		os=-dicos
		;;
	djgpp)
		basic_machine=i586-pc
		os=-msdosdjgpp
		;;
	dpx20 | dpx20-*)
		basic_machine=rs6000-bull
		os=-bosx
		;;
	dpx2* | dpx2*-bull)
		basic_machine=m68k-bull
		os=-sysv3
d710 3
a712 11
	e500v[12])
		basic_machine=powerpc-unknown
		os=$os"spe"
		;;
	e500v[12]-*)
		basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
		os=$os"spe"
		;;
	ebmon29k)
		basic_machine=a29k-amd
		os=-ebmon
d715 3
a717 9
		basic_machine=elxsi-elxsi
		os=-bsd
		;;
	encore | umax | mmax)
		basic_machine=ns32k-encore
		;;
	es1800 | OSE68k | ose68k | ose | OSE)
		basic_machine=m68k-ericsson
		os=-ose
d720 2
a721 1
		basic_machine=i860-alliant
d724 2
a725 9
		basic_machine=ns32k-ns
		;;
	gmicro)
		basic_machine=tron-gmicro
		os=-sysv
		;;
	go32)
		basic_machine=i386-pc
		os=-go32
d728 3
a730 29
		basic_machine=hppa1.1-hitachi
		os=-hiuxwe2
		;;
	h8300hms)
		basic_machine=h8300-hitachi
		os=-hms
		;;
	h8300xray)
		basic_machine=h8300-hitachi
		os=-xray
		;;
	h8500hms)
		basic_machine=h8500-hitachi
		os=-hms
		;;
	harris)
		basic_machine=m88k-harris
		os=-sysv3
		;;
	hp300-*)
		basic_machine=m68k-hp
		;;
	hp300bsd)
		basic_machine=m68k-hp
		os=-bsd
		;;
	hp300hpux)
		basic_machine=m68k-hp
		os=-hpux
d733 2
a734 1
		basic_machine=hppa1.0-hp
d737 2
a738 1
		basic_machine=m68000-hp
d741 2
a742 1
		basic_machine=m68k-hp
d745 2
a746 1
		basic_machine=hppa1.0-hp
d749 2
a750 1
		basic_machine=hppa1.1-hp
d754 2
a755 1
		basic_machine=hppa1.1-hp
d759 2
a760 1
		basic_machine=hppa1.1-hp
d763 2
a764 1
		basic_machine=hppa1.1-hp
d767 2
a768 15
		basic_machine=hppa1.0-hp
		;;
	hppa-next)
		os=-nextstep3
		;;
	hppaosf)
		basic_machine=hppa1.1-hp
		os=-osf
		;;
	hppro)
		basic_machine=hppa1.1-hp
		os=-proelf
		;;
	i370-ibm* | ibm*)
		basic_machine=i370-ibm
d771 3
a773 2
		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
		os=-sysv32
d776 3
a778 2
		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
		os=-sysv4
d781 3
a783 2
		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
		os=-sysv
d786 8
a793 10
		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
		os=-solaris2
		;;
	i386mach)
		basic_machine=i386-mach
		os=-mach
		;;
	i386-vsta | vsta)
		basic_machine=i386-unknown
		os=-vsta
d796 2
a797 1
		basic_machine=mips-sgi
d799 1
a799 1
		    -irix*)
d802 1
a802 1
			os=-irix4
a805 41
	isi68 | isi)
		basic_machine=m68k-isi
		os=-sysv
		;;
	leon-*|leon[3-9]-*)
		basic_machine=sparc-`echo $basic_machine | sed 's/-.*//'`
		;;
	m68knommu)
		basic_machine=m68k-unknown
		os=-linux
		;;
	m68knommu-*)
		basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
		os=-linux
		;;
	m88k-omron*)
		basic_machine=m88k-omron
		;;
	magnum | m3230)
		basic_machine=mips-mips
		os=-sysv
		;;
	merlin)
		basic_machine=ns32k-utek
		os=-sysv
		;;
	microblaze*)
		basic_machine=microblaze-xilinx
		;;
	mingw64)
		basic_machine=x86_64-pc
		os=-mingw64
		;;
	mingw32)
		basic_machine=i686-pc
		os=-mingw32
		;;
	mingw32ce)
		basic_machine=arm-unknown
		os=-mingw32ce
		;;
d807 2
a808 30
		basic_machine=m68000-convergent
		;;
	*mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
		basic_machine=m68k-atari
		os=-mint
		;;
	mips3*-*)
		basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
		;;
	mips3*)
		basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
		;;
	monitor)
		basic_machine=m68k-rom68k
		os=-coff
		;;
	morphos)
		basic_machine=powerpc-unknown
		os=-morphos
		;;
	moxiebox)
		basic_machine=moxie-unknown
		os=-moxiebox
		;;
	msdos)
		basic_machine=i386-pc
		os=-msdos
		;;
	ms1-*)
		basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
d810 4
a813 31
	msys)
		basic_machine=i686-pc
		os=-msys
		;;
	mvs)
		basic_machine=i370-ibm
		os=-mvs
		;;
	nacl)
		basic_machine=le32-unknown
		os=-nacl
		;;
	ncr3000)
		basic_machine=i486-ncr
		os=-sysv4
		;;
	netbsd386)
		basic_machine=i386-unknown
		os=-netbsd
		;;
	netwinder)
		basic_machine=armv4l-rebel
		os=-linux
		;;
	news | news700 | news800 | news900)
		basic_machine=m68k-sony
		os=-newsos
		;;
	news1000)
		basic_machine=m68030-sony
		os=-newsos
d816 7
a822 9
		basic_machine=mips-sony
		os=-newsos
		;;
	necv70)
		basic_machine=v70-nec
		os=-sysv
		;;
	next | m*-next )
		basic_machine=m68k-next
d824 1
a824 1
		    -nextstep* )
d826 2
a827 2
		    -ns2*)
		      os=-nextstep2
d830 1
a830 1
		      os=-nextstep3
a833 20
	nh3000)
		basic_machine=m68k-harris
		os=-cxux
		;;
	nh[45]000)
		basic_machine=m88k-harris
		os=-cxux
		;;
	nindy960)
		basic_machine=i960-intel
		os=-nindy
		;;
	mon960)
		basic_machine=i960-intel
		os=-mon960
		;;
	nonstopux)
		basic_machine=mips-compaq
		os=-nonstopux
		;;
d835 2
a836 13
		basic_machine=np1-gould
		;;
	neo-tandem)
		basic_machine=neo-tandem
		;;
	nse-tandem)
		basic_machine=nse-tandem
		;;
	nsr-tandem)
		basic_machine=nsr-tandem
		;;
	nsx-tandem)
		basic_machine=nsx-tandem
d839 3
a841 17
		basic_machine=hppa1.1-oki
		os=-proelf
		;;
	openrisc | openrisc-*)
		basic_machine=or32-unknown
		;;
	os400)
		basic_machine=powerpc-ibm
		os=-os400
		;;
	OSE68000 | ose68000)
		basic_machine=m68000-ericsson
		os=-ose
		;;
	os68k)
		basic_machine=m68k-none
		os=-os68k
d844 3
a846 14
		basic_machine=hppa1.1-hitachi
		os=-hiuxwe2
		;;
	paragon)
		basic_machine=i860-intel
		os=-osf
		;;
	parisc)
		basic_machine=hppa-unknown
		os=-linux
		;;
	parisc-*)
		basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
		os=-linux
d849 2
a850 1
		basic_machine=sparc-tti
d853 2
a854 1
		basic_machine=m68k-tti
d856 3
a858 2
	pc532 | pc532-*)
		basic_machine=ns32k-pc532
d860 3
a862 2
	pc98)
		basic_machine=i386-pc
d864 3
a866 2
	pc98-*)
		basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
d868 3
a870 2
	pentium | p5 | k5 | k6 | nexgen | viac3)
		basic_machine=i586-pc
d872 3
a874 2
	pentiumpro | p6 | 6x86 | athlon | athlon_*)
		basic_machine=i686-pc
d876 3
a878 2
	pentiumii | pentium2 | pentiumiii | pentium3)
		basic_machine=i686-pc
d880 9
a888 2
	pentium4)
		basic_machine=i786-pc
d890 3
a892 2
	pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
		basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
d894 3
a896 2
	pentiumpro-* | p6-* | 6x86-* | athlon-*)
		basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
d898 3
a900 2
	pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
		basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
d902 4
a905 2
	pentium4-*)
		basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
d907 3
a909 2
	pn)
		basic_machine=pn-gould
d911 3
a913 1
	power)	basic_machine=power-ibm
d915 3
a917 1
	ppc | ppcbe)	basic_machine=powerpc-unknown
d919 5
a923 2
	ppc-* | ppcbe-*)
		basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
d925 6
a930 2
	ppcle | powerpclittle)
		basic_machine=powerpcle-unknown
d932 5
a936 2
	ppcle-* | powerpclittle-*)
		basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
d938 3
a940 1
	ppc64)	basic_machine=powerpc64-unknown
d942 4
a945 1
	ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
d947 11
a957 2
	ppc64le | powerpc64little)
		basic_machine=powerpc64le-unknown
d959 3
a961 2
	ppc64le-* | powerpc64little-*)
		basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
d963 2
a964 2
	ps2)
		basic_machine=i386-ibm
d966 2
a967 15
	pw32)
		basic_machine=i586-unknown
		os=-pw32
		;;
	rdos | rdos64)
		basic_machine=x86_64-pc
		os=-rdos
		;;
	rdos32)
		basic_machine=i386-pc
		os=-rdos
		;;
	rom68k)
		basic_machine=m68k-rom68k
		os=-coff
d969 2
a970 2
	rm[46]00)
		basic_machine=mips-siemens
d972 2
a973 2
	rtpc | rtpc-*)
		basic_machine=romp-ibm
d975 2
a976 2
	s390 | s390-*)
		basic_machine=s390-ibm
d978 2
a979 2
	s390x | s390x-*)
		basic_machine=s390x-ibm
d981 2
a982 3
	sa29200)
		basic_machine=a29k-amd
		os=-udi
d984 2
a985 2
	sb1)
		basic_machine=mipsisa64sb1-unknown
d987 2
a988 2
	sb1el)
		basic_machine=mipsisa64sb1el-unknown
d990 2
a991 3
	sde)
		basic_machine=mipsisa32-sde
		os=-elf
d993 2
a994 3
	sei)
		basic_machine=mips-sei
		os=-seiux
d996 3
a998 2
	sequent)
		basic_machine=i386-sequent
d1000 6
a1005 3
	sh)
		basic_machine=sh-hitachi
		os=-hms
d1007 4
a1010 2
	sh5el)
		basic_machine=sh5le-unknown
d1012 3
a1014 2
	sh64)
		basic_machine=sh64-unknown
d1016 2
a1017 3
	sparclite-wrs | simso-wrs)
		basic_machine=sparclite-wrs
		os=-vxworks
d1019 2
a1020 3
	sps7)
		basic_machine=m68k-bull
		os=-sysv2
d1022 2
a1023 2
	spur)
		basic_machine=spur-unknown
d1025 3
a1027 2
	st2000)
		basic_machine=m68k-tandem
d1029 2
a1030 3
	stratus)
		basic_machine=i860-stratus
		os=-sysv4
d1032 2
a1033 2
	strongarm-* | thumb-*)
		basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
d1035 3
a1037 2
	sun2)
		basic_machine=m68000-sun
d1039 2
a1040 3
	sun2os3)
		basic_machine=m68000-sun
		os=-sunos3
d1042 2
a1043 3
	sun2os4)
		basic_machine=m68000-sun
		os=-sunos4
d1045 3
a1047 3
	sun3os3)
		basic_machine=m68k-sun
		os=-sunos3
d1049 2
a1050 3
	sun3os4)
		basic_machine=m68k-sun
		os=-sunos4
d1052 2
a1053 3
	sun4os3)
		basic_machine=sparc-sun
		os=-sunos3
d1055 2
a1056 3
	sun4os4)
		basic_machine=sparc-sun
		os=-sunos4
d1058 2
a1059 3
	sun4sol2)
		basic_machine=sparc-sun
		os=-solaris2
d1061 2
a1062 2
	sun3 | sun3-*)
		basic_machine=m68k-sun
d1064 2
a1065 2
	sun4)
		basic_machine=sparc-sun
d1067 2
a1068 2
	sun386 | sun386i | roadrunner)
		basic_machine=i386-sun
d1070 2
a1071 3
	sv1)
		basic_machine=sv1-cray
		os=-unicos
d1073 2
a1074 3
	symmetry)
		basic_machine=i386-sequent
		os=-dynix
d1076 2
a1077 3
	t3e)
		basic_machine=alphaev5-cray
		os=-unicos
d1079 2
a1080 3
	t90)
		basic_machine=t90-cray
		os=-unicos
d1082 2
a1083 3
	tile*)
		basic_machine=$basic_machine-unknown
		os=-linux-gnu
d1085 2
a1086 2
	tx39)
		basic_machine=mipstx39-unknown
d1088 2
a1089 2
	tx39el)
		basic_machine=mipstx39el-unknown
d1091 2
a1092 3
	toad1)
		basic_machine=pdp10-xkl
		os=-tops20
d1094 2
a1095 2
	tower | tower-32)
		basic_machine=m68k-ncr
d1097 2
a1098 56
	tpf)
		basic_machine=s390x-ibm
		os=-tpf
		;;
	udi29k)
		basic_machine=a29k-amd
		os=-udi
		;;
	ultra3)
		basic_machine=a29k-nyu
		os=-sym1
		;;
	v810 | necv810)
		basic_machine=v810-nec
		os=-none
		;;
	vaxv)
		basic_machine=vax-dec
		os=-sysv
		;;
	vms)
		basic_machine=vax-dec
		os=-vms
		;;
	vpp*|vx|vx-*)
		basic_machine=f301-fujitsu
		;;
	vxworks960)
		basic_machine=i960-wrs
		os=-vxworks
		;;
	vxworks68)
		basic_machine=m68k-wrs
		os=-vxworks
		;;
	vxworks29k)
		basic_machine=a29k-wrs
		os=-vxworks
		;;
	wasm32)
		basic_machine=wasm32-unknown
		;;
	w65*)
		basic_machine=w65-wdc
		os=-none
		;;
	w89k-*)
		basic_machine=hppa1.1-winbond
		os=-proelf
		;;
	xbox)
		basic_machine=i686-pc
		os=-mingw32
		;;
	xps | xps100)
		basic_machine=xps100-honeywell
d1101 1
a1101 17
		basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
		;;
	ymp)
		basic_machine=ymp-cray
		os=-unicos
		;;
	z8k-*-coff)
		basic_machine=z8k-unknown
		os=-sim
		;;
	z80-*-coff)
		basic_machine=z80-unknown
		os=-sim
		;;
	none)
		basic_machine=none-none
		os=-none
d1104 4
a1107 4
# Here we handle the default manufacturer of certain CPU types.  It is in
# some cases the only manufacturer, in others, it is the most popular.
	w89k)
		basic_machine=hppa1.1-winbond
d1109 3
a1111 2
	op50n)
		basic_machine=hppa1.1-oki
d1113 3
a1115 2
	op60c)
		basic_machine=hppa1.1-oki
d1117 2
a1118 2
	romp)
		basic_machine=romp-ibm
d1120 3
a1122 2
	mmix)
		basic_machine=mmix-knuth
d1124 3
a1126 2
	rs6000)
		basic_machine=rs6000-ibm
d1128 3
a1130 2
	vax)
		basic_machine=vax-dec
d1132 3
a1134 3
	pdp10)
		# there are many clones, so DEC is not a safe bet
		basic_machine=pdp10-unknown
d1136 3
a1138 2
	pdp11)
		basic_machine=pdp11-dec
d1140 7
a1146 2
	we32k)
		basic_machine=we32k-att
d1148 2
a1149 23
	sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
		basic_machine=sh-unknown
		;;
	sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
		basic_machine=sparc-sun
		;;
	cydra)
		basic_machine=cydra-cydrome
		;;
	orion)
		basic_machine=orion-highlevel
		;;
	orion105)
		basic_machine=clipper-highlevel
		;;
	mac | mpw | mac-mpw)
		basic_machine=m68k-apple
		;;
	pmac | pmac-mpw)
		basic_machine=powerpc-apple
		;;
	*-unknown)
		# Make sure to match an already-canonicalized machine name.
d1151 1
d1153 103
a1255 2
		echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
		exit 1
d1260 3
a1262 3
case $basic_machine in
	*-digital*)
		basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
d1264 2
a1265 2
	*-commodore*)
		basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
d1273 1
a1273 1
if [ x"$os" != x"" ]
d1276 8
a1283 5
	# First match some system type aliases
	# that might get confused with valid system types.
	# -solaris* is a basic system type, with this one exception.
	-auroraux)
		os=-auroraux
d1285 1
a1285 1
	-solaris1 | -solaris1.*)
d1288 2
a1289 2
	-solaris)
		os=-solaris2
d1291 2
a1292 2
	-svr4*)
		os=-sysv4
d1294 2
a1295 2
	-unixware*)
		os=-sysv4.2uw
d1297 34
a1330 2
	-gnu/linux*)
		os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
d1332 1
a1332 1
	# First accept the basic system types.
d1334 30
a1363 29
	# Each alternative MUST END IN A *, to match a version number.
	# -sysv* is not here because it comes later, after sysvr4.
	-gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
	      | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
	      | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
	      | -sym* | -kopensolaris* | -plan9* \
	      | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
	      | -aos* | -aros* | -cloudabi* | -sortix* \
	      | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
	      | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
	      | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
	      | -bitrig* | -openbsd* | -solidbsd* | -libertybsd* \
	      | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
	      | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
	      | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
	      | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
	      | -chorusos* | -chorusrdb* | -cegcc* | -glidix* \
	      | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
	      | -midipix* | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
	      | -linux-newlib* | -linux-musl* | -linux-uclibc* \
	      | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \
	      | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
	      | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
	      | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
	      | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
	      | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
	      | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
	      | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* \
	      | -onefs* | -tirtos* | -phoenix* | -fuchsia* | -redox*)
d1366 3
a1368 3
	-qnx*)
		case $basic_machine in
		    x86-* | i*86-*)
d1371 1
a1371 1
			os=-nto$os
d1375 2
a1376 1
	-nto-qnx*)
d1378 3
a1380 1
	-nto*)
d1383 3
a1385 3
	-sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
	      | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
	      | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
d1387 2
a1388 2
	-mac*)
		os=`echo $os | sed -e 's|mac|macos|'`
d1390 2
a1391 2
	-linux-dietlibc)
		os=-linux-dietlibc
d1393 2
a1394 2
	-linux*)
		os=`echo $os | sed -e 's|linux|linux-gnu|'`
d1396 2
a1397 2
	-sunos5*)
		os=`echo $os | sed -e 's|sunos5|solaris2|'`
d1399 2
a1400 2
	-sunos6*)
		os=`echo $os | sed -e 's|sunos6|solaris3|'`
d1402 2
a1403 2
	-opened*)
		os=-openedition
d1405 2
a1406 2
	-os400*)
		os=-os400
d1408 2
a1409 2
	-wince*)
		os=-wince
d1411 2
a1412 2
	-osfrose*)
		os=-osfrose
d1414 2
a1415 2
	-osf*)
		os=-osf
d1417 2
a1418 2
	-utek*)
		os=-bsd
d1420 2
a1421 2
	-dynix*)
		os=-bsd
d1423 2
a1424 2
	-acis*)
		os=-aos
d1426 2
a1427 2
	-atheos*)
		os=-atheos
d1429 2
a1430 2
	-syllable*)
		os=-syllable
d1432 2
a1433 2
	-386bsd)
		os=-bsd
d1435 2
a1436 2
	-ctix* | -uts*)
		os=-sysv
d1438 2
a1439 2
	-nova*)
		os=-rtmk-nova
d1441 2
a1442 2
	-ns2 )
		os=-nextstep2
d1444 5
a1448 2
	-nsk*)
		os=-nsk
d1451 1
a1451 1
	-sinix5.*)
d1454 2
a1455 2
	-sinix*)
		os=-sysv4
d1457 2
a1458 2
	-tpf*)
		os=-tpf
d1460 2
a1461 2
	-triton*)
		os=-sysv3
d1463 2
a1464 2
	-oss*)
		os=-sysv3
d1466 2
a1467 2
	-svr4)
		os=-sysv4
d1469 2
a1470 2
	-svr3)
		os=-sysv3
d1472 2
a1473 2
	-sysvr4)
		os=-sysv4
d1475 2
a1476 2
	# This must come after -sysvr4.
	-sysv*)
d1478 2
a1479 2
	-ose*)
		os=-ose
d1481 2
a1482 2
	-es1800*)
		os=-ose
d1484 2
a1485 2
	-xenix)
		os=-xenix
d1487 2
a1488 2
	-*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
		os=-mint
d1490 12
a1501 2
	-aros*)
		os=-aros
d1503 1
a1503 2
	-zvmoe)
		os=-zvmoe
d1505 1
a1505 2
	-dicos*)
		os=-dicos
d1507 1
a1507 1
	-nacl*)
d1509 1
a1509 3
	-ios)
		;;
	-none)
d1512 1
a1512 3
		# Get rid of the `-' at the beginning of $os.
		os=`echo $os | sed 's/[^-]*-//'`
		echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
d1528 1
a1528 1
case $basic_machine in
d1530 1
a1530 1
		os=-elf
d1533 1
a1533 1
		os=-elf
d1536 1
a1536 1
		os=-riscix1.2
d1539 1
a1539 1
		os=-linux
d1542 1
a1542 1
		os=-aout
d1545 1
a1545 1
		os=-coff
d1548 4
a1551 1
		os=-elf
d1554 1
a1554 1
		os=-elf
d1557 1
a1557 1
		os=-coff
d1560 1
a1560 1
		os=-coff
d1563 1
a1563 1
		os=-coff
d1567 1
a1567 1
		os=-tops20
d1570 1
a1570 1
		os=-none
d1573 1
a1573 1
		os=-ultrix4.2
d1576 1
a1576 1
		os=-domain
d1579 1
a1579 1
		os=-sunos4.0.2
d1582 1
a1582 1
		os=-sunos3
d1585 1
a1585 1
		os=-aout
d1588 1
a1588 1
		os=-elf
d1591 1
a1591 1
		os=-elf
d1594 1
a1594 1
		os=-elf
d1597 1
a1597 1
		os=-coff
d1600 1
a1600 1
		os=-sysv3
d1603 1
a1603 1
		os=-sunos4.1.1
d1606 1
a1606 1
		os=-elf
d1609 1
a1609 4
		os=-beos
		;;
	*-haiku)
		os=-haiku
d1612 1
a1612 1
		os=-aix
d1615 1
a1615 1
		os=-mmixware
d1618 1
a1618 1
		os=-proelf
d1621 1
a1621 1
		os=-proelf
d1624 1
a1624 1
		os=-proelf
d1627 1
a1627 1
		os=-hpux
d1630 1
a1630 1
		os=-hiux
d1633 1
a1633 1
		os=-sysv
d1636 1
a1636 1
		os=-amigaos
d1639 1
a1639 1
		os=-dgux
d1642 1
a1642 1
		os=-sysv3
d1645 1
a1645 1
		os=-rtu
d1648 1
a1648 1
		os=-luna
d1650 2
a1651 2
	*-next )
		os=-nextstep
d1654 1
a1654 1
		os=-ptx
d1657 1
a1657 1
		os=-unos
d1660 1
a1660 1
		os=-genix
d1663 1
a1663 4
		os=-mvs
		;;
	*-next)
		os=-nextstep3
d1666 1
a1666 1
		os=-sysv
d1669 1
a1669 1
		os=-bsd
d1672 1
a1672 1
		os=-bsd
d1675 1
a1675 1
		os=-irix
d1678 1
a1678 1
		os=-sysv4
d1681 1
a1681 1
		os=-rtu
d1684 1
a1684 1
		os=-uxpv
d1687 1
a1687 1
		os=-coff
d1690 1
a1690 1
		os=-coff
d1693 1
a1693 1
		os=-macos
d1696 4
a1699 1
		os=-mint
d1702 1
a1702 1
		os=-none
d1709 2
a1710 3
vendor=unknown
case $basic_machine in
	*-unknown)
d1712 1
a1712 1
			-riscix*)
d1715 1
a1715 1
			-sunos*)
d1718 1
a1718 1
			-cnk*|-aix*)
d1721 1
a1721 1
			-beos*)
d1724 1
a1724 1
			-hpux*)
d1727 1
a1727 1
			-mpeix*)
d1730 1
a1730 1
			-hiux*)
d1733 1
a1733 1
			-unos*)
d1736 1
a1736 1
			-dgux*)
d1739 1
a1739 1
			-luna*)
d1742 1
a1742 1
			-genix*)
d1745 4
a1748 1
			-mvs* | -opened*)
d1751 1
a1751 1
			-os400*)
d1754 1
a1754 1
			-ptx*)
d1757 1
a1757 1
			-tpf*)
d1760 1
a1760 1
			-vxsim* | -vxworks* | -windiss*)
d1763 1
a1763 1
			-aux*)
d1766 1
a1766 1
			-hms*)
d1769 1
a1769 1
			-mpw* | -macos*)
d1772 1
a1772 1
			-*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
d1775 1
a1775 1
			-vos*)
a1778 1
		basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
d1782 1
a1782 1
echo $basic_machine$os
d1786 1
a1786 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'
d266 1
a266 1
	| i370 | i860 | i960 | ia64 \
d318 1
d392 1
a392 1
	| i*86-* | i860-* | i960-* | ia64-* \
d450 1
d1251 3
@


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-06-20'
d70 1
a70 1
Copyright 1992-2016 Free Software Foundation, Inc.
d120 1
a120 1
  kopensolaris*-gnu* | \
d304 1
d432 1
d951 3
d1038 1
a1038 1
	ppcle | powerpclittle | ppc-le | powerpc-little)
d1048 1
a1048 1
	ppc64le | powerpc64little | ppc64-le | powerpc64-little)
d1403 1
a1403 1
	      | -chorusos* | -chorusrdb* | -cegcc* \
d1415 1
a1415 1
	      | -onefs* | -tirtos* | -phoenix*)
d1644 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'
d28 1
a28 1
# Please send patches with a ChangeLog entry to config-patches@@gnu.org.
d36 1
a36 1
# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
d56 1
a56 2
Usage: $0 [OPTION] CPU-MFR-OPSYS
       $0 [OPTION] ALIAS
d70 1
a70 1
Copyright 1992-2013 Free Software Foundation, Inc.
d119 1
a119 1
  knetbsd*-gnu* | netbsd*-gnu* | \
d254 1
a254 1
	| arc \
d257 1
d260 1
a260 1
	| c4x | clipper \
d262 2
a263 2
	| epiphany \
	| fido | fr30 | frv \
d268 1
d286 1
d289 1
d301 1
a301 2
	| open8 \
	| or32 \
d305 1
d308 1
a308 1
	| sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
d316 1
d331 4
a334 1
	m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip)
d376 1
a376 1
	| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
d379 1
d383 1
a383 1
	| clipper-* | craynv-* | cydra-* \
d385 1
a385 1
	| elxsi-* \
d392 1
d412 1
d415 1
d427 1
d432 1
d438 1
a438 1
	| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
d446 1
d523 3
d646 8
d795 3
d825 1
a825 1
		basic_machine=i386-pc
d853 4
d865 1
a865 1
		basic_machine=i386-pc
d1389 1
a1389 1
	      | -aos* | -aros* \
d1393 1
a1393 1
	      | -bitrig* | -openbsd* | -solidbsd* \
d1400 1
a1400 1
	      | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
d1402 1
a1402 1
	      | -uxpv* | -beos* | -mpeix* | -udk* \
d1409 2
a1410 1
	      | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
d1542 2
d1584 3
@


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-04'
d7 3
a9 7
# This file is (in principle) common to ALL GNU software.
# The presence of a machine in this file suggests that SOME GNU software
# can handle that machine.  It does not imply ALL GNU software can.
#
# 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 2 of the License, or
d12 4
a15 4
# 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.
d18 2
a19 4
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.

d23 3
a25 1
# the same distribution terms that you use for the rest of that program.
d27 2
a28 2
# Please send patches to <config-patches@@gnu.org>.  Submit a context
# diff and a properly formatted ChangeLog entry.
d35 3
d71 1
a71 2
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
Free Software Foundation, Inc.
d83 1
a83 1
       echo "$timestamp" ; exit 0 ;;
d85 1
a85 1
       echo "$version" ; exit 0 ;;
d87 1
a87 1
       echo "$usage"; exit 0 ;;
d99 1
a99 1
       exit 0;;
d118 5
a122 1
  nto-qnx* | linux-gnu* | kfreebsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
d126 4
d152 1
a152 1
	-apple | -axis)
d156 3
d173 2
a174 2
 	-chorusrdb)
 		os=-chorusrdb
d176 1
a176 1
 		;;
d180 4
d200 4
d221 6
d251 1
d254 6
a259 1
	| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
d262 2
a263 1
	| fr30 | frv \
d265 1
d267 5
a271 2
	| ip2k \
	| m32r | m68000 | m68k | m88k | mcore \
d275 3
a278 1
	| mips64orion | mips64orionel \
d282 1
d286 1
d289 1
d292 2
d295 2
d298 2
a299 1
	| openrisc | or32 \
d301 1
a301 1
	| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
d303 3
a305 1
	| sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
d307 6
a312 4
	| sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \
	| strongarm \
	| tahoe | thumb | tic4x | tic80 | tron \
	| v850 | v850e \
d314 2
a315 2
	| x86 | xscale | xstormy16 | xtensa \
	| z8k)
d318 10
a327 2
	m6811 | m68hc11 | m6812 | m68hc12)
		# Motorola 68HC11/12.
d333 18
d366 1
d369 1
a369 1
	| alphapca5[67]-* | alpha64pca5[67]-* | amd64-* | arc-* \
d371 5
a375 4
	| avr-* \
	| bs2000-* \
	| c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
	| clipper-* | cydra-* \
d378 1
a378 1
	| f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
d381 1
d383 4
a386 2
	| ip2k-* \
	| m32r-* \
d388 2
a389 1
	| m88110-* | m88k-* | mcore-* \
d393 3
a396 1
	| mips64orion-* | mips64orionel-* \
d400 1
d404 1
d407 1
d409 2
d412 4
a415 1
	| none-* | np1-* | nv1-* | ns16k-* | ns32k-* \
d418 1
a418 1
	| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
d420 2
a421 2
	| romp-* | rs6000-* \
	| sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
d423 4
a426 3
	| sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
	| sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
	| tahoe-* | thumb-* \
d428 1
d430 3
a432 1
	| v850-* | v850e-* | vax-* \
d434 2
a435 2
	| x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \
	| xtensa-* \
d437 5
a441 1
	| z8k-*)
d459 3
d479 3
d505 4
d517 21
d542 4
d570 8
d581 3
d587 4
d613 8
a731 1
# I'm not sure what "Sysv32" means.  Should this be sysv3.2?
d770 8
d789 7
d800 4
a816 4
	mmix*)
		basic_machine=mmix-knuth
		os=-mmixware
		;;
d829 7
d840 4
d908 5
a912 3
	nv1)
		basic_machine=nv1-cray
		os=-unicosmp
d921 1
a921 1
	or32 | or32-*)
d923 4
a926 1
		os=-coff
d944 8
d961 6
d996 1
a996 1
	ppc)	basic_machine=powerpc-unknown
d998 2
a999 1
	ppc-*)	basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
d1024 8
d1058 4
d1073 3
d1097 3
d1156 3
a1158 11
	tic54x | c54x*)
		basic_machine=tic54x-unknown
		os=-coff
		;;
	tic55x | c55x*)
		basic_machine=tic55x-unknown
		os=-coff
		;;
	tic6x | c6x*)
		basic_machine=tic6x-unknown
		os=-coff
d1173 4
d1220 4
d1227 3
d1238 4
d1261 3
d1280 1
a1280 1
	sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
d1283 1
a1283 4
	sh64)
		basic_machine=sh64-unknown
		;;
	sparc | sparcv9 | sparcv9b)
d1327 2
a1328 2
        # First match some system type aliases
        # that might get confused with valid system types.
d1330 3
d1353 3
a1355 2
	      | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
	      | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
d1357 1
a1357 1
	      | -aos* \
d1360 4
a1363 2
	      | -hiux* | -386bsd* | -netbsd* | -openbsd* | -kfreebsd* | -freebsd* | -riscix* \
	      | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
d1366 5
a1370 3
	      | -chorusos* | -chorusrdb* \
	      | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
	      | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
d1376 2
a1377 1
	      | -powermax* | -dnix* | -nx6 | -nx7 | -sei*)
d1395 1
a1395 1
	      | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
d1401 3
d1416 3
d1440 3
d1465 3
d1501 7
a1507 2
	-kaos*)
		os=-kaos
d1531 6
d1546 15
a1560 3
    c4x-* | tic4x-*)
        os=-coff
        ;;
a1578 3
		# This also exists in the configure program, but was not the
		# default.
		# os=-sunos4
d1583 3
d1604 3
d1610 3
d1715 1
a1715 1
			-aix*)
d1745 3
d1751 3
d1778 1
a1778 1
exit 0
@


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-31'
d24 3
a26 3
# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
# 02110-1301, USA.
#
a31 1

d33 1
a33 1
# diff and a properly formatted GNU ChangeLog entry.
a39 3
# You can get the latest version of this script from:
# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD

d73 2
a74 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.
d86 1
a86 1
       echo "$timestamp" ; exit ;;
d88 1
a88 1
       echo "$version" ; exit ;;
d90 1
a90 1
       echo "$usage"; exit ;;
d102 1
a102 1
       exit ;;
d121 1
a121 4
  nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
  uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
  kopensolaris*-gnu* | \
  storm-chaos* | os2-emx* | rtmk-nova*)
d147 1
a147 1
	-apple | -axis | -knuth | -cray | -microblaze)
a150 3
        -bluegene*)
	        os=-cnk
		;;
a171 4
	-sco6)
		os=-sco5v6
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
		;;
a187 4
	-sco5v6*)
		# Don't forget version if it is 3.2v4 or newer.
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
		;;
d231 1
a231 3
	| am33_2.0 \
	| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
	| bfin \
d234 1
a234 1
	| fido | fr30 | frv \
d237 2
a238 4
	| ip2k | iq2000 \
	| lm32 \
	| m32c | m32r | m32rle | m68000 | m68k | m88k \
	| maxq | mb | microblaze | mcore | mep | metag \
d242 1
a242 1
	| mips64octeon | mips64octeonel \
a243 2
	| mips64r5900 | mips64r5900el \
	| mips64vr | mips64vrel \
a246 1
	| mips64vr5900 | mips64vr5900el \
a249 1
	| mipsisa64r2 | mipsisa64r2el \
a253 2
	| moxie \
	| mt \
a254 1
	| nios | nios2 \
d256 1
a256 1
	| or32 \
d260 1
a260 3
	| rx \
	| score \
	| sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
d262 2
a263 3
	| sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
	| sparcv8 | sparcv9 | sparcv9b | sparcv9v \
	| spu | strongarm \
a264 1
	| ubicom32 \
d267 2
a268 2
	| x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
	| z8k | z80)
d271 1
a271 1
	m6811 | m68hc11 | m6812 | m68hc12 | picochip)
a277 3
	ms1)
		basic_machine=mt-unknown
		;;
d295 1
a295 1
	| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
d297 2
a298 2
	| avr-* | avr32-* \
	| bfin-* | bs2000-* \
d300 1
a300 1
	| clipper-* | craynv-* | cydra-* \
d303 1
a303 1
	| f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
d307 2
a308 3
	| ip2k-* | iq2000-* \
	| lm32-* \
	| m32c-* | m32r-* | m32rle-* \
d310 1
a310 1
	| m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
d314 1
a314 1
	| mips64octeon-* | mips64octeonel-* \
a315 2
	| mips64r5900-* | mips64r5900el-* \
	| mips64vr-* | mips64vrel-* \
a318 1
	| mips64vr5900-* | mips64vr5900el-* \
a321 1
	| mipsisa64r2-* | mipsisa64r2el-* \
a324 2
	| mmix-* \
	| mt-* \
d326 1
a326 2
	| nios-* | nios2-* \
	| none-* | np1-* | ns16k-* | ns32k-* \
d331 2
a332 2
	| romp-* | rs6000-* | rx-* \
	| sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
d334 2
a335 3
	| sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
	| sparclite-* \
	| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
d337 1
a337 1
	| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
a338 1
	| ubicom32-* \
d341 2
a342 2
	| x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
	| xstormy16-* | xtensa*-* \
d344 1
a344 5
	| z8k-* | z80-*)
		;;
	# Recognize the basic CPU types without company name, with glob match.
	xtensa*)
		basic_machine=$basic_machine-unknown
a361 3
    	abacus)
		basic_machine=abacus-unknown
		;;
a378 3
	amd64-*)
		basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
		;;
a401 4
	aros)
		basic_machine=i386-pc
		os=-aros
		;;
a409 12
	blackfin)
		basic_machine=bfin-unknown
		os=-linux
		;;
	blackfin-*)
		basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
		os=-linux
		;;
	bluegene*)
		basic_machine=powerpc-ibm
		os=-cnk
		;;
a413 4
        cegcc)
		basic_machine=arm-unknown
		os=-cegcc
		;;
a437 8
	craynv)
		basic_machine=craynv-cray
		os=-unicosmp
		;;
	cr16)
		basic_machine=cr16-unknown
		os=-elf
		;;
a440 3
	crisv32 | crisv32-* | etraxfs*)
		basic_machine=crisv32-axis
		;;
a443 4
	crx)
		basic_machine=crx-unknown
		os=-elf
		;;
a465 8
	dicos)
		basic_machine=i686-pc
		os=-dicos
		;;
	djgpp)
		basic_machine=i586-pc
		os=-msdosdjgpp
		;;
a615 8
	m68knommu)
		basic_machine=m68k-unknown
		os=-linux
		;;
	m68knommu-*)
		basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
		os=-linux
		;;
a626 3
        microblaze)
		basic_machine=microblaze-xilinx
		;;
a630 4
	mingw32ce)
		basic_machine=arm-unknown
		os=-mingw32ce
		;;
d644 4
a659 3
	ms1-*)
		basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
		;;
d728 4
d739 1
a739 1
	openrisc | openrisc-*)
d741 1
a741 4
		;;
	os400)
		basic_machine=powerpc-ibm
		os=-os400
a758 8
	parisc)
		basic_machine=hppa-unknown
		os=-linux
		;;
	parisc-*)
		basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
		os=-linux
		;;
a767 6
	pc98)
		basic_machine=i386-pc
		;;
	pc98-*)
		basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
		;;
a823 4
	rdos)
		basic_machine=i386-pc
		os=-rdos
		;;
a849 4
	sde)
		basic_machine=mipsisa32-sde
		os=-elf
		;;
a860 3
	sh5el)
		basic_machine=sh5le-unknown
		;;
a949 4
	tile*)
		basic_machine=tile-unknown
		os=-linux-gnu
		;;
a962 4
	tpf)
		basic_machine=s390x-ibm
		os=-tpf
		;;
a1005 4
	xbox)
		basic_machine=i686-pc
		os=-mingw32
		;;
a1016 4
	z80-*-coff)
		basic_machine=z80-unknown
		os=-sim
		;;
a1035 3
	mmix)
		basic_machine=mmix-knuth
		;;
d1052 1
a1052 1
	sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
d1055 4
a1058 1
	sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
a1104 3
        -auroraux)
	        os=-auroraux
		;;
d1125 2
a1126 3
	      | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
	      | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
	      | -sym* | -kopensolaris* \
d1128 1
a1128 1
	      | -aos* | -aros* \
d1131 2
a1132 4
	      | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
	      | -openbsd* | -solidbsd* \
	      | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
	      | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
d1135 1
a1135 1
	      | -chorusos* | -chorusrdb* | -cegcc* \
d1137 1
a1137 2
	      | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
	      | -uxpv* | -beos* | -mpeix* | -udk* \
d1143 1
a1143 2
	      | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
	      | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
d1161 1
a1161 1
	      | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
a1166 3
	-linux-dietlibc)
		os=-linux-dietlibc
		;;
a1178 3
        -os400*)
		os=-os400
		;;
a1199 3
	-syllable*)
		os=-syllable
		;;
a1221 3
        -tpf*)
		os=-tpf
		;;
a1257 8
	-zvmoe)
		os=-zvmoe
		;;
	-dicos*)
		os=-dicos
		;;
        -nacl*)
	        ;;
a1279 6
        score-*)
		os=-elf
		;;
        spu-*)
		os=-elf
		;;
d1289 3
a1291 3
        c4x-* | tic4x-*)
        	os=-coff
		;;
a1316 3
        mep-*)
		os=-elf
		;;
a1334 3
	*-haiku)
		os=-haiku
		;;
a1337 3
    	*-knuth)
		os=-mmixware
		;;
d1440 1
a1440 1
			-cnk*|-aix*)
a1469 3
			-os400*)
				vendor=ibm
				;;
a1472 3
			-tpf*)
				vendor=ibm
				;;
d1497 1
a1497 1
exit
@


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-04'
d25 3
a27 3
# Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.

d33 1
d35 1
a35 1
# diff and a properly formatted ChangeLog entry.
d42 3
d78 3
a80 2
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
Free Software Foundation, Inc.
d92 1
a92 1
       echo "$timestamp" ; exit 0 ;;
d94 1
a94 1
       echo "$version" ; exit 0 ;;
d96 1
a96 1
       echo "$usage"; exit 0 ;;
d108 1
a108 1
       exit 0;;
d127 4
a130 1
  nto-qnx* | linux-gnu* | kfreebsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
d156 1
a156 1
	-apple | -axis)
d160 3
d184 4
d204 4
d251 3
a253 1
	| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
d256 1
a256 1
	| fr30 | frv \
d259 4
a262 2
	| ip2k \
	| m32r | m68000 | m68k | m88k | mcore \
d266 3
a269 1
	| mips64orion | mips64orionel \
d273 1
d277 1
d282 2
d285 1
d287 1
a287 1
	| openrisc | or32 \
d291 3
a293 1
	| sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
d295 3
a297 2
	| sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \
	| strongarm \
d299 1
d302 2
a303 2
	| x86 | xscale | xstormy16 | xtensa \
	| z8k)
d306 1
a306 1
	m6811 | m68hc11 | m6812 | m68hc12)
d313 3
d333 1
a333 1
	| alphapca5[67]-* | alpha64pca5[67]-* | amd64-* | arc-* \
d335 2
a336 2
	| avr-* \
	| bs2000-* \
d338 1
a338 1
	| clipper-* | cydra-* \
d341 1
a341 1
	| f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
d345 3
a347 2
	| ip2k-* \
	| m32r-* \
d349 1
a349 1
	| m88110-* | m88k-* | mcore-* \
d353 3
a356 1
	| mips64orion-* | mips64orionel-* \
d360 1
d364 1
d368 2
d371 2
a372 1
	| none-* | np1-* | nv1-* | ns16k-* | ns32k-* \
d377 2
a378 2
	| romp-* | rs6000-* \
	| sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
d380 3
a382 2
	| sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
	| sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
d384 1
a384 1
	| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
d386 1
d389 2
a390 2
	| x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \
	| xtensa-* \
d392 5
a396 1
	| z8k-*)
d414 3
d434 3
d460 4
d472 12
d488 4
d516 8
d527 3
d533 4
d559 8
d717 8
d736 3
d743 4
a759 4
	mmix*)
		basic_machine=mmix-knuth
		os=-mmixware
		;;
d772 3
a842 4
	nv1)
		basic_machine=nv1-cray
		os=-unicosmp
		;;
d850 1
a850 1
	or32 | or32-*)
d852 4
a855 1
		os=-coff
d873 8
d890 6
d952 4
d982 4
d997 3
d1089 4
d1106 4
d1153 4
d1168 4
d1191 3
d1210 1
a1210 1
	sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
d1213 1
a1213 4
	sh64)
		basic_machine=sh64-unknown
		;;
	sparc | sparcv9 | sparcv9b)
d1260 3
d1283 3
a1285 2
	      | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
	      | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
d1287 1
a1287 1
	      | -aos* \
d1290 4
a1293 2
	      | -hiux* | -386bsd* | -netbsd* | -openbsd* | -kfreebsd* | -freebsd* | -riscix* \
	      | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
d1296 1
a1296 1
	      | -chorusos* | -chorusrdb* \
d1298 2
a1299 1
	      | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
d1305 2
a1306 1
	      | -powermax* | -dnix* | -nx6 | -nx7 | -sei*)
d1324 1
a1324 1
	      | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
d1330 3
d1345 3
d1369 3
d1394 3
d1433 8
d1463 6
d1478 3
a1480 3
    c4x-* | tic4x-*)
        os=-coff
        ;;
d1506 3
d1527 3
d1533 3
d1638 1
a1638 1
			-aix*)
d1668 3
d1674 3
d1701 1
a1701 1
exit 0
@


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-31'
d24 3
a26 3
# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
# 02110-1301, USA.
#
a31 1

d33 1
a33 1
# diff and a properly formatted GNU ChangeLog entry.
a39 3
# You can get the latest version of this script from:
# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD

d73 2
a74 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.
d86 1
a86 1
       echo "$timestamp" ; exit ;;
d88 1
a88 1
       echo "$version" ; exit ;;
d90 1
a90 1
       echo "$usage"; exit ;;
d102 1
a102 1
       exit ;;
d121 1
a121 4
  nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
  uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
  kopensolaris*-gnu* | \
  storm-chaos* | os2-emx* | rtmk-nova*)
d147 1
a147 1
	-apple | -axis | -knuth | -cray | -microblaze)
a150 3
        -bluegene*)
	        os=-cnk
		;;
a171 4
	-sco6)
		os=-sco5v6
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
		;;
a187 4
	-sco5v6*)
		# Don't forget version if it is 3.2v4 or newer.
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
		;;
d231 1
a231 3
	| am33_2.0 \
	| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
	| bfin \
d234 1
a234 1
	| fido | fr30 | frv \
d237 2
a238 4
	| ip2k | iq2000 \
	| lm32 \
	| m32c | m32r | m32rle | m68000 | m68k | m88k \
	| maxq | mb | microblaze | mcore | mep | metag \
d242 1
a242 1
	| mips64octeon | mips64octeonel \
a243 2
	| mips64r5900 | mips64r5900el \
	| mips64vr | mips64vrel \
a246 1
	| mips64vr5900 | mips64vr5900el \
a249 1
	| mipsisa64r2 | mipsisa64r2el \
a253 2
	| moxie \
	| mt \
a254 1
	| nios | nios2 \
d256 1
a256 1
	| or32 \
d260 1
a260 3
	| rx \
	| score \
	| sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
d262 2
a263 3
	| sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
	| sparcv8 | sparcv9 | sparcv9b | sparcv9v \
	| spu | strongarm \
a264 1
	| ubicom32 \
d267 2
a268 2
	| x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
	| z8k | z80)
d271 1
a271 1
	m6811 | m68hc11 | m6812 | m68hc12 | picochip)
a277 3
	ms1)
		basic_machine=mt-unknown
		;;
d295 1
a295 1
	| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
d297 2
a298 2
	| avr-* | avr32-* \
	| bfin-* | bs2000-* \
d300 1
a300 1
	| clipper-* | craynv-* | cydra-* \
d303 1
a303 1
	| f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
d307 2
a308 3
	| ip2k-* | iq2000-* \
	| lm32-* \
	| m32c-* | m32r-* | m32rle-* \
d310 1
a310 1
	| m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
d314 1
a314 1
	| mips64octeon-* | mips64octeonel-* \
a315 2
	| mips64r5900-* | mips64r5900el-* \
	| mips64vr-* | mips64vrel-* \
a318 1
	| mips64vr5900-* | mips64vr5900el-* \
a321 1
	| mipsisa64r2-* | mipsisa64r2el-* \
a324 2
	| mmix-* \
	| mt-* \
d326 1
a326 2
	| nios-* | nios2-* \
	| none-* | np1-* | ns16k-* | ns32k-* \
d331 2
a332 2
	| romp-* | rs6000-* | rx-* \
	| sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
d334 2
a335 3
	| sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
	| sparclite-* \
	| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
d337 1
a337 1
	| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
a338 1
	| ubicom32-* \
d341 2
a342 2
	| x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
	| xstormy16-* | xtensa*-* \
d344 1
a344 5
	| z8k-* | z80-*)
		;;
	# Recognize the basic CPU types without company name, with glob match.
	xtensa*)
		basic_machine=$basic_machine-unknown
a361 3
    	abacus)
		basic_machine=abacus-unknown
		;;
a378 3
	amd64-*)
		basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
		;;
a401 4
	aros)
		basic_machine=i386-pc
		os=-aros
		;;
a409 12
	blackfin)
		basic_machine=bfin-unknown
		os=-linux
		;;
	blackfin-*)
		basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
		os=-linux
		;;
	bluegene*)
		basic_machine=powerpc-ibm
		os=-cnk
		;;
a413 4
        cegcc)
		basic_machine=arm-unknown
		os=-cegcc
		;;
a437 8
	craynv)
		basic_machine=craynv-cray
		os=-unicosmp
		;;
	cr16)
		basic_machine=cr16-unknown
		os=-elf
		;;
a440 3
	crisv32 | crisv32-* | etraxfs*)
		basic_machine=crisv32-axis
		;;
a443 4
	crx)
		basic_machine=crx-unknown
		os=-elf
		;;
a465 8
	dicos)
		basic_machine=i686-pc
		os=-dicos
		;;
	djgpp)
		basic_machine=i586-pc
		os=-msdosdjgpp
		;;
a615 8
	m68knommu)
		basic_machine=m68k-unknown
		os=-linux
		;;
	m68knommu-*)
		basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
		os=-linux
		;;
a626 3
        microblaze)
		basic_machine=microblaze-xilinx
		;;
a630 4
	mingw32ce)
		basic_machine=arm-unknown
		os=-mingw32ce
		;;
d644 4
a659 3
	ms1-*)
		basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
		;;
d728 4
d739 1
a739 1
	openrisc | openrisc-*)
d741 1
a741 4
		;;
	os400)
		basic_machine=powerpc-ibm
		os=-os400
a758 8
	parisc)
		basic_machine=hppa-unknown
		os=-linux
		;;
	parisc-*)
		basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
		os=-linux
		;;
a767 6
	pc98)
		basic_machine=i386-pc
		;;
	pc98-*)
		basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
		;;
a823 4
	rdos)
		basic_machine=i386-pc
		os=-rdos
		;;
a849 4
	sde)
		basic_machine=mipsisa32-sde
		os=-elf
		;;
a860 3
	sh5el)
		basic_machine=sh5le-unknown
		;;
a949 4
	tile*)
		basic_machine=tile-unknown
		os=-linux-gnu
		;;
a962 4
	tpf)
		basic_machine=s390x-ibm
		os=-tpf
		;;
a1005 4
	xbox)
		basic_machine=i686-pc
		os=-mingw32
		;;
a1016 4
	z80-*-coff)
		basic_machine=z80-unknown
		os=-sim
		;;
a1035 3
	mmix)
		basic_machine=mmix-knuth
		;;
d1052 1
a1052 1
	sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
d1055 4
a1058 1
	sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
a1104 3
        -auroraux)
	        os=-auroraux
		;;
d1125 2
a1126 3
	      | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
	      | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
	      | -sym* | -kopensolaris* \
d1128 1
a1128 1
	      | -aos* | -aros* \
d1131 2
a1132 4
	      | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
	      | -openbsd* | -solidbsd* \
	      | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
	      | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
d1135 1
a1135 1
	      | -chorusos* | -chorusrdb* | -cegcc* \
d1137 1
a1137 2
	      | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
	      | -uxpv* | -beos* | -mpeix* | -udk* \
d1143 1
a1143 2
	      | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
	      | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
d1161 1
a1161 1
	      | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
a1166 3
	-linux-dietlibc)
		os=-linux-dietlibc
		;;
a1178 3
        -os400*)
		os=-os400
		;;
a1199 3
	-syllable*)
		os=-syllable
		;;
a1221 3
        -tpf*)
		os=-tpf
		;;
a1257 8
	-zvmoe)
		os=-zvmoe
		;;
	-dicos*)
		os=-dicos
		;;
        -nacl*)
	        ;;
a1279 6
        score-*)
		os=-elf
		;;
        spu-*)
		os=-elf
		;;
d1289 3
a1291 3
        c4x-* | tic4x-*)
        	os=-coff
		;;
a1316 3
        mep-*)
		os=-elf
		;;
a1334 3
	*-haiku)
		os=-haiku
		;;
a1337 3
    	*-knuth)
		os=-mmixware
		;;
d1440 1
a1440 1
			-cnk*|-aix*)
a1469 3
			-os400*)
				vendor=ibm
				;;
a1472 3
			-tpf*)
				vendor=ibm
				;;
d1497 1
a1497 1
exit
@


1.1.1.5
log
@Import libarchive-3.2.1:
- security fixes and other bugfixes
- support for multhreading in xz 5.2+
@
text
@d3 13
a15 7
#   Copyright 1992-2016 Free Software Foundation, Inc.

timestamp='2016-06-20'

# 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
d18 4
a21 4
# 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.
d24 3
a26 1
# along with this program; if not, see <http://www.gnu.org/licenses/>.
d31 1
a31 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 2
a35 1
# Please send patches to <config-patches@@gnu.org>.
d43 1
a43 1
# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
d63 2
a64 1
Usage: $0 [OPTION] CPU-MFR-OPSYS or ALIAS
d78 3
a80 1
Copyright 1992-2016 Free Software Foundation, Inc.
d127 2
a128 3
  nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
  linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
  knetbsd*-gnu* | netbsd*-gnu* | netbsd*-eabi* | \
a133 4
  android-linux)
    os=-linux-android
    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
    ;;
d156 1
a156 1
	-apple | -axis | -knuth | -cray | -microblaze*)
d160 2
a161 2
	-bluegene*)
		os=-cnk
d177 2
a178 2
	-chorusrdb)
		os=-chorusrdb
d180 1
a180 1
		;;
a224 6
	-lynx*178)
		os=-lynxos178
		;;
	-lynx*5)
		os=-lynxos5
		;;
a248 1
	| aarch64 | aarch64_be \
d252 1
a252 5
	| arc | arceb \
	| arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \
	| avr | avr32 \
	| ba \
	| be32 | be64 \
d254 1
a254 1
	| c4x | c8051 | clipper \
d256 1
a256 2
	| e2k | epiphany \
	| fido | fr30 | frv | ft32 \
a257 1
	| hexagon \
a259 2
	| k1om \
	| le32 | le64 \
d262 1
a262 1
	| maxq | mb | microblaze | microblazeel | mcore | mep | metag \
a275 1
	| mipsisa32r6 | mipsisa32r6el \
a277 1
	| mipsisa64r6 | mipsisa64r6el \
a279 1
	| mipsr5900 | mipsr5900el \
d285 1
a285 2
	| nds32 | nds32le | nds32be \
	| nios | nios2 | nios2eb | nios2el \
d287 1
a287 1
	| open8 | or1k | or1knd | or32 \
d289 1
a289 1
	| powerpc | powerpc64 | powerpc64le | powerpcle \
d291 1
a291 2
	| riscv32 | riscv64 \
	| rl78 | rx \
d293 1
a293 1
	| sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[234]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
d297 2
a298 2
	| spu \
	| tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
d300 1
a300 2
	| v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
	| visium \
d302 1
a302 1
	| x86 | xc16x | xstormy16 | xtensa \
d306 2
a307 13
	c54x)
		basic_machine=tic54x-unknown
		;;
	c55x)
		basic_machine=tic55x-unknown
		;;
	c6x)
		basic_machine=tic6x-unknown
		;;
	leon|leon[3-9])
		basic_machine=sparc-$basic_machine
		;;
	m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip)
a316 15
	strongarm | thumb | xscale)
		basic_machine=arm-unknown
		;;
	xgate)
		basic_machine=$basic_machine-unknown
		os=-none
		;;
	xscaleeb)
		basic_machine=armeb-unknown
		;;

	xscaleel)
		basic_machine=armel-unknown
		;;

a330 1
	| aarch64-* | aarch64_be-* \
d333 1
a333 1
	| alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \
a335 2
	| ba-* \
	| be32-* | be64-* \
d337 2
a338 2
	| c[123]* | c30-* | [cjt]90-* | c4x-* \
	| c8051-* | clipper-* | craynv-* | cydra-* \
d340 1
a340 1
	| e2k-* | elxsi-* \
a343 1
	| hexagon-* \
a345 2
	| k1om-* \
	| le32-* | le64-* \
d349 1
a349 2
	| m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
	| microblaze-* | microblazeel-* \
a362 1
	| mipsisa32r6-* | mipsisa32r6el-* \
a364 1
	| mipsisa64r6-* | mipsisa64r6el-* \
a366 1
	| mipsr5900-* | mipsr5900el-* \
d371 1
a371 2
	| nds32-* | nds32le-* | nds32be-* \
	| nios-* | nios2-* | nios2eb-* | nios2el-* \
a372 2
	| open8-* \
	| or1k*-* \
d375 1
a375 1
	| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
d377 1
a377 2
	| riscv32-* | riscv64-* \
	| rl78-* | romp-* | rs6000-* | rx-* \
d382 3
a384 4
	| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx*-* \
	| tahoe-* \
	| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
	| tile*-* \
d387 1
a387 3
	| v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
	| vax-* \
	| visium-* \
d389 1
a389 1
	| x86-* | x86_64-* | xc16x-* | xps100-* \
d414 1
a414 1
	abacus)
a463 3
	asmjs)
		basic_machine=asmjs-unknown
		;;
a483 9
	c54x-*)
		basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
		;;
	c55x-*)
		basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
		;;
	c6x-*)
		basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
		;;
d488 1
a488 1
	cegcc)
d520 1
a520 1
	cr16 | cr16-*)
a574 8
	e500v[12])
		basic_machine=powerpc-unknown
		os=$os"spe"
		;;
	e500v[12]-*)
		basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
		os=$os"spe"
		;;
d678 1
a716 3
	leon-*|leon[3-9]-*)
		basic_machine=sparc-`echo $basic_machine | sed 's/-.*//'`
		;;
d736 1
a736 1
	microblaze*)
a738 4
	mingw64)
		basic_machine=x86_64-pc
		os=-mingw64
		;;
d740 1
a740 1
		basic_machine=i686-pc
a767 4
	moxiebox)
		basic_machine=moxie-unknown
		os=-moxiebox
		;;
a774 4
	msys)
		basic_machine=i686-pc
		os=-msys
		;;
a778 4
	nacl)
		basic_machine=le32-unknown
		os=-nacl
		;;
a842 6
	neo-tandem)
		basic_machine=neo-tandem
		;;
	nse-tandem)
		basic_machine=nse-tandem
		;;
d925 1
a925 1
	ppc | ppcbe)	basic_machine=powerpc-unknown
d927 1
a927 2
	ppc-* | ppcbe-*)
		basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
d952 1
a952 5
	rdos | rdos64)
		basic_machine=x86_64-pc
		os=-rdos
		;;
	rdos32)
a1020 3
	strongarm-* | thumb-*)
		basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
		;;
d1077 12
d1090 1
a1090 1
		basic_machine=$basic_machine-unknown
a1159 3
	xscale-* | xscalee[bl]-*)
		basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
		;;
d1257 2
a1258 2
	# First match some system type aliases
	# that might get confused with valid system types.
d1260 2
a1261 2
	-auroraux)
		os=-auroraux
d1285 1
a1285 1
	      | -sym* | -kopensolaris* | -plan9* \
d1287 1
a1287 1
	      | -aos* | -aros* | -cloudabi* | -sortix* \
d1291 1
a1291 1
	      | -bitrig* | -openbsd* | -solidbsd* | -libertybsd* \
d1297 3
a1299 4
	      | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
	      | -midipix* | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
	      | -linux-newlib* | -linux-musl* | -linux-uclibc* \
	      | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \
d1306 1
a1306 2
	      | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* \
	      | -onefs* | -tirtos* | -phoenix*)
d1345 1
a1345 1
	-os400*)
d1394 1
a1394 1
	-tpf*)
d1430 3
d1439 2
a1440 4
	-nacl*)
		;;
	-ios)
		;;
d1463 1
a1463 1
	score-*)
d1466 1
a1466 1
	spu-*)
d1478 2
a1479 17
	c4x-* | tic4x-*)
		os=-coff
		;;
	c8051-*)
		os=-elf
		;;
	hexagon-*)
		os=-elf
		;;
	tic54x-*)
		os=-coff
		;;
	tic55x-*)
		os=-coff
		;;
	tic6x-*)
		os=-coff
d1499 3
d1506 1
a1506 1
	mep-*)
d1533 1
a1533 1
	*-knuth)
@


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'
d70 1
a70 1
Copyright 1992-2017 Free Software Foundation, Inc.
d120 1
a120 1
  kopensolaris*-gnu* | cloudabi*-eabi* | \
a303 1
	| pru \
a430 1
	| pru-* \
a948 3
	nsx-tandem)
		basic_machine=nsx-tandem
		;;
d1033 1
a1033 1
	ppcle | powerpclittle)
d1043 1
a1043 1
	ppc64le | powerpc64little)
d1398 1
a1398 1
	      | -chorusos* | -chorusrdb* | -cegcc* | -glidix* \
d1410 1
a1410 1
	      | -onefs* | -tirtos* | -phoenix* | -fuchsia* | -redox*)
a1638 3
	pru-*)
		os=-elf
		;;
@


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-04-02'
d266 1
a266 1
	| i370 | i860 | i960 | ia16 | ia64 \
a317 1
	| wasm32 \
d391 1
a391 1
	| i*86-* | i860-* | i960-* | ia16-* | ia64-* \
a448 1
	| wasm32-* \
a1248 3
	wasm32)
		basic_machine=wasm32-unknown
		;;
@


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/>.
d36 1
a36 1
# https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
d60 1
a60 1
Options:
d70 1
a70 1
Copyright 1992-2018 Free Software Foundation, Inc.
d97 1
a97 1
       echo "$1"
d113 115
a227 10
# Split fields of configuration type
IFS="-" read -r field1 field2 field3 field4 <<EOF
$1
EOF

# Separate into logical components for further validation
case $1 in
	*-*-*-*-*)
		echo Invalid configuration \`"$1"\': more than four components >&2
		exit 1
d229 2
a230 3
	*-*-*-*)
		basic_machine=$field1-$field2
		os=$field3-$field4
d232 2
a233 22
	*-*-*)
		# Ambiguous whether COMPANY is present, or skipped and KERNEL-OS is two
		# parts
		maybe_os=$field2-$field3
		case $maybe_os in
			nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc \
			| linux-newlib* | linux-musl* | linux-uclibc* | uclinux-uclibc* \
			| uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* \
			| netbsd*-eabi* | kopensolaris*-gnu* | cloudabi*-eabi* \
			| storm-chaos* | os2-emx* | rtmk-nova*)
				basic_machine=$field1
				os=$maybe_os
				;;
			android-linux)
				basic_machine=$field1-unknown
				os=linux-android
				;;
			*)
				basic_machine=$field1-$field2
				os=$field3
				;;
		esac
d235 2
a236 35
	*-*)
		# A lone config we happen to match not fitting any patern
		case $field1-$field2 in
			decstation-3100)
				basic_machine=mips-dec
				os=
				;;
			*-*)
				# Second component is usually, but not always the OS
				case $field2 in
					# Prevent following clause from handling this valid os
					sun*os*)
						basic_machine=$field1
						os=$field2
						;;
					# Manufacturers
					dec* | mips* | sequent* | encore* | pc533* | sgi* | sony* \
					| att* | 7300* | 3300* | delta* | motorola* | sun[234]* \
					| unicom* | ibm* | next | hp | isi* | apollo | altos* \
					| convergent* | ncr* | news | 32* | 3600* | 3100* \
					| hitachi* | c[123]* | convex* | sun | crds | omron* | dg \
					| ultra | tti* | harris | dolphin | highlevel | gould \
					| cbm | ns | masscomp | apple | axis | knuth | cray \
					| microblaze* | sim | cisco \
					| oki | wec | wrs | winbond)
						basic_machine=$field1-$field2
						os=
						;;
					*)
						basic_machine=$field1
						os=$field2
						;;
				esac
			;;
		esac
d238 3
a240 452
	*)
		# Convert single-component short-hands not valid as part of
		# multi-component configurations.
		case $field1 in
			386bsd)
				basic_machine=i386-pc
				os=bsd
				;;
			a29khif)
				basic_machine=a29k-amd
				os=udi
				;;
			adobe68k)
				basic_machine=m68010-adobe
				os=scout
				;;
			alliant)
				basic_machine=fx80-alliant
				os=
				;;
			altos | altos3068)
				basic_machine=m68k-altos
				os=
				;;
			am29k)
				basic_machine=a29k-none
				os=bsd
				;;
			amdahl)
				basic_machine=580-amdahl
				os=sysv
				;;
			amiga)
				basic_machine=m68k-unknown
				os=
				;;
			amigaos | amigados)
				basic_machine=m68k-unknown
				os=amigaos
				;;
			amigaunix | amix)
				basic_machine=m68k-unknown
				os=sysv4
				;;
			apollo68)
				basic_machine=m68k-apollo
				os=sysv
				;;
			apollo68bsd)
				basic_machine=m68k-apollo
				os=bsd
				;;
			aros)
				basic_machine=i386-pc
				os=aros
				;;
			aux)
				basic_machine=m68k-apple
				os=aux
				;;
			balance)
				basic_machine=ns32k-sequent
				os=dynix
				;;
			blackfin)
				basic_machine=bfin-unknown
				os=linux
				;;
			cegcc)
				basic_machine=arm-unknown
				os=cegcc
				;;
			convex-c1)
				basic_machine=c1-convex
				os=bsd
				;;
			convex-c2)
				basic_machine=c2-convex
				os=bsd
				;;
			convex-c32)
				basic_machine=c32-convex
				os=bsd
				;;
			convex-c34)
				basic_machine=c34-convex
				os=bsd
				;;
			convex-c38)
				basic_machine=c38-convex
				os=bsd
				;;
			cray)
				basic_machine=j90-cray
				os=unicos
				;;
			crds | unos)
				basic_machine=m68k-crds
				os=
				;;
			da30)
				basic_machine=m68k-da30
				os=
				;;
			decstation | pmax | pmin | dec3100 | decstatn)
				basic_machine=mips-dec
				os=
				;;
			delta88)
				basic_machine=m88k-motorola
				os=sysv3
				;;
			dicos)
				basic_machine=i686-pc
				os=dicos
				;;
			djgpp)
				basic_machine=i586-pc
				os=msdosdjgpp
				;;
			ebmon29k)
				basic_machine=a29k-amd
				os=ebmon
				;;
			es1800 | OSE68k | ose68k | ose | OSE)
				basic_machine=m68k-ericsson
				os=ose
				;;
			gmicro)
				basic_machine=tron-gmicro
				os=sysv
				;;
			go32)
				basic_machine=i386-pc
				os=go32
				;;
			h8300hms)
				basic_machine=h8300-hitachi
				os=hms
				;;
			h8300xray)
				basic_machine=h8300-hitachi
				os=xray
				;;
			h8500hms)
				basic_machine=h8500-hitachi
				os=hms
				;;
			harris)
				basic_machine=m88k-harris
				os=sysv3
				;;
			hp300)
				basic_machine=m68k-hp
				;;
			hp300bsd)
				basic_machine=m68k-hp
				os=bsd
				;;
			hp300hpux)
				basic_machine=m68k-hp
				os=hpux
				;;
			hppaosf)
				basic_machine=hppa1.1-hp
				os=osf
				;;
			hppro)
				basic_machine=hppa1.1-hp
				os=proelf
				;;
			i386mach)
				basic_machine=i386-mach
				os=mach
				;;
			vsta)
				basic_machine=i386-pc
				os=vsta
				;;
			isi68 | isi)
				basic_machine=m68k-isi
				os=sysv
				;;
			m68knommu)
				basic_machine=m68k-unknown
				os=linux
				;;
			magnum | m3230)
				basic_machine=mips-mips
				os=sysv
				;;
			merlin)
				basic_machine=ns32k-utek
				os=sysv
				;;
			mingw64)
				basic_machine=x86_64-pc
				os=mingw64
				;;
			mingw32)
				basic_machine=i686-pc
				os=mingw32
				;;
			mingw32ce)
				basic_machine=arm-unknown
				os=mingw32ce
				;;
			monitor)
				basic_machine=m68k-rom68k
				os=coff
				;;
			morphos)
				basic_machine=powerpc-unknown
				os=morphos
				;;
			moxiebox)
				basic_machine=moxie-unknown
				os=moxiebox
				;;
			msdos)
				basic_machine=i386-pc
				os=msdos
				;;
			msys)
				basic_machine=i686-pc
				os=msys
				;;
			mvs)
				basic_machine=i370-ibm
				os=mvs
				;;
			nacl)
				basic_machine=le32-unknown
				os=nacl
				;;
			ncr3000)
				basic_machine=i486-ncr
				os=sysv4
				;;
			netbsd386)
				basic_machine=i386-pc
				os=netbsd
				;;
			netwinder)
				basic_machine=armv4l-rebel
				os=linux
				;;
			news | news700 | news800 | news900)
				basic_machine=m68k-sony
				os=newsos
				;;
			news1000)
				basic_machine=m68030-sony
				os=newsos
				;;
			necv70)
				basic_machine=v70-nec
				os=sysv
				;;
			nh3000)
				basic_machine=m68k-harris
				os=cxux
				;;
			nh[45]000)
				basic_machine=m88k-harris
				os=cxux
				;;
			nindy960)
				basic_machine=i960-intel
				os=nindy
				;;
			mon960)
				basic_machine=i960-intel
				os=mon960
				;;
			nonstopux)
				basic_machine=mips-compaq
				os=nonstopux
				;;
			os400)
				basic_machine=powerpc-ibm
				os=os400
				;;
			OSE68000 | ose68000)
				basic_machine=m68000-ericsson
				os=ose
				;;
			os68k)
				basic_machine=m68k-none
				os=os68k
				;;
			paragon)
				basic_machine=i860-intel
				os=osf
				;;
			parisc)
				basic_machine=hppa-unknown
				os=linux
				;;
			pw32)
				basic_machine=i586-unknown
				os=pw32
				;;
			rdos | rdos64)
				basic_machine=x86_64-pc
				os=rdos
				;;
			rdos32)
				basic_machine=i386-pc
				os=rdos
				;;
			rom68k)
				basic_machine=m68k-rom68k
				os=coff
				;;
			sa29200)
				basic_machine=a29k-amd
				os=udi
				;;
			sei)
				basic_machine=mips-sei
				os=seiux
				;;
			sequent)
				basic_machine=i386-sequent
				os=
				;;
			sps7)
				basic_machine=m68k-bull
				os=sysv2
				;;
			st2000)
				basic_machine=m68k-tandem
				os=
				;;
			stratus)
				basic_machine=i860-stratus
				os=sysv4
				;;
			sun2)
				basic_machine=m68000-sun
				os=
				;;
			sun2os3)
				basic_machine=m68000-sun
				os=sunos3
				;;
			sun2os4)
				basic_machine=m68000-sun
				os=sunos4
				;;
			sun3)
				basic_machine=m68k-sun
				os=
				;;
			sun3os3)
				basic_machine=m68k-sun
				os=sunos3
				;;
			sun3os4)
				basic_machine=m68k-sun
				os=sunos4
				;;
			sun4)
				basic_machine=sparc-sun
				os=
				;;
			sun4os3)
				basic_machine=sparc-sun
				os=sunos3
				;;
			sun4os4)
				basic_machine=sparc-sun
				os=sunos4
				;;
			sun4sol2)
				basic_machine=sparc-sun
				os=solaris2
				;;
			sun386 | sun386i | roadrunner)
				basic_machine=i386-sun
				os=
				;;
			sv1)
				basic_machine=sv1-cray
				os=unicos
				;;
			symmetry)
				basic_machine=i386-sequent
				os=dynix
				;;
			t3e)
				basic_machine=alphaev5-cray
				os=unicos
				;;
			t90)
				basic_machine=t90-cray
				os=unicos
				;;
			toad1)
				basic_machine=pdp10-xkl
				os=tops20
				;;
			tpf)
				basic_machine=s390x-ibm
				os=tpf
				;;
			udi29k)
				basic_machine=a29k-amd
				os=udi
				;;
			ultra3)
				basic_machine=a29k-nyu
				os=sym1
				;;
			v810 | necv810)
				basic_machine=v810-nec
				os=none
				;;
			vaxv)
				basic_machine=vax-dec
				os=sysv
				;;
			vms)
				basic_machine=vax-dec
				os=vms
				;;
			vxworks960)
				basic_machine=i960-wrs
				os=vxworks
				;;
			vxworks68)
				basic_machine=m68k-wrs
				os=vxworks
				;;
			vxworks29k)
				basic_machine=a29k-wrs
				os=vxworks
				;;
			xbox)
				basic_machine=i686-pc
				os=mingw32
				;;
			ymp)
				basic_machine=ymp-cray
				os=unicos
				;;
			*)
				basic_machine=$1
				os=
				;;
		esac
d244 1
a244 1
# Decode 1-component or ad-hoc basic machines
d246 93
a338 5
	# Here we handle the default manufacturer of certain CPU types.  It is in
	# some cases the only manufacturer, in others, it is the most popular.
	w89k)
		cpu=hppa1.1
		vendor=winbond
d340 1
a340 3
	op50n)
		cpu=hppa1.1
		vendor=oki
d342 2
a343 3
	op60c)
		cpu=hppa1.1
		vendor=oki
d345 3
a347 3
	ibm*)
		cpu=i370
		vendor=ibm
d349 3
a351 3
	orion105)
		cpu=clipper
		vendor=highlevel
d353 2
a354 3
	mac | mpw | mac-mpw)
		cpu=m68k
		vendor=apple
d356 3
a358 3
	pmac | pmac-mpw)
		cpu=powerpc
		vendor=apple
d361 100
d463 4
d468 1
a468 2
		cpu=m68000
		vendor=att
d471 74
a544 2
		cpu=we32k
		vendor=att
d547 70
a616 3
		cpu=powerpc
		vendor=ibm
		os=cnk
d619 2
a620 3
		cpu=pdp10
		vendor=dec
		os=tops10
d623 2
a624 3
		cpu=pdp10
		vendor=dec
		os=tops20
d628 29
a656 2
		cpu=m68k
		vendor=motorola
d658 7
a664 4
	dpx2*)
		cpu=m68k
		vendor=bull
		os=sysv3
d667 1
a667 2
		cpu=ns32k
		vendor=encore
d669 3
a671 4
	elxsi)
		cpu=elxsi
		vendor=elxsi
		os=${os:-bsd}
d674 1
a674 2
		cpu=i860
		vendor=alliant
d677 9
a685 2
		cpu=ns32k
		vendor=ns
d688 29
a716 3
		cpu=hppa1.1
		vendor=hitachi
		os=hiuxwe2
d719 1
a719 2
		cpu=hppa1.0
		vendor=hp
d722 1
a722 2
		cpu=m68000
		vendor=hp
d725 1
a725 2
		cpu=m68k
		vendor=hp
d728 1
a728 2
		cpu=hppa1.0
		vendor=hp
d731 1
a731 2
		cpu=hppa1.1
		vendor=hp
d735 1
a735 2
		cpu=hppa1.1
		vendor=hp
d739 1
a739 2
		cpu=hppa1.1
		vendor=hp
d742 1
a742 2
		cpu=hppa1.1
		vendor=hp
d745 15
a759 2
		cpu=hppa1.0
		vendor=hp
d762 2
a763 3
		cpu=`echo "$1" | sed -e 's/86.*/86/'`
		vendor=pc
		os=sysv32
d766 2
a767 3
		cpu=`echo "$1" | sed -e 's/86.*/86/'`
		vendor=pc
		os=sysv4
d770 2
a771 3
		cpu=`echo "$1" | sed -e 's/86.*/86/'`
		vendor=pc
		os=sysv
d774 10
a783 8
		cpu=`echo "$1" | sed -e 's/86.*/86/'`
		vendor=pc
		os=solaris2
		;;
	j90 | j90-cray)
		cpu=j90
		vendor=cray
		os=${os:-unicos}
d786 1
a786 2
		cpu=mips
		vendor=sgi
d788 1
a788 1
		    irix*)
d791 1
a791 1
			os=irix4
d795 41
d837 30
a866 2
		cpu=m68000
		vendor=convergent
d868 31
a898 4
	*mint | mint[0-9]* | *MiNT | *MiNT[0-9]*)
		cpu=m68k
		vendor=atari
		os=mint
d901 9
a909 7
		cpu=mips
		vendor=sony
		os=newsos
		;;
	next | m*-next)
		cpu=m68k
		vendor=next
d911 1
a911 1
		    nextstep* )
d913 2
a914 2
		    ns2*)
		      os=nextstep2
d917 1
a917 1
		      os=nextstep3
d921 20
d942 13
a954 2
		cpu=np1
		vendor=gould
d957 17
a973 3
		cpu=hppa1.1
		vendor=oki
		os=proelf
d976 14
a989 3
		cpu=hppa1.1
		vendor=hitachi
		os=hiuxwe2
d992 1
a992 2
		cpu=sparc
		vendor=tti
d995 1
a995 2
		cpu=m68k
		vendor=tti
d997 2
a998 3
	pc532)
		cpu=ns32k
		vendor=pc532
d1000 17
a1016 3
	pn)
		cpu=pn
		vendor=gould
d1018 2
a1019 3
	power)
		cpu=power
		vendor=ibm
d1021 2
a1022 3
	ps2)
		cpu=i386
		vendor=ibm
d1024 2
a1025 3
	rm[46]00)
		cpu=mips
		vendor=siemens
d1027 2
a1028 3
	rtpc | rtpc-*)
		cpu=romp
		vendor=ibm
d1030 2
a1031 9
	sde)
		cpu=mipsisa32
		vendor=sde
		os=${os:-elf}
		;;
	simso-wrs)
		cpu=sparclite
		vendor=wrs
		os=vxworks
d1033 1
a1033 3
	tower | tower-32)
		cpu=m68k
		vendor=ncr
d1035 1
a1035 3
	vpp*|vx|vx-*)
		cpu=f301
		vendor=fujitsu
d1037 2
a1038 3
	w65)
		cpu=w65
		vendor=wdc
d1040 2
a1041 4
	w89k-*)
		cpu=hppa1.1
		vendor=winbond
		os=proelf
d1043 2
a1044 3
	none)
		cpu=none
		vendor=none
d1046 1
a1046 3
	leon|leon[3-9])
		cpu=sparc
		vendor=$basic_machine
d1048 1
a1048 3
	leon-*|leon[3-9]-*)
		cpu=sparc
		vendor=`echo "$basic_machine" | sed 's/-.*//'`
d1050 2
a1051 5

	*-*)
		IFS="-" read -r cpu vendor <<EOF
$basic_machine
EOF
d1053 2
a1054 6
	# We use `pc' rather than `unknown'
	# because (1) that's what they normally are, and
	# (2) the word "unknown" tends to confuse beginning users.
	i*86 | x86_64)
		cpu=$basic_machine
		vendor=pc
d1056 2
a1057 5
	# These rules are duplicated from below for sake of the special case above;
	# i.e. things that normalized to x86 arches should also default to "pc"
	pc98)
		cpu=i386
		vendor=pc
d1059 15
a1073 3
	x64 | amd64)
		cpu=x86_64
		vendor=pc
d1075 2
a1076 4
	# Recognize the basic CPU types without company name.
	*)
		cpu=$basic_machine
		vendor=unknown
d1078 2
a1079 11
esac

unset -v basic_machine

# Decode basic machines in the full and proper CPU-Company form.
case $cpu-$vendor in
	# Here we handle the default manufacturer of certain CPU types in cannonical form. It is in
	# some cases the only manufacturer, in others, it is the most popular.
	craynv-unknown)
		vendor=cray
		os=${os:-unicosmp}
d1081 2
a1082 3
	c90-unknown | c90-cray)
		vendor=cray
		os=${os:-unicos}
d1084 2
a1085 2
	fx80-unknown)
		vendor=alliant
d1087 3
a1089 2
	romp-unknown)
		vendor=ibm
d1091 2
a1092 2
	mmix-unknown)
		vendor=knuth
d1094 2
a1095 2
	microblaze-unknown | microblazeel-unknown)
		vendor=xilinx
d1097 3
a1099 2
	rs6000-unknown)
		vendor=ibm
d1101 3
a1103 2
	vax-unknown)
		vendor=dec
d1105 2
a1106 2
	pdp11-unknown)
		vendor=dec
d1108 3
a1110 2
	we32k-unknown)
		vendor=att
d1112 2
a1113 2
	cydra-unknown)
		vendor=cydrome
d1115 2
a1116 2
	i370-ibm*)
		vendor=ibm
d1118 3
a1120 2
	orion-unknown)
		vendor=highlevel
d1122 3
a1124 3
	xps-unknown | xps100-unknown)
		cpu=xps100
		vendor=honeywell
d1126 2
a1127 6

	# Here we normalize CPU types with a missing or matching vendor
	dpx20-unknown | dpx20-bull)
		cpu=rs6000
		vendor=bull
		os=${os:-bosx}
d1129 2
a1130 4

	# Here we normalize CPU types irrespective of the vendor
	amd64-*)
		cpu=x86_64
d1132 3
a1134 3
	blackfin-*)
		cpu=bfin
		os=linux
d1136 2
a1137 2
	c54x-*)
		cpu=tic54x
d1139 2
a1140 2
	c55x-*)
		cpu=tic55x
d1142 3
a1144 2
	c6x-*)
		cpu=tic6x
d1146 3
a1148 3
	e500v[12]-*)
		cpu=powerpc
		os=$os"spe"
d1150 3
a1152 2
	mips3*-*)
		cpu=mips64
d1154 3
a1156 2
	ms1-*)
		cpu=mt
d1158 3
a1160 3
	m68knommu-*)
		cpu=m68k
		os=linux
d1162 3
a1164 2
	m9s12z-* | m68hcs12z-* | hcs12z-* | s12z-*)
		cpu=s12z
d1166 3
a1168 2
	openrisc-*)
		cpu=or32
d1170 2
a1171 3
	parisc-*)
		cpu=hppa
		os=linux
d1173 2
a1174 2
	pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
		cpu=i586
d1176 2
a1177 2
	pentiumpro-* | p6-* | 6x86-* | athlon-* | athalon_*-*)
		cpu=i686
d1179 3
a1181 2
	pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
		cpu=i686
d1183 3
a1185 2
	pentium4-*)
		cpu=i786
d1187 3
a1189 2
	pc98-*)
		cpu=i386
d1191 3
a1193 2
	ppc-* | ppcbe-*)
		cpu=powerpc
d1195 3
a1197 2
	ppcle-* | powerpclittle-*)
		cpu=powerpcle
d1199 2
a1200 2
	ppc64-*)
		cpu=powerpc64
d1202 2
a1203 2
	ppc64le-* | powerpc64little-*)
		cpu=powerpc64le
d1205 3
a1207 2
	sb1-*)
		cpu=mipsisa64sb1
d1209 2
a1210 2
	sb1el-*)
		cpu=mipsisa64sb1el
d1212 23
a1234 2
	sh5e[lb]-*)
		cpu=`echo "$cpu" | sed 's/^\(sh.\)e\(.\)$/\1\2e/'`
d1236 2
a1237 2
	spur-*)
		cpu=spur
d1239 18
a1256 2
	strongarm-* | thumb-*)
		cpu=arm
d1258 3
a1260 2
	tx39-*)
		cpu=mipstx39
d1262 3
a1264 2
	tx39el-*)
		cpu=mipstx39el
d1266 2
a1267 2
	x64-*)
		cpu=x86_64
d1270 17
a1286 1
		cpu=`echo "$cpu" | sed 's/^xscale/arm/'`
d1289 19
a1307 4
	# Recognize the cannonical CPU Types that limit and/or modify the
	# company names they are paired with.
	cr16-*)
		os=${os:-elf}
d1309 2
a1310 3
	crisv32-* | etraxfs*-*)
		cpu=crisv32
		vendor=axis
d1312 3
a1314 3
	cris-* | etrax*-*)
		cpu=cris
		vendor=axis
d1316 2
a1317 2
	crx-*)
		os=${os:-elf}
d1319 5
a1323 3
	neo-tandem)
		cpu=neo
		vendor=tandem
d1325 2
a1326 3
	nse-tandem)
		cpu=nse
		vendor=tandem
d1328 2
a1329 3
	nsr-tandem)
		cpu=nsr
		vendor=tandem
d1331 2
a1332 3
	nsv-tandem)
		cpu=nsv
		vendor=tandem
d1334 5
a1338 3
	nsx-tandem)
		cpu=nsx
		vendor=tandem
d1340 2
a1341 7
	s390-*)
		cpu=s390
		vendor=ibm
		;;
	s390x-*)
		cpu=s390x
		vendor=ibm
d1343 2
a1344 2
	tile*-*)
		os=${os:-linux-gnu}
a1345 1

d1347 2
a1348 103
		# Recognize the cannonical CPU types that are allowed with any
		# company name.
		case $cpu in
			1750a | 580 \
			| a29k \
			| aarch64 | aarch64_be \
			| abacus \
			| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] \
			| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] \
			| alphapca5[67] | alpha64pca5[67] \
			| am33_2.0 \
			| arc | arceb \
			| arm  | arm[lb]e | arme[lb] | armv* \
			| avr | avr32 \
			| asmjs \
			| ba \
			| be32 | be64 \
			| bfin | bs2000 \
			| c[123]* | c30 | [cjt]90 | c4x \
			| c8051 | clipper | craynv | csky | cydra \
			| d10v | d30v | dlx | dsp16xx \
			| e2k | elxsi | epiphany \
			| f30[01] | f700 | fido | fr30 | frv | ft32 | fx80 \
			| h8300 | h8500 \
			| hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
			| hexagon \
			| i370 | i*86 | i860 | i960 | ia16 | ia64 \
			| ip2k | iq2000 \
			| k1om \
			| le32 | le64 \
			| lm32 \
			| m32c | m32r | m32rle \
			| m5200 | m68000 | m680[012346]0 | m68360 | m683?2 | m68k | v70 | w65 \
			| m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip \
			| m88110 | m88k | maxq | mb | mcore | mep | metag \
			| microblaze | microblazeel \
			| mips | mipsbe | mipseb | mipsel | mipsle \
			| mips16 \
			| mips64 | mips64el \
			| mips64octeon | mips64octeonel \
			| mips64orion | mips64orionel \
			| mips64r5900 | mips64r5900el \
			| mips64vr | mips64vrel \
			| mips64vr4100 | mips64vr4100el \
			| mips64vr4300 | mips64vr4300el \
			| mips64vr5000 | mips64vr5000el \
			| mips64vr5900 | mips64vr5900el \
			| mipsisa32 | mipsisa32el \
			| mipsisa32r2 | mipsisa32r2el \
			| mipsisa32r6 | mipsisa32r6el \
			| mipsisa64 | mipsisa64el \
			| mipsisa64r2 | mipsisa64r2el \
			| mipsisa64r6 | mipsisa64r6el \
			| mipsisa64sb1 | mipsisa64sb1el \
			| mipsisa64sr71k | mipsisa64sr71kel \
			| mipsr5900 | mipsr5900el \
			| mipstx39 | mipstx39el \
			| mmix \
			| mn10200 | mn10300 \
			| moxie \
			| mt \
			| msp430 \
			| nds32 | nds32le | nds32be \
			| nfp \
			| nios | nios2 | nios2eb | nios2el \
			| none | np1 | ns16k | ns32k \
			| open8 \
			| or1k* \
			| or32 \
			| orion \
			| pdp10 | pdp11 | pj | pjl | pn | power \
			| powerpc | powerpc64 | powerpc64le | powerpcle | powerpcspe \
			| pru \
			| pyramid \
			| riscv | riscv32 | riscv64 \
			| rl78 | romp | rs6000 | rx \
			| score \
			| sh | sh[1234] | sh[24]a | sh[24]ae[lb] | sh[23]e | she[lb] | sh[lb]e \
			| sh[1234]e[lb] |  sh[12345][lb]e | sh[23]ele | sh64 | sh64le \
			| sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet \
			| sparclite \
			| sparcv8 | sparcv9 | sparcv9b | sparcv9v | sv1 | sx* \
			| spu \
			| tahoe \
			| tic30 | tic4x | tic54x | tic55x | tic6x | tic80 \
			| tron \
			| ubicom32 \
			| v850 | v850e | v850e1 | v850es | v850e2 | v850e2v3 \
			| vax \
			| visium \
			| wasm32 \
			| we32k \
			| x86 | x86_64 | xc16x | xgate | xps100 \
			| xstormy16 | xtensa* \
			| ymp \
			| z8k | z80)
				;;

			*)
				echo Invalid configuration \`"$1"\': machine \`"$cpu-$vendor"\' not recognized 1>&2
				exit 1
				;;
		esac
d1353 3
a1355 3
case $vendor in
	digital*)
		vendor=dec
d1357 2
a1358 2
	commodore*)
		vendor=cbm
d1366 1
a1366 1
if [ x$os != x ]
d1369 5
a1373 5
	# First match some system type aliases that might get confused
	# with valid system types.
	# solaris* is a basic system type, with this one exception.
	auroraux)
		os=auroraux
d1375 2
a1376 2
	bluegene*)
		os=cnk
d1378 2
a1379 2
	solaris1 | solaris1.*)
		os=`echo $os | sed -e 's|solaris1|sunos4|'`
d1381 2
a1382 2
	solaris)
		os=solaris2
d1384 2
a1385 2
	unixware*)
		os=sysv4.2uw
d1387 1
a1387 1
	gnu/linux*)
d1390 1
a1390 36
	# es1800 is here to avoid being matched by es* (a different OS)
	es1800*)
		os=ose
		;;
	# Some version numbers need modification
	chorusos*)
		os=chorusos
		;;
	isc)
		os=isc2.2
		;;
	sco6)
		os=sco5v6
		;;
	sco5)
		os=sco3.2v5
		;;
	sco4)
		os=sco3.2v4
		;;
	sco3.2.[4-9]*)
		os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
		;;
	sco3.2v[4-9]* | sco5v6*)
		# Don't forget version if it is 3.2v4 or newer.
		;;
	scout)
		# Don't match below
		;;
	sco*)
		os=sco3.2v2
		;;
	psos*)
		os=psos
		;;
	# Now accept the basic system types.
d1392 29
a1420 30
	# Each alternative MUST end in a * to match a version number.
	# sysv* is not here because it comes later, after sysvr4.
	gnu* | bsd* | mach* | minix* | genix* | ultrix* | irix* \
	     | *vms* | esix* | aix* | cnk* | sunos | sunos[34]*\
	     | hpux* | unos* | osf* | luna* | dgux* | auroraux* | solaris* \
	     | sym* | kopensolaris* | plan9* \
	     | amigaos* | amigados* | msdos* | newsos* | unicos* | aof* \
	     | aos* | aros* | cloudabi* | sortix* \
	     | nindy* | vxsim* | vxworks* | ebmon* | hms* | mvs* \
	     | clix* | riscos* | uniplus* | iris* | isc* | rtu* | xenix* \
	     | knetbsd* | mirbsd* | netbsd* \
	     | bitrig* | openbsd* | solidbsd* | libertybsd* \
	     | ekkobsd* | kfreebsd* | freebsd* | riscix* | lynxos* \
	     | bosx* | nextstep* | cxux* | aout* | elf* | oabi* \
	     | ptx* | coff* | ecoff* | winnt* | domain* | vsta* \
	     | udi* | eabi* | lites* | ieee* | go32* | aux* | hcos* \
	     | chorusrdb* | cegcc* | glidix* \
	     | cygwin* | msys* | pe* | moss* | proelf* | rtems* \
	     | midipix* | mingw32* | mingw64* | linux-gnu* | linux-android* \
	     | linux-newlib* | linux-musl* | linux-uclibc* \
	     | uxpv* | beos* | mpeix* | udk* | moxiebox* \
	     | interix* | uwin* | mks* | rhapsody* | darwin* \
	     | openstep* | oskit* | conix* | pw32* | nonstopux* \
	     | storm-chaos* | tops10* | tenex* | tops20* | its* \
	     | os2* | vos* | palmos* | uclinux* | nucleus* \
	     | morphos* | superux* | rtmk* | windiss* \
	     | powermax* | dnix* | nx6 | nx7 | sei* | dragonfly* \
	     | skyos* | haiku* | rdos* | toppers* | drops* | es* \
	     | onefs* | tirtos* | phoenix* | fuchsia* | redox* | bme* \
	     | midnightbsd*)
d1423 3
a1425 3
	qnx*)
		case $cpu in
		    x86 | i*86)
d1428 1
a1428 1
			os=nto-$os
d1432 1
a1432 2
	hiux*)
		os=hiuxwe2
d1434 2
a1435 1
	nto-qnx*)
d1437 3
a1439 2
	nto*)
		os=`echo $os | sed -e 's|nto|nto-qnx|'`
d1441 2
a1442 3
	sim | xray | os68k* | v88r* \
	    | windows* | osx | abug | netware* | os9* \
	    | macos* | mpw* | magic* | mmixware* | mon960* | lnews*)
d1444 2
a1445 2
	linux-dietlibc)
		os=linux-dietlibc
d1447 1
a1447 1
	linux*)
d1450 2
a1451 2
	lynx*178)
		os=lynxos178
d1453 2
a1454 2
	lynx*5)
		os=lynxos5
d1456 2
a1457 2
	lynx*)
		os=lynxos
d1459 2
a1460 2
	mac*)
		os=`echo "$os" | sed -e 's|mac|macos|'`
d1462 2
a1463 2
	opened*)
		os=openedition
d1465 2
a1466 2
	os400*)
		os=os400
d1468 2
a1469 2
	sunos5*)
		os=`echo "$os" | sed -e 's|sunos5|solaris2|'`
d1471 2
a1472 2
	sunos6*)
		os=`echo "$os" | sed -e 's|sunos6|solaris3|'`
d1474 2
a1475 2
	wince*)
		os=wince
d1477 2
a1478 2
	utek*)
		os=bsd
d1480 2
a1481 2
	dynix*)
		os=bsd
d1483 2
a1484 2
	acis*)
		os=aos
d1486 2
a1487 2
	atheos*)
		os=atheos
d1489 2
a1490 5
	syllable*)
		os=syllable
		;;
	386bsd)
		os=bsd
d1492 2
a1493 2
	ctix* | uts*)
		os=sysv
d1495 2
a1496 2
	nova*)
		os=rtmk-nova
d1498 2
a1499 5
	ns2)
		os=nextstep2
		;;
	nsk*)
		os=nsk
d1502 1
a1502 1
	sinix5.*)
d1505 5
a1509 2
	sinix*)
		os=sysv4
d1511 2
a1512 2
	tpf*)
		os=tpf
d1514 2
a1515 2
	triton*)
		os=sysv3
d1517 2
a1518 2
	oss*)
		os=sysv3
d1520 2
a1521 2
	svr4*)
		os=sysv4
d1523 2
a1524 2
	svr3)
		os=sysv3
d1526 2
a1527 2
	sysvr4)
		os=sysv4
d1529 2
a1530 2
	# This must come after sysvr4.
	sysv*)
d1532 2
a1533 2
	ose*)
		os=ose
d1535 2
a1536 2
	*mint | mint[0-9]* | *MiNT | MiNT[0-9]*)
		os=mint
d1538 2
a1539 2
	zvmoe)
		os=zvmoe
d1541 2
a1542 2
	dicos*)
		os=dicos
d1544 2
a1545 12
	pikeos*)
		# Until real need of OS specific support for
		# particular features comes up, bare metal
		# configurations are quite functional.
		case $cpu in
		    arm*)
			os=eabi
			;;
		    *)
			os=elf
			;;
		esac
d1547 2
a1548 1
	nacl*)
d1550 1
a1550 1
	ios)
d1552 1
a1552 1
	none)
d1554 1
a1554 1
	*-eabi)
d1557 3
a1559 1
		echo Invalid configuration \`"$1"\': system \`"$os"\' not recognized 1>&2
d1575 1
a1575 1
case $cpu-$vendor in
d1577 1
a1577 1
		os=elf
d1580 1
a1580 1
		os=elf
d1583 1
a1583 1
		os=riscix1.2
d1586 1
a1586 1
		os=linux
d1589 1
a1589 1
		os=aout
d1592 1
a1592 1
		os=coff
d1595 1
a1595 4
		os=elf
		;;
	clipper-intergraph)
		os=clix
d1598 1
a1598 1
		os=elf
d1601 1
a1601 1
		os=coff
d1604 1
a1604 1
		os=coff
d1607 1
a1607 1
		os=coff
d1611 1
a1611 1
		os=tops20
d1614 1
a1614 1
		os=none
d1617 1
a1617 1
		os=ultrix4.2
d1620 1
a1620 1
		os=domain
d1623 1
a1623 1
		os=sunos4.0.2
d1626 1
a1626 1
		os=sunos3
d1629 1
a1629 1
		os=aout
d1632 1
a1632 1
		os=elf
d1635 1
a1635 1
		os=elf
d1638 1
a1638 1
		os=elf
d1641 1
a1641 1
		os=coff
d1644 1
a1644 1
		os=sysv3
d1647 1
a1647 1
		os=sunos4.1.1
d1650 1
a1650 1
		os=elf
d1653 4
a1656 1
		os=beos
d1659 1
a1659 1
		os=aix
d1662 1
a1662 1
		os=mmixware
d1665 1
a1665 1
		os=proelf
d1668 1
a1668 1
		os=proelf
d1671 1
a1671 1
		os=proelf
d1674 1
a1674 1
		os=hpux
d1677 1
a1677 1
		os=hiux
d1680 1
a1680 1
		os=sysv
d1683 1
a1683 1
		os=amigaos
d1686 1
a1686 1
		os=dgux
d1689 1
a1689 1
		os=sysv3
d1692 1
a1692 1
		os=rtu
d1695 1
a1695 1
		os=luna
d1697 2
a1698 2
	*-next)
		os=nextstep
d1701 1
a1701 1
		os=ptx
d1704 1
a1704 1
		os=unos
d1707 1
a1707 1
		os=genix
d1710 4
a1713 1
		os=mvs
d1716 1
a1716 1
		os=sysv
d1719 1
a1719 1
		os=bsd
d1722 1
a1722 1
		os=bsd
d1725 1
a1725 1
		os=irix
d1728 1
a1728 1
		os=sysv4
d1731 1
a1731 1
		os=rtu
d1734 1
a1734 1
		os=uxpv
d1737 1
a1737 1
		os=coff
d1740 1
a1740 1
		os=coff
d1743 1
a1743 1
		os=macos
d1746 1
a1746 4
		os=mint
		;;
	*-wrs)
		os=vxworks
d1749 1
a1749 1
		os=none
d1756 3
a1758 2
case $vendor in
	unknown)
d1760 1
a1760 1
			riscix*)
d1763 1
a1763 1
			sunos*)
d1766 1
a1766 1
			cnk*|-aix*)
d1769 1
a1769 1
			beos*)
d1772 1
a1772 1
			hpux*)
d1775 1
a1775 1
			mpeix*)
d1778 1
a1778 1
			hiux*)
d1781 1
a1781 1
			unos*)
d1784 1
a1784 1
			dgux*)
d1787 1
a1787 1
			luna*)
d1790 1
a1790 1
			genix*)
d1793 1
a1793 4
			clix*)
				vendor=intergraph
				;;
			mvs* | opened*)
d1796 1
a1796 1
			os400*)
d1799 1
a1799 1
			ptx*)
d1802 1
a1802 1
			tpf*)
d1805 1
a1805 1
			vxsim* | vxworks* | windiss*)
d1808 1
a1808 1
			aux*)
d1811 1
a1811 1
			hms*)
d1814 1
a1814 1
			mpw* | macos*)
d1817 1
a1817 1
			*mint | mint[0-9]* | *MiNT | MiNT[0-9]*)
d1820 1
a1820 1
			vos*)
d1824 1
d1828 1
a1828 1
echo "$cpu-$vendor-$os"
d1832 1
a1832 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-05-23'
d70 1
a70 1
Copyright 1992-2019 Free Software Foundation, Inc.
d92 1
a92 1
       echo "$me: invalid option $1$help" >&2
d114 1
a114 2
# shellcheck disable=SC2162
IFS="-" read field1 field2 field3 field4 <<EOF
d152 1
a152 1
		# A lone config we happen to match not fitting any pattern
d824 1
a824 3
		    openstep*)
		        ;;
		    nextstep*)
d921 1
a921 2
		# shellcheck disable=SC2162
		IFS="-" read cpu vendor <<EOF
d953 1
a953 1
	# Here we handle the default manufacturer of certain CPU types in canonical form. It is in
d1104 1
a1104 1
	# Recognize the canonical CPU Types that limit and/or modify the
d1153 1
a1153 1
		# Recognize the canonical CPU types that are allowed with any
a1163 1
			| amdgcn \
d1170 1
a1170 1
			| bfin | bpf | bs2000 \
d1185 2
a1186 2
			| m5200 | m68000 | m680[012346]0 | m68360 | m683?2 | m68k \
			| m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x \
d1191 1
a1191 1
			| mips64 | mips64eb | mips64el \
d1218 1
a1218 1
			| none | np1 | ns16k | ns32k | nvptx \
a1222 1
			| picochip \
d1230 1
a1230 2
			| sh | shl \
			| sh[1234] | sh[24]a | sh[24]ae[lb] | sh[23]e | she[lb] | sh[lb]e \
d1240 1
a1240 1
			| v70 | v850 | v850e | v850e1 | v850es | v850e2 | v850e2v3 \
d1243 1
a1243 2
			| w65 \
			| wasm32 | wasm64 \
d1363 1
a1363 1
	     | midnightbsd* | amdhsa* | unleashed* | emscripten* | wasi*)
@


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-03'
d9 1
a9 1
# the Free Software Foundation, either version 3 of the License, or
d36 1
a36 1
# https://git.savannah.gnu.org/cgit/config.git/plain/config.sub
a52 7
# 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.

d70 1
a70 1
Copyright 1992-2022 Free Software Foundation, Inc.
a114 1
saved_IFS=$IFS
a117 1
IFS=$saved_IFS
d127 1
a127 1
		basic_os=$field3-$field4
d134 2
a135 1
			nto-qnx* | linux-* | uclinux-uclibc* \
d140 1
a140 1
				basic_os=$maybe_os
d144 1
a144 1
				basic_os=linux-android
d148 1
a148 1
				basic_os=$field3
d157 1
a157 1
				basic_os=
d165 1
a165 5
						basic_os=$field2
						;;
					zephyr*)
						basic_machine=$field1-unknown
						basic_os=$field2
d178 1
a178 1
						basic_os=
d182 1
a182 1
						basic_os=$field2
d194 1
a194 1
				basic_os=bsd
d198 1
a198 1
				basic_os=udi
d202 1
a202 1
				basic_os=scout
d206 1
a206 1
				basic_os=
d210 1
a210 1
				basic_os=
d214 1
a214 1
				basic_os=bsd
d218 1
a218 1
				basic_os=sysv
d222 1
a222 1
				basic_os=
d226 1
a226 1
				basic_os=amigaos
d230 1
a230 1
				basic_os=sysv4
d234 1
a234 1
				basic_os=sysv
d238 1
a238 1
				basic_os=bsd
d242 1
a242 1
				basic_os=aros
d246 1
a246 1
				basic_os=aux
d250 1
a250 1
				basic_os=dynix
d254 1
a254 1
				basic_os=linux
d258 1
a258 1
				basic_os=cegcc
d262 1
a262 1
				basic_os=bsd
d266 1
a266 1
				basic_os=bsd
d270 1
a270 1
				basic_os=bsd
d274 1
a274 1
				basic_os=bsd
d278 1
a278 1
				basic_os=bsd
d282 1
a282 1
				basic_os=unicos
d286 1
a286 1
				basic_os=
d290 1
a290 1
				basic_os=
d294 1
a294 1
				basic_os=
d298 1
a298 1
				basic_os=sysv3
d302 1
a302 1
				basic_os=dicos
d306 1
a306 1
				basic_os=msdosdjgpp
d310 1
a310 1
				basic_os=ebmon
d314 1
a314 1
				basic_os=ose
d318 1
a318 1
				basic_os=sysv
d322 1
a322 1
				basic_os=go32
d326 1
a326 1
				basic_os=hms
d330 1
a330 1
				basic_os=xray
d334 1
a334 1
				basic_os=hms
d338 1
a338 1
				basic_os=sysv3
d340 1
a340 1
			hp300 | hp300hpux)
a341 1
				basic_os=hpux
d345 5
a349 1
				basic_os=bsd
d353 1
a353 1
				basic_os=osf
d357 1
a357 1
				basic_os=proelf
d361 5
a365 1
				basic_os=mach
d369 1
a369 1
				basic_os=sysv
d373 1
a373 1
				basic_os=linux
d377 1
a377 1
				basic_os=sysv
d381 1
a381 1
				basic_os=sysv
d385 1
a385 1
				basic_os=mingw64
d389 1
a389 1
				basic_os=mingw32
d393 1
a393 1
				basic_os=mingw32ce
d397 1
a397 1
				basic_os=coff
d401 1
a401 1
				basic_os=morphos
d405 1
a405 1
				basic_os=moxiebox
d409 1
a409 1
				basic_os=msdos
d413 1
a413 1
				basic_os=msys
d417 1
a417 1
				basic_os=mvs
d421 1
a421 1
				basic_os=nacl
d425 1
a425 1
				basic_os=sysv4
d429 1
a429 1
				basic_os=netbsd
d433 1
a433 1
				basic_os=linux
d437 1
a437 1
				basic_os=newsos
d441 1
a441 1
				basic_os=newsos
d445 1
a445 1
				basic_os=sysv
d449 1
a449 1
				basic_os=cxux
d453 1
a453 1
				basic_os=cxux
d457 1
a457 1
				basic_os=nindy
d461 1
a461 1
				basic_os=mon960
d465 1
a465 1
				basic_os=nonstopux
d469 1
a469 1
				basic_os=os400
d473 1
a473 1
				basic_os=ose
d477 1
a477 1
				basic_os=os68k
d481 1
a481 1
				basic_os=osf
d485 1
a485 5
				basic_os=linux
				;;
			psp)
				basic_machine=mipsallegrexel-sony
				basic_os=psp
d489 1
a489 1
				basic_os=pw32
d493 1
a493 1
				basic_os=rdos
d497 1
a497 1
				basic_os=rdos
d501 1
a501 1
				basic_os=coff
d505 1
a505 1
				basic_os=udi
d509 1
a509 1
				basic_os=seiux
d513 1
a513 1
				basic_os=
d517 1
a517 1
				basic_os=sysv2
d521 1
a521 1
				basic_os=
d525 1
a525 1
				basic_os=sysv4
d529 1
a529 1
				basic_os=
d533 1
a533 1
				basic_os=sunos3
d537 1
a537 1
				basic_os=sunos4
d541 1
a541 1
				basic_os=
d545 1
a545 1
				basic_os=sunos3
d549 1
a549 1
				basic_os=sunos4
d553 1
a553 1
				basic_os=
d557 1
a557 1
				basic_os=sunos3
d561 1
a561 1
				basic_os=sunos4
d565 1
a565 1
				basic_os=solaris2
d569 1
a569 1
				basic_os=
d573 1
a573 1
				basic_os=unicos
d577 1
a577 1
				basic_os=dynix
d581 1
a581 1
				basic_os=unicos
d585 1
a585 1
				basic_os=unicos
d589 1
a589 1
				basic_os=tops20
d593 1
a593 1
				basic_os=tpf
d597 1
a597 1
				basic_os=udi
d601 1
a601 1
				basic_os=sym1
d605 1
a605 1
				basic_os=none
d609 1
a609 1
				basic_os=sysv
d613 1
a613 5
				basic_os=vms
				;;
			vsta)
				basic_machine=i386-pc
				basic_os=vsta
d617 1
a617 1
				basic_os=vxworks
d621 1
a621 1
				basic_os=vxworks
d625 1
a625 1
				basic_os=vxworks
d629 1
a629 1
				basic_os=mingw32
d633 1
a633 1
				basic_os=unicos
d637 1
a637 1
				basic_os=
d689 1
a689 1
		basic_os=cnk
d694 1
a694 1
		basic_os=tops10
d699 1
a699 1
		basic_os=tops20
d709 1
a709 1
		basic_os=sysv3
d718 1
a718 1
		basic_os=${basic_os:-bsd}
d731 1
a731 1
		basic_os=hiuxwe2
d774 1
a774 1
		basic_os=sysv32
d779 1
a779 1
		basic_os=sysv4
d784 1
a784 1
		basic_os=sysv
d789 1
a789 1
		basic_os=solaris2
d794 1
a794 1
		basic_os=${basic_os:-unicos}
d799 1
a799 1
		case $basic_os in
d803 1
a803 1
			basic_os=irix4
d814 1
a814 1
		basic_os=mint
d819 1
a819 1
		basic_os=newsos
d824 1
a824 1
		case $basic_os in
d830 1
a830 1
		      basic_os=nextstep2
d833 1
a833 1
		      basic_os=nextstep3
d844 1
a844 1
		basic_os=proelf
d849 1
a849 1
		basic_os=hiuxwe2
d886 1
a886 1
		basic_os=${basic_os:-elf}
d891 1
a891 1
		basic_os=vxworks
d908 1
a908 1
		basic_os=proelf
a924 1
		saved_IFS=$IFS
a927 1
		IFS=$saved_IFS
d961 1
a961 1
		basic_os=${basic_os:-unicosmp}
d965 1
a965 1
		basic_os=${Basic_os:-unicos}
a1005 5
	armh-unknown | armh-alt)
		cpu=armv7l
		vendor=alt
		basic_os=${basic_os:-linux-gnueabihf}
		;;
d1009 1
a1009 1
		basic_os=${basic_os:-bosx}
d1018 1
a1018 1
		basic_os=linux
d1031 1
a1031 1
		basic_os=${basic_os}"spe"
d1041 1
a1041 1
		basic_os=linux
d1051 1
a1051 1
		basic_os=linux
a1106 3
	arm64-* | aarch64le-*)
		cpu=aarch64
		;;
d1111 1
a1111 1
		basic_os=${basic_os:-elf}
d1122 1
a1122 1
		basic_os=${basic_os:-elf}
d1144 7
a1150 3
	mipsallegrexel-sony)
		cpu=mipsallegrexel
		vendor=sony
d1153 1
a1153 1
		basic_os=${basic_os:-linux-gnu}
d1169 2
a1170 2
			| arc | arceb | arc32 | arc64 \
			| arm | arm[lb]e | arme[lb] | armv* \
a1188 1
			| loongarch32 | loongarch64 | loongarchx32 \
a1206 2
			| mipsisa32r3 | mipsisa32r3el \
			| mipsisa32r5 | mipsisa32r5el \
a1209 2
			| mipsisa64r3 | mipsisa64r3el \
			| mipsisa64r5 | mipsisa64r5el \
d1233 1
a1233 1
			| riscv | riscv32 | riscv32be | riscv64 | riscv64be \
a1234 1
			| s390 | s390x \
a1243 1
			| thumbv7* \
d1281 1
a1281 1
if test x$basic_os != x
a1282 41

# First recognize some ad-hoc cases, or perhaps split kernel-os, or else just
# set os.
case $basic_os in
	gnu/linux*)
		kernel=linux
		os=`echo "$basic_os" | sed -e 's|gnu/linux|gnu|'`
		;;
	os2-emx)
		kernel=os2
		os=`echo "$basic_os" | sed -e 's|os2-emx|emx|'`
		;;
	nto-qnx*)
		kernel=nto
		os=`echo "$basic_os" | sed -e 's|nto-qnx|qnx|'`
		;;
	*-*)
		# shellcheck disable=SC2162
		saved_IFS=$IFS
		IFS="-" read kernel os <<EOF
$basic_os
EOF
		IFS=$saved_IFS
		;;
	# Default OS when just kernel was specified
	nto*)
		kernel=nto
		os=`echo "$basic_os" | sed -e 's|nto|qnx|'`
		;;
	linux*)
		kernel=linux
		os=`echo "$basic_os" | sed -e 's|linux|gnu|'`
		;;
	*)
		kernel=
		os=$basic_os
		;;
esac

# Now, normalize the OS (knowing we just have one component, it's not a kernel,
# etc.)
d1294 1
a1294 1
		os=`echo "$os" | sed -e 's|solaris1|sunos4|'`
d1302 3
d1326 1
a1326 1
		os=`echo "$os" | sed -e 's/sco3.2./sco3.2v/'`
d1328 4
a1331 1
	sco*v* | scout)
d1340 34
d1375 7
a1381 1
		os=qnx
d1386 15
a1406 3
	lynxos*)
		# don't get caught up in next wildcard
		;;
d1410 1
a1410 1
	mac[0-9]*)
d1455 3
d1460 1
a1460 1
		os=`echo "$os" | sed -e 's|sinix|sysv|'`
d1483 3
d1492 3
d1511 8
d1520 2
a1521 1
		# No normalization, but not necessarily accepted, that comes below.
a1523 1

a1535 1
kernel=
d1547 1
a1547 2
		kernel=linux
		os=gnu
a1712 1

a1714 92
# Now, validate our (potentially fixed-up) OS.
case $os in
	# Sometimes we do "kernel-libc", so those need to count as OSes.
	musl* | newlib* | relibc* | uclibc*)
		;;
	# Likewise for "kernel-abi"
	eabi* | gnueabi*)
		;;
	# VxWorks passes extra cpu info in the 4th filed.
	simlinux | simwindows | spe)
		;;
	# Now accept the basic system types.
	# The portable systems comes first.
	# Each alternative MUST end in a * to match a version number.
	gnu* | android* | bsd* | mach* | minix* | genix* | ultrix* | irix* \
	     | *vms* | esix* | aix* | cnk* | sunos | sunos[34]* \
	     | hpux* | unos* | osf* | luna* | dgux* | auroraux* | solaris* \
	     | sym* |  plan9* | psp* | sim* | xray* | os68k* | v88r* \
	     | hiux* | abug | nacl* | netware* | windows* \
	     | os9* | macos* | osx* | ios* \
	     | mpw* | magic* | mmixware* | mon960* | lnews* \
	     | amigaos* | amigados* | msdos* | newsos* | unicos* | aof* \
	     | aos* | aros* | cloudabi* | sortix* | twizzler* \
	     | nindy* | vxsim* | vxworks* | ebmon* | hms* | mvs* \
	     | clix* | riscos* | uniplus* | iris* | isc* | rtu* | xenix* \
	     | mirbsd* | netbsd* | dicos* | openedition* | ose* \
	     | bitrig* | openbsd* | secbsd* | solidbsd* | libertybsd* | os108* \
	     | ekkobsd* | freebsd* | riscix* | lynxos* | os400* \
	     | bosx* | nextstep* | cxux* | aout* | elf* | oabi* \
	     | ptx* | coff* | ecoff* | winnt* | domain* | vsta* \
	     | udi* | lites* | ieee* | go32* | aux* | hcos* \
	     | chorusrdb* | cegcc* | glidix* | serenity* \
	     | cygwin* | msys* | pe* | moss* | proelf* | rtems* \
	     | midipix* | mingw32* | mingw64* | mint* \
	     | uxpv* | beos* | mpeix* | udk* | moxiebox* \
	     | interix* | uwin* | mks* | rhapsody* | darwin* \
	     | openstep* | oskit* | conix* | pw32* | nonstopux* \
	     | storm-chaos* | tops10* | tenex* | tops20* | its* \
	     | os2* | vos* | palmos* | uclinux* | nucleus* | morphos* \
	     | scout* | superux* | sysv* | rtmk* | tpf* | windiss* \
	     | powermax* | dnix* | nx6 | nx7 | sei* | dragonfly* \
	     | skyos* | haiku* | rdos* | toppers* | drops* | es* \
	     | onefs* | tirtos* | phoenix* | fuchsia* | redox* | bme* \
	     | midnightbsd* | amdhsa* | unleashed* | emscripten* | wasi* \
	     | nsk* | powerunix* | genode* | zvmoe* | qnx* | emx* | zephyr* \
	     | fiwix* )
		;;
	# This one is extra strict with allowed versions
	sco3.2v2 | sco3.2v[4-9]* | sco5v6*)
		# Don't forget version if it is 3.2v4 or newer.
		;;
	none)
		;;
	*)
		echo Invalid configuration \`"$1"\': OS \`"$os"\' not recognized 1>&2
		exit 1
		;;
esac

# As a final step for OS-related things, validate the OS-kernel combination
# (given a valid OS), if there is a kernel.
case $kernel-$os in
	linux-gnu* | linux-dietlibc* | linux-android* | linux-newlib* \
		   | linux-musl* | linux-relibc* | linux-uclibc* )
		;;
	uclinux-uclibc* )
		;;
	-dietlibc* | -newlib* | -musl* | -relibc* | -uclibc* )
		# These are just libc implementations, not actual OSes, and thus
		# require a kernel.
		echo "Invalid configuration \`$1': libc \`$os' needs explicit kernel." 1>&2
		exit 1
		;;
	kfreebsd*-gnu* | kopensolaris*-gnu*)
		;;
	vxworks-simlinux | vxworks-simwindows | vxworks-spe)
		;;
	nto-qnx*)
		;;
	os2-emx)
		;;
	*-eabi* | *-gnueabi*)
		;;
	-*)
		# Blank kernel with real OS is always fine.
		;;
	*-*)
		echo "Invalid configuration \`$1': Kernel \`$kernel' not known to work with OS \`$os'." 1>&2
		exit 1
		;;
esac

d1719 2
a1720 2
		case $cpu-$os in
			*-riscix*)
d1723 1
a1723 1
			*-sunos*)
d1726 1
a1726 1
			*-cnk* | *-aix*)
d1729 1
a1729 1
			*-beos*)
d1732 1
a1732 1
			*-hpux*)
d1735 1
a1735 1
			*-mpeix*)
d1738 1
a1738 1
			*-hiux*)
d1741 1
a1741 1
			*-unos*)
d1744 1
a1744 1
			*-dgux*)
d1747 1
a1747 1
			*-luna*)
d1750 1
a1750 1
			*-genix*)
d1753 1
a1753 1
			*-clix*)
d1756 1
a1756 4
			*-mvs* | *-opened*)
				vendor=ibm
				;;
			*-os400*)
d1759 1
a1759 1
			s390-* | s390x-*)
d1762 1
a1762 1
			*-ptx*)
d1765 1
a1765 1
			*-tpf*)
d1768 1
a1768 1
			*-vxsim* | *-vxworks* | *-windiss*)
d1771 1
a1771 1
			*-aux*)
d1774 1
a1774 1
			*-hms*)
d1777 1
a1777 1
			*-mpw* | *-macos*)
d1780 1
a1780 1
			*-*mint | *-mint[0-9]* | *-*MiNT | *-MiNT[0-9]*)
d1783 1
a1783 1
			*-vos*)
d1790 1
a1790 1
echo "$cpu-$vendor-${kernel:+$kernel-}$os"
@


1.1.1.11
log
@libarchive: import version 3.8.3
@
text
@d3 1
a3 1
#   Copyright 1992-2024 Free Software Foundation, Inc.
d5 1
a5 1
# shellcheck disable=SC2006,SC2268,SC2162 # see below for rationale
d7 1
a7 1
timestamp='2024-05-27'
d79 1
a79 1
Copyright 1992-2024 Free Software Foundation, Inc.
d85 1
a85 1
Try '$me --help' for more information."
d123 1
d133 1
a133 1
		echo "Invalid configuration '$1': more than four components" >&2
d145 4
a148 15
			  cloudabi*-eabi* \
			| kfreebsd*-gnu* \
			| knetbsd*-gnu* \
			| kopensolaris*-gnu* \
			| linux-* \
			| managarm-* \
			| netbsd*-eabi* \
			| netbsd*-gnu* \
			| nto-qnx* \
			| os2-emx* \
			| rtmk-nova* \
			| storm-chaos* \
			| uclinux-gnu* \
			| uclinux-uclibc* \
			| windows-* )
d163 1
a164 5
			# Shorthands that happen to contain a single dash
			convex-c[12] | convex-c3[248])
				basic_machine=$field2-convex
				basic_os=
				;;
d172 1
a172 1
					# Do not treat sunos as a manufacturer
d177 4
d182 9
a190 69
					  3100* \
					| 32* \
					| 3300* \
					| 3600* \
					| 7300* \
					| acorn \
					| altos* \
					| apollo \
					| apple \
					| atari \
					| att* \
					| axis \
					| be \
					| bull \
					| cbm \
					| ccur \
					| cisco \
					| commodore \
					| convergent* \
					| convex* \
					| cray \
					| crds \
					| dec* \
					| delta* \
					| dg \
					| digital \
					| dolphin \
					| encore* \
					| gould \
					| harris \
					| highlevel \
					| hitachi* \
					| hp \
					| ibm* \
					| intergraph \
					| isi* \
					| knuth \
					| masscomp \
					| microblaze* \
					| mips* \
					| motorola* \
					| ncr* \
					| news \
					| next \
					| ns \
					| oki \
					| omron* \
					| pc533* \
					| rebel \
					| rom68k \
					| rombug \
					| semi \
					| sequent* \
					| siemens \
					| sgi* \
					| siemens \
					| sim \
					| sni \
					| sony* \
					| stratus \
					| sun \
					| sun[234]* \
					| tektronix \
					| tti* \
					| ultra \
					| unicom* \
					| wec \
					| winbond \
					| wrs)
a193 4
					zephyr*)
						basic_machine=$field1-unknown
						basic_os=$field2
						;;
d274 20
d716 2
a717 1
	delta | 3300 | delta-motorola | 3300-motorola | motorola-delta | motorola-3300)
d721 1
a721 6
	# This used to be dpx2*, but that gets the RS6000-based
	# DPX/20 and the x86-based DPX/2-100 wrong.  See
	# https://oldskool.silicium.org/stations/bull_dpx20.htm
	# https://www.feb-patrimoine.com/english/bull_dpx2.htm
	# https://www.feb-patrimoine.com/english/unix_and_bull.htm
	dpx2 | dpx2[23]00 | dpx2[23]xx)
d724 1
a724 8
		;;
	dpx2100 | dpx21xx)
		cpu=i386
		vendor=bull
		;;
	dpx20)
		cpu=rs6000
		vendor=bull
d839 12
d939 1
d946 1
a946 1
	# We use 'pc' rather than 'unknown'
d974 2
a975 6
	# Here we handle the default manufacturer of certain CPU types in canonical form.
	# It is in some cases the only manufacturer, in others, it is the most popular.
	c[12]-convex | c[12]-unknown | c3[248]-convex | c3[248]-unknown)
		vendor=convex
		basic_os=${basic_os:-bsd}
		;;
d982 1
a982 1
		basic_os=${basic_os:-unicos}
d1028 3
a1030 18

	# Normalized CPU+vendor pairs that imply an OS, if not otherwise specified
	m68k-isi)
		basic_os=${basic_os:-sysv}
		;;
	m68k-sony)
		basic_os=${basic_os:-newsos}
		;;
	m68k-tektronix)
		basic_os=${basic_os:-bsd}
		;;
	m88k-harris)
		basic_os=${basic_os:-sysv3}
		;;
	i386-bull | m68k-bull)
		basic_os=${basic_os:-sysv3}
		;;
	rs6000-bull)
a1032 3
	mips-sni)
		basic_os=${basic_os:-sysv4}
		;;
d1040 1
a1040 1
		basic_os=${basic_os:-linux}
d1063 1
a1063 1
		basic_os=${basic_os:-linux}
d1073 1
a1073 1
		basic_os=${basic_os:-linux}
d1078 1
a1078 1
	pentiumpro-* | p6-* | 6x86-* | athlon-* | athlon_*-*)
d1087 3
d1123 3
d1181 1
a1181 3
			  1750a \
			| 580 \
			| [cjt]90 \
d1183 1
a1183 3
			| aarch64 \
			| aarch64_be \
			| aarch64c \
d1185 3
a1187 10
			| alpha \
			| alpha64 \
			| alpha64ev56 \
			| alpha64ev6[78] \
			| alpha64ev[4-8] \
			| alpha64pca5[67] \
			| alphaev56 \
			| alphaev6[78] \
			| alphaev[4-8] \
			| alphapca5[67] \
d1190 3
a1192 10
			| arc \
			| arc32 \
			| arc64 \
			| arceb \
			| arm \
			| arm64e \
			| arm64ec \
			| arm[lb]e \
			| arme[lb] \
			| armv* \
a1193 2
			| avr \
			| avr32 \
d1195 9
a1203 29
			| be32 \
			| be64 \
			| bfin \
			| bpf \
			| bs2000 \
			| c30 \
			| c4x \
			| c8051 \
			| c[123]* \
			| clipper \
			| craynv \
			| csky \
			| cydra \
			| d10v \
			| d30v \
			| dlx \
			| dsp16xx \
			| e2k \
			| elxsi \
			| epiphany \
			| f30[01] \
			| f700 \
			| fido \
			| fr30 \
			| frv \
			| ft32 \
			| fx80 \
			| h8300 \
			| h8500 \
d1205 2
a1206 14
			| hppa \
			| hppa1.[01] \
			| hppa2.0 \
			| hppa2.0[nw] \
			| hppa64 \
			| i*86 \
			| i370 \
			| i860 \
			| i960 \
			| ia16 \
			| ia64 \
			| ip2k \
			| iq2000 \
			| javascript \
d1208 1
a1208 3
			| kvx \
			| le32 \
			| le64 \
d1210 31
a1240 26
			| loongarch32 \
			| loongarch64 \
			| m32c \
			| m32r \
			| m32rle \
			| m5200 \
			| m68000 \
			| m680[012346]0 \
			| m6811 \
			| m6812 \
			| m68360 \
			| m683?2 \
			| m68hc11 \
			| m68hc12 \
			| m68hcs12x \
			| m68k \
			| m88110 \
			| m88k \
			| maxq \
			| mb \
			| mcore \
			| mep \
			| metag \
			| microblaze \
			| microblazeel \
			| mips* \
d1242 1
a1242 2
			| mn10200 \
			| mn10300 \
d1244 1
d1246 1
a1246 5
			| mt \
			| nanomips* \
			| nds32 \
			| nds32be \
			| nds32le \
d1248 2
a1249 9
			| nios \
			| nios2 \
			| nios2eb \
			| nios2el \
			| none \
			| np1 \
			| ns16k \
			| ns32k \
			| nvptx \
a1253 2
			| pdp10 \
			| pdp11 \
d1255 2
a1256 9
			| pj \
			| pjl \
			| pn \
			| power \
			| powerpc \
			| powerpc64 \
			| powerpc64le \
			| powerpcle \
			| powerpcspe \
d1259 3
a1261 11
			| riscv \
			| riscv32 \
			| riscv32be \
			| riscv64 \
			| riscv64be \
			| rl78 \
			| romp \
			| rs6000 \
			| rx \
			| s390 \
			| s390x \
d1263 4
a1266 19
			| sh \
			| sh64 \
			| sh64le \
			| sh[12345][lb]e \
			| sh[1234] \
			| sh[1234]e[lb] \
			| sh[23]e \
			| sh[23]ele \
			| sh[24]a \
			| sh[24]ae[lb] \
			| sh[lb]e \
			| she[lb] \
			| shl \
			| sparc \
			| sparc64 \
			| sparc64b \
			| sparc64v \
			| sparc86x \
			| sparclet \
d1268 1
a1268 4
			| sparcv8 \
			| sparcv9 \
			| sparcv9b \
			| sparcv9v \
a1269 2
			| sv1 \
			| sx* \
d1272 1
a1272 6
			| tic30 \
			| tic4x \
			| tic54x \
			| tic55x \
			| tic6x \
			| tic80 \
d1275 1
a1275 8
			| v70 \
			| v810 \
			| v850 \
			| v850e \
			| v850e1 \
			| v850e2 \
			| v850e2v3 \
			| v850es \
a1276 1
			| vc4 \
d1279 1
a1279 2
			| wasm32 \
			| wasm64 \
d1281 2
a1282 7
			| x86 \
			| x86_64 \
			| xc16x \
			| xgate \
			| xps100 \
			| xstormy16 \
			| xtensa* \
d1284 1
a1284 2
			| z80 \
			| z8k)
d1288 1
a1288 1
				echo "Invalid configuration '$1': machine '$cpu-$vendor' not recognized" 1>&2
d1309 1
a1309 1
if test x"$basic_os" != x
a1313 1
obj=
d1328 1
a1343 4
	managarm*)
		kernel=managarm
		os=`echo "$basic_os" | sed -e 's|managarm|mlibc|'`
		;;
a1370 17
	# The marketing names for NeXT's operating systems were
	# NeXTSTEP, NeXTSTEP 2, OpenSTEP 3, OpenSTEP 4.  'openstep' is
	# mapped to 'openstep3', but 'openstep1' and 'openstep2' are
	# mapped to 'nextstep' and 'nextstep2', consistent with the
	# treatment of SunOS/Solaris.
	ns | ns1 | nextstep | nextstep1 | openstep1)
		os=nextstep
		;;
	ns2 | nextstep2 | openstep2)
		os=nextstep2
		;;
	ns3 | nextstep3 | openstep | openstep3)
		os=openstep3
		;;
	ns4 | nextstep4 | openstep4)
		os=openstep4
		;;
a1440 1
		vendor=`echo "$vendor" | sed -e 's|^unknown$|tektronix|'`
d1457 1
a1457 1
	ctix*)
a1458 1
		vendor=`echo "$vendor" | sed -e 's|^unknown$|convergent|'`
d1460 2
a1461 2
	uts*)
		os=sysv
d1463 2
a1464 3
	nova*)
		kernel=rtmk
		os=nova
a1468 1
		vendor=`echo "$vendor" | sed -e 's|^unknown$|sni|'`
a1471 1
		vendor=`echo "$vendor" | sed -e 's|^unknown$|sni|'`
d1509 1
a1509 2
			os=
			obj=elf
a1512 5
	aout* | coff* | elf* | pe*)
		# These are machine code file formats, not OSes
		obj=$os
		os=
		;;
a1530 1
obj=
d1533 1
a1533 2
		os=
		obj=elf
d1536 1
a1536 2
		os=
		obj=elf
d1546 1
a1546 2
		os=
		obj=aout
d1549 1
a1549 2
		os=
		obj=coff
d1552 1
a1552 2
		os=
		obj=elf
d1558 1
a1558 2
		os=
		obj=elf
d1561 1
a1561 2
		os=
		obj=coff
d1564 1
a1564 2
		os=
		obj=coff
d1567 1
a1567 2
		os=
		obj=coff
d1589 1
a1589 2
		os=
		obj=aout
d1592 1
a1592 10
		os=
		obj=elf
		;;
	# The -sgi and -siemens entries must be before the mips- entry
	# or we get the wrong os.
	*-sgi)
		os=irix
		;;
	*-siemens)
		os=sysv4
d1595 1
a1595 2
		os=
		obj=elf
d1597 2
a1598 3
	mips*-*|nanomips*-*)
		os=
		obj=elf
d1601 1
a1601 2
		os=
		obj=coff
d1603 1
a1603 2
	# This must be before the sparc-* entry or we get the wrong os.
	*-tti)
d1610 1
a1610 2
		os=
		obj=elf
d1634 1
a1634 1
		os=hiuxwe2
d1678 6
d1691 1
a1691 2
		os=
		obj=coff
d1694 1
a1694 2
		os=
		obj=coff
d1712 1
a1712 2
# Now, validate our (potentially fixed-up) individual pieces (OS, OBJ).

d1715 1
a1715 1
	llvm* | musl* | newlib* | relibc* | uclibc*)
a1722 3
	# See `case $cpu-$os` validation below
	ghcjs)
		;;
d1724 1
d1726 32
a1757 186
	  abug \
	| aix* \
	| amdhsa* \
	| amigados* \
	| amigaos* \
	| android* \
	| aof* \
	| aos* \
	| aros* \
	| atheos* \
	| auroraux* \
	| aux* \
	| beos* \
	| bitrig* \
	| bme* \
	| bosx* \
	| bsd* \
	| cegcc* \
	| chorusos* \
	| chorusrdb* \
	| clix* \
	| cloudabi* \
	| cnk* \
	| conix* \
	| cos* \
	| cxux* \
	| cygwin* \
	| darwin* \
	| dgux* \
	| dicos* \
	| dnix* \
	| domain* \
	| dragonfly* \
	| drops* \
	| ebmon* \
	| ecoff* \
	| ekkobsd* \
	| emscripten* \
	| emx* \
	| es* \
	| fiwix* \
	| freebsd* \
	| fuchsia* \
	| genix* \
	| genode* \
	| glidix* \
	| gnu* \
	| go32* \
	| haiku* \
	| hcos* \
	| hiux* \
	| hms* \
	| hpux* \
	| ieee* \
	| interix* \
	| ios* \
	| iris* \
	| irix* \
	| ironclad* \
	| isc* \
	| its* \
	| l4re* \
	| libertybsd* \
	| lites* \
	| lnews* \
	| luna* \
	| lynxos* \
	| mach* \
	| macos* \
	| magic* \
	| mbr* \
	| midipix* \
	| midnightbsd* \
	| mingw32* \
	| mingw64* \
	| minix* \
	| mint* \
	| mirbsd* \
	| mks* \
	| mlibc* \
	| mmixware* \
	| mon960* \
	| morphos* \
	| moss* \
	| moxiebox* \
	| mpeix* \
	| mpw* \
	| msdos* \
	| msys* \
	| mvs* \
	| nacl* \
	| netbsd* \
	| netware* \
	| newsos* \
	| nextstep* \
	| nindy* \
	| nonstopux* \
	| nova* \
	| nsk* \
	| nucleus* \
	| nx6 \
	| nx7 \
	| oabi* \
	| ohos* \
	| onefs* \
	| openbsd* \
	| openedition* \
	| openstep* \
	| os108* \
	| os2* \
	| os400* \
	| os68k* \
	| os9* \
	| ose* \
	| osf* \
	| oskit* \
	| osx* \
	| palmos* \
	| phoenix* \
	| plan9* \
	| powermax* \
	| powerunix* \
	| proelf* \
	| psos* \
	| psp* \
	| ptx* \
	| pw32* \
	| qnx* \
	| rdos* \
	| redox* \
	| rhapsody* \
	| riscix* \
	| riscos* \
	| rtems* \
	| rtmk* \
	| rtu* \
	| scout* \
	| secbsd* \
	| sei* \
	| serenity* \
	| sim* \
	| skyos* \
	| solaris* \
	| solidbsd* \
	| sortix* \
	| storm-chaos* \
	| sunos \
	| sunos[34]* \
	| superux* \
	| syllable* \
	| sym* \
	| sysv* \
	| tenex* \
	| tirtos* \
	| toppers* \
	| tops10* \
	| tops20* \
	| tpf* \
	| tvos* \
	| twizzler* \
	| uclinux* \
	| udi* \
	| udk* \
	| ultrix* \
	| unicos* \
	| uniplus* \
	| unleashed* \
	| unos* \
	| uwin* \
	| uxpv* \
	| v88r* \
	|*vms* \
	| vos* \
	| vsta* \
	| vxsim* \
	| vxworks* \
	| wasi* \
	| watchos* \
	| wince* \
	| windiss* \
	| windows* \
	| winnt* \
	| xenix* \
	| xray* \
	| zephyr* \
	| zvmoe* )
a1762 7
	# This refers to builds using the UEFI calling convention
	# (which depends on the architecture) and PE file format.
	# Note that this is both a different calling convention and
	# different file format than that of GNU-EFI
	# (x86_64-w64-mingw32).
	uefi)
		;;
a1764 9
	kernel* | msvc* )
		# Restricted further below
		;;
	'')
		if test x"$obj" = x
		then
			echo "Invalid configuration '$1': Blank OS only allowed with explicit machine code file format" 1>&2
		fi
		;;
d1766 1
a1766 27
		echo "Invalid configuration '$1': OS '$os' not recognized" 1>&2
		exit 1
		;;
esac

case $obj in
	aout* | coff* | elf* | pe*)
		;;
	'')
		# empty is fine
		;;
	*)
		echo "Invalid configuration '$1': Machine code format '$obj' not recognized" 1>&2
		exit 1
		;;
esac

# Here we handle the constraint that a (synthetic) cpu and os are
# valid only in combination with each other and nowhere else.
case $cpu-$os in
	# The "javascript-unknown-ghcjs" triple is used by GHC; we
	# accept it here in order to tolerate that, but reject any
	# variations.
	javascript-ghcjs)
		;;
	javascript-* | *-ghcjs)
		echo "Invalid configuration '$1': cpu '$cpu' is not valid with os '$os$obj'" 1>&2
d1773 3
a1775 8
case $kernel-$os-$obj in
	linux-gnu*- | linux-android*- | linux-dietlibc*- | linux-llvm*- \
		    | linux-mlibc*- | linux-musl*- | linux-newlib*- \
		    | linux-relibc*- | linux-uclibc*- | linux-ohos*- )
		;;
	uclinux-uclibc*- | uclinux-gnu*- )
		;;
	managarm-mlibc*- | managarm-kernel*- )
d1777 1
a1777 1
	windows*-msvc*-)
d1779 1
a1779 2
	-dietlibc*- | -llvm*- | -mlibc*- | -musl*- | -newlib*- | -relibc*- \
		    | -uclibc*- )
d1782 1
a1782 1
		echo "Invalid configuration '$1': libc '$os' needs explicit kernel." 1>&2
d1785 1
a1785 3
	-kernel*- )
		echo "Invalid configuration '$1': '$os' needs explicit kernel." 1>&2
		exit 1
d1787 1
a1787 3
	*-kernel*- )
		echo "Invalid configuration '$1': '$kernel' does not support '$os'." 1>&2
		exit 1
d1789 1
a1789 3
	*-msvc*- )
		echo "Invalid configuration '$1': '$os' needs 'windows'." 1>&2
		exit 1
d1791 1
a1791 5
	kfreebsd*-gnu*- | knetbsd*-gnu*- | netbsd*-gnu*- | kopensolaris*-gnu*-)
		;;
	vxworks-simlinux- | vxworks-simwindows- | vxworks-spe-)
		;;
	nto-qnx*-)
d1793 1
a1793 1
	os2-emx-)
d1795 1
a1795 9
	rtmk-nova-)
		;;
	*-eabi*- | *-gnueabi*-)
		;;
	none--*)
		# None (no kernel, i.e. freestanding / bare metal),
		# can be paired with an machine code file format
		;;
	-*-)
d1798 2
a1799 5
	--*)
		# Blank kernel and OS with real machine code file format is always fine.
		;;
	*-*-*)
		echo "Invalid configuration '$1': Kernel '$kernel' not known to work with OS '$os'." 1>&2
d1812 1
a1812 1
			*-sunos* | *-solaris*)
d1882 1
a1882 1
echo "$cpu-$vendor${kernel:+-$kernel}${os:+-$os}${obj:+-$obj}"
@


