head 1.10; access; symbols netbsd-11-0-RC5:1.8 netbsd-11-0-RC4:1.8 byacc-20260126:1.1.1.14 netbsd-11-0-RC3:1.8 netbsd-11-0-RC2:1.8 netbsd-11-0-RC1:1.8 byacc-20241231:1.1.1.13 perseant-exfatfs-base-20250801:1.8 netbsd-11:1.8.0.2 netbsd-11-base:1.8 netbsd-10-1-RELEASE:1.7 byacc-20240109:1.1.1.12 perseant-exfatfs-base-20240630:1.7 perseant-exfatfs:1.7.0.8 perseant-exfatfs-base:1.7 netbsd-8-3-RELEASE:1.2.4.1 netbsd-9-4-RELEASE:1.4 netbsd-10-0-RELEASE:1.7 netbsd-10-0-RC6:1.7 netbsd-10-0-RC5:1.7 netbsd-10-0-RC4:1.7 netbsd-10-0-RC3:1.7 netbsd-10-0-RC2:1.7 netbsd-10-0-RC1:1.7 netbsd-10:1.7.0.6 netbsd-10-base:1.7 netbsd-9-3-RELEASE:1.4 cjep_sun2x-base1:1.7 cjep_sun2x:1.7.0.4 cjep_sun2x-base:1.7 cjep_staticlib_x-base1:1.7 netbsd-9-2-RELEASE:1.4 cjep_staticlib_x:1.7.0.2 cjep_staticlib_x-base:1.7 byacc-20210109:1.1.1.11 netbsd-9-1-RELEASE:1.4 phil-wifi-20200421:1.5 phil-wifi-20200411:1.5 is-mlppp:1.5.0.2 is-mlppp-base:1.5 phil-wifi-20200406:1.5 netbsd-8-2-RELEASE:1.2.4.1 netbsd-9-0-RELEASE:1.4 netbsd-9-0-RC2:1.4 netbsd-9-0-RC1:1.4 phil-wifi-20191119:1.5 byacc-20190617:1.1.1.10 netbsd-9:1.4.0.2 netbsd-9-base:1.4 phil-wifi-20190609:1.4 netbsd-8-1-RELEASE:1.2.4.1 netbsd-8-1-RC1:1.2.4.1 pgoyette-compat-merge-20190127:1.3.4.1 pgoyette-compat-20190127:1.4 pgoyette-compat-20190118:1.4 pgoyette-compat-1226:1.4 byacc-20180609:1.1.1.9 pgoyette-compat-1126:1.3 pgoyette-compat-1020:1.3 pgoyette-compat-0930:1.3 pgoyette-compat-0906:1.3 netbsd-7-2-RELEASE:1.1.1.4 pgoyette-compat-0728:1.3 netbsd-8-0-RELEASE:1.2.4.1 phil-wifi:1.3.0.6 phil-wifi-base:1.3 pgoyette-compat-0625:1.3 netbsd-8-0-RC2:1.2.4.1 pgoyette-compat-0521:1.3 pgoyette-compat-0502:1.3 pgoyette-compat-0422:1.3 netbsd-8-0-RC1:1.2.4.1 pgoyette-compat-0415:1.3 pgoyette-compat-0407:1.3 pgoyette-compat-0330:1.3 pgoyette-compat-0322:1.3 pgoyette-compat-0315:1.3 netbsd-7-1-2-RELEASE:1.1.1.4 pgoyette-compat:1.3.0.4 pgoyette-compat-base:1.3 netbsd-7-1-1-RELEASE:1.1.1.4 matt-nb8-mediatek:1.2.4.1.0.2 matt-nb8-mediatek-base:1.2.4.1 perseant-stdc-iso10646:1.3.0.2 perseant-stdc-iso10646-base:1.3 byacc-20170430:1.1.1.8 netbsd-8:1.2.0.4 netbsd-8-base:1.2 prg-localcount2-base3:1.2 prg-localcount2-base2:1.2 prg-localcount2-base1:1.2 prg-localcount2:1.2.0.2 prg-localcount2-base:1.2 pgoyette-localcount-20170426:1.2 bouyer-socketcan-base1:1.2 pgoyette-localcount-20170320:1.2 netbsd-7-1:1.1.1.4.0.14 netbsd-7-1-RELEASE:1.1.1.4 netbsd-7-1-RC2:1.1.1.4 byacc-20170201:1.1.1.7 netbsd-7-nhusb-base-20170116:1.1.1.4 bouyer-socketcan:1.1.1.6.0.4 bouyer-socketcan-base:1.1.1.6 pgoyette-localcount-20170107:1.1.1.6 netbsd-7-1-RC1:1.1.1.4 pgoyette-localcount-20161104:1.1.1.6 netbsd-7-0-2-RELEASE:1.1.1.4 localcount-20160914:1.1.1.6 netbsd-7-nhusb:1.1.1.4.0.12 netbsd-7-nhusb-base:1.1.1.4 pgoyette-localcount-20160806:1.1.1.6 pgoyette-localcount-20160726:1.1.1.6 pgoyette-localcount:1.1.1.6.0.2 pgoyette-localcount-base:1.1.1.6 netbsd-7-0-1-RELEASE:1.1.1.4 byacc-20150711:1.1.1.6 netbsd-7-0:1.1.1.4.0.10 netbsd-7-0-RELEASE:1.1.1.4 netbsd-7-0-RC3:1.1.1.4 netbsd-7-0-RC2:1.1.1.4 netbsd-7-0-RC1:1.1.1.4 byacc-20141128:1.1.1.5 netbsd-6-0-6-RELEASE:1.1.1.3 netbsd-6-1-5-RELEASE:1.1.1.3 netbsd-7:1.1.1.4.0.8 netbsd-7-base:1.1.1.4 yamt-pagecache-base9:1.1.1.4 yamt-pagecache-tag8:1.1.1.3 netbsd-6-1-4-RELEASE:1.1.1.3 netbsd-6-0-5-RELEASE:1.1.1.3 tls-earlyentropy:1.1.1.4.0.6 tls-earlyentropy-base:1.1.1.4 riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.1.1.4 riastradh-drm2-base3:1.1.1.4 netbsd-6-1-3-RELEASE:1.1.1.3 netbsd-6-0-4-RELEASE:1.1.1.3 netbsd-6-1-2-RELEASE:1.1.1.3 netbsd-6-0-3-RELEASE:1.1.1.3 netbsd-6-1-1-RELEASE:1.1.1.3 riastradh-drm2-base2:1.1.1.4 riastradh-drm2-base1:1.1.1.4 riastradh-drm2:1.1.1.4.0.4 riastradh-drm2-base:1.1.1.4 netbsd-6-1:1.1.1.3.0.16 netbsd-6-0-2-RELEASE:1.1.1.3 netbsd-6-1-RELEASE:1.1.1.3 khorben-n900:1.1.1.4.0.2 netbsd-6-1-RC4:1.1.1.3 byacc-20130304:1.1.1.4 netbsd-6-1-RC3:1.1.1.3 agc-symver:1.1.1.3.0.14 agc-symver-base:1.1.1.3 netbsd-6-1-RC2:1.1.1.3 netbsd-6-1-RC1:1.1.1.3 yamt-pagecache-base8:1.1.1.3 netbsd-6-0-1-RELEASE:1.1.1.3 yamt-pagecache-base7:1.1.1.3 matt-nb6-plus-nbase:1.1.1.3 yamt-pagecache-base6:1.1.1.3 netbsd-6-0:1.1.1.3.0.10 netbsd-6-0-RELEASE:1.1.1.3 netbsd-6-0-RC2:1.1.1.3 tls-maxphys:1.1.1.3.0.8 tls-maxphys-base:1.1.1.4 matt-nb6-plus:1.1.1.3.0.6 matt-nb6-plus-base:1.1.1.3 netbsd-6-0-RC1:1.1.1.3 yamt-pagecache-base5:1.1.1.3 yamt-pagecache-base4:1.1.1.3 netbsd-6:1.1.1.3.0.4 netbsd-6-base:1.1.1.3 yamt-pagecache-base3:1.1.1.3 yamt-pagecache-base2:1.1.1.3 yamt-pagecache:1.1.1.3.0.2 yamt-pagecache-base:1.1.1.3 byacc-20110908:1.1.1.3 cherry-xenmp:1.1.1.2.0.4 cherry-xenmp-base:1.1.1.2 bouyer-quota2-nbase:1.1.1.2 bouyer-quota2:1.1.1.2.0.2 bouyer-quota2-base:1.1.1.2 matt-mips64-premerge-20101231:1.1.1.2 byacc-20101127:1.1.1.2 matt-premerge-20091211:1.1.1.1 byacc-20091027:1.1.1.1 DICKEY:1.1.1; locks; strict; comment @# @; 1.10 date 2026.05.03.15.29.19; author christos; state Exp; branches; next 1.9; commitid j2qiJt8NASqMKnEG; 1.9 date 2026.01.18.16.41.29; author christos; state Exp; branches; next 1.8; commitid aBHOlbcJT8wMwTqG; 1.8 date 2024.09.14.21.29.02; author christos; state Exp; branches; next 1.7; commitid lKDNYUOQeXsSTOpF; 1.7 date 2021.02.20.22.57.56; author christos; state Exp; branches 1.7.8.1; next 1.6; commitid uoBW1Q1EE9oifvIC; 1.6 date 2020.11.17.10.35.11; author rin; state Exp; branches; next 1.5; commitid hRb62eUrAIizbewC; 1.5 date 2019.10.06.23.29.42; author christos; state Exp; branches; next 1.4; commitid hy3qc8IEc20iARFB; 1.4 date 2018.12.23.15.38.53; author christos; state Exp; branches; next 1.3; commitid 4BmzHVHFHbU4dW4B; 1.3 date 2017.06.05.18.54.30; author christos; state Exp; branches 1.3.4.1 1.3.6.1; next 1.2; commitid NQtX19gjOzd9udUz; 1.2 date 2017.02.01.09.26.40; author sevan; state Exp; branches 1.2.4.1; next 1.1; commitid GAil0cnWzrQL6eEz; 1.1 date 2009.10.29.00.46.52; author christos; state Exp; branches 1.1.1.1; next ; 1.7.8.1 date 2025.08.02.05.20.54; author perseant; state Exp; branches; next ; commitid 23j6GFaDws3O875G; 1.3.4.1 date 2018.12.26.14.01.14; author pgoyette; state Exp; branches; next ; commitid xUhK8IAeBM1azj5B; 1.3.6.1 date 2019.06.10.21.44.41; author christos; state Exp; branches; next 1.3.6.2; commitid jtc8rnCzWiEEHGqB; 1.3.6.2 date 2020.04.13.07.45.49; author martin; state Exp; branches; next ; commitid X01YhRUPVUDaec4C; 1.2.4.1 date 2017.07.18.18.09.43; author snj; state Exp; branches; next ; commitid S2qYDdYxulT4RJZz; 1.1.1.1 date 2009.10.29.00.46.52; author christos; state Exp; branches; next 1.1.1.2; 1.1.1.2 date 2010.12.23.23.36.23; author christos; state Exp; branches; next 1.1.1.3; 1.1.1.3 date 2011.09.10.21.19.04; author christos; state Exp; branches 1.1.1.3.2.1 1.1.1.3.8.1; next 1.1.1.4; 1.1.1.4 date 2013.04.06.14.45.24; author christos; state Exp; branches; next 1.1.1.5; 1.1.1.5 date 2015.01.03.22.58.23; author christos; state Exp; branches; next 1.1.1.6; commitid WWTpfhLfU6SzfD4y; 1.1.1.6 date 2016.01.09.21.55.10; author christos; state Exp; branches 1.1.1.6.2.1 1.1.1.6.4.1; next 1.1.1.7; commitid Gs8oKaOBpCYwYiQy; 1.1.1.7 date 2017.02.11.19.30.02; author christos; state Exp; branches; next 1.1.1.8; commitid wnNPHIKvRp3plzFz; 1.1.1.8 date 2017.06.05.18.49.47; author christos; state Exp; branches; next 1.1.1.9; commitid 84q8jfg1TgvzsdUz; 1.1.1.9 date 2018.12.23.15.26.13; author christos; state Exp; branches; next 1.1.1.10; commitid riMIEtIheYLD8W4B; 1.1.1.10 date 2019.10.06.23.19.26; author christos; state Exp; branches; next 1.1.1.11; commitid JrU1iCEVX140xRFB; 1.1.1.11 date 2021.02.20.20.30.06; author christos; state Exp; branches; next 1.1.1.12; commitid alShVYroLa0uquIC; 1.1.1.12 date 2024.09.14.21.25.36; author christos; state Exp; branches; next 1.1.1.13; commitid jHewswoOAOgqSOpF; 1.1.1.13 date 2026.01.18.16.39.06; author christos; state Exp; branches; next 1.1.1.14; commitid RKx5m0Qp6RwMvTqG; 1.1.1.14 date 2026.05.03.15.24.33; author christos; state Exp; branches; next ; commitid BhlzZP3GV92FInEG; 1.1.1.3.2.1 date 2014.05.22.15.44.17; author yamt; state Exp; branches; next ; commitid l93nvDjAO1P27yBx; 1.1.1.3.8.1 date 2013.06.23.06.26.26; author tls; state Exp; branches; next ; commitid OnlO1cBgtQRcIHUw; 1.1.1.6.2.1 date 2017.03.20.06.52.17; author pgoyette; state Exp; branches; next ; commitid jjw7cAwgyKq7RfKz; 1.1.1.6.4.1 date 2017.04.21.16.51.21; author bouyer; state Exp; branches; next ; commitid dUG7nkTKALCadqOz; desc @@ 1.10 log @merge changes between 20241231 and 20260126 @ text @#! /bin/sh # Attempt to guess a canonical system name. # Copyright 1992-2025 Free Software Foundation, Inc. # shellcheck disable=SC2006,SC2268 # see below for rationale timestamp='2025-07-10' # 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 . # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that # program. This Exception is an additional permission under section 7 # of the GNU General Public License, version 3 ("GPLv3"). # # Originally written by Per Bothner; maintained since 2000 by Ben Elliston. # # You can get the latest version of this script from: # https://git.savannah.gnu.org/cgit/config.git/plain/config.guess # # Please send patches to . # The "shellcheck disable" line above the timestamp inhibits complaints # about features and limitations of the classic Bourne shell that were # superseded or lifted in POSIX. However, this script identifies a wide # variety of pre-POSIX systems that do not have POSIX shells at all, and # even some reasonably current systems (Solaris 10 as case-in-point) still # have a pre-POSIX /bin/sh. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] Output the configuration name of the system '$me' is run on. Options: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.guess ($timestamp) Originally written by Per Bothner. Copyright 1992-2025 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try '$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" >&2 exit 1 ;; * ) break ;; esac done if test $# != 0; then echo "$me: too many arguments$help" >&2 exit 1 fi # Just in case it came from the environment. GUESS= # CC_FOR_BUILD -- compiler used by this script. Note that the use of a # compiler to aid in system detection is discouraged as it requires # temporary files to be created and, as you can see below, it is a # headache to deal with in a portable fashion. # Historically, 'CC_FOR_BUILD' used to be named 'HOST_CC'. We still # use 'HOST_CC' if defined, but it is deprecated. # Portable tmp directory creation inspired by the Autoconf team. tmp= # shellcheck disable=SC2172 trap 'test -z "$tmp" || rm -fr "$tmp"' 0 1 2 13 15 set_cc_for_build() { # prevent multiple calls if $tmp is already set test "$tmp" && return 0 : "${TMPDIR=/tmp}" # shellcheck disable=SC2039,SC3028 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir "$tmp" 2>/dev/null) ; } || { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir "$tmp" 2>/dev/null) && echo "Warning: creating insecure temp directory" >&2 ; } || { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } dummy=$tmp/dummy case ${CC_FOR_BUILD-},${HOST_CC-},${CC-} in ,,) echo "int x;" > "$dummy.c" for driver in cc gcc c17 c99 c89 ; do if ($driver -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then CC_FOR_BUILD=$driver break fi done if test x"$CC_FOR_BUILD" = x ; then CC_FOR_BUILD=no_compiler_found fi ;; ,,*) CC_FOR_BUILD=$CC ;; ,*,*) CC_FOR_BUILD=$HOST_CC ;; esac } # This is needed to find uname on a Pyramid OSx when run in the BSD universe. # (ghazi@@noc.rutgers.edu 1994-08-24) if test -f /.attbin/uname ; then PATH=$PATH:/.attbin ; export PATH fi UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown case $UNAME_SYSTEM in Linux|GNU|GNU/*) LIBC=unknown set_cc_for_build cat <<-EOF > "$dummy.c" #if defined(__ANDROID__) LIBC=android #else #include #if defined(__UCLIBC__) LIBC=uclibc #elif defined(__dietlibc__) LIBC=dietlibc #elif defined(__GLIBC__) LIBC=gnu #elif defined(__LLVM_LIBC__) LIBC=llvm #else #include /* First heuristic to detect musl libc. */ #ifdef __DEFINED_va_list LIBC=musl #endif #endif #endif EOF cc_set_libc=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'` eval "$cc_set_libc" # Second heuristic to detect musl libc. if [ "$LIBC" = unknown ] && command -v ldd >/dev/null && ldd --version 2>&1 | grep -q ^musl; then LIBC=musl fi # If the system lacks a compiler, then just pick glibc. # We could probably try harder. if [ "$LIBC" = unknown ]; then LIBC=gnu fi ;; esac # Note: order is significant - the case branches are not exclusive. case $UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION in *:NetBSD:*:*) # NetBSD (nbsd) targets should (where applicable) match one or # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently # switched to ELF, *-*-netbsd* would select the old # object file format. This provides both forward # compatibility and a consistent mechanism for selecting the # object file format. # # Note: NetBSD doesn't particularly care about the vendor # portion of the name. We always set it to "unknown". UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \ /sbin/sysctl -n hw.machine_arch 2>/dev/null || \ /usr/sbin/sysctl -n hw.machine_arch 2>/dev/null || \ echo unknown)` case $UNAME_MACHINE_ARCH in aarch64eb) machine=aarch64_be-unknown ;; armeb) machine=armeb-unknown ;; arm*) machine=arm-unknown ;; sh3el) machine=shl-unknown ;; sh3eb) machine=sh-unknown ;; sh5el) machine=sh5le-unknown ;; earmv*) arch=`echo "$UNAME_MACHINE_ARCH" | sed -e 's,^e\(armv[0-9]\).*$,\1,'` endian=`echo "$UNAME_MACHINE_ARCH" | sed -ne 's,^.*\(eb\)$,\1,p'` machine=${arch}${endian}-unknown ;; *) machine=$UNAME_MACHINE_ARCH-unknown ;; esac # The Operating System including object format, if it has switched # to ELF recently (or will in the future) and ABI. case $UNAME_MACHINE_ARCH in earm*) os=netbsdelf ;; arm*|i386|m68k|ns32k|sh3*|sparc|vax) set_cc_for_build if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ELF__ then # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). # Return netbsd for either. FIX? os=netbsd else os=netbsdelf fi ;; *) os=netbsd ;; esac # Determine ABI tags. case $UNAME_MACHINE_ARCH in earm*) expr='s/^earmv[0-9]/-eabi/;s/eb$//' abi=`echo "$UNAME_MACHINE_ARCH" | sed -e "$expr"` ;; esac # The OS release # Debian GNU/NetBSD machines have a different userland, and # thus, need a distinct triplet. However, they do not need # kernel version information, so it can be replaced with a # suitable tag, in the style of linux-gnu. case $UNAME_VERSION in Debian*) release='-gnu' ;; *) release=`echo "$UNAME_RELEASE" | sed -e 's/[-_].*//' | cut -d. -f1,2` ;; esac # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: # contains redundant information, the shorter form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. GUESS=$machine-${os}${release}${abi-} ;; *:Bitrig:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` GUESS=$UNAME_MACHINE_ARCH-unknown-bitrig$UNAME_RELEASE ;; *:OpenBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` GUESS=$UNAME_MACHINE_ARCH-unknown-openbsd$UNAME_RELEASE ;; *:SecBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/SecBSD.//'` GUESS=$UNAME_MACHINE_ARCH-unknown-secbsd$UNAME_RELEASE ;; *:LibertyBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'` GUESS=$UNAME_MACHINE_ARCH-unknown-libertybsd$UNAME_RELEASE ;; *:MidnightBSD:*:*) GUESS=$UNAME_MACHINE-unknown-midnightbsd$UNAME_RELEASE ;; *:ekkoBSD:*:*) GUESS=$UNAME_MACHINE-unknown-ekkobsd$UNAME_RELEASE ;; *:SolidBSD:*:*) GUESS=$UNAME_MACHINE-unknown-solidbsd$UNAME_RELEASE ;; *:OS108:*:*) GUESS=$UNAME_MACHINE-unknown-os108_$UNAME_RELEASE ;; macppc:MirBSD:*:*) GUESS=powerpc-unknown-mirbsd$UNAME_RELEASE ;; *:MirBSD:*:*) GUESS=$UNAME_MACHINE-unknown-mirbsd$UNAME_RELEASE ;; *:Sortix:*:*) GUESS=$UNAME_MACHINE-unknown-sortix ;; *:Twizzler:*:*) GUESS=$UNAME_MACHINE-unknown-twizzler ;; *:Redox:*:*) GUESS=$UNAME_MACHINE-unknown-redox ;; mips:OSF1:*.*) GUESS=mips-dec-osf1 ;; alpha:OSF1:*:*) # Reset EXIT trap before exiting to avoid spurious non-zero exit code. trap '' 0 case $UNAME_RELEASE in *4.0) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` ;; *5.*) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` ;; esac # According to Compaq, /usr/sbin/psrinfo has been available on # OSF/1 and Tru64 systems produced since 1995. I hope that # covers most systems running today. This code pipes the CPU # types through head -n 1, so we only detect the type of CPU 0. ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` case $ALPHA_CPU_TYPE in "EV4 (21064)") UNAME_MACHINE=alpha ;; "EV4.5 (21064)") UNAME_MACHINE=alpha ;; "LCA4 (21066/21068)") UNAME_MACHINE=alpha ;; "EV5 (21164)") UNAME_MACHINE=alphaev5 ;; "EV5.6 (21164A)") UNAME_MACHINE=alphaev56 ;; "EV5.6 (21164PC)") UNAME_MACHINE=alphapca56 ;; "EV5.7 (21164PC)") UNAME_MACHINE=alphapca57 ;; "EV6 (21264)") UNAME_MACHINE=alphaev6 ;; "EV6.7 (21264A)") UNAME_MACHINE=alphaev67 ;; "EV6.8CB (21264C)") UNAME_MACHINE=alphaev68 ;; "EV6.8AL (21264B)") UNAME_MACHINE=alphaev68 ;; "EV6.8CX (21264D)") UNAME_MACHINE=alphaev68 ;; "EV6.9A (21264/EV69A)") UNAME_MACHINE=alphaev69 ;; "EV7 (21364)") UNAME_MACHINE=alphaev7 ;; "EV7.9 (21364A)") UNAME_MACHINE=alphaev79 ;; esac # A Pn.n version is a patched version. # A Vn.n version is a released version. # A Tn.n version is a released field test version. # A Xn.n version is an unreleased experimental baselevel. # 1.2 uses "1.2" for uname -r. OSF_REL=`echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz` GUESS=$UNAME_MACHINE-dec-osf$OSF_REL ;; Amiga*:UNIX_System_V:4.0:*) GUESS=m68k-unknown-sysv4 ;; *:[Aa]miga[Oo][Ss]:*:*) GUESS=$UNAME_MACHINE-unknown-amigaos ;; *:[Mm]orph[Oo][Ss]:*:*) GUESS=$UNAME_MACHINE-unknown-morphos ;; *:OS/390:*:*) GUESS=i370-ibm-openedition ;; *:z/VM:*:*) GUESS=s390-ibm-zvmoe ;; *:OS400:*:*) GUESS=powerpc-ibm-os400 ;; arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) GUESS=arm-acorn-riscix$UNAME_RELEASE ;; arm*:riscos:*:*|arm*:RISCOS:*:*) GUESS=arm-unknown-riscos ;; SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) GUESS=hppa1.1-hitachi-hiuxmpp ;; Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) # akee@@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. case `(/bin/universe) 2>/dev/null` in att) GUESS=pyramid-pyramid-sysv3 ;; *) GUESS=pyramid-pyramid-bsd ;; esac ;; NILE*:*:*:dcosx) GUESS=pyramid-pyramid-svr4 ;; DRS?6000:unix:4.0:6*) GUESS=sparc-icl-nx6 ;; DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) case `/usr/bin/uname -p` in sparc) GUESS=sparc-icl-nx7 ;; esac ;; s390x:SunOS:*:*) SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` GUESS=$UNAME_MACHINE-ibm-solaris2$SUN_REL ;; sun4H:SunOS:5.*:*) SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` GUESS=sparc-hal-solaris2$SUN_REL ;; sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` GUESS=sparc-sun-solaris2$SUN_REL ;; i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) GUESS=i386-pc-auroraux$UNAME_RELEASE ;; i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) set_cc_for_build SUN_ARCH=i386 # If there is a compiler, see if it is configured for 64-bit objects. # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. # This test works for both compilers. if test "$CC_FOR_BUILD" != no_compiler_found; then if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS="" $CC_FOR_BUILD -m64 -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then SUN_ARCH=x86_64 fi fi SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` GUESS=$SUN_ARCH-pc-solaris2$SUN_REL ;; sun4*:SunOS:6*:*) # According to config.sub, this is the proper way to canonicalize # SunOS6. Hard to guess exactly what SunOS6 will be like, but # it's likely to be more like Solaris than SunOS4. SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` GUESS=sparc-sun-solaris3$SUN_REL ;; sun4*:SunOS:*:*) case `/usr/bin/arch -k` in Series*|S4*) UNAME_RELEASE=`uname -v` ;; esac # Japanese Language versions have a version number like '4.1.3-JL'. SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/-/_/'` GUESS=sparc-sun-sunos$SUN_REL ;; sun3*:SunOS:*:*) GUESS=m68k-sun-sunos$UNAME_RELEASE ;; sun*:*:4.2BSD:*) UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` test "x$UNAME_RELEASE" = x && UNAME_RELEASE=3 case `/bin/arch` in sun3) GUESS=m68k-sun-sunos$UNAME_RELEASE ;; sun4) GUESS=sparc-sun-sunos$UNAME_RELEASE ;; esac ;; aushp:SunOS:*:*) GUESS=sparc-auspex-sunos$UNAME_RELEASE ;; # The situation for MiNT is a little confusing. The machine name # can be virtually everything (everything which is not # "atarist" or "atariste" at least should have a processor # > m68000). The system name ranges from "MiNT" over "FreeMiNT" # to the lowercase version "mint" (or "freemint"). Finally # the system name "TOS" denotes a system which is actually not # MiNT. But MiNT is downward compatible to TOS, so this should # be no problem. atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) GUESS=m68k-atari-mint$UNAME_RELEASE ;; atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) GUESS=m68k-atari-mint$UNAME_RELEASE ;; *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) GUESS=m68k-atari-mint$UNAME_RELEASE ;; milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) GUESS=m68k-milan-mint$UNAME_RELEASE ;; hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) GUESS=m68k-hades-mint$UNAME_RELEASE ;; *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) GUESS=m68k-unknown-mint$UNAME_RELEASE ;; m68k:machten:*:*) GUESS=m68k-apple-machten$UNAME_RELEASE ;; powerpc:machten:*:*) GUESS=powerpc-apple-machten$UNAME_RELEASE ;; RISC*:Mach:*:*) GUESS=mips-dec-mach_bsd4.3 ;; RISC*:ULTRIX:*:*) GUESS=mips-dec-ultrix$UNAME_RELEASE ;; VAX*:ULTRIX*:*:*) GUESS=vax-dec-ultrix$UNAME_RELEASE ;; 2020:CLIX:*:* | 2430:CLIX:*:*) GUESS=clipper-intergraph-clix$UNAME_RELEASE ;; mips:*:*:UMIPS | mips:*:*:RISCos) set_cc_for_build sed 's/^ //' << EOF > "$dummy.c" #ifdef __cplusplus #include /* for printf() prototype */ int main (int argc, char *argv[]) { #else int main (argc, argv) int argc; char *argv[]; { #endif #if defined (host_mips) && defined (MIPSEB) #if defined (SYSTYPE_SYSV) printf ("mips-mips-riscos%ssysv\\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_SVR4) printf ("mips-mips-riscos%ssvr4\\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) printf ("mips-mips-riscos%sbsd\\n", argv[1]); exit (0); #endif #endif exit (-1); } EOF $CC_FOR_BUILD -o "$dummy" "$dummy.c" && dummyarg=`echo "$UNAME_RELEASE" | sed -n 's/\([0-9]*\).*/\1/p'` && SYSTEM_NAME=`"$dummy" "$dummyarg"` && { echo "$SYSTEM_NAME"; exit; } GUESS=mips-mips-riscos$UNAME_RELEASE ;; Motorola:PowerMAX_OS:*:*) GUESS=powerpc-motorola-powermax ;; Motorola:*:4.3:PL8-*) GUESS=powerpc-harris-powermax ;; Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) GUESS=powerpc-harris-powermax ;; Night_Hawk:Power_UNIX:*:*) GUESS=powerpc-harris-powerunix ;; m88k:CX/UX:7*:*) GUESS=m88k-harris-cxux7 ;; m88k:*:4*:R4*) GUESS=m88k-motorola-sysv4 ;; m88k:*:3*:R3*) GUESS=m88k-motorola-sysv3 ;; AViiON:dgux:*:*) # DG/UX returns AViiON for all architectures UNAME_PROCESSOR=`/usr/bin/uname -p` if test "$UNAME_PROCESSOR" = mc88100 || test "$UNAME_PROCESSOR" = mc88110 then if test "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx || \ test "$TARGET_BINARY_INTERFACE"x = x then GUESS=m88k-dg-dgux$UNAME_RELEASE else GUESS=m88k-dg-dguxbcs$UNAME_RELEASE fi else GUESS=i586-dg-dgux$UNAME_RELEASE fi ;; M88*:DolphinOS:*:*) # DolphinOS (SVR3) GUESS=m88k-dolphin-sysv3 ;; M88*:*:R3*:*) # Delta 88k system running SVR3 GUESS=m88k-motorola-sysv3 ;; XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) GUESS=m88k-tektronix-sysv3 ;; Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) GUESS=m68k-tektronix-bsd ;; *:IRIX*:*:*) IRIX_REL=`echo "$UNAME_RELEASE" | sed -e 's/-/_/g'` GUESS=mips-sgi-irix$IRIX_REL ;; ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. GUESS=romp-ibm-aix # uname -m gives an 8 hex-code CPU id ;; # Note that: echo "'`uname -s`'" gives 'AIX ' i*86:AIX:*:*) GUESS=i386-ibm-aix ;; ia64:AIX:*:*) if test -x /usr/bin/oslevel ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV=$UNAME_VERSION.$UNAME_RELEASE fi GUESS=$UNAME_MACHINE-ibm-aix$IBM_REV ;; *:AIX:2:3) if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then set_cc_for_build sed 's/^ //' << EOF > "$dummy.c" #include int main () { if (!__power_pc()) exit(1); puts("powerpc-ibm-aix3.2.5"); exit(0); } EOF if $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` then GUESS=$SYSTEM_NAME else GUESS=rs6000-ibm-aix3.2.5 fi elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then GUESS=rs6000-ibm-aix3.2.4 else GUESS=rs6000-ibm-aix3.2 fi ;; *:AIX:*:[4567]) IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` if /usr/sbin/lsattr -El "$IBM_CPU_ID" | grep ' POWER' >/dev/null 2>&1; then IBM_ARCH=rs6000 else IBM_ARCH=powerpc fi if test -x /usr/bin/lslpp ; then IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc | \ awk -F: '{ print $3 }' | sed s/[0-9]*$/0/` else IBM_REV=$UNAME_VERSION.$UNAME_RELEASE fi GUESS=$IBM_ARCH-ibm-aix$IBM_REV ;; *:AIX:*:*) GUESS=rs6000-ibm-aix ;; ibmrt:4.4BSD:*|romp-ibm:4.4BSD:*) GUESS=romp-ibm-bsd4.4 ;; ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and GUESS=romp-ibm-bsd$UNAME_RELEASE # 4.3 with uname added to ;; # report: romp-ibm BSD 4.3 *:BOSX:*:*) GUESS=rs6000-bull-bosx ;; DPX/2?00:B.O.S.:*:*) GUESS=m68k-bull-sysv3 ;; 9000/[34]??:4.3bsd:1.*:*) GUESS=m68k-hp-bsd ;; hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) GUESS=m68k-hp-bsd4.4 ;; 9000/[34678]??:HP-UX:*:*) HPUX_REV=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*.[0B]*//'` case $UNAME_MACHINE in 9000/31?) HP_ARCH=m68000 ;; 9000/[34]??) HP_ARCH=m68k ;; 9000/[678][0-9][0-9]) if test -x /usr/bin/getconf; then sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` case $sc_cpu_version in 523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0 528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1 532) # CPU_PA_RISC2_0 case $sc_kernel_bits in 32) HP_ARCH=hppa2.0n ;; 64) HP_ARCH=hppa2.0w ;; '') HP_ARCH=hppa2.0 ;; # HP-UX 10.20 esac ;; esac fi if test "$HP_ARCH" = ""; then set_cc_for_build sed 's/^ //' << EOF > "$dummy.c" #define _HPUX_SOURCE #include #include int main () { #if defined(_SC_KERNEL_BITS) long bits = sysconf(_SC_KERNEL_BITS); #endif long cpu = sysconf (_SC_CPU_VERSION); switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0"); break; case CPU_PA_RISC1_1: puts ("hppa1.1"); break; case CPU_PA_RISC2_0: #if defined(_SC_KERNEL_BITS) switch (bits) { case 64: puts ("hppa2.0w"); break; case 32: puts ("hppa2.0n"); break; default: puts ("hppa2.0"); break; } break; #else /* !defined(_SC_KERNEL_BITS) */ puts ("hppa2.0"); break; #endif default: puts ("hppa1.0"); break; } exit (0); } EOF (CCOPTS="" $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null) && HP_ARCH=`"$dummy"` test -z "$HP_ARCH" && HP_ARCH=hppa fi ;; esac if test "$HP_ARCH" = hppa2.0w then set_cc_for_build # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler # generating 64-bit code. GNU and HP use different nomenclature: # # $ CC_FOR_BUILD=cc ./config.guess # => hppa2.0w-hp-hpux11.23 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess # => hppa64-hp-hpux11.23 if echo __LP64__ | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | grep -q __LP64__ then HP_ARCH=hppa2.0w else HP_ARCH=hppa64 fi fi GUESS=$HP_ARCH-hp-hpux$HPUX_REV ;; ia64:HP-UX:*:*) HPUX_REV=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*.[0B]*//'` GUESS=ia64-hp-hpux$HPUX_REV ;; 3050*:HI-UX:*:*) set_cc_for_build sed 's/^ //' << EOF > "$dummy.c" #include int main () { long cpu = sysconf (_SC_CPU_VERSION); /* The order matters, because CPU_IS_HP_MC68K erroneously returns true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct results, however. */ if (CPU_IS_PA_RISC (cpu)) { switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; default: puts ("hppa-hitachi-hiuxwe2"); break; } } else if (CPU_IS_HP_MC68K (cpu)) puts ("m68k-hitachi-hiuxwe2"); else puts ("unknown-hitachi-hiuxwe2"); exit (0); } EOF $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` && { echo "$SYSTEM_NAME"; exit; } GUESS=unknown-hitachi-hiuxwe2 ;; 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:*) GUESS=hppa1.1-hp-bsd ;; 9000/8??:4.3bsd:*:*) GUESS=hppa1.0-hp-bsd ;; *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) GUESS=hppa1.0-hp-mpeix ;; hp7??:OSF1:*:* | hp8?[79]:OSF1:*:*) GUESS=hppa1.1-hp-osf ;; hp8??:OSF1:*:*) GUESS=hppa1.0-hp-osf ;; i*86:OSF1:*:*) if test -x /usr/sbin/sysversion ; then GUESS=$UNAME_MACHINE-unknown-osf1mk else GUESS=$UNAME_MACHINE-unknown-osf1 fi ;; parisc*:Lites*:*:*) GUESS=hppa1.1-hp-lites ;; C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) GUESS=c1-convex-bsd ;; C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) GUESS=c34-convex-bsd ;; C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) GUESS=c38-convex-bsd ;; C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) GUESS=c4-convex-bsd ;; CRAY*Y-MP:*:*:*) CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` GUESS=ymp-cray-unicos$CRAY_REL ;; CRAY*[A-Z]90:*:*:*) echo "$UNAME_MACHINE"-cray-unicos"$UNAME_RELEASE" \ | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ -e 's/\.[^.]*$/.X/' exit ;; CRAY*TS:*:*:*) CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` GUESS=t90-cray-unicos$CRAY_REL ;; CRAY*T3E:*:*:*) CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` GUESS=alphaev5-cray-unicosmk$CRAY_REL ;; CRAY*SV1:*:*:*) CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` GUESS=sv1-cray-unicos$CRAY_REL ;; *:UNICOS/mp:*:*) CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` GUESS=craynv-cray-unicosmp$CRAY_REL ;; F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz` FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` FUJITSU_REL=`echo "$UNAME_RELEASE" | sed -e 's/ /_/'` GUESS=${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL} ;; 5000:UNIX_System_V:4.*:*) FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` FUJITSU_REL=`echo "$UNAME_RELEASE" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'` GUESS=sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL} ;; i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) GUESS=$UNAME_MACHINE-pc-bsdi$UNAME_RELEASE ;; sparc*:BSD/OS:*:*) GUESS=sparc-unknown-bsdi$UNAME_RELEASE ;; *:BSD/OS:*:*) GUESS=$UNAME_MACHINE-unknown-bsdi$UNAME_RELEASE ;; arm:FreeBSD:*:*) UNAME_PROCESSOR=`uname -p` set_cc_for_build if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_PCS_VFP then FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL-gnueabi else FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL-gnueabihf fi ;; *:FreeBSD:*:*) UNAME_PROCESSOR=`uname -p` case $UNAME_PROCESSOR in amd64) UNAME_PROCESSOR=x86_64 ;; i386) UNAME_PROCESSOR=i586 ;; esac FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL ;; i*:CYGWIN*:*) GUESS=$UNAME_MACHINE-pc-cygwin ;; *:MINGW64*:*) GUESS=$UNAME_MACHINE-pc-mingw64 ;; *:MINGW*:*) GUESS=$UNAME_MACHINE-pc-mingw32 ;; *:MSYS*:*) GUESS=$UNAME_MACHINE-pc-msys ;; i*:PW*:*) GUESS=$UNAME_MACHINE-pc-pw32 ;; *:SerenityOS:*:*) GUESS=$UNAME_MACHINE-pc-serenity ;; *:Interix*:*) case $UNAME_MACHINE in x86) GUESS=i586-pc-interix$UNAME_RELEASE ;; authenticamd | genuineintel | EM64T) GUESS=x86_64-unknown-interix$UNAME_RELEASE ;; IA64) GUESS=ia64-unknown-interix$UNAME_RELEASE ;; esac ;; i*:UWIN*:*) GUESS=$UNAME_MACHINE-pc-uwin ;; amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) GUESS=x86_64-pc-cygwin ;; prep*:SunOS:5.*:*) SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` GUESS=powerpcle-unknown-solaris2$SUN_REL ;; *:GNU:*:*) # the GNU system GNU_ARCH=`echo "$UNAME_MACHINE" | sed -e 's,[-/].*$,,'` GNU_REL=`echo "$UNAME_RELEASE" | sed -e 's,/.*$,,'` GUESS=$GNU_ARCH-unknown-$LIBC$GNU_REL ;; *:GNU/*:*:*) # other systems with GNU libc and userland GNU_SYS=`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"` GNU_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` GUESS=$UNAME_MACHINE-unknown-$GNU_SYS$GNU_REL-$LIBC ;; x86_64:[Mm]anagarm:*:*|i?86:[Mm]anagarm:*:*) GUESS="$UNAME_MACHINE-pc-managarm-mlibc" ;; *:[Mm]anagarm:*:*) GUESS="$UNAME_MACHINE-unknown-managarm-mlibc" ;; *:Minix:*:*) GUESS=$UNAME_MACHINE-unknown-minix ;; aarch64:Linux:*:*) set_cc_for_build CPU=$UNAME_MACHINE LIBCABI=$LIBC if test "$CC_FOR_BUILD" != no_compiler_found; then ABI=64 sed 's/^ //' << EOF > "$dummy.c" #ifdef __ARM_EABI__ #ifdef __ARM_PCS_VFP ABI=eabihf #else ABI=eabi #endif #endif EOF cc_set_abi=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^ABI' | sed 's, ,,g'` eval "$cc_set_abi" case $ABI in eabi | eabihf) CPU=armv8l; LIBCABI=$LIBC$ABI ;; esac fi GUESS=$CPU-unknown-linux-$LIBCABI ;; aarch64_be:Linux:*:*) UNAME_MACHINE=aarch64_be GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; alpha:Linux:*:*) case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' /proc/cpuinfo 2>/dev/null` in EV5) UNAME_MACHINE=alphaev5 ;; EV56) UNAME_MACHINE=alphaev56 ;; PCA56) UNAME_MACHINE=alphapca56 ;; PCA57) UNAME_MACHINE=alphapca56 ;; EV6) UNAME_MACHINE=alphaev6 ;; EV67) UNAME_MACHINE=alphaev67 ;; EV68*) UNAME_MACHINE=alphaev68 ;; esac objdump --private-headers /bin/sh | grep -q ld.so.1 if test "$?" = 0 ; then LIBC=gnulibc1 ; fi GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; arc:Linux:*:* | arceb:Linux:*:* | arc32:Linux:*:* | arc64:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; arm*:Linux:*:*) set_cc_for_build if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_EABI__ then GUESS=$UNAME_MACHINE-unknown-linux-$LIBC else if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_PCS_VFP then GUESS=$UNAME_MACHINE-unknown-linux-${LIBC}eabi else GUESS=$UNAME_MACHINE-unknown-linux-${LIBC}eabihf fi fi ;; avr32*:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; cris:Linux:*:*) GUESS=$UNAME_MACHINE-axis-linux-$LIBC ;; crisv32:Linux:*:*) GUESS=$UNAME_MACHINE-axis-linux-$LIBC ;; e2k:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; frv:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; hexagon:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; i*86:Linux:*:*) GUESS=$UNAME_MACHINE-pc-linux-$LIBC ;; ia64:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; k1om:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; kvx:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; kvx:cos:*:*) GUESS=$UNAME_MACHINE-unknown-cos ;; kvx:mbr:*:*) GUESS=$UNAME_MACHINE-unknown-mbr ;; loongarch32:Linux:*:* | loongarch64:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; m32r*:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; m68*:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; mips:Linux:*:* | mips64:Linux:*:*) set_cc_for_build IS_GLIBC=0 test x"${LIBC}" = xgnu && IS_GLIBC=1 sed 's/^ //' << EOF > "$dummy.c" #undef CPU #undef mips #undef mipsel #undef mips64 #undef mips64el #if ${IS_GLIBC} && defined(_ABI64) LIBCABI=gnuabi64 #else #if ${IS_GLIBC} && defined(_ABIN32) LIBCABI=gnuabin32 #else LIBCABI=${LIBC} #endif #endif #if ${IS_GLIBC} && defined(__mips64) && defined(__mips_isa_rev) && __mips_isa_rev>=6 CPU=mipsisa64r6 #else #if ${IS_GLIBC} && !defined(__mips64) && defined(__mips_isa_rev) && __mips_isa_rev>=6 CPU=mipsisa32r6 #else #if defined(__mips64) CPU=mips64 #else CPU=mips #endif #endif #endif #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) MIPS_ENDIAN=el #else #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) MIPS_ENDIAN= #else MIPS_ENDIAN= #endif #endif EOF cc_set_vars=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU\|^MIPS_ENDIAN\|^LIBCABI'` eval "$cc_set_vars" test "x$CPU" != x && { echo "$CPU${MIPS_ENDIAN}-unknown-linux-$LIBCABI"; exit; } ;; mips64el:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; openrisc*:Linux:*:*) GUESS=or1k-unknown-linux-$LIBC ;; or32:Linux:*:* | or1k*:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; padre:Linux:*:*) GUESS=sparc-unknown-linux-$LIBC ;; parisc64:Linux:*:* | hppa64:Linux:*:*) GUESS=hppa64-unknown-linux-$LIBC ;; parisc:Linux:*:* | hppa:Linux:*:*) # Look for CPU level case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in PA7*) GUESS=hppa1.1-unknown-linux-$LIBC ;; PA8*) GUESS=hppa2.0-unknown-linux-$LIBC ;; *) GUESS=hppa-unknown-linux-$LIBC ;; esac ;; ppc64:Linux:*:*) GUESS=powerpc64-unknown-linux-$LIBC ;; ppc:Linux:*:*) GUESS=powerpc-unknown-linux-$LIBC ;; ppc64le:Linux:*:*) GUESS=powerpc64le-unknown-linux-$LIBC ;; ppcle:Linux:*:*) GUESS=powerpcle-unknown-linux-$LIBC ;; riscv32:Linux:*:* | riscv32be:Linux:*:* | riscv64:Linux:*:* | riscv64be:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; s390:Linux:*:* | s390x:Linux:*:*) GUESS=$UNAME_MACHINE-ibm-linux-$LIBC ;; sh64*:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; sh*:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; sparc:Linux:*:* | sparc64:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; tile*:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; vax:Linux:*:*) GUESS=$UNAME_MACHINE-dec-linux-$LIBC ;; x86_64:Linux:*:*) set_cc_for_build CPU=$UNAME_MACHINE LIBCABI=$LIBC if test "$CC_FOR_BUILD" != no_compiler_found; then ABI=64 sed 's/^ //' << EOF > "$dummy.c" #ifdef __i386__ ABI=x86 #else #ifdef __ILP32__ ABI=x32 #endif #endif EOF cc_set_abi=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^ABI' | sed 's, ,,g'` eval "$cc_set_abi" case $ABI in x86) CPU=i686 ;; x32) LIBCABI=${LIBC}x32 ;; esac fi GUESS=$CPU-pc-linux-$LIBCABI ;; xtensa*:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; i*86:DYNIX/ptx:4*:*) # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. # earlier versions are messed up and put the nodename in both # sysname and nodename. GUESS=i386-sequent-sysv4 ;; i*86:UNIX_SV:4.2MP:2.*) # Unixware is an offshoot of SVR4, but it has its own version # number series starting with 2... # I am not positive that other SVR4 systems won't match this, # I just have to hope. -- rms. # Use sysv4.2uw... so that sysv4* matches it. GUESS=$UNAME_MACHINE-pc-sysv4.2uw$UNAME_VERSION ;; i*86:OS/2:*:*) # If we were able to find 'uname', then EMX Unix compatibility # is probably installed. GUESS=$UNAME_MACHINE-pc-os2-emx ;; i*86:XTS-300:*:STOP) GUESS=$UNAME_MACHINE-unknown-stop ;; i*86:atheos:*:*) GUESS=$UNAME_MACHINE-unknown-atheos ;; i*86:syllable:*:*) GUESS=$UNAME_MACHINE-pc-syllable ;; i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) GUESS=i386-unknown-lynxos$UNAME_RELEASE ;; i*86:*DOS:*:*) GUESS=$UNAME_MACHINE-pc-msdosdjgpp ;; i*86:*:4.*:*) UNAME_REL=`echo "$UNAME_RELEASE" | sed 's/\/MP$//'` if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then GUESS=$UNAME_MACHINE-univel-sysv$UNAME_REL else GUESS=$UNAME_MACHINE-pc-sysv$UNAME_REL fi ;; i*86:*:5:[678]*) # UnixWare 7.x, OpenUNIX and OpenServer 6. case `/bin/uname -X | grep "^Machine"` in *486*) UNAME_MACHINE=i486 ;; *Pentium) UNAME_MACHINE=i586 ;; *Pent*|*Celeron) UNAME_MACHINE=i686 ;; esac GUESS=$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} ;; i*86:*:3.2:*) if test -f /usr/options/cb.name; then UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ && UNAME_MACHINE=i586 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ && UNAME_MACHINE=i686 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ && UNAME_MACHINE=i686 GUESS=$UNAME_MACHINE-pc-sco$UNAME_REL else GUESS=$UNAME_MACHINE-pc-sysv32 fi ;; pc:*:*:*) # Left here for compatibility: # uname -m prints for DJGPP always 'pc', but it prints nothing about # the processor, so we play safe by assuming i586. # Note: whatever this is, it MUST be the same as what config.sub # prints for the "djgpp" host, or else GDB configure will decide that # this is a cross-build. GUESS=i586-pc-msdosdjgpp ;; Intel:Mach:3*:*) GUESS=i386-pc-mach3 ;; paragon:*:*:*) GUESS=i860-intel-osf1 ;; i860:*:4.*:*) # i860-SVR4 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then GUESS=i860-stardent-sysv$UNAME_RELEASE # Stardent Vistra i860-SVR4 else # Add other i860-SVR4 vendors below as they are discovered. GUESS=i860-unknown-sysv$UNAME_RELEASE # Unknown i860-SVR4 fi ;; mini*:CTIX:SYS*5:*) # "miniframe" GUESS=m68010-convergent-sysv ;; mc68k:UNIX:SYSTEM5:3.51m) GUESS=m68k-convergent-sysv ;; M680?0:D-NIX:5.3:*) GUESS=m68k-diab-dnix ;; M68*:*:R3V[5678]*:*) test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) OS_REL='' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3"$OS_REL"; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;; 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4; exit; } ;; NCR*:*:4.2:* | MPRAS*:*:4.2:*) OS_REL='.3' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3"$OS_REL"; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;; m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) GUESS=m68k-unknown-lynxos$UNAME_RELEASE ;; mc68030:UNIX_System_V:4.*:*) GUESS=m68k-atari-sysv4 ;; TSUNAMI:LynxOS:2.*:*) GUESS=sparc-unknown-lynxos$UNAME_RELEASE ;; rs6000:LynxOS:2.*:*) GUESS=rs6000-unknown-lynxos$UNAME_RELEASE ;; PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) GUESS=powerpc-unknown-lynxos$UNAME_RELEASE ;; SM[BE]S:UNIX_SV:*:*) GUESS=mips-dde-sysv$UNAME_RELEASE ;; RM*:ReliantUNIX-*:*:*) GUESS=mips-sni-sysv4 ;; RM*:SINIX-*:*:*) GUESS=mips-sni-sysv4 ;; *:SINIX-*:*:*) if uname -p 2>/dev/null >/dev/null ; then UNAME_MACHINE=`(uname -p) 2>/dev/null` GUESS=$UNAME_MACHINE-sni-sysv4 else GUESS=ns32k-sni-sysv fi ;; PENTIUM:*:4.0*:*) # Unisys 'ClearPath HMP IX 4000' SVR4/MP effort # says GUESS=i586-unisys-sysv4 ;; *:UNIX_System_V:4*:FTX*) # From Gerald Hewes . # How about differentiating between stratus architectures? -djm GUESS=hppa1.1-stratus-sysv4 ;; *:*:*:FTX*) # From seanf@@swdc.stratus.com. GUESS=i860-stratus-sysv4 ;; i*86:VOS:*:*) # From Paul.Green@@stratus.com. GUESS=$UNAME_MACHINE-stratus-vos ;; *:VOS:*:*) # From Paul.Green@@stratus.com. GUESS=hppa1.1-stratus-vos ;; mc68*:A/UX:*:*) GUESS=m68k-apple-aux$UNAME_RELEASE ;; news*:NEWS-OS:6*:*) GUESS=mips-sony-newsos6 ;; R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) if test -d /usr/nec; then GUESS=mips-nec-sysv$UNAME_RELEASE else GUESS=mips-unknown-sysv$UNAME_RELEASE fi ;; BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. GUESS=powerpc-be-beos ;; BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. GUESS=powerpc-apple-beos ;; BePC:BeOS:*:*) # BeOS running on Intel PC compatible. GUESS=i586-pc-beos ;; BePC:Haiku:*:*) # Haiku running on Intel PC compatible. GUESS=i586-pc-haiku ;; ppc:Haiku:*:*) # Haiku running on Apple PowerPC GUESS=powerpc-apple-haiku ;; *:Haiku:*:*) # Haiku modern gcc (not bound by BeOS compat) GUESS=$UNAME_MACHINE-unknown-haiku ;; SX-4:SUPER-UX:*:*) GUESS=sx4-nec-superux$UNAME_RELEASE ;; SX-5:SUPER-UX:*:*) GUESS=sx5-nec-superux$UNAME_RELEASE ;; SX-6:SUPER-UX:*:*) GUESS=sx6-nec-superux$UNAME_RELEASE ;; SX-7:SUPER-UX:*:*) GUESS=sx7-nec-superux$UNAME_RELEASE ;; SX-8:SUPER-UX:*:*) GUESS=sx8-nec-superux$UNAME_RELEASE ;; SX-8R:SUPER-UX:*:*) GUESS=sx8r-nec-superux$UNAME_RELEASE ;; SX-ACE:SUPER-UX:*:*) GUESS=sxace-nec-superux$UNAME_RELEASE ;; Power*:Rhapsody:*:*) GUESS=powerpc-apple-rhapsody$UNAME_RELEASE ;; *:Rhapsody:*:*) GUESS=$UNAME_MACHINE-apple-rhapsody$UNAME_RELEASE ;; arm64:Darwin:*:*) GUESS=aarch64-apple-darwin$UNAME_RELEASE ;; *:Darwin:*:*) UNAME_PROCESSOR=`uname -p` case $UNAME_PROCESSOR in unknown) UNAME_PROCESSOR=powerpc ;; esac if command -v xcode-select > /dev/null 2> /dev/null && \ ! xcode-select --print-path > /dev/null 2> /dev/null ; then # Avoid executing cc if there is no toolchain installed as # cc will be a stub that puts up a graphical alert # prompting the user to install developer tools. CC_FOR_BUILD=no_compiler_found else set_cc_for_build fi if test "$CC_FOR_BUILD" != no_compiler_found; then if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then case $UNAME_PROCESSOR in i386) UNAME_PROCESSOR=x86_64 ;; powerpc) UNAME_PROCESSOR=powerpc64 ;; esac fi # On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \ (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_PPC >/dev/null then UNAME_PROCESSOR=powerpc fi elif test "$UNAME_PROCESSOR" = i386 ; then # uname -m returns i386 or x86_64 UNAME_PROCESSOR=$UNAME_MACHINE fi GUESS=$UNAME_PROCESSOR-apple-darwin$UNAME_RELEASE ;; *:procnto*:*:* | *:QNX:[0123456789]*:*) UNAME_PROCESSOR=`uname -p` if test "$UNAME_PROCESSOR" = x86; then UNAME_PROCESSOR=i386 UNAME_MACHINE=pc fi GUESS=$UNAME_PROCESSOR-$UNAME_MACHINE-nto-qnx$UNAME_RELEASE ;; *:QNX:*:4*) GUESS=i386-pc-qnx ;; NEO-*:NONSTOP_KERNEL:*:*) GUESS=neo-tandem-nsk$UNAME_RELEASE ;; NSE-*:NONSTOP_KERNEL:*:*) GUESS=nse-tandem-nsk$UNAME_RELEASE ;; NSR-*:NONSTOP_KERNEL:*:*) GUESS=nsr-tandem-nsk$UNAME_RELEASE ;; NSV-*:NONSTOP_KERNEL:*:*) GUESS=nsv-tandem-nsk$UNAME_RELEASE ;; NSX-*:NONSTOP_KERNEL:*:*) GUESS=nsx-tandem-nsk$UNAME_RELEASE ;; *:NonStop-UX:*:*) GUESS=mips-compaq-nonstopux ;; BS2000:POSIX*:*:*) GUESS=bs2000-siemens-sysv ;; DS/*:UNIX_System_V:*:*) GUESS=$UNAME_MACHINE-$UNAME_SYSTEM-$UNAME_RELEASE ;; *:Plan9:*:*) # "uname -m" is not consistent, so use $cputype instead. 386 # is converted to i386 for consistency with other x86 # operating systems. if test "${cputype-}" = 386; then UNAME_MACHINE=i386 elif test "x${cputype-}" != x; then UNAME_MACHINE=$cputype fi GUESS=$UNAME_MACHINE-unknown-plan9 ;; *:TOPS-10:*:*) GUESS=pdp10-unknown-tops10 ;; *:TENEX:*:*) GUESS=pdp10-unknown-tenex ;; KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) GUESS=pdp10-dec-tops20 ;; XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) GUESS=pdp10-xkl-tops20 ;; *:TOPS-20:*:*) GUESS=pdp10-unknown-tops20 ;; *:ITS:*:*) GUESS=pdp10-unknown-its ;; SEI:*:*:SEIUX) GUESS=mips-sei-seiux$UNAME_RELEASE ;; *:DragonFly:*:*) DRAGONFLY_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` GUESS=$UNAME_MACHINE-unknown-dragonfly$DRAGONFLY_REL ;; *:*VMS:*:*) UNAME_MACHINE=`(uname -p) 2>/dev/null` case $UNAME_MACHINE in A*) GUESS=alpha-dec-vms ;; I*) GUESS=ia64-dec-vms ;; V*) GUESS=vax-dec-vms ;; esac ;; *:XENIX:*:SysV) GUESS=i386-pc-xenix ;; i*86:skyos:*:*) SKYOS_REL=`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'` GUESS=$UNAME_MACHINE-pc-skyos$SKYOS_REL ;; i*86:rdos:*:*) GUESS=$UNAME_MACHINE-pc-rdos ;; i*86:Fiwix:*:*) GUESS=$UNAME_MACHINE-pc-fiwix ;; *:AROS:*:*) GUESS=$UNAME_MACHINE-unknown-aros ;; x86_64:VMkernel:*:*) GUESS=$UNAME_MACHINE-unknown-esx ;; amd64:Isilon\ OneFS:*:*) GUESS=x86_64-unknown-onefs ;; *:Unleashed:*:*) GUESS=$UNAME_MACHINE-unknown-unleashed$UNAME_RELEASE ;; x86_64:[Ii]ronclad:*:*|i?86:[Ii]ronclad:*:*) GUESS=$UNAME_MACHINE-pc-ironclad-mlibc ;; *:[Ii]ronclad:*:*) GUESS=$UNAME_MACHINE-unknown-ironclad-mlibc ;; esac # Do we have a guess based on uname results? if test "x$GUESS" != x; then echo "$GUESS" exit fi # No uname command or uname output not recognized. set_cc_for_build cat > "$dummy.c" < #include #endif #if defined(ultrix) || defined(_ultrix) || defined(__ultrix) || defined(__ultrix__) #if defined (vax) || defined (__vax) || defined (__vax__) || defined(mips) || defined(__mips) || defined(__mips__) || defined(MIPS) || defined(__MIPS__) #include #if defined(_SIZE_T_) || defined(SIGLOST) #include #endif #endif #endif int main () { #if defined (sony) #if defined (MIPSEB) /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, I don't know.... */ printf ("mips-sony-bsd\n"); exit (0); #else #include printf ("m68k-sony-newsos%s\n", #ifdef NEWSOS4 "4" #else "" #endif ); exit (0); #endif #endif #if defined (NeXT) #if !defined (__ARCHITECTURE__) #define __ARCHITECTURE__ "m68k" #endif int version; version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; if (version < 4) printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); else printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); exit (0); #endif #if defined (MULTIMAX) || defined (n16) #if defined (UMAXV) printf ("ns32k-encore-sysv\n"); exit (0); #else #if defined (CMU) printf ("ns32k-encore-mach\n"); exit (0); #else printf ("ns32k-encore-bsd\n"); exit (0); #endif #endif #endif #if defined (__386BSD__) printf ("i386-pc-bsd\n"); exit (0); #endif #if defined (sequent) #if defined (i386) printf ("i386-sequent-dynix\n"); exit (0); #endif #if defined (ns32000) printf ("ns32k-sequent-dynix\n"); exit (0); #endif #endif #if defined (_SEQUENT_) struct utsname un; uname(&un); if (strncmp(un.version, "V2", 2) == 0) { printf ("i386-sequent-ptx2\n"); exit (0); } if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ printf ("i386-sequent-ptx1\n"); exit (0); } printf ("i386-sequent-ptx\n"); exit (0); #endif #if defined (vax) #if !defined (ultrix) #include #if defined (BSD) #if BSD == 43 printf ("vax-dec-bsd4.3\n"); exit (0); #else #if BSD == 199006 printf ("vax-dec-bsd4.3reno\n"); exit (0); #else printf ("vax-dec-bsd\n"); exit (0); #endif #endif #else printf ("vax-dec-bsd\n"); exit (0); #endif #else #if defined(_SIZE_T_) || defined(SIGLOST) struct utsname un; uname (&un); printf ("vax-dec-ultrix%s\n", un.release); exit (0); #else printf ("vax-dec-ultrix\n"); exit (0); #endif #endif #endif #if defined(ultrix) || defined(_ultrix) || defined(__ultrix) || defined(__ultrix__) #if defined(mips) || defined(__mips) || defined(__mips__) || defined(MIPS) || defined(__MIPS__) #if defined(_SIZE_T_) || defined(SIGLOST) struct utsname *un; uname (&un); printf ("mips-dec-ultrix%s\n", un.release); exit (0); #else printf ("mips-dec-ultrix\n"); exit (0); #endif #endif #endif #if defined (alliant) && defined (i860) printf ("i860-alliant-bsd\n"); exit (0); #endif exit (1); } EOF $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null && SYSTEM_NAME=`"$dummy"` && { echo "$SYSTEM_NAME"; exit; } # Apollos put the system type in the environment. test -d /usr/apollo && { echo "$ISP-apollo-$SYSTYPE"; exit; } echo "$0: unable to guess system type" >&2 case $UNAME_MACHINE:$UNAME_SYSTEM in mips:Linux | mips64:Linux) # If we got here on MIPS GNU/Linux, output extra information. cat >&2 <&2 <&2 </dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` /bin/uname -X = `(/bin/uname -X) 2>/dev/null` hostinfo = `(hostinfo) 2>/dev/null` /bin/universe = `(/bin/universe) 2>/dev/null` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` /bin/arch = `(/bin/arch) 2>/dev/null` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` UNAME_MACHINE = "$UNAME_MACHINE" UNAME_RELEASE = "$UNAME_RELEASE" UNAME_SYSTEM = "$UNAME_SYSTEM" UNAME_VERSION = "$UNAME_VERSION" EOF fi exit 1 # Local variables: # eval: (add-hook 'before-save-hook 'time-stamp nil t) # time-stamp-start: "timestamp='" # time-stamp-format: "%Y-%02m-%02d" # time-stamp-end: "'" # End: @ 1.9 log @merge changes between 2024-01-09 and 2024-12-31 @ text @d3 1 a3 1 # Copyright 1992-2024 Free Software Foundation, Inc. d7 1 a7 1 timestamp='2024-07-27' d63 1 a63 1 Copyright 1992-2024 Free Software Foundation, Inc. d1600 5 a1604 2 *:Ironclad:*:*) GUESS=$UNAME_MACHINE-unknown-ironclad d1814 1 a1814 1 # eval: (add-hook 'before-save-hook 'time-stamp) d1816 1 a1816 1 # time-stamp-format: "%:y-%02m-%02d" @ 1.8 log @merge conflicts between 20210109 and 20240109 @ text @d3 1 a3 1 # Copyright 1992-2023 Free Software Foundation, Inc. d7 1 a7 1 timestamp='2023-08-22' d63 1 a63 1 Copyright 1992-2023 Free Software Foundation, Inc. d126 1 a126 1 for driver in cc gcc c89 c99 ; do d168 2 d637 2 a638 1 main() d722 2 a723 1 int main () d1600 3 d1626 1 @ 1.7 log @merge conflicts @ text @d3 1 a3 1 # Copyright 1992-2020 Free Software Foundation, Inc. d5 3 a7 1 timestamp='2020-08-17' d11 1 a11 1 # the Free Software Foundation; either version 3 of the License, or d32 1 a32 1 # https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess d37 8 d50 1 a50 1 Output the configuration name of the system \`$me' is run on. d63 1 a63 1 Copyright 1992-2020 Free Software Foundation, Inc. d69 1 a69 1 Try \`$me --help' for more information." d97 3 d105 2 a106 2 # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still # use `HOST_CC' if defined, but it is deprecated. d118 1 a118 1 # shellcheck disable=SC2039 d128 1 a128 1 CC_FOR_BUILD="$driver" d149 1 a149 1 UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown d152 1 a152 1 case "$UNAME_SYSTEM" in d154 1 a154 3 # If the system lacks a compiler, then just pick glibc. # We could probably try harder. LIBC=gnu d158 3 d166 2 d169 6 a174 1 LIBC=gnu d177 2 a178 1 eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`" d180 11 a190 5 # If ldd exists, use it to detect musl libc. if command -v ldd >/dev/null && \ ldd --version 2>&1 | grep -q ^musl then LIBC=musl d197 1 a197 1 case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in a208 1 sysctl="sysctl -n hw.machine_arch" d210 2 a211 2 "/sbin/$sysctl" 2>/dev/null || \ "/usr/sbin/$sysctl" 2>/dev/null || \ d213 1 a213 1 case "$UNAME_MACHINE_ARCH" in d223 1 a223 1 machine="${arch}${endian}"-unknown d225 1 a225 1 *) machine="$UNAME_MACHINE_ARCH"-unknown ;; d229 1 a229 1 case "$UNAME_MACHINE_ARCH" in d250 1 a250 1 case "$UNAME_MACHINE_ARCH" in d261 1 a261 1 case "$UNAME_VERSION" in d272 2 a273 2 echo "$machine-${os}${release}${abi-}" exit ;; d276 2 a277 2 echo "$UNAME_MACHINE_ARCH"-unknown-bitrig"$UNAME_RELEASE" exit ;; d280 6 a285 2 echo "$UNAME_MACHINE_ARCH"-unknown-openbsd"$UNAME_RELEASE" exit ;; d288 2 a289 2 echo "$UNAME_MACHINE_ARCH"-unknown-libertybsd"$UNAME_RELEASE" exit ;; d291 2 a292 2 echo "$UNAME_MACHINE"-unknown-midnightbsd"$UNAME_RELEASE" exit ;; d294 2 a295 2 echo "$UNAME_MACHINE"-unknown-ekkobsd"$UNAME_RELEASE" exit ;; d297 2 a298 2 echo "$UNAME_MACHINE"-unknown-solidbsd"$UNAME_RELEASE" exit ;; d300 2 a301 2 echo "$UNAME_MACHINE"-unknown-os108_"$UNAME_RELEASE" exit ;; d303 2 a304 2 echo powerpc-unknown-mirbsd"$UNAME_RELEASE" exit ;; d306 2 a307 2 echo "$UNAME_MACHINE"-unknown-mirbsd"$UNAME_RELEASE" exit ;; d309 2 a310 2 echo "$UNAME_MACHINE"-unknown-sortix exit ;; d312 2 a313 2 echo "$UNAME_MACHINE"-unknown-twizzler exit ;; d315 2 a316 2 echo "$UNAME_MACHINE"-unknown-redox exit ;; d318 2 a319 2 echo mips-dec-osf1 exit ;; d321 2 d336 1 a336 1 case "$ALPHA_CPU_TYPE" in d373 3 a375 5 echo "$UNAME_MACHINE"-dec-osf"`echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`" # Reset EXIT trap before exiting to avoid spurious non-zero exit code. exitcode=$? trap '' 0 exit $exitcode ;; d377 2 a378 2 echo m68k-unknown-sysv4 exit ;; d380 2 a381 2 echo "$UNAME_MACHINE"-unknown-amigaos exit ;; d383 2 a384 2 echo "$UNAME_MACHINE"-unknown-morphos exit ;; d386 2 a387 2 echo i370-ibm-openedition exit ;; d389 2 a390 2 echo s390-ibm-zvmoe exit ;; d392 2 a393 2 echo powerpc-ibm-os400 exit ;; d395 2 a396 2 echo arm-acorn-riscix"$UNAME_RELEASE" exit ;; d398 2 a399 2 echo arm-unknown-riscos exit ;; d401 2 a402 2 echo hppa1.1-hitachi-hiuxmpp exit ;; d405 5 a409 6 if test "`(/bin/universe) 2>/dev/null`" = att ; then echo pyramid-pyramid-sysv3 else echo pyramid-pyramid-bsd fi exit ;; d411 2 a412 2 echo pyramid-pyramid-svr4 exit ;; d414 2 a415 2 echo sparc-icl-nx6 exit ;; d418 3 a420 2 sparc) echo sparc-icl-nx7; exit ;; esac ;; d422 3 a424 2 echo "$UNAME_MACHINE"-ibm-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`" exit ;; d426 3 a428 2 echo sparc-hal-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" exit ;; d430 3 a432 2 echo sparc-sun-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`" exit ;; d434 2 a435 2 echo i386-pc-auroraux"$UNAME_RELEASE" exit ;; d444 1 a444 1 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ d450 3 a452 2 echo "$SUN_ARCH"-pc-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" exit ;; d457 3 a459 2 echo sparc-sun-solaris3"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" exit ;; d461 1 a461 1 case "`/usr/bin/arch -k`" in d466 4 a469 3 # Japanese Language versions have a version number like `4.1.3-JL'. echo sparc-sun-sunos"`echo "$UNAME_RELEASE"|sed -e 's/-/_/'`" exit ;; d471 2 a472 2 echo m68k-sun-sunos"$UNAME_RELEASE" exit ;; d476 1 a476 1 case "`/bin/arch`" in d478 1 a478 1 echo m68k-sun-sunos"$UNAME_RELEASE" d481 1 a481 1 echo sparc-sun-sunos"$UNAME_RELEASE" d484 1 a484 1 exit ;; d486 2 a487 2 echo sparc-auspex-sunos"$UNAME_RELEASE" exit ;; d497 2 a498 2 echo m68k-atari-mint"$UNAME_RELEASE" exit ;; d500 2 a501 2 echo m68k-atari-mint"$UNAME_RELEASE" exit ;; d503 2 a504 2 echo m68k-atari-mint"$UNAME_RELEASE" exit ;; d506 2 a507 2 echo m68k-milan-mint"$UNAME_RELEASE" exit ;; d509 2 a510 2 echo m68k-hades-mint"$UNAME_RELEASE" exit ;; d512 2 a513 2 echo m68k-unknown-mint"$UNAME_RELEASE" exit ;; d515 2 a516 2 echo m68k-apple-machten"$UNAME_RELEASE" exit ;; d518 2 a519 2 echo powerpc-apple-machten"$UNAME_RELEASE" exit ;; d521 2 a522 2 echo mips-dec-mach_bsd4.3 exit ;; d524 2 a525 2 echo mips-dec-ultrix"$UNAME_RELEASE" exit ;; d527 2 a528 2 echo vax-dec-ultrix"$UNAME_RELEASE" exit ;; d530 2 a531 2 echo clipper-intergraph-clix"$UNAME_RELEASE" exit ;; d559 2 a560 2 echo mips-mips-riscos"$UNAME_RELEASE" exit ;; d562 2 a563 2 echo powerpc-motorola-powermax exit ;; d565 2 a566 2 echo powerpc-harris-powermax exit ;; d568 2 a569 2 echo powerpc-harris-powermax exit ;; d571 2 a572 2 echo powerpc-harris-powerunix exit ;; d574 2 a575 2 echo m88k-harris-cxux7 exit ;; d577 2 a578 2 echo m88k-motorola-sysv4 exit ;; d580 2 a581 2 echo m88k-motorola-sysv3 exit ;; d590 1 a590 1 echo m88k-dg-dgux"$UNAME_RELEASE" d592 1 a592 1 echo m88k-dg-dguxbcs"$UNAME_RELEASE" d595 1 a595 1 echo i586-dg-dgux"$UNAME_RELEASE" d597 1 a597 1 exit ;; d599 2 a600 2 echo m88k-dolphin-sysv3 exit ;; d603 2 a604 2 echo m88k-motorola-sysv3 exit ;; d606 2 a607 2 echo m88k-tektronix-sysv3 exit ;; d609 2 a610 2 echo m68k-tektronix-bsd exit ;; d612 3 a614 2 echo mips-sgi-irix"`echo "$UNAME_RELEASE"|sed -e 's/-/_/g'`" exit ;; d616 2 a617 2 echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' d619 2 a620 2 echo i386-ibm-aix exit ;; d625 1 a625 1 IBM_REV="$UNAME_VERSION.$UNAME_RELEASE" d627 2 a628 2 echo "$UNAME_MACHINE"-ibm-aix"$IBM_REV" exit ;; d645 1 a645 1 echo "$SYSTEM_NAME" d647 1 a647 1 echo rs6000-ibm-aix3.2.5 d650 1 a650 1 echo rs6000-ibm-aix3.2.4 d652 1 a652 1 echo rs6000-ibm-aix3.2 d654 1 a654 1 exit ;; d663 1 a663 1 IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc | d666 1 a666 1 IBM_REV="$UNAME_VERSION.$UNAME_RELEASE" d668 2 a669 2 echo "$IBM_ARCH"-ibm-aix"$IBM_REV" exit ;; d671 2 a672 2 echo rs6000-ibm-aix exit ;; d674 2 a675 2 echo romp-ibm-bsd4.4 exit ;; d677 2 a678 2 echo romp-ibm-bsd"$UNAME_RELEASE" # 4.3 with uname added to exit ;; # report: romp-ibm BSD 4.3 d680 2 a681 2 echo rs6000-bull-bosx exit ;; d683 2 a684 2 echo m68k-bull-sysv3 exit ;; d686 2 a687 2 echo m68k-hp-bsd exit ;; d689 2 a690 2 echo m68k-hp-bsd4.4 exit ;; d692 2 a693 2 HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'` case "$UNAME_MACHINE" in d700 1 a700 1 case "$sc_cpu_version" in d704 1 a704 1 case "$sc_kernel_bits" in d771 2 a772 2 echo "$HP_ARCH"-hp-hpux"$HPUX_REV" exit ;; d774 3 a776 3 HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'` echo ia64-hp-hpux"$HPUX_REV" exit ;; d806 2 a807 2 echo unknown-hitachi-hiuxwe2 exit ;; d809 2 a810 2 echo hppa1.1-hp-bsd exit ;; d812 2 a813 2 echo hppa1.0-hp-bsd exit ;; d815 2 a816 2 echo hppa1.0-hp-mpeix exit ;; d818 2 a819 2 echo hppa1.1-hp-osf exit ;; d821 2 a822 2 echo hppa1.0-hp-osf exit ;; d825 1 a825 1 echo "$UNAME_MACHINE"-unknown-osf1mk d827 1 a827 1 echo "$UNAME_MACHINE"-unknown-osf1 d829 1 a829 1 exit ;; d831 2 a832 2 echo hppa1.1-hp-lites exit ;; d834 2 a835 2 echo c1-convex-bsd exit ;; d843 2 a844 2 echo c34-convex-bsd exit ;; d846 2 a847 2 echo c38-convex-bsd exit ;; d849 2 a850 2 echo c4-convex-bsd exit ;; d852 3 a854 2 echo ymp-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' exit ;; d862 3 a864 2 echo t90-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' exit ;; d866 3 a868 2 echo alphaev5-cray-unicosmk"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' exit ;; d870 3 a872 2 echo sv1-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' exit ;; d874 3 a876 2 echo craynv-cray-unicosmp"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' exit ;; d881 2 a882 2 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; d886 2 a887 2 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; d889 2 a890 2 echo "$UNAME_MACHINE"-pc-bsdi"$UNAME_RELEASE" exit ;; d892 2 a893 2 echo sparc-unknown-bsdi"$UNAME_RELEASE" exit ;; d895 2 a896 2 echo "$UNAME_MACHINE"-unknown-bsdi"$UNAME_RELEASE" exit ;; d903 2 a904 1 echo "${UNAME_PROCESSOR}"-unknown-freebsd"`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`"-gnueabi d906 2 a907 1 echo "${UNAME_PROCESSOR}"-unknown-freebsd"`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`"-gnueabihf d909 1 a909 1 exit ;; d911 2 a912 2 UNAME_PROCESSOR=`/usr/bin/uname -p` case "$UNAME_PROCESSOR" in d918 3 a920 2 echo "$UNAME_PROCESSOR"-unknown-freebsd"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`" exit ;; d922 2 a923 2 echo "$UNAME_MACHINE"-pc-cygwin exit ;; d925 2 a926 2 echo "$UNAME_MACHINE"-pc-mingw64 exit ;; d928 2 a929 2 echo "$UNAME_MACHINE"-pc-mingw32 exit ;; d931 2 a932 2 echo "$UNAME_MACHINE"-pc-msys exit ;; d934 5 a938 2 echo "$UNAME_MACHINE"-pc-pw32 exit ;; d940 1 a940 1 case "$UNAME_MACHINE" in d942 2 a943 2 echo i586-pc-interix"$UNAME_RELEASE" exit ;; d945 2 a946 2 echo x86_64-unknown-interix"$UNAME_RELEASE" exit ;; d948 2 a949 2 echo ia64-unknown-interix"$UNAME_RELEASE" exit ;; d952 2 a953 2 echo "$UNAME_MACHINE"-pc-uwin exit ;; d955 2 a956 2 echo x86_64-pc-cygwin exit ;; d958 3 a960 2 echo powerpcle-unknown-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" exit ;; d963 4 a966 2 echo "`echo "$UNAME_MACHINE"|sed -e 's,[-/].*$,,'`-unknown-$LIBC`echo "$UNAME_RELEASE"|sed -e 's,/.*$,,'`" exit ;; d969 10 a978 2 echo "$UNAME_MACHINE-unknown-`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`-$LIBC" exit ;; d980 2 a981 2 echo "$UNAME_MACHINE"-unknown-minix exit ;; d983 22 a1004 2 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; d1007 2 a1008 2 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; d1021 5 a1025 5 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; arc:Linux:*:* | arceb:Linux:*:*) echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; d1031 1 a1031 1 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" d1036 1 a1036 1 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabi d1038 1 a1038 1 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabihf d1041 1 a1041 1 exit ;; d1043 2 a1044 2 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; d1046 2 a1047 2 echo "$UNAME_MACHINE"-axis-linux-"$LIBC" exit ;; d1049 2 a1050 2 echo "$UNAME_MACHINE"-axis-linux-"$LIBC" exit ;; d1052 2 a1053 2 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; d1055 2 a1056 2 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; d1058 2 a1059 2 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; d1061 2 a1062 2 echo "$UNAME_MACHINE"-pc-linux-"$LIBC" exit ;; d1064 2 a1065 2 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; d1067 14 a1080 2 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; d1082 2 a1083 2 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; d1085 2 a1086 2 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; d1131 2 a1132 1 eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU\|^MIPS_ENDIAN\|^LIBCABI'`" d1136 2 a1137 2 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; d1139 2 a1140 2 echo or1k-unknown-linux-"$LIBC" exit ;; d1142 2 a1143 2 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; d1145 2 a1146 2 echo sparc-unknown-linux-"$LIBC" exit ;; d1148 2 a1149 2 echo hppa64-unknown-linux-"$LIBC" exit ;; d1153 3 a1155 3 PA7*) echo hppa1.1-unknown-linux-"$LIBC" ;; PA8*) echo hppa2.0-unknown-linux-"$LIBC" ;; *) echo hppa-unknown-linux-"$LIBC" ;; d1157 1 a1157 1 exit ;; d1159 2 a1160 2 echo powerpc64-unknown-linux-"$LIBC" exit ;; d1162 2 a1163 2 echo powerpc-unknown-linux-"$LIBC" exit ;; d1165 2 a1166 2 echo powerpc64le-unknown-linux-"$LIBC" exit ;; d1168 5 a1172 5 echo powerpcle-unknown-linux-"$LIBC" exit ;; riscv32:Linux:*:* | riscv64:Linux:*:*) echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; d1174 2 a1175 2 echo "$UNAME_MACHINE"-ibm-linux-"$LIBC" exit ;; d1177 2 a1178 2 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; d1180 2 a1181 2 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; d1183 2 a1184 2 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; d1186 2 a1187 2 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; d1189 2 a1190 2 echo "$UNAME_MACHINE"-dec-linux-"$LIBC" exit ;; d1193 1 d1196 16 a1211 6 if (echo '#ifdef __ILP32__'; echo IS_X32; echo '#endif') | \ (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_X32 >/dev/null then LIBCABI="$LIBC"x32 fi d1213 2 a1214 2 echo "$UNAME_MACHINE"-pc-linux-"$LIBCABI" exit ;; d1216 2 a1217 2 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; d1222 2 a1223 2 echo i386-sequent-sysv4 exit ;; d1230 2 a1231 2 echo "$UNAME_MACHINE"-pc-sysv4.2uw"$UNAME_VERSION" exit ;; d1233 1 a1233 1 # If we were able to find `uname', then EMX Unix compatibility d1235 2 a1236 2 echo "$UNAME_MACHINE"-pc-os2-emx exit ;; d1238 2 a1239 2 echo "$UNAME_MACHINE"-unknown-stop exit ;; d1241 2 a1242 2 echo "$UNAME_MACHINE"-unknown-atheos exit ;; d1244 2 a1245 2 echo "$UNAME_MACHINE"-pc-syllable exit ;; d1247 2 a1248 2 echo i386-unknown-lynxos"$UNAME_RELEASE" exit ;; d1250 2 a1251 2 echo "$UNAME_MACHINE"-pc-msdosdjgpp exit ;; d1255 1 a1255 1 echo "$UNAME_MACHINE"-univel-sysv"$UNAME_REL" d1257 1 a1257 1 echo "$UNAME_MACHINE"-pc-sysv"$UNAME_REL" d1259 1 a1259 1 exit ;; d1267 2 a1268 2 echo "$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}" exit ;; d1272 1 a1272 1 echo "$UNAME_MACHINE"-pc-isc"$UNAME_REL" d1282 1 a1282 1 echo "$UNAME_MACHINE"-pc-sco"$UNAME_REL" d1284 1 a1284 1 echo "$UNAME_MACHINE"-pc-sysv32 d1286 1 a1286 1 exit ;; d1294 2 a1295 2 echo i586-pc-msdosdjgpp exit ;; d1297 2 a1298 2 echo i386-pc-mach3 exit ;; d1300 2 a1301 2 echo i860-intel-osf1 exit ;; d1304 1 a1304 1 echo i860-stardent-sysv"$UNAME_RELEASE" # Stardent Vistra i860-SVR4 d1306 1 a1306 1 echo i860-unknown-sysv"$UNAME_RELEASE" # Unknown i860-SVR4 d1308 1 a1308 1 exit ;; d1311 2 a1312 2 echo m68010-convergent-sysv exit ;; d1314 2 a1315 2 echo m68k-convergent-sysv exit ;; d1317 2 a1318 2 echo m68k-diab-dnix exit ;; d1343 2 a1344 2 echo m68k-unknown-lynxos"$UNAME_RELEASE" exit ;; d1346 2 a1347 2 echo m68k-atari-sysv4 exit ;; d1349 2 a1350 2 echo sparc-unknown-lynxos"$UNAME_RELEASE" exit ;; d1352 2 a1353 2 echo rs6000-unknown-lynxos"$UNAME_RELEASE" exit ;; d1355 2 a1356 2 echo powerpc-unknown-lynxos"$UNAME_RELEASE" exit ;; d1358 2 a1359 2 echo mips-dde-sysv"$UNAME_RELEASE" exit ;; d1361 2 a1362 2 echo mips-sni-sysv4 exit ;; d1364 2 a1365 2 echo mips-sni-sysv4 exit ;; d1369 1 a1369 1 echo "$UNAME_MACHINE"-sni-sysv4 d1371 1 a1371 1 echo ns32k-sni-sysv d1373 2 a1374 2 exit ;; PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort d1376 2 a1377 2 echo i586-unisys-sysv4 exit ;; d1381 2 a1382 2 echo hppa1.1-stratus-sysv4 exit ;; d1385 2 a1386 2 echo i860-stratus-sysv4 exit ;; d1389 2 a1390 2 echo "$UNAME_MACHINE"-stratus-vos exit ;; d1393 2 a1394 2 echo hppa1.1-stratus-vos exit ;; d1396 2 a1397 2 echo m68k-apple-aux"$UNAME_RELEASE" exit ;; d1399 2 a1400 2 echo mips-sony-newsos6 exit ;; d1403 1 a1403 1 echo mips-nec-sysv"$UNAME_RELEASE" d1405 1 a1405 1 echo mips-unknown-sysv"$UNAME_RELEASE" d1407 1 a1407 1 exit ;; d1409 2 a1410 2 echo powerpc-be-beos exit ;; d1412 2 a1413 2 echo powerpc-apple-beos exit ;; d1415 2 a1416 2 echo i586-pc-beos exit ;; d1418 8 a1425 5 echo i586-pc-haiku exit ;; x86_64:Haiku:*:*) echo x86_64-unknown-haiku exit ;; d1427 2 a1428 2 echo sx4-nec-superux"$UNAME_RELEASE" exit ;; d1430 2 a1431 2 echo sx5-nec-superux"$UNAME_RELEASE" exit ;; d1433 2 a1434 2 echo sx6-nec-superux"$UNAME_RELEASE" exit ;; d1436 2 a1437 2 echo sx7-nec-superux"$UNAME_RELEASE" exit ;; d1439 2 a1440 2 echo sx8-nec-superux"$UNAME_RELEASE" exit ;; d1442 2 a1443 2 echo sx8r-nec-superux"$UNAME_RELEASE" exit ;; d1445 2 a1446 2 echo sxace-nec-superux"$UNAME_RELEASE" exit ;; d1448 2 a1449 2 echo powerpc-apple-rhapsody"$UNAME_RELEASE" exit ;; d1451 2 a1452 2 echo "$UNAME_MACHINE"-apple-rhapsody"$UNAME_RELEASE" exit ;; d1454 2 a1455 2 echo aarch64-apple-darwin"$UNAME_RELEASE" exit ;; d1491 2 a1492 2 echo "$UNAME_PROCESSOR"-apple-darwin"$UNAME_RELEASE" exit ;; d1499 2 a1500 2 echo "$UNAME_PROCESSOR"-"$UNAME_MACHINE"-nto-qnx"$UNAME_RELEASE" exit ;; d1502 2 a1503 2 echo i386-pc-qnx exit ;; d1505 2 a1506 2 echo neo-tandem-nsk"$UNAME_RELEASE" exit ;; d1508 2 a1509 2 echo nse-tandem-nsk"$UNAME_RELEASE" exit ;; d1511 2 a1512 2 echo nsr-tandem-nsk"$UNAME_RELEASE" exit ;; d1514 2 a1515 2 echo nsv-tandem-nsk"$UNAME_RELEASE" exit ;; d1517 2 a1518 2 echo nsx-tandem-nsk"$UNAME_RELEASE" exit ;; d1520 2 a1521 2 echo mips-compaq-nonstopux exit ;; d1523 2 a1524 2 echo bs2000-siemens-sysv exit ;; d1526 2 a1527 2 echo "$UNAME_MACHINE"-"$UNAME_SYSTEM"-"$UNAME_RELEASE" exit ;; d1532 1 a1532 2 # shellcheck disable=SC2154 if test "$cputype" = 386; then d1534 2 a1535 2 else UNAME_MACHINE="$cputype" d1537 2 a1538 2 echo "$UNAME_MACHINE"-unknown-plan9 exit ;; d1540 2 a1541 2 echo pdp10-unknown-tops10 exit ;; d1543 2 a1544 2 echo pdp10-unknown-tenex exit ;; d1546 2 a1547 2 echo pdp10-dec-tops20 exit ;; d1549 2 a1550 2 echo pdp10-xkl-tops20 exit ;; d1552 2 a1553 2 echo pdp10-unknown-tops20 exit ;; d1555 2 a1556 2 echo pdp10-unknown-its exit ;; d1558 2 a1559 2 echo mips-sei-seiux"$UNAME_RELEASE" exit ;; d1561 3 a1563 2 echo "$UNAME_MACHINE"-unknown-dragonfly"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`" exit ;; d1566 4 a1569 4 case "$UNAME_MACHINE" in A*) echo alpha-dec-vms ; exit ;; I*) echo ia64-dec-vms ; exit ;; V*) echo vax-dec-vms ; exit ;; d1572 2 a1573 2 echo i386-pc-xenix exit ;; d1575 3 a1577 2 echo "$UNAME_MACHINE"-pc-skyos"`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'`" exit ;; d1579 8 a1586 5 echo "$UNAME_MACHINE"-pc-rdos exit ;; i*86:AROS:*:*) echo "$UNAME_MACHINE"-pc-aros exit ;; d1588 2 a1589 2 echo "$UNAME_MACHINE"-unknown-esx exit ;; d1591 2 a1592 2 echo x86_64-unknown-onefs exit ;; d1594 2 a1595 2 echo "$UNAME_MACHINE"-unknown-unleashed"$UNAME_RELEASE" exit ;; d1598 6 d1735 1 a1735 1 $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null && SYSTEM_NAME=`$dummy` && d1743 1 a1743 1 case "$UNAME_MACHINE:$UNAME_SYSTEM" in d1760 1 a1760 1 https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess d1762 1 a1762 1 https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub d1765 2 a1766 1 year=`echo $timestamp | sed 's,-.*,,'` d1768 2 a1769 1 if test "`expr "\`date +%Y\`" - "$year"`" -lt 3 ; then @ 1.7.8.1 log @Sync with HEAD @ text @d3 1 a3 1 # Copyright 1992-2023 Free Software Foundation, Inc. d5 1 a5 3 # shellcheck disable=SC2006,SC2268 # see below for rationale timestamp='2023-08-22' d9 1 a9 1 # the Free Software Foundation, either version 3 of the License, or d30 1 a30 1 # https://git.savannah.gnu.org/cgit/config.git/plain/config.guess a34 8 # The "shellcheck disable" line above the timestamp inhibits complaints # about features and limitations of the classic Bourne shell that were # superseded or lifted in POSIX. However, this script identifies a wide # variety of pre-POSIX systems that do not have POSIX shells at all, and # even some reasonably current systems (Solaris 10 as case-in-point) still # have a pre-POSIX /bin/sh. d40 1 a40 1 Output the configuration name of the system '$me' is run on. d53 1 a53 1 Copyright 1992-2023 Free Software Foundation, Inc. d59 1 a59 1 Try '$me --help' for more information." a86 3 # Just in case it came from the environment. GUESS= d92 2 a93 2 # Historically, 'CC_FOR_BUILD' used to be named 'HOST_CC'. We still # use 'HOST_CC' if defined, but it is deprecated. d105 1 a105 1 # shellcheck disable=SC2039,SC3028 d115 1 a115 1 CC_FOR_BUILD=$driver d136 1 a136 1 UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown d139 1 a139 1 case $UNAME_SYSTEM in d141 3 a143 1 LIBC=unknown a146 3 #if defined(__ANDROID__) LIBC=android #else d152 1 a152 1 #elif defined(__GLIBC__) a153 7 #else #include /* First heuristic to detect musl libc. */ #ifdef __DEFINED_va_list LIBC=musl #endif #endif d156 1 a156 2 cc_set_libc=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'` eval "$cc_set_libc" d158 5 a162 11 # Second heuristic to detect musl libc. if [ "$LIBC" = unknown ] && command -v ldd >/dev/null && ldd --version 2>&1 | grep -q ^musl; then LIBC=musl fi # If the system lacks a compiler, then just pick glibc. # We could probably try harder. if [ "$LIBC" = unknown ]; then LIBC=gnu d169 1 a169 1 case $UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION in d181 1 d183 2 a184 2 /sbin/sysctl -n hw.machine_arch 2>/dev/null || \ /usr/sbin/sysctl -n hw.machine_arch 2>/dev/null || \ d186 1 a186 1 case $UNAME_MACHINE_ARCH in d196 1 a196 1 machine=${arch}${endian}-unknown d198 1 a198 1 *) machine=$UNAME_MACHINE_ARCH-unknown ;; d202 1 a202 1 case $UNAME_MACHINE_ARCH in d223 1 a223 1 case $UNAME_MACHINE_ARCH in d234 1 a234 1 case $UNAME_VERSION in d245 2 a246 2 GUESS=$machine-${os}${release}${abi-} ;; d249 2 a250 2 GUESS=$UNAME_MACHINE_ARCH-unknown-bitrig$UNAME_RELEASE ;; d253 2 a254 6 GUESS=$UNAME_MACHINE_ARCH-unknown-openbsd$UNAME_RELEASE ;; *:SecBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/SecBSD.//'` GUESS=$UNAME_MACHINE_ARCH-unknown-secbsd$UNAME_RELEASE ;; d257 2 a258 2 GUESS=$UNAME_MACHINE_ARCH-unknown-libertybsd$UNAME_RELEASE ;; d260 2 a261 2 GUESS=$UNAME_MACHINE-unknown-midnightbsd$UNAME_RELEASE ;; d263 2 a264 2 GUESS=$UNAME_MACHINE-unknown-ekkobsd$UNAME_RELEASE ;; d266 2 a267 2 GUESS=$UNAME_MACHINE-unknown-solidbsd$UNAME_RELEASE ;; d269 2 a270 2 GUESS=$UNAME_MACHINE-unknown-os108_$UNAME_RELEASE ;; d272 2 a273 2 GUESS=powerpc-unknown-mirbsd$UNAME_RELEASE ;; d275 2 a276 2 GUESS=$UNAME_MACHINE-unknown-mirbsd$UNAME_RELEASE ;; d278 2 a279 2 GUESS=$UNAME_MACHINE-unknown-sortix ;; d281 2 a282 2 GUESS=$UNAME_MACHINE-unknown-twizzler ;; d284 2 a285 2 GUESS=$UNAME_MACHINE-unknown-redox ;; d287 2 a288 2 GUESS=mips-dec-osf1 ;; a289 2 # Reset EXIT trap before exiting to avoid spurious non-zero exit code. trap '' 0 d303 1 a303 1 case $ALPHA_CPU_TYPE in d340 5 a344 3 OSF_REL=`echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz` GUESS=$UNAME_MACHINE-dec-osf$OSF_REL ;; d346 2 a347 2 GUESS=m68k-unknown-sysv4 ;; d349 2 a350 2 GUESS=$UNAME_MACHINE-unknown-amigaos ;; d352 2 a353 2 GUESS=$UNAME_MACHINE-unknown-morphos ;; d355 2 a356 2 GUESS=i370-ibm-openedition ;; d358 2 a359 2 GUESS=s390-ibm-zvmoe ;; d361 2 a362 2 GUESS=powerpc-ibm-os400 ;; d364 2 a365 2 GUESS=arm-acorn-riscix$UNAME_RELEASE ;; d367 2 a368 2 GUESS=arm-unknown-riscos ;; d370 2 a371 2 GUESS=hppa1.1-hitachi-hiuxmpp ;; d374 6 a379 5 case `(/bin/universe) 2>/dev/null` in att) GUESS=pyramid-pyramid-sysv3 ;; *) GUESS=pyramid-pyramid-bsd ;; esac ;; d381 2 a382 2 GUESS=pyramid-pyramid-svr4 ;; d384 2 a385 2 GUESS=sparc-icl-nx6 ;; d388 2 a389 3 sparc) GUESS=sparc-icl-nx7 ;; esac ;; d391 2 a392 3 SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` GUESS=$UNAME_MACHINE-ibm-solaris2$SUN_REL ;; d394 2 a395 3 SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` GUESS=sparc-hal-solaris2$SUN_REL ;; d397 2 a398 3 SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` GUESS=sparc-sun-solaris2$SUN_REL ;; d400 2 a401 2 GUESS=i386-pc-auroraux$UNAME_RELEASE ;; d410 1 a410 1 (CCOPTS="" $CC_FOR_BUILD -m64 -E - 2>/dev/null) | \ d416 2 a417 3 SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` GUESS=$SUN_ARCH-pc-solaris2$SUN_REL ;; d422 2 a423 3 SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` GUESS=sparc-sun-solaris3$SUN_REL ;; d425 1 a425 1 case `/usr/bin/arch -k` in d430 3 a432 4 # Japanese Language versions have a version number like '4.1.3-JL'. SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/-/_/'` GUESS=sparc-sun-sunos$SUN_REL ;; d434 2 a435 2 GUESS=m68k-sun-sunos$UNAME_RELEASE ;; d439 1 a439 1 case `/bin/arch` in d441 1 a441 1 GUESS=m68k-sun-sunos$UNAME_RELEASE d444 1 a444 1 GUESS=sparc-sun-sunos$UNAME_RELEASE d447 1 a447 1 ;; d449 2 a450 2 GUESS=sparc-auspex-sunos$UNAME_RELEASE ;; d460 2 a461 2 GUESS=m68k-atari-mint$UNAME_RELEASE ;; d463 2 a464 2 GUESS=m68k-atari-mint$UNAME_RELEASE ;; d466 2 a467 2 GUESS=m68k-atari-mint$UNAME_RELEASE ;; d469 2 a470 2 GUESS=m68k-milan-mint$UNAME_RELEASE ;; d472 2 a473 2 GUESS=m68k-hades-mint$UNAME_RELEASE ;; d475 2 a476 2 GUESS=m68k-unknown-mint$UNAME_RELEASE ;; d478 2 a479 2 GUESS=m68k-apple-machten$UNAME_RELEASE ;; d481 2 a482 2 GUESS=powerpc-apple-machten$UNAME_RELEASE ;; d484 2 a485 2 GUESS=mips-dec-mach_bsd4.3 ;; d487 2 a488 2 GUESS=mips-dec-ultrix$UNAME_RELEASE ;; d490 2 a491 2 GUESS=vax-dec-ultrix$UNAME_RELEASE ;; d493 2 a494 2 GUESS=clipper-intergraph-clix$UNAME_RELEASE ;; d522 2 a523 2 GUESS=mips-mips-riscos$UNAME_RELEASE ;; d525 2 a526 2 GUESS=powerpc-motorola-powermax ;; d528 2 a529 2 GUESS=powerpc-harris-powermax ;; d531 2 a532 2 GUESS=powerpc-harris-powermax ;; d534 2 a535 2 GUESS=powerpc-harris-powerunix ;; d537 2 a538 2 GUESS=m88k-harris-cxux7 ;; d540 2 a541 2 GUESS=m88k-motorola-sysv4 ;; d543 2 a544 2 GUESS=m88k-motorola-sysv3 ;; d553 1 a553 1 GUESS=m88k-dg-dgux$UNAME_RELEASE d555 1 a555 1 GUESS=m88k-dg-dguxbcs$UNAME_RELEASE d558 1 a558 1 GUESS=i586-dg-dgux$UNAME_RELEASE d560 1 a560 1 ;; d562 2 a563 2 GUESS=m88k-dolphin-sysv3 ;; d566 2 a567 2 GUESS=m88k-motorola-sysv3 ;; d569 2 a570 2 GUESS=m88k-tektronix-sysv3 ;; d572 2 a573 2 GUESS=m68k-tektronix-bsd ;; d575 2 a576 3 IRIX_REL=`echo "$UNAME_RELEASE" | sed -e 's/-/_/g'` GUESS=mips-sgi-irix$IRIX_REL ;; d578 2 a579 2 GUESS=romp-ibm-aix # uname -m gives an 8 hex-code CPU id ;; # Note that: echo "'`uname -s`'" gives 'AIX ' d581 2 a582 2 GUESS=i386-ibm-aix ;; d587 1 a587 1 IBM_REV=$UNAME_VERSION.$UNAME_RELEASE d589 2 a590 2 GUESS=$UNAME_MACHINE-ibm-aix$IBM_REV ;; d607 1 a607 1 GUESS=$SYSTEM_NAME d609 1 a609 1 GUESS=rs6000-ibm-aix3.2.5 d612 1 a612 1 GUESS=rs6000-ibm-aix3.2.4 d614 1 a614 1 GUESS=rs6000-ibm-aix3.2 d616 1 a616 1 ;; d625 1 a625 1 IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc | \ d628 1 a628 1 IBM_REV=$UNAME_VERSION.$UNAME_RELEASE d630 2 a631 2 GUESS=$IBM_ARCH-ibm-aix$IBM_REV ;; d633 2 a634 2 GUESS=rs6000-ibm-aix ;; d636 2 a637 2 GUESS=romp-ibm-bsd4.4 ;; d639 2 a640 2 GUESS=romp-ibm-bsd$UNAME_RELEASE # 4.3 with uname added to ;; # report: romp-ibm BSD 4.3 d642 2 a643 2 GUESS=rs6000-bull-bosx ;; d645 2 a646 2 GUESS=m68k-bull-sysv3 ;; d648 2 a649 2 GUESS=m68k-hp-bsd ;; d651 2 a652 2 GUESS=m68k-hp-bsd4.4 ;; d654 2 a655 2 HPUX_REV=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*.[0B]*//'` case $UNAME_MACHINE in d662 1 a662 1 case $sc_cpu_version in d666 1 a666 1 case $sc_kernel_bits in d733 2 a734 2 GUESS=$HP_ARCH-hp-hpux$HPUX_REV ;; d736 3 a738 3 HPUX_REV=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*.[0B]*//'` GUESS=ia64-hp-hpux$HPUX_REV ;; d768 2 a769 2 GUESS=unknown-hitachi-hiuxwe2 ;; d771 2 a772 2 GUESS=hppa1.1-hp-bsd ;; d774 2 a775 2 GUESS=hppa1.0-hp-bsd ;; d777 2 a778 2 GUESS=hppa1.0-hp-mpeix ;; d780 2 a781 2 GUESS=hppa1.1-hp-osf ;; d783 2 a784 2 GUESS=hppa1.0-hp-osf ;; d787 1 a787 1 GUESS=$UNAME_MACHINE-unknown-osf1mk d789 1 a789 1 GUESS=$UNAME_MACHINE-unknown-osf1 d791 1 a791 1 ;; d793 2 a794 2 GUESS=hppa1.1-hp-lites ;; d796 2 a797 2 GUESS=c1-convex-bsd ;; d805 2 a806 2 GUESS=c34-convex-bsd ;; d808 2 a809 2 GUESS=c38-convex-bsd ;; d811 2 a812 2 GUESS=c4-convex-bsd ;; d814 2 a815 3 CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` GUESS=ymp-cray-unicos$CRAY_REL ;; d823 2 a824 3 CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` GUESS=t90-cray-unicos$CRAY_REL ;; d826 2 a827 3 CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` GUESS=alphaev5-cray-unicosmk$CRAY_REL ;; d829 2 a830 3 CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` GUESS=sv1-cray-unicos$CRAY_REL ;; d832 2 a833 3 CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` GUESS=craynv-cray-unicosmp$CRAY_REL ;; d838 2 a839 2 GUESS=${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL} ;; d843 2 a844 2 GUESS=sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL} ;; d846 2 a847 2 GUESS=$UNAME_MACHINE-pc-bsdi$UNAME_RELEASE ;; d849 2 a850 2 GUESS=sparc-unknown-bsdi$UNAME_RELEASE ;; d852 2 a853 2 GUESS=$UNAME_MACHINE-unknown-bsdi$UNAME_RELEASE ;; d860 1 a860 2 FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL-gnueabi d862 1 a862 2 FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL-gnueabihf d864 1 a864 1 ;; d866 2 a867 2 UNAME_PROCESSOR=`uname -p` case $UNAME_PROCESSOR in d873 2 a874 3 FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL ;; d876 2 a877 2 GUESS=$UNAME_MACHINE-pc-cygwin ;; d879 2 a880 2 GUESS=$UNAME_MACHINE-pc-mingw64 ;; d882 2 a883 2 GUESS=$UNAME_MACHINE-pc-mingw32 ;; d885 2 a886 2 GUESS=$UNAME_MACHINE-pc-msys ;; d888 2 a889 5 GUESS=$UNAME_MACHINE-pc-pw32 ;; *:SerenityOS:*:*) GUESS=$UNAME_MACHINE-pc-serenity ;; d891 1 a891 1 case $UNAME_MACHINE in d893 2 a894 2 GUESS=i586-pc-interix$UNAME_RELEASE ;; d896 2 a897 2 GUESS=x86_64-unknown-interix$UNAME_RELEASE ;; d899 2 a900 2 GUESS=ia64-unknown-interix$UNAME_RELEASE ;; d903 2 a904 2 GUESS=$UNAME_MACHINE-pc-uwin ;; d906 2 a907 2 GUESS=x86_64-pc-cygwin ;; d909 2 a910 3 SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` GUESS=powerpcle-unknown-solaris2$SUN_REL ;; d913 2 a914 4 GNU_ARCH=`echo "$UNAME_MACHINE" | sed -e 's,[-/].*$,,'` GNU_REL=`echo "$UNAME_RELEASE" | sed -e 's,/.*$,,'` GUESS=$GNU_ARCH-unknown-$LIBC$GNU_REL ;; d917 2 a918 10 GNU_SYS=`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"` GNU_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` GUESS=$UNAME_MACHINE-unknown-$GNU_SYS$GNU_REL-$LIBC ;; x86_64:[Mm]anagarm:*:*|i?86:[Mm]anagarm:*:*) GUESS="$UNAME_MACHINE-pc-managarm-mlibc" ;; *:[Mm]anagarm:*:*) GUESS="$UNAME_MACHINE-unknown-managarm-mlibc" ;; d920 2 a921 2 GUESS=$UNAME_MACHINE-unknown-minix ;; d923 2 a924 22 set_cc_for_build CPU=$UNAME_MACHINE LIBCABI=$LIBC if test "$CC_FOR_BUILD" != no_compiler_found; then ABI=64 sed 's/^ //' << EOF > "$dummy.c" #ifdef __ARM_EABI__ #ifdef __ARM_PCS_VFP ABI=eabihf #else ABI=eabi #endif #endif EOF cc_set_abi=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^ABI' | sed 's, ,,g'` eval "$cc_set_abi" case $ABI in eabi | eabihf) CPU=armv8l; LIBCABI=$LIBC$ABI ;; esac fi GUESS=$CPU-unknown-linux-$LIBCABI ;; d927 2 a928 2 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; d941 5 a945 5 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; arc:Linux:*:* | arceb:Linux:*:* | arc32:Linux:*:* | arc64:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; d951 1 a951 1 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC d956 1 a956 1 GUESS=$UNAME_MACHINE-unknown-linux-${LIBC}eabi d958 1 a958 1 GUESS=$UNAME_MACHINE-unknown-linux-${LIBC}eabihf d961 1 a961 1 ;; d963 2 a964 2 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; d966 2 a967 2 GUESS=$UNAME_MACHINE-axis-linux-$LIBC ;; d969 2 a970 2 GUESS=$UNAME_MACHINE-axis-linux-$LIBC ;; d972 2 a973 2 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; d975 2 a976 2 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; d978 2 a979 2 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; d981 2 a982 2 GUESS=$UNAME_MACHINE-pc-linux-$LIBC ;; d984 2 a985 2 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; d987 2 a988 14 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; kvx:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; kvx:cos:*:*) GUESS=$UNAME_MACHINE-unknown-cos ;; kvx:mbr:*:*) GUESS=$UNAME_MACHINE-unknown-mbr ;; loongarch32:Linux:*:* | loongarch64:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; d990 2 a991 2 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; d993 2 a994 2 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; d1039 1 a1039 2 cc_set_vars=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU\|^MIPS_ENDIAN\|^LIBCABI'` eval "$cc_set_vars" d1043 2 a1044 2 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; d1046 2 a1047 2 GUESS=or1k-unknown-linux-$LIBC ;; d1049 2 a1050 2 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; d1052 2 a1053 2 GUESS=sparc-unknown-linux-$LIBC ;; d1055 2 a1056 2 GUESS=hppa64-unknown-linux-$LIBC ;; d1060 3 a1062 3 PA7*) GUESS=hppa1.1-unknown-linux-$LIBC ;; PA8*) GUESS=hppa2.0-unknown-linux-$LIBC ;; *) GUESS=hppa-unknown-linux-$LIBC ;; d1064 1 a1064 1 ;; d1066 2 a1067 2 GUESS=powerpc64-unknown-linux-$LIBC ;; d1069 2 a1070 2 GUESS=powerpc-unknown-linux-$LIBC ;; d1072 2 a1073 2 GUESS=powerpc64le-unknown-linux-$LIBC ;; d1075 5 a1079 5 GUESS=powerpcle-unknown-linux-$LIBC ;; riscv32:Linux:*:* | riscv32be:Linux:*:* | riscv64:Linux:*:* | riscv64be:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; d1081 2 a1082 2 GUESS=$UNAME_MACHINE-ibm-linux-$LIBC ;; d1084 2 a1085 2 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; d1087 2 a1088 2 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; d1090 2 a1091 2 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; d1093 2 a1094 2 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; d1096 2 a1097 2 GUESS=$UNAME_MACHINE-dec-linux-$LIBC ;; a1099 1 CPU=$UNAME_MACHINE d1102 6 a1107 16 ABI=64 sed 's/^ //' << EOF > "$dummy.c" #ifdef __i386__ ABI=x86 #else #ifdef __ILP32__ ABI=x32 #endif #endif EOF cc_set_abi=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^ABI' | sed 's, ,,g'` eval "$cc_set_abi" case $ABI in x86) CPU=i686 ;; x32) LIBCABI=${LIBC}x32 ;; esac d1109 2 a1110 2 GUESS=$CPU-pc-linux-$LIBCABI ;; d1112 2 a1113 2 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; d1118 2 a1119 2 GUESS=i386-sequent-sysv4 ;; d1126 2 a1127 2 GUESS=$UNAME_MACHINE-pc-sysv4.2uw$UNAME_VERSION ;; d1129 1 a1129 1 # If we were able to find 'uname', then EMX Unix compatibility d1131 2 a1132 2 GUESS=$UNAME_MACHINE-pc-os2-emx ;; d1134 2 a1135 2 GUESS=$UNAME_MACHINE-unknown-stop ;; d1137 2 a1138 2 GUESS=$UNAME_MACHINE-unknown-atheos ;; d1140 2 a1141 2 GUESS=$UNAME_MACHINE-pc-syllable ;; d1143 2 a1144 2 GUESS=i386-unknown-lynxos$UNAME_RELEASE ;; d1146 2 a1147 2 GUESS=$UNAME_MACHINE-pc-msdosdjgpp ;; d1151 1 a1151 1 GUESS=$UNAME_MACHINE-univel-sysv$UNAME_REL d1153 1 a1153 1 GUESS=$UNAME_MACHINE-pc-sysv$UNAME_REL d1155 1 a1155 1 ;; d1163 2 a1164 2 GUESS=$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} ;; d1168 1 a1168 1 GUESS=$UNAME_MACHINE-pc-isc$UNAME_REL d1178 1 a1178 1 GUESS=$UNAME_MACHINE-pc-sco$UNAME_REL d1180 1 a1180 1 GUESS=$UNAME_MACHINE-pc-sysv32 d1182 1 a1182 1 ;; d1190 2 a1191 2 GUESS=i586-pc-msdosdjgpp ;; d1193 2 a1194 2 GUESS=i386-pc-mach3 ;; d1196 2 a1197 2 GUESS=i860-intel-osf1 ;; d1200 1 a1200 1 GUESS=i860-stardent-sysv$UNAME_RELEASE # Stardent Vistra i860-SVR4 d1202 1 a1202 1 GUESS=i860-unknown-sysv$UNAME_RELEASE # Unknown i860-SVR4 d1204 1 a1204 1 ;; d1207 2 a1208 2 GUESS=m68010-convergent-sysv ;; d1210 2 a1211 2 GUESS=m68k-convergent-sysv ;; d1213 2 a1214 2 GUESS=m68k-diab-dnix ;; d1239 2 a1240 2 GUESS=m68k-unknown-lynxos$UNAME_RELEASE ;; d1242 2 a1243 2 GUESS=m68k-atari-sysv4 ;; d1245 2 a1246 2 GUESS=sparc-unknown-lynxos$UNAME_RELEASE ;; d1248 2 a1249 2 GUESS=rs6000-unknown-lynxos$UNAME_RELEASE ;; d1251 2 a1252 2 GUESS=powerpc-unknown-lynxos$UNAME_RELEASE ;; d1254 2 a1255 2 GUESS=mips-dde-sysv$UNAME_RELEASE ;; d1257 2 a1258 2 GUESS=mips-sni-sysv4 ;; d1260 2 a1261 2 GUESS=mips-sni-sysv4 ;; d1265 1 a1265 1 GUESS=$UNAME_MACHINE-sni-sysv4 d1267 1 a1267 1 GUESS=ns32k-sni-sysv d1269 2 a1270 2 ;; PENTIUM:*:4.0*:*) # Unisys 'ClearPath HMP IX 4000' SVR4/MP effort d1272 2 a1273 2 GUESS=i586-unisys-sysv4 ;; d1277 2 a1278 2 GUESS=hppa1.1-stratus-sysv4 ;; d1281 2 a1282 2 GUESS=i860-stratus-sysv4 ;; d1285 2 a1286 2 GUESS=$UNAME_MACHINE-stratus-vos ;; d1289 2 a1290 2 GUESS=hppa1.1-stratus-vos ;; d1292 2 a1293 2 GUESS=m68k-apple-aux$UNAME_RELEASE ;; d1295 2 a1296 2 GUESS=mips-sony-newsos6 ;; d1299 1 a1299 1 GUESS=mips-nec-sysv$UNAME_RELEASE d1301 1 a1301 1 GUESS=mips-unknown-sysv$UNAME_RELEASE d1303 1 a1303 1 ;; d1305 2 a1306 2 GUESS=powerpc-be-beos ;; d1308 2 a1309 2 GUESS=powerpc-apple-beos ;; d1311 2 a1312 2 GUESS=i586-pc-beos ;; d1314 5 a1318 8 GUESS=i586-pc-haiku ;; ppc:Haiku:*:*) # Haiku running on Apple PowerPC GUESS=powerpc-apple-haiku ;; *:Haiku:*:*) # Haiku modern gcc (not bound by BeOS compat) GUESS=$UNAME_MACHINE-unknown-haiku ;; d1320 2 a1321 2 GUESS=sx4-nec-superux$UNAME_RELEASE ;; d1323 2 a1324 2 GUESS=sx5-nec-superux$UNAME_RELEASE ;; d1326 2 a1327 2 GUESS=sx6-nec-superux$UNAME_RELEASE ;; d1329 2 a1330 2 GUESS=sx7-nec-superux$UNAME_RELEASE ;; d1332 2 a1333 2 GUESS=sx8-nec-superux$UNAME_RELEASE ;; d1335 2 a1336 2 GUESS=sx8r-nec-superux$UNAME_RELEASE ;; d1338 2 a1339 2 GUESS=sxace-nec-superux$UNAME_RELEASE ;; d1341 2 a1342 2 GUESS=powerpc-apple-rhapsody$UNAME_RELEASE ;; d1344 2 a1345 2 GUESS=$UNAME_MACHINE-apple-rhapsody$UNAME_RELEASE ;; d1347 2 a1348 2 GUESS=aarch64-apple-darwin$UNAME_RELEASE ;; d1384 2 a1385 2 GUESS=$UNAME_PROCESSOR-apple-darwin$UNAME_RELEASE ;; d1392 2 a1393 2 GUESS=$UNAME_PROCESSOR-$UNAME_MACHINE-nto-qnx$UNAME_RELEASE ;; d1395 2 a1396 2 GUESS=i386-pc-qnx ;; d1398 2 a1399 2 GUESS=neo-tandem-nsk$UNAME_RELEASE ;; d1401 2 a1402 2 GUESS=nse-tandem-nsk$UNAME_RELEASE ;; d1404 2 a1405 2 GUESS=nsr-tandem-nsk$UNAME_RELEASE ;; d1407 2 a1408 2 GUESS=nsv-tandem-nsk$UNAME_RELEASE ;; d1410 2 a1411 2 GUESS=nsx-tandem-nsk$UNAME_RELEASE ;; d1413 2 a1414 2 GUESS=mips-compaq-nonstopux ;; d1416 2 a1417 2 GUESS=bs2000-siemens-sysv ;; d1419 2 a1420 2 GUESS=$UNAME_MACHINE-$UNAME_SYSTEM-$UNAME_RELEASE ;; d1425 2 a1426 1 if test "${cputype-}" = 386; then d1428 2 a1429 2 elif test "x${cputype-}" != x; then UNAME_MACHINE=$cputype d1431 2 a1432 2 GUESS=$UNAME_MACHINE-unknown-plan9 ;; d1434 2 a1435 2 GUESS=pdp10-unknown-tops10 ;; d1437 2 a1438 2 GUESS=pdp10-unknown-tenex ;; d1440 2 a1441 2 GUESS=pdp10-dec-tops20 ;; d1443 2 a1444 2 GUESS=pdp10-xkl-tops20 ;; d1446 2 a1447 2 GUESS=pdp10-unknown-tops20 ;; d1449 2 a1450 2 GUESS=pdp10-unknown-its ;; d1452 2 a1453 2 GUESS=mips-sei-seiux$UNAME_RELEASE ;; d1455 2 a1456 3 DRAGONFLY_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` GUESS=$UNAME_MACHINE-unknown-dragonfly$DRAGONFLY_REL ;; d1459 4 a1462 4 case $UNAME_MACHINE in A*) GUESS=alpha-dec-vms ;; I*) GUESS=ia64-dec-vms ;; V*) GUESS=vax-dec-vms ;; d1465 2 a1466 2 GUESS=i386-pc-xenix ;; d1468 2 a1469 3 SKYOS_REL=`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'` GUESS=$UNAME_MACHINE-pc-skyos$SKYOS_REL ;; d1471 5 a1475 8 GUESS=$UNAME_MACHINE-pc-rdos ;; i*86:Fiwix:*:*) GUESS=$UNAME_MACHINE-pc-fiwix ;; *:AROS:*:*) GUESS=$UNAME_MACHINE-unknown-aros ;; d1477 2 a1478 2 GUESS=$UNAME_MACHINE-unknown-esx ;; d1480 2 a1481 2 GUESS=x86_64-unknown-onefs ;; d1483 2 a1484 2 GUESS=$UNAME_MACHINE-unknown-unleashed$UNAME_RELEASE ;; a1486 6 # Do we have a guess based on uname results? if test "x$GUESS" != x; then echo "$GUESS" exit fi d1618 1 a1618 1 $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null && SYSTEM_NAME=`"$dummy"` && d1626 1 a1626 1 case $UNAME_MACHINE:$UNAME_SYSTEM in d1643 1 a1643 1 https://git.savannah.gnu.org/cgit/config.git/plain/config.guess d1645 1 a1645 1 https://git.savannah.gnu.org/cgit/config.git/plain/config.sub d1648 1 a1648 2 our_year=`echo $timestamp | sed 's,-.*,,'` thisyear=`date +%Y` d1650 1 a1650 2 script_age=`expr "$thisyear" - "$our_year"` if test "$script_age" -lt 3 ; then @ 1.6 log @Support aarch64eb in */config.guess. Cherry-picked from upstream: https://git.savannah.gnu.org/gitweb/?p=config.git;a=commit;h=1c4398015583eb77bc043234f5734be055e64bea Everything except external/apache2/llvm/dist/llvm/cmake/config.guess is patched, which is under vendor tag and cannot be modified. I expect that this file is not actually used as we use hand-crafted version of configure script instead of cmake for building LLVM. Note that external/apache2/llvm/autoconf/autoconf/config.guess has already been committed on Oct. 20, but commit message disappeared as cvs aborted due to "permission denied" when trying to modify the file mentioned above. Sorry for confusing you. Also note that GMP uses its own config.guess Patch for external/lgpl3/gmp/dist/config.guess is provided by ryo@@. Thanks! @ text @d3 1 a3 1 # Copyright 1992-2019 Free Software Foundation, Inc. d5 1 a5 1 timestamp='2019-06-10' d53 1 a53 1 Copyright 1992-2019 Free Software Foundation, Inc. d102 2 d280 3 d287 2 a288 2 echo mips-dec-osf1 exit ;; d408 1 a408 1 if [ "$CC_FOR_BUILD" != no_compiler_found ]; then d548 1 a548 1 if [ "$UNAME_PROCESSOR" = mc88100 ] || [ "$UNAME_PROCESSOR" = mc88110 ] d550 2 a551 2 if [ "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx ] || \ [ "$TARGET_BINARY_INTERFACE"x = x ] d584 1 a584 1 if [ -x /usr/bin/oslevel ] ; then d624 1 a624 1 if [ -x /usr/bin/lslpp ] ; then d659 1 a659 1 if [ -x /usr/bin/getconf ]; then d673 1 a673 1 if [ "$HP_ARCH" = "" ]; then d712 1 a712 1 if [ "$HP_ARCH" = hppa2.0w ] d786 1 a786 1 if [ -x /usr/sbin/sysversion ] ; then d930 1 a930 1 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in d1099 11 a1109 1 echo "$UNAME_MACHINE"-pc-linux-"$LIBC" d1298 1 a1298 1 if [ -d /usr/nec ]; then d1346 3 d1363 1 a1363 1 if [ "$CC_FOR_BUILD" != no_compiler_found ]; then d1646 6 d1679 1 @ 1.5 log @merge conflicts @ text @d185 1 @ 1.4 log @merge conflicts @ text @d3 1 a3 1 # Copyright 1992-2018 Free Software Foundation, Inc. d5 1 a5 1 timestamp='2018-01-26' d53 1 a53 1 Copyright 1992-2018 Free Software Foundation, Inc. a86 2 trap 'exit 1' 1 2 15 d97 28 a124 24 set_cc_for_build=' trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; : ${TMPDIR=/tmp} ; { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; dummy=$tmp/dummy ; tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; case $CC_FOR_BUILD,$HOST_CC,$CC in ,,) echo "int x;" > "$dummy.c" ; for c in cc gcc c89 c99 ; do if ($c -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then CC_FOR_BUILD="$c"; break ; fi ; done ; if test x"$CC_FOR_BUILD" = x ; then CC_FOR_BUILD=no_compiler_found ; fi ;; ,,*) CC_FOR_BUILD=$CC ;; ,*,*) CC_FOR_BUILD=$HOST_CC ;; esac ; set_cc_for_build= ;' d128 1 a128 1 if (test -f /.attbin/uname) >/dev/null 2>&1 ; then d143 1 a143 1 eval "$set_cc_for_build" d204 1 a204 1 eval "$set_cc_for_build" d242 1 a242 1 echo "$machine-${os}${release}${abi}" d265 3 d397 1 a397 1 eval "$set_cc_for_build" d490 1 a490 1 eval "$set_cc_for_build" d587 1 a587 1 eval "$set_cc_for_build" d668 1 a668 1 eval "$set_cc_for_build" d708 1 a708 1 eval "$set_cc_for_build" d734 1 a734 1 eval "$set_cc_for_build" d848 11 d900 1 a900 1 echo x86_64-unknown-cygwin d913 2 a914 2 i*86:Minix:*:*) echo "$UNAME_MACHINE"-pc-minix d941 1 a941 1 eval "$set_cc_for_build" d990 3 a992 1 eval "$set_cc_for_build" d995 28 a1022 2 #undef ${UNAME_MACHINE} #undef ${UNAME_MACHINE}el d1024 1 a1024 1 CPU=${UNAME_MACHINE}el d1027 1 a1027 1 CPU=${UNAME_MACHINE} d1029 1 a1029 1 CPU= d1033 2 a1034 2 eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU'`" test "x$CPU" != x && { echo "$CPU-unknown-linux-$LIBC"; exit; } d1147 1 a1147 1 echo "$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}{$UNAME_VERSION}" d1331 29 a1359 23 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown eval "$set_cc_for_build" if test "$UNAME_PROCESSOR" = unknown ; then UNAME_PROCESSOR=powerpc fi if test "`echo "$UNAME_RELEASE" | sed -e 's/\..*//'`" -le 10 ; then if [ "$CC_FOR_BUILD" != no_compiler_found ]; then if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then case $UNAME_PROCESSOR in i386) UNAME_PROCESSOR=x86_64 ;; powerpc) UNAME_PROCESSOR=powerpc64 ;; esac fi # On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \ (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_PPC >/dev/null then UNAME_PROCESSOR=powerpc fi d1362 2 a1363 7 # Avoid executing cc on OS X 10.9, as it ships with a stub # that puts up a graphical alert prompting to install # developer tools. Any system running Mac OS X 10.7 or # later (Darwin 11 and later) is required to have a 64-bit # processor. This is not true of the ARM version of Darwin # that Apple uses in portable devices. UNAME_PROCESSOR=x86_64 d1406 1 d1463 3 d1468 137 d1658 1 a1658 1 # eval: (add-hook 'write-file-functions 'time-stamp) @ 1.3 log @merge conflicts. @ text @d3 1 a3 1 # Copyright 1992-2017 Free Software Foundation, Inc. d5 1 a5 1 timestamp='2017-03-05' d18 1 a18 1 # along with this program; if not, see . d30 1 a30 1 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess d42 1 a42 1 Operation modes: d53 1 a53 1 Copyright 1992-2017 Free Software Foundation, Inc. d110 1 a110 1 ,,) echo "int x;" > $dummy.c ; d112 1 a112 1 if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then d135 1 a135 1 case "${UNAME_SYSTEM}" in d141 2 a142 2 eval $set_cc_for_build cat <<-EOF > $dummy.c d152 8 a159 1 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | sed 's, ,,g'` d165 1 a165 1 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in d179 2 a180 2 /sbin/$sysctl 2>/dev/null || \ /usr/sbin/$sysctl 2>/dev/null || \ d182 1 a182 1 case "${UNAME_MACHINE_ARCH}" in d189 3 a191 3 arch=`echo ${UNAME_MACHINE_ARCH} | sed -e 's,^e\(armv[0-9]\).*$,\1,'` endian=`echo ${UNAME_MACHINE_ARCH} | sed -ne 's,^.*\(eb\)$,\1,p'` machine=${arch}${endian}-unknown d193 1 a193 1 *) machine=${UNAME_MACHINE_ARCH}-unknown ;; d197 1 a197 1 case "${UNAME_MACHINE_ARCH}" in d202 1 a202 1 eval $set_cc_for_build d218 1 a218 1 case "${UNAME_MACHINE_ARCH}" in d221 1 a221 1 abi=`echo ${UNAME_MACHINE_ARCH} | sed -e "$expr"` d229 1 a229 1 case "${UNAME_VERSION}" in d234 1 a234 1 release=`echo ${UNAME_RELEASE} | sed -e 's/[-_].*//' | cut -d. -f1,2` d240 1 a240 1 echo "${machine}-${os}${release}${abi}" d244 1 a244 1 echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE} d248 1 a248 1 echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} d252 4 a255 1 echo ${UNAME_MACHINE_ARCH}-unknown-libertybsd${UNAME_RELEASE} d258 1 a258 1 echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} d261 1 a261 1 echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} d264 1 a264 1 echo powerpc-unknown-mirbsd${UNAME_RELEASE} d267 1 a267 1 echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} d270 4 a273 1 echo ${UNAME_MACHINE}-unknown-sortix d275 3 d329 1 a329 1 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz` a333 9 Alpha\ *:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # Should we change UNAME_MACHINE based on the output of uname instead # of the specific Alpha model? echo alpha-pc-interix exit ;; 21064:Windows_NT:50:3) echo alpha-dec-winnt3.5 exit ;; d338 1 a338 1 echo ${UNAME_MACHINE}-unknown-amigaos d341 1 a341 1 echo ${UNAME_MACHINE}-unknown-morphos d353 1 a353 1 echo arm-acorn-riscix${UNAME_RELEASE} d380 1 a380 1 echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` d383 1 a383 1 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` d386 1 a386 1 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` d389 1 a389 1 echo i386-pc-auroraux${UNAME_RELEASE} d392 1 a392 1 eval $set_cc_for_build d405 1 a405 1 echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` d411 1 a411 1 echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` d420 1 a420 1 echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` d423 1 a423 1 echo m68k-sun-sunos${UNAME_RELEASE} d427 1 a427 1 test "x${UNAME_RELEASE}" = x && UNAME_RELEASE=3 d430 1 a430 1 echo m68k-sun-sunos${UNAME_RELEASE} d433 1 a433 1 echo sparc-sun-sunos${UNAME_RELEASE} d438 1 a438 1 echo sparc-auspex-sunos${UNAME_RELEASE} d449 1 a449 1 echo m68k-atari-mint${UNAME_RELEASE} d452 1 a452 1 echo m68k-atari-mint${UNAME_RELEASE} d455 1 a455 1 echo m68k-atari-mint${UNAME_RELEASE} d458 1 a458 1 echo m68k-milan-mint${UNAME_RELEASE} d461 1 a461 1 echo m68k-hades-mint${UNAME_RELEASE} d464 1 a464 1 echo m68k-unknown-mint${UNAME_RELEASE} d467 1 a467 1 echo m68k-apple-machten${UNAME_RELEASE} d470 1 a470 1 echo powerpc-apple-machten${UNAME_RELEASE} d476 1 a476 1 echo mips-dec-ultrix${UNAME_RELEASE} d479 1 a479 1 echo vax-dec-ultrix${UNAME_RELEASE} d482 1 a482 1 echo clipper-intergraph-clix${UNAME_RELEASE} d485 2 a486 2 eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c d495 1 a495 1 printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); d498 1 a498 1 printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); d501 1 a501 1 printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); d507 3 a509 3 $CC_FOR_BUILD -o $dummy $dummy.c && dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && SYSTEM_NAME=`$dummy $dummyarg` && d511 1 a511 1 echo mips-mips-riscos${UNAME_RELEASE} d537 1 a537 1 if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] d539 2 a540 2 if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ [ ${TARGET_BINARY_INTERFACE}x = x ] d542 1 a542 1 echo m88k-dg-dgux${UNAME_RELEASE} d544 1 a544 1 echo m88k-dg-dguxbcs${UNAME_RELEASE} d547 1 a547 1 echo i586-dg-dgux${UNAME_RELEASE} d564 1 a564 1 echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` d576 1 a576 1 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} d578 1 a578 1 echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} d582 2 a583 2 eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c d594 1 a594 1 if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` d608 1 a608 1 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then d617 1 a617 1 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} d619 1 a619 1 echo ${IBM_ARCH}-ibm-aix${IBM_REV} d624 1 a624 1 ibmrt:4.4BSD:*|romp-ibm:BSD:*) d628 1 a628 1 echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to d643 4 a646 4 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` case "${UNAME_MACHINE}" in 9000/31? ) HP_ARCH=m68000 ;; 9000/[34]?? ) HP_ARCH=m68k ;; d651 1 a651 1 case "${sc_cpu_version}" in d655 1 a655 1 case "${sc_kernel_bits}" in d662 3 a664 3 if [ "${HP_ARCH}" = "" ]; then eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c d697 1 a697 1 (CCOPTS="" $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` d701 1 a701 1 if [ ${HP_ARCH} = hppa2.0w ] d703 1 a703 1 eval $set_cc_for_build d722 1 a722 1 echo ${HP_ARCH}-hp-hpux${HPUX_REV} d725 2 a726 2 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` echo ia64-hp-hpux${HPUX_REV} d729 2 a730 2 eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c d755 1 a755 1 $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && d759 1 a759 1 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) d768 1 a768 1 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) d776 1 a776 1 echo ${UNAME_MACHINE}-unknown-osf1mk d778 1 a778 1 echo ${UNAME_MACHINE}-unknown-osf1 d803 1 a803 1 echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' d806 1 a806 1 echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ d812 1 a812 1 echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' d815 1 a815 1 echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' d818 1 a818 1 echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' d821 1 a821 1 echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' d826 1 a826 1 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` d831 1 a831 1 FUJITSU_REL=`echo ${UNAME_RELEASE} | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'` d835 1 a835 1 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} d838 1 a838 1 echo sparc-unknown-bsdi${UNAME_RELEASE} d841 1 a841 1 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} d845 1 a845 1 case ${UNAME_PROCESSOR} in d851 1 a851 1 echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` d854 1 a854 1 echo ${UNAME_MACHINE}-pc-cygwin d857 1 a857 1 echo ${UNAME_MACHINE}-pc-mingw64 d860 1 a860 1 echo ${UNAME_MACHINE}-pc-mingw32 d863 1 a863 5 echo ${UNAME_MACHINE}-pc-msys exit ;; i*:windows32*:*) # uname -m includes "-pc" on this system. echo ${UNAME_MACHINE}-mingw32 d866 1 a866 1 echo ${UNAME_MACHINE}-pc-pw32 d869 1 a869 1 case ${UNAME_MACHINE} in d871 1 a871 1 echo i586-pc-interix${UNAME_RELEASE} d874 1 a874 1 echo x86_64-unknown-interix${UNAME_RELEASE} d877 1 a877 1 echo ia64-unknown-interix${UNAME_RELEASE} a879 12 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) echo i${UNAME_MACHINE}-pc-mks exit ;; 8664:Windows_NT:*) echo x86_64-pc-mks exit ;; i*:Windows_NT*:* | Pentium*:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we # UNAME_MACHINE based on the output of uname instead of i386? echo i586-pc-interix exit ;; d881 1 a881 1 echo ${UNAME_MACHINE}-pc-uwin a885 3 p*:CYGWIN*:*) echo powerpcle-unknown-cygwin exit ;; d887 1 a887 1 echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` d891 1 a891 1 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` d895 1 a895 1 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC} d898 1 a898 1 echo ${UNAME_MACHINE}-pc-minix d901 1 a901 1 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} d905 1 a905 1 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} d919 1 a919 1 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} d922 1 a922 1 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} d925 1 a925 1 eval $set_cc_for_build d929 1 a929 1 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} d934 1 a934 1 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi d936 1 a936 1 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf d941 1 a941 1 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} d944 1 a944 1 echo ${UNAME_MACHINE}-axis-linux-${LIBC} d947 1 a947 1 echo ${UNAME_MACHINE}-axis-linux-${LIBC} d950 1 a950 1 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} d953 1 a953 1 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} d956 1 a956 1 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} d959 1 a959 1 echo ${UNAME_MACHINE}-pc-linux-${LIBC} d962 1 a962 1 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} d965 1 a965 1 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} d968 1 a968 1 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} d971 1 a971 1 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} d974 2 a975 2 eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c d989 2 a990 2 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; } d993 1 a993 1 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} d996 1 a996 1 echo or1k-unknown-linux-${LIBC} d999 1 a999 1 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} d1002 1 a1002 1 echo sparc-unknown-linux-${LIBC} d1005 1 a1005 1 echo hppa64-unknown-linux-${LIBC} d1010 3 a1012 3 PA7*) echo hppa1.1-unknown-linux-${LIBC} ;; PA8*) echo hppa2.0-unknown-linux-${LIBC} ;; *) echo hppa-unknown-linux-${LIBC} ;; d1016 1 a1016 1 echo powerpc64-unknown-linux-${LIBC} d1019 1 a1019 1 echo powerpc-unknown-linux-${LIBC} d1022 1 a1022 1 echo powerpc64le-unknown-linux-${LIBC} d1025 1 a1025 1 echo powerpcle-unknown-linux-${LIBC} d1028 1 a1028 1 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} d1031 1 a1031 1 echo ${UNAME_MACHINE}-ibm-linux-${LIBC} d1034 1 a1034 1 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} d1037 1 a1037 1 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} d1040 1 a1040 1 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} d1043 1 a1043 1 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} d1046 1 a1046 1 echo ${UNAME_MACHINE}-dec-linux-${LIBC} d1049 1 a1049 1 echo ${UNAME_MACHINE}-pc-linux-${LIBC} d1052 1 a1052 1 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} d1066 1 a1066 1 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} d1071 1 a1071 1 echo ${UNAME_MACHINE}-pc-os2-emx d1074 1 a1074 1 echo ${UNAME_MACHINE}-unknown-stop d1077 1 a1077 1 echo ${UNAME_MACHINE}-unknown-atheos d1080 1 a1080 1 echo ${UNAME_MACHINE}-pc-syllable d1083 1 a1083 1 echo i386-unknown-lynxos${UNAME_RELEASE} d1086 1 a1086 1 echo ${UNAME_MACHINE}-pc-msdosdjgpp d1088 2 a1089 2 i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` d1091 1 a1091 1 echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} d1093 1 a1093 1 echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} d1103 1 a1103 1 echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} d1108 1 a1108 1 echo ${UNAME_MACHINE}-pc-isc$UNAME_REL d1118 1 a1118 1 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL d1120 1 a1120 1 echo ${UNAME_MACHINE}-pc-sysv32 d1140 1 a1140 1 echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 d1142 1 a1142 1 echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 d1162 1 a1162 1 && { echo i486-ncr-sysv4.3${OS_REL}; exit; } d1164 1 a1164 1 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; d1173 1 a1173 1 && { echo i486-ncr-sysv4.3${OS_REL}; exit; } d1175 1 a1175 1 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } d1177 1 a1177 1 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; d1179 1 a1179 1 echo m68k-unknown-lynxos${UNAME_RELEASE} d1185 1 a1185 1 echo sparc-unknown-lynxos${UNAME_RELEASE} d1188 1 a1188 1 echo rs6000-unknown-lynxos${UNAME_RELEASE} d1191 1 a1191 1 echo powerpc-unknown-lynxos${UNAME_RELEASE} d1194 1 a1194 1 echo mips-dde-sysv${UNAME_RELEASE} d1205 1 a1205 1 echo ${UNAME_MACHINE}-sni-sysv4 d1225 1 a1225 1 echo ${UNAME_MACHINE}-stratus-vos d1232 1 a1232 1 echo m68k-apple-aux${UNAME_RELEASE} d1239 1 a1239 1 echo mips-nec-sysv${UNAME_RELEASE} d1241 1 a1241 1 echo mips-unknown-sysv${UNAME_RELEASE} d1260 1 a1260 1 echo sx4-nec-superux${UNAME_RELEASE} d1263 1 a1263 1 echo sx5-nec-superux${UNAME_RELEASE} d1266 1 a1266 1 echo sx6-nec-superux${UNAME_RELEASE} d1269 1 a1269 1 echo sx7-nec-superux${UNAME_RELEASE} d1272 1 a1272 1 echo sx8-nec-superux${UNAME_RELEASE} d1275 1 a1275 1 echo sx8r-nec-superux${UNAME_RELEASE} d1278 1 a1278 1 echo sxace-nec-superux${UNAME_RELEASE} d1281 1 a1281 1 echo powerpc-apple-rhapsody${UNAME_RELEASE} d1284 1 a1284 1 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} d1288 1 a1288 1 eval $set_cc_for_build d1292 1 a1292 1 if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then d1295 2 a1296 2 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null d1303 7 d1320 1 a1320 1 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} d1328 1 a1328 1 echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} d1333 2 a1334 2 NEO-?:NONSTOP_KERNEL:*:*) echo neo-tandem-nsk${UNAME_RELEASE} d1337 1 a1337 1 echo nse-tandem-nsk${UNAME_RELEASE} d1339 2 a1340 2 NSR-?:NONSTOP_KERNEL:*:*) echo nsr-tandem-nsk${UNAME_RELEASE} d1342 5 a1346 2 NSX-?:NONSTOP_KERNEL:*:*) echo nsx-tandem-nsk${UNAME_RELEASE} d1355 1 a1355 1 echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} d1366 1 a1366 1 echo ${UNAME_MACHINE}-unknown-plan9 d1387 1 a1387 1 echo mips-sei-seiux${UNAME_RELEASE} d1390 1 a1390 1 echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` d1394 1 a1394 1 case "${UNAME_MACHINE}" in d1403 1 a1403 1 echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE} | sed -e 's/ .*$//'` d1406 1 a1406 1 echo ${UNAME_MACHINE}-pc-rdos d1409 1 a1409 1 echo ${UNAME_MACHINE}-pc-aros d1412 1 a1412 1 echo ${UNAME_MACHINE}-unknown-esx d1419 13 a1432 1 $0: unable to guess system type d1435 2 a1436 2 operating system you are using. If your script is old, overwrite config.guess and config.sub with the latest versions from: d1438 1 a1438 1 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess d1440 1 a1440 1 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub d1463 4 a1466 4 UNAME_MACHINE = ${UNAME_MACHINE} UNAME_RELEASE = ${UNAME_RELEASE} UNAME_SYSTEM = ${UNAME_SYSTEM} UNAME_VERSION = ${UNAME_VERSION} d1472 1 a1472 1 # eval: (add-hook 'write-file-hooks 'time-stamp) @ 1.3.6.1 log @Sync with HEAD @ text @d3 1 a3 1 # Copyright 1992-2018 Free Software Foundation, Inc. d5 1 a5 1 timestamp='2018-01-26' d18 1 a18 1 # along with this program; if not, see . d30 1 a30 1 # https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess d42 1 a42 1 Options: d53 1 a53 1 Copyright 1992-2018 Free Software Foundation, Inc. d110 1 a110 1 ,,) echo "int x;" > "$dummy.c" ; d112 1 a112 1 if ($c -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then d135 1 a135 1 case "$UNAME_SYSTEM" in d141 2 a142 2 eval "$set_cc_for_build" cat <<-EOF > "$dummy.c" d152 1 a152 8 eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`" # If ldd exists, use it to detect musl libc. if command -v ldd >/dev/null && \ ldd --version 2>&1 | grep -q ^musl then LIBC=musl fi d158 1 a158 1 case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in d172 2 a173 2 "/sbin/$sysctl" 2>/dev/null || \ "/usr/sbin/$sysctl" 2>/dev/null || \ d175 1 a175 1 case "$UNAME_MACHINE_ARCH" in d182 3 a184 3 arch=`echo "$UNAME_MACHINE_ARCH" | sed -e 's,^e\(armv[0-9]\).*$,\1,'` endian=`echo "$UNAME_MACHINE_ARCH" | sed -ne 's,^.*\(eb\)$,\1,p'` machine="${arch}${endian}"-unknown d186 1 a186 1 *) machine="$UNAME_MACHINE_ARCH"-unknown ;; d190 1 a190 1 case "$UNAME_MACHINE_ARCH" in d195 1 a195 1 eval "$set_cc_for_build" d211 1 a211 1 case "$UNAME_MACHINE_ARCH" in d214 1 a214 1 abi=`echo "$UNAME_MACHINE_ARCH" | sed -e "$expr"` d222 1 a222 1 case "$UNAME_VERSION" in d227 1 a227 1 release=`echo "$UNAME_RELEASE" | sed -e 's/[-_].*//' | cut -d. -f1,2` d233 1 a233 1 echo "$machine-${os}${release}${abi}" d237 1 a237 1 echo "$UNAME_MACHINE_ARCH"-unknown-bitrig"$UNAME_RELEASE" d241 1 a241 1 echo "$UNAME_MACHINE_ARCH"-unknown-openbsd"$UNAME_RELEASE" d245 1 a245 4 echo "$UNAME_MACHINE_ARCH"-unknown-libertybsd"$UNAME_RELEASE" exit ;; *:MidnightBSD:*:*) echo "$UNAME_MACHINE"-unknown-midnightbsd"$UNAME_RELEASE" d248 1 a248 1 echo "$UNAME_MACHINE"-unknown-ekkobsd"$UNAME_RELEASE" d251 1 a251 1 echo "$UNAME_MACHINE"-unknown-solidbsd"$UNAME_RELEASE" d254 1 a254 1 echo powerpc-unknown-mirbsd"$UNAME_RELEASE" d257 1 a257 1 echo "$UNAME_MACHINE"-unknown-mirbsd"$UNAME_RELEASE" d260 1 a260 4 echo "$UNAME_MACHINE"-unknown-sortix exit ;; *:Redox:*:*) echo "$UNAME_MACHINE"-unknown-redox a261 3 mips:OSF1:*.*) echo mips-dec-osf1 exit ;; d313 1 a313 1 echo "$UNAME_MACHINE"-dec-osf"`echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`" d318 9 d331 1 a331 1 echo "$UNAME_MACHINE"-unknown-amigaos d334 1 a334 1 echo "$UNAME_MACHINE"-unknown-morphos d346 1 a346 1 echo arm-acorn-riscix"$UNAME_RELEASE" d373 1 a373 1 echo "$UNAME_MACHINE"-ibm-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`" d376 1 a376 1 echo sparc-hal-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" d379 1 a379 1 echo sparc-sun-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`" d382 1 a382 1 echo i386-pc-auroraux"$UNAME_RELEASE" d385 1 a385 1 eval "$set_cc_for_build" d398 1 a398 1 echo "$SUN_ARCH"-pc-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" d404 1 a404 1 echo sparc-sun-solaris3"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" d413 1 a413 1 echo sparc-sun-sunos"`echo "$UNAME_RELEASE"|sed -e 's/-/_/'`" d416 1 a416 1 echo m68k-sun-sunos"$UNAME_RELEASE" d420 1 a420 1 test "x$UNAME_RELEASE" = x && UNAME_RELEASE=3 d423 1 a423 1 echo m68k-sun-sunos"$UNAME_RELEASE" d426 1 a426 1 echo sparc-sun-sunos"$UNAME_RELEASE" d431 1 a431 1 echo sparc-auspex-sunos"$UNAME_RELEASE" d442 1 a442 1 echo m68k-atari-mint"$UNAME_RELEASE" d445 1 a445 1 echo m68k-atari-mint"$UNAME_RELEASE" d448 1 a448 1 echo m68k-atari-mint"$UNAME_RELEASE" d451 1 a451 1 echo m68k-milan-mint"$UNAME_RELEASE" d454 1 a454 1 echo m68k-hades-mint"$UNAME_RELEASE" d457 1 a457 1 echo m68k-unknown-mint"$UNAME_RELEASE" d460 1 a460 1 echo m68k-apple-machten"$UNAME_RELEASE" d463 1 a463 1 echo powerpc-apple-machten"$UNAME_RELEASE" d469 1 a469 1 echo mips-dec-ultrix"$UNAME_RELEASE" d472 1 a472 1 echo vax-dec-ultrix"$UNAME_RELEASE" d475 1 a475 1 echo clipper-intergraph-clix"$UNAME_RELEASE" d478 2 a479 2 eval "$set_cc_for_build" sed 's/^ //' << EOF > "$dummy.c" d488 1 a488 1 printf ("mips-mips-riscos%ssysv\\n", argv[1]); exit (0); d491 1 a491 1 printf ("mips-mips-riscos%ssvr4\\n", argv[1]); exit (0); d494 1 a494 1 printf ("mips-mips-riscos%sbsd\\n", argv[1]); exit (0); d500 3 a502 3 $CC_FOR_BUILD -o "$dummy" "$dummy.c" && dummyarg=`echo "$UNAME_RELEASE" | sed -n 's/\([0-9]*\).*/\1/p'` && SYSTEM_NAME=`"$dummy" "$dummyarg"` && d504 1 a504 1 echo mips-mips-riscos"$UNAME_RELEASE" d530 1 a530 1 if [ "$UNAME_PROCESSOR" = mc88100 ] || [ "$UNAME_PROCESSOR" = mc88110 ] d532 2 a533 2 if [ "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx ] || \ [ "$TARGET_BINARY_INTERFACE"x = x ] d535 1 a535 1 echo m88k-dg-dgux"$UNAME_RELEASE" d537 1 a537 1 echo m88k-dg-dguxbcs"$UNAME_RELEASE" d540 1 a540 1 echo i586-dg-dgux"$UNAME_RELEASE" d557 1 a557 1 echo mips-sgi-irix"`echo "$UNAME_RELEASE"|sed -e 's/-/_/g'`" d569 1 a569 1 IBM_REV="$UNAME_VERSION.$UNAME_RELEASE" d571 1 a571 1 echo "$UNAME_MACHINE"-ibm-aix"$IBM_REV" d575 2 a576 2 eval "$set_cc_for_build" sed 's/^ //' << EOF > "$dummy.c" d587 1 a587 1 if $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` d601 1 a601 1 if /usr/sbin/lsattr -El "$IBM_CPU_ID" | grep ' POWER' >/dev/null 2>&1; then d610 1 a610 1 IBM_REV="$UNAME_VERSION.$UNAME_RELEASE" d612 1 a612 1 echo "$IBM_ARCH"-ibm-aix"$IBM_REV" d617 1 a617 1 ibmrt:4.4BSD:*|romp-ibm:4.4BSD:*) d621 1 a621 1 echo romp-ibm-bsd"$UNAME_RELEASE" # 4.3 with uname added to d636 4 a639 4 HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'` case "$UNAME_MACHINE" in 9000/31?) HP_ARCH=m68000 ;; 9000/[34]??) HP_ARCH=m68k ;; d644 1 a644 1 case "$sc_cpu_version" in d648 1 a648 1 case "$sc_kernel_bits" in d655 3 a657 3 if [ "$HP_ARCH" = "" ]; then eval "$set_cc_for_build" sed 's/^ //' << EOF > "$dummy.c" d690 1 a690 1 (CCOPTS="" $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null) && HP_ARCH=`"$dummy"` d694 1 a694 1 if [ "$HP_ARCH" = hppa2.0w ] d696 1 a696 1 eval "$set_cc_for_build" d715 1 a715 1 echo "$HP_ARCH"-hp-hpux"$HPUX_REV" d718 2 a719 2 HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'` echo ia64-hp-hpux"$HPUX_REV" d722 2 a723 2 eval "$set_cc_for_build" sed 's/^ //' << EOF > "$dummy.c" d748 1 a748 1 $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` && d752 1 a752 1 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:*) d761 1 a761 1 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:*) d769 1 a769 1 echo "$UNAME_MACHINE"-unknown-osf1mk d771 1 a771 1 echo "$UNAME_MACHINE"-unknown-osf1 d796 1 a796 1 echo ymp-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' d799 1 a799 1 echo "$UNAME_MACHINE"-cray-unicos"$UNAME_RELEASE" \ d805 1 a805 1 echo t90-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' d808 1 a808 1 echo alphaev5-cray-unicosmk"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' d811 1 a811 1 echo sv1-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' d814 1 a814 1 echo craynv-cray-unicosmp"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' d819 1 a819 1 FUJITSU_REL=`echo "$UNAME_RELEASE" | sed -e 's/ /_/'` d824 1 a824 1 FUJITSU_REL=`echo "$UNAME_RELEASE" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'` d828 1 a828 1 echo "$UNAME_MACHINE"-pc-bsdi"$UNAME_RELEASE" d831 1 a831 1 echo sparc-unknown-bsdi"$UNAME_RELEASE" d834 1 a834 1 echo "$UNAME_MACHINE"-unknown-bsdi"$UNAME_RELEASE" d838 1 a838 1 case "$UNAME_PROCESSOR" in d844 1 a844 1 echo "$UNAME_PROCESSOR"-unknown-freebsd"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`" d847 1 a847 1 echo "$UNAME_MACHINE"-pc-cygwin d850 1 a850 1 echo "$UNAME_MACHINE"-pc-mingw64 d853 1 a853 1 echo "$UNAME_MACHINE"-pc-mingw32 d856 5 a860 1 echo "$UNAME_MACHINE"-pc-msys d863 1 a863 1 echo "$UNAME_MACHINE"-pc-pw32 d866 1 a866 1 case "$UNAME_MACHINE" in d868 1 a868 1 echo i586-pc-interix"$UNAME_RELEASE" d871 1 a871 1 echo x86_64-unknown-interix"$UNAME_RELEASE" d874 1 a874 1 echo ia64-unknown-interix"$UNAME_RELEASE" d877 12 d890 1 a890 1 echo "$UNAME_MACHINE"-pc-uwin d895 3 d899 1 a899 1 echo powerpcle-unknown-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" d903 1 a903 1 echo "`echo "$UNAME_MACHINE"|sed -e 's,[-/].*$,,'`-unknown-$LIBC`echo "$UNAME_RELEASE"|sed -e 's,/.*$,,'`" d907 1 a907 1 echo "$UNAME_MACHINE-unknown-`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`-$LIBC" d910 1 a910 1 echo "$UNAME_MACHINE"-pc-minix d913 1 a913 1 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" d917 1 a917 1 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" d931 1 a931 1 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" d934 1 a934 1 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" d937 1 a937 1 eval "$set_cc_for_build" d941 1 a941 1 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" d946 1 a946 1 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabi d948 1 a948 1 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabihf d953 1 a953 1 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" d956 1 a956 1 echo "$UNAME_MACHINE"-axis-linux-"$LIBC" d959 1 a959 1 echo "$UNAME_MACHINE"-axis-linux-"$LIBC" d962 1 a962 1 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" d965 1 a965 1 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" d968 1 a968 1 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" d971 1 a971 1 echo "$UNAME_MACHINE"-pc-linux-"$LIBC" d974 1 a974 1 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" d977 1 a977 1 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" d980 1 a980 1 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" d983 1 a983 1 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" d986 2 a987 2 eval "$set_cc_for_build" sed 's/^ //' << EOF > "$dummy.c" d1001 2 a1002 2 eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU'`" test "x$CPU" != x && { echo "$CPU-unknown-linux-$LIBC"; exit; } d1005 1 a1005 1 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" d1008 1 a1008 1 echo or1k-unknown-linux-"$LIBC" d1011 1 a1011 1 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" d1014 1 a1014 1 echo sparc-unknown-linux-"$LIBC" d1017 1 a1017 1 echo hppa64-unknown-linux-"$LIBC" d1022 3 a1024 3 PA7*) echo hppa1.1-unknown-linux-"$LIBC" ;; PA8*) echo hppa2.0-unknown-linux-"$LIBC" ;; *) echo hppa-unknown-linux-"$LIBC" ;; d1028 1 a1028 1 echo powerpc64-unknown-linux-"$LIBC" d1031 1 a1031 1 echo powerpc-unknown-linux-"$LIBC" d1034 1 a1034 1 echo powerpc64le-unknown-linux-"$LIBC" d1037 1 a1037 1 echo powerpcle-unknown-linux-"$LIBC" d1040 1 a1040 1 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" d1043 1 a1043 1 echo "$UNAME_MACHINE"-ibm-linux-"$LIBC" d1046 1 a1046 1 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" d1049 1 a1049 1 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" d1052 1 a1052 1 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" d1055 1 a1055 1 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" d1058 1 a1058 1 echo "$UNAME_MACHINE"-dec-linux-"$LIBC" d1061 1 a1061 1 echo "$UNAME_MACHINE"-pc-linux-"$LIBC" d1064 1 a1064 1 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" d1078 1 a1078 1 echo "$UNAME_MACHINE"-pc-sysv4.2uw"$UNAME_VERSION" d1083 1 a1083 1 echo "$UNAME_MACHINE"-pc-os2-emx d1086 1 a1086 1 echo "$UNAME_MACHINE"-unknown-stop d1089 1 a1089 1 echo "$UNAME_MACHINE"-unknown-atheos d1092 1 a1092 1 echo "$UNAME_MACHINE"-pc-syllable d1095 1 a1095 1 echo i386-unknown-lynxos"$UNAME_RELEASE" d1098 1 a1098 1 echo "$UNAME_MACHINE"-pc-msdosdjgpp d1100 2 a1101 2 i*86:*:4.*:*) UNAME_REL=`echo "$UNAME_RELEASE" | sed 's/\/MP$//'` d1103 1 a1103 1 echo "$UNAME_MACHINE"-univel-sysv"$UNAME_REL" d1105 1 a1105 1 echo "$UNAME_MACHINE"-pc-sysv"$UNAME_REL" d1115 1 a1115 1 echo "$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}{$UNAME_VERSION}" d1120 1 a1120 1 echo "$UNAME_MACHINE"-pc-isc"$UNAME_REL" d1130 1 a1130 1 echo "$UNAME_MACHINE"-pc-sco"$UNAME_REL" d1132 1 a1132 1 echo "$UNAME_MACHINE"-pc-sysv32 d1152 1 a1152 1 echo i860-stardent-sysv"$UNAME_RELEASE" # Stardent Vistra i860-SVR4 d1154 1 a1154 1 echo i860-unknown-sysv"$UNAME_RELEASE" # Unknown i860-SVR4 d1174 1 a1174 1 && { echo i486-ncr-sysv4.3"$OS_REL"; exit; } d1176 1 a1176 1 && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;; d1185 1 a1185 1 && { echo i486-ncr-sysv4.3"$OS_REL"; exit; } d1187 1 a1187 1 && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } d1189 1 a1189 1 && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;; d1191 1 a1191 1 echo m68k-unknown-lynxos"$UNAME_RELEASE" d1197 1 a1197 1 echo sparc-unknown-lynxos"$UNAME_RELEASE" d1200 1 a1200 1 echo rs6000-unknown-lynxos"$UNAME_RELEASE" d1203 1 a1203 1 echo powerpc-unknown-lynxos"$UNAME_RELEASE" d1206 1 a1206 1 echo mips-dde-sysv"$UNAME_RELEASE" d1217 1 a1217 1 echo "$UNAME_MACHINE"-sni-sysv4 d1237 1 a1237 1 echo "$UNAME_MACHINE"-stratus-vos d1244 1 a1244 1 echo m68k-apple-aux"$UNAME_RELEASE" d1251 1 a1251 1 echo mips-nec-sysv"$UNAME_RELEASE" d1253 1 a1253 1 echo mips-unknown-sysv"$UNAME_RELEASE" d1272 1 a1272 1 echo sx4-nec-superux"$UNAME_RELEASE" d1275 1 a1275 1 echo sx5-nec-superux"$UNAME_RELEASE" d1278 1 a1278 1 echo sx6-nec-superux"$UNAME_RELEASE" d1281 1 a1281 1 echo sx7-nec-superux"$UNAME_RELEASE" d1284 1 a1284 1 echo sx8-nec-superux"$UNAME_RELEASE" d1287 1 a1287 1 echo sx8r-nec-superux"$UNAME_RELEASE" d1290 1 a1290 1 echo sxace-nec-superux"$UNAME_RELEASE" d1293 1 a1293 1 echo powerpc-apple-rhapsody"$UNAME_RELEASE" d1296 1 a1296 1 echo "$UNAME_MACHINE"-apple-rhapsody"$UNAME_RELEASE" d1300 1 a1300 1 eval "$set_cc_for_build" d1304 1 a1304 1 if test "`echo "$UNAME_RELEASE" | sed -e 's/\..*//'`" -le 10 ; then d1307 2 a1308 2 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null a1314 7 # On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \ (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_PPC >/dev/null then UNAME_PROCESSOR=powerpc fi d1325 1 a1325 1 echo "$UNAME_PROCESSOR"-apple-darwin"$UNAME_RELEASE" d1333 1 a1333 1 echo "$UNAME_PROCESSOR"-"$UNAME_MACHINE"-nto-qnx"$UNAME_RELEASE" d1338 2 a1339 2 NEO-*:NONSTOP_KERNEL:*:*) echo neo-tandem-nsk"$UNAME_RELEASE" d1342 1 a1342 1 echo nse-tandem-nsk"$UNAME_RELEASE" d1344 2 a1345 2 NSR-*:NONSTOP_KERNEL:*:*) echo nsr-tandem-nsk"$UNAME_RELEASE" d1347 2 a1348 5 NSV-*:NONSTOP_KERNEL:*:*) echo nsv-tandem-nsk"$UNAME_RELEASE" exit ;; NSX-*:NONSTOP_KERNEL:*:*) echo nsx-tandem-nsk"$UNAME_RELEASE" d1357 1 a1357 1 echo "$UNAME_MACHINE"-"$UNAME_SYSTEM"-"$UNAME_RELEASE" d1368 1 a1368 1 echo "$UNAME_MACHINE"-unknown-plan9 d1389 1 a1389 1 echo mips-sei-seiux"$UNAME_RELEASE" d1392 1 a1392 1 echo "$UNAME_MACHINE"-unknown-dragonfly"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`" d1396 1 a1396 1 case "$UNAME_MACHINE" in d1405 1 a1405 1 echo "$UNAME_MACHINE"-pc-skyos"`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'`" d1408 1 a1408 1 echo "$UNAME_MACHINE"-pc-rdos d1411 1 a1411 1 echo "$UNAME_MACHINE"-pc-aros d1414 1 a1414 1 echo "$UNAME_MACHINE"-unknown-esx a1420 13 echo "$0: unable to guess system type" >&2 case "$UNAME_MACHINE:$UNAME_SYSTEM" in mips:Linux | mips64:Linux) # If we got here on MIPS GNU/Linux, output extra information. cat >&2 </dev/null` && test -n "$tmp" && test -d "$tmp" ; } || { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir "$tmp" 2>/dev/null) ; } || { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir "$tmp" 2>/dev/null) && echo "Warning: creating insecure temp directory" >&2 ; } || { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } dummy=$tmp/dummy case ${CC_FOR_BUILD-},${HOST_CC-},${CC-} in ,,) echo "int x;" > "$dummy.c" for driver in cc gcc c89 c99 ; do if ($driver -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then CC_FOR_BUILD="$driver" break fi done if test x"$CC_FOR_BUILD" = x ; then CC_FOR_BUILD=no_compiler_found fi ;; ,,*) CC_FOR_BUILD=$CC ;; ,*,*) CC_FOR_BUILD=$HOST_CC ;; esac } d126 1 a126 1 if test -f /.attbin/uname ; then d141 1 a141 1 set_cc_for_build d202 1 a202 1 set_cc_for_build d240 1 a240 1 echo "$machine-${os}${release}${abi-}" a262 3 *:OS108:*:*) echo "$UNAME_MACHINE"-unknown-os108_"$UNAME_RELEASE" exit ;; d392 1 a392 1 set_cc_for_build d485 1 a485 1 set_cc_for_build d582 1 a582 1 set_cc_for_build d663 1 a663 1 set_cc_for_build d703 1 a703 1 set_cc_for_build d729 1 a729 1 set_cc_for_build a842 11 arm:FreeBSD:*:*) UNAME_PROCESSOR=`uname -p` set_cc_for_build if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_PCS_VFP then echo "${UNAME_PROCESSOR}"-unknown-freebsd"`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`"-gnueabi else echo "${UNAME_PROCESSOR}"-unknown-freebsd"`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`"-gnueabihf fi exit ;; d884 1 a884 1 echo x86_64-pc-cygwin d897 2 a898 2 *:Minix:*:*) echo "$UNAME_MACHINE"-unknown-minix d925 1 a925 1 set_cc_for_build d974 1 a974 3 set_cc_for_build IS_GLIBC=0 test x"${LIBC}" = xgnu && IS_GLIBC=1 d977 2 a978 28 #undef mips #undef mipsel #undef mips64 #undef mips64el #if ${IS_GLIBC} && defined(_ABI64) LIBCABI=gnuabi64 #else #if ${IS_GLIBC} && defined(_ABIN32) LIBCABI=gnuabin32 #else LIBCABI=${LIBC} #endif #endif #if ${IS_GLIBC} && defined(__mips64) && defined(__mips_isa_rev) && __mips_isa_rev>=6 CPU=mipsisa64r6 #else #if ${IS_GLIBC} && !defined(__mips64) && defined(__mips_isa_rev) && __mips_isa_rev>=6 CPU=mipsisa32r6 #else #if defined(__mips64) CPU=mips64 #else CPU=mips #endif #endif #endif d980 1 a980 1 MIPS_ENDIAN=el d983 1 a983 1 MIPS_ENDIAN= d985 1 a985 1 MIPS_ENDIAN= d989 2 a990 2 eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU\|^MIPS_ENDIAN\|^LIBCABI'`" test "x$CPU" != x && { echo "$CPU${MIPS_ENDIAN}-unknown-linux-$LIBCABI"; exit; } d1103 1 a1103 1 echo "$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}" d1287 23 a1309 29 UNAME_PROCESSOR=`uname -p` case $UNAME_PROCESSOR in unknown) UNAME_PROCESSOR=powerpc ;; esac if command -v xcode-select > /dev/null 2> /dev/null && \ ! xcode-select --print-path > /dev/null 2> /dev/null ; then # Avoid executing cc if there is no toolchain installed as # cc will be a stub that puts up a graphical alert # prompting the user to install developer tools. CC_FOR_BUILD=no_compiler_found else set_cc_for_build fi if [ "$CC_FOR_BUILD" != no_compiler_found ]; then if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then case $UNAME_PROCESSOR in i386) UNAME_PROCESSOR=x86_64 ;; powerpc) UNAME_PROCESSOR=powerpc64 ;; esac fi # On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \ (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_PPC >/dev/null then UNAME_PROCESSOR=powerpc d1312 7 a1318 2 # uname -m returns i386 or x86_64 UNAME_PROCESSOR=$UNAME_MACHINE a1360 1 # shellcheck disable=SC2154 a1416 3 *:Unleashed:*:*) echo "$UNAME_MACHINE"-unknown-unleashed"$UNAME_RELEASE" exit ;; a1418 137 # No uname command or uname output not recognized. set_cc_for_build cat > "$dummy.c" < #include #endif #if defined(ultrix) || defined(_ultrix) || defined(__ultrix) || defined(__ultrix__) #if defined (vax) || defined (__vax) || defined (__vax__) || defined(mips) || defined(__mips) || defined(__mips__) || defined(MIPS) || defined(__MIPS__) #include #if defined(_SIZE_T_) || defined(SIGLOST) #include #endif #endif #endif main () { #if defined (sony) #if defined (MIPSEB) /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, I don't know.... */ printf ("mips-sony-bsd\n"); exit (0); #else #include printf ("m68k-sony-newsos%s\n", #ifdef NEWSOS4 "4" #else "" #endif ); exit (0); #endif #endif #if defined (NeXT) #if !defined (__ARCHITECTURE__) #define __ARCHITECTURE__ "m68k" #endif int version; version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; if (version < 4) printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); else printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); exit (0); #endif #if defined (MULTIMAX) || defined (n16) #if defined (UMAXV) printf ("ns32k-encore-sysv\n"); exit (0); #else #if defined (CMU) printf ("ns32k-encore-mach\n"); exit (0); #else printf ("ns32k-encore-bsd\n"); exit (0); #endif #endif #endif #if defined (__386BSD__) printf ("i386-pc-bsd\n"); exit (0); #endif #if defined (sequent) #if defined (i386) printf ("i386-sequent-dynix\n"); exit (0); #endif #if defined (ns32000) printf ("ns32k-sequent-dynix\n"); exit (0); #endif #endif #if defined (_SEQUENT_) struct utsname un; uname(&un); if (strncmp(un.version, "V2", 2) == 0) { printf ("i386-sequent-ptx2\n"); exit (0); } if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ printf ("i386-sequent-ptx1\n"); exit (0); } printf ("i386-sequent-ptx\n"); exit (0); #endif #if defined (vax) #if !defined (ultrix) #include #if defined (BSD) #if BSD == 43 printf ("vax-dec-bsd4.3\n"); exit (0); #else #if BSD == 199006 printf ("vax-dec-bsd4.3reno\n"); exit (0); #else printf ("vax-dec-bsd\n"); exit (0); #endif #endif #else printf ("vax-dec-bsd\n"); exit (0); #endif #else #if defined(_SIZE_T_) || defined(SIGLOST) struct utsname un; uname (&un); printf ("vax-dec-ultrix%s\n", un.release); exit (0); #else printf ("vax-dec-ultrix\n"); exit (0); #endif #endif #endif #if defined(ultrix) || defined(_ultrix) || defined(__ultrix) || defined(__ultrix__) #if defined(mips) || defined(__mips) || defined(__mips__) || defined(MIPS) || defined(__MIPS__) #if defined(_SIZE_T_) || defined(SIGLOST) struct utsname *un; uname (&un); printf ("mips-dec-ultrix%s\n", un.release); exit (0); #else printf ("mips-dec-ultrix\n"); exit (0); #endif #endif #endif #if defined (alliant) && defined (i860) printf ("i860-alliant-bsd\n"); exit (0); #endif exit (1); } EOF $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null && SYSTEM_NAME=`$dummy` && { echo "$SYSTEM_NAME"; exit; } # Apollos put the system type in the environment. test -d /usr/apollo && { echo "$ISP-apollo-$SYSTYPE"; exit; } d1472 1 a1472 1 # eval: (add-hook 'before-save-hook 'time-stamp) @ 1.3.4.1 log @Sync with HEAD, resolve a few conflicts @ text @d3 1 a3 1 # Copyright 1992-2018 Free Software Foundation, Inc. d5 1 a5 1 timestamp='2018-01-26' d18 1 a18 1 # along with this program; if not, see . d30 1 a30 1 # https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess d42 1 a42 1 Options: d53 1 a53 1 Copyright 1992-2018 Free Software Foundation, Inc. d110 1 a110 1 ,,) echo "int x;" > "$dummy.c" ; d112 1 a112 1 if ($c -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then d135 1 a135 1 case "$UNAME_SYSTEM" in d141 2 a142 2 eval "$set_cc_for_build" cat <<-EOF > "$dummy.c" d152 1 a152 8 eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`" # If ldd exists, use it to detect musl libc. if command -v ldd >/dev/null && \ ldd --version 2>&1 | grep -q ^musl then LIBC=musl fi d158 1 a158 1 case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in d172 2 a173 2 "/sbin/$sysctl" 2>/dev/null || \ "/usr/sbin/$sysctl" 2>/dev/null || \ d175 1 a175 1 case "$UNAME_MACHINE_ARCH" in d182 3 a184 3 arch=`echo "$UNAME_MACHINE_ARCH" | sed -e 's,^e\(armv[0-9]\).*$,\1,'` endian=`echo "$UNAME_MACHINE_ARCH" | sed -ne 's,^.*\(eb\)$,\1,p'` machine="${arch}${endian}"-unknown d186 1 a186 1 *) machine="$UNAME_MACHINE_ARCH"-unknown ;; d190 1 a190 1 case "$UNAME_MACHINE_ARCH" in d195 1 a195 1 eval "$set_cc_for_build" d211 1 a211 1 case "$UNAME_MACHINE_ARCH" in d214 1 a214 1 abi=`echo "$UNAME_MACHINE_ARCH" | sed -e "$expr"` d222 1 a222 1 case "$UNAME_VERSION" in d227 1 a227 1 release=`echo "$UNAME_RELEASE" | sed -e 's/[-_].*//' | cut -d. -f1,2` d233 1 a233 1 echo "$machine-${os}${release}${abi}" d237 1 a237 1 echo "$UNAME_MACHINE_ARCH"-unknown-bitrig"$UNAME_RELEASE" d241 1 a241 1 echo "$UNAME_MACHINE_ARCH"-unknown-openbsd"$UNAME_RELEASE" d245 1 a245 4 echo "$UNAME_MACHINE_ARCH"-unknown-libertybsd"$UNAME_RELEASE" exit ;; *:MidnightBSD:*:*) echo "$UNAME_MACHINE"-unknown-midnightbsd"$UNAME_RELEASE" d248 1 a248 1 echo "$UNAME_MACHINE"-unknown-ekkobsd"$UNAME_RELEASE" d251 1 a251 1 echo "$UNAME_MACHINE"-unknown-solidbsd"$UNAME_RELEASE" d254 1 a254 1 echo powerpc-unknown-mirbsd"$UNAME_RELEASE" d257 1 a257 1 echo "$UNAME_MACHINE"-unknown-mirbsd"$UNAME_RELEASE" d260 1 a260 4 echo "$UNAME_MACHINE"-unknown-sortix exit ;; *:Redox:*:*) echo "$UNAME_MACHINE"-unknown-redox a261 3 mips:OSF1:*.*) echo mips-dec-osf1 exit ;; d313 1 a313 1 echo "$UNAME_MACHINE"-dec-osf"`echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`" d318 9 d331 1 a331 1 echo "$UNAME_MACHINE"-unknown-amigaos d334 1 a334 1 echo "$UNAME_MACHINE"-unknown-morphos d346 1 a346 1 echo arm-acorn-riscix"$UNAME_RELEASE" d373 1 a373 1 echo "$UNAME_MACHINE"-ibm-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`" d376 1 a376 1 echo sparc-hal-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" d379 1 a379 1 echo sparc-sun-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`" d382 1 a382 1 echo i386-pc-auroraux"$UNAME_RELEASE" d385 1 a385 1 eval "$set_cc_for_build" d398 1 a398 1 echo "$SUN_ARCH"-pc-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" d404 1 a404 1 echo sparc-sun-solaris3"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" d413 1 a413 1 echo sparc-sun-sunos"`echo "$UNAME_RELEASE"|sed -e 's/-/_/'`" d416 1 a416 1 echo m68k-sun-sunos"$UNAME_RELEASE" d420 1 a420 1 test "x$UNAME_RELEASE" = x && UNAME_RELEASE=3 d423 1 a423 1 echo m68k-sun-sunos"$UNAME_RELEASE" d426 1 a426 1 echo sparc-sun-sunos"$UNAME_RELEASE" d431 1 a431 1 echo sparc-auspex-sunos"$UNAME_RELEASE" d442 1 a442 1 echo m68k-atari-mint"$UNAME_RELEASE" d445 1 a445 1 echo m68k-atari-mint"$UNAME_RELEASE" d448 1 a448 1 echo m68k-atari-mint"$UNAME_RELEASE" d451 1 a451 1 echo m68k-milan-mint"$UNAME_RELEASE" d454 1 a454 1 echo m68k-hades-mint"$UNAME_RELEASE" d457 1 a457 1 echo m68k-unknown-mint"$UNAME_RELEASE" d460 1 a460 1 echo m68k-apple-machten"$UNAME_RELEASE" d463 1 a463 1 echo powerpc-apple-machten"$UNAME_RELEASE" d469 1 a469 1 echo mips-dec-ultrix"$UNAME_RELEASE" d472 1 a472 1 echo vax-dec-ultrix"$UNAME_RELEASE" d475 1 a475 1 echo clipper-intergraph-clix"$UNAME_RELEASE" d478 2 a479 2 eval "$set_cc_for_build" sed 's/^ //' << EOF > "$dummy.c" d488 1 a488 1 printf ("mips-mips-riscos%ssysv\\n", argv[1]); exit (0); d491 1 a491 1 printf ("mips-mips-riscos%ssvr4\\n", argv[1]); exit (0); d494 1 a494 1 printf ("mips-mips-riscos%sbsd\\n", argv[1]); exit (0); d500 3 a502 3 $CC_FOR_BUILD -o "$dummy" "$dummy.c" && dummyarg=`echo "$UNAME_RELEASE" | sed -n 's/\([0-9]*\).*/\1/p'` && SYSTEM_NAME=`"$dummy" "$dummyarg"` && d504 1 a504 1 echo mips-mips-riscos"$UNAME_RELEASE" d530 1 a530 1 if [ "$UNAME_PROCESSOR" = mc88100 ] || [ "$UNAME_PROCESSOR" = mc88110 ] d532 2 a533 2 if [ "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx ] || \ [ "$TARGET_BINARY_INTERFACE"x = x ] d535 1 a535 1 echo m88k-dg-dgux"$UNAME_RELEASE" d537 1 a537 1 echo m88k-dg-dguxbcs"$UNAME_RELEASE" d540 1 a540 1 echo i586-dg-dgux"$UNAME_RELEASE" d557 1 a557 1 echo mips-sgi-irix"`echo "$UNAME_RELEASE"|sed -e 's/-/_/g'`" d569 1 a569 1 IBM_REV="$UNAME_VERSION.$UNAME_RELEASE" d571 1 a571 1 echo "$UNAME_MACHINE"-ibm-aix"$IBM_REV" d575 2 a576 2 eval "$set_cc_for_build" sed 's/^ //' << EOF > "$dummy.c" d587 1 a587 1 if $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` d601 1 a601 1 if /usr/sbin/lsattr -El "$IBM_CPU_ID" | grep ' POWER' >/dev/null 2>&1; then d610 1 a610 1 IBM_REV="$UNAME_VERSION.$UNAME_RELEASE" d612 1 a612 1 echo "$IBM_ARCH"-ibm-aix"$IBM_REV" d617 1 a617 1 ibmrt:4.4BSD:*|romp-ibm:4.4BSD:*) d621 1 a621 1 echo romp-ibm-bsd"$UNAME_RELEASE" # 4.3 with uname added to d636 4 a639 4 HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'` case "$UNAME_MACHINE" in 9000/31?) HP_ARCH=m68000 ;; 9000/[34]??) HP_ARCH=m68k ;; d644 1 a644 1 case "$sc_cpu_version" in d648 1 a648 1 case "$sc_kernel_bits" in d655 3 a657 3 if [ "$HP_ARCH" = "" ]; then eval "$set_cc_for_build" sed 's/^ //' << EOF > "$dummy.c" d690 1 a690 1 (CCOPTS="" $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null) && HP_ARCH=`"$dummy"` d694 1 a694 1 if [ "$HP_ARCH" = hppa2.0w ] d696 1 a696 1 eval "$set_cc_for_build" d715 1 a715 1 echo "$HP_ARCH"-hp-hpux"$HPUX_REV" d718 2 a719 2 HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'` echo ia64-hp-hpux"$HPUX_REV" d722 2 a723 2 eval "$set_cc_for_build" sed 's/^ //' << EOF > "$dummy.c" d748 1 a748 1 $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` && d752 1 a752 1 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:*) d761 1 a761 1 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:*) d769 1 a769 1 echo "$UNAME_MACHINE"-unknown-osf1mk d771 1 a771 1 echo "$UNAME_MACHINE"-unknown-osf1 d796 1 a796 1 echo ymp-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' d799 1 a799 1 echo "$UNAME_MACHINE"-cray-unicos"$UNAME_RELEASE" \ d805 1 a805 1 echo t90-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' d808 1 a808 1 echo alphaev5-cray-unicosmk"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' d811 1 a811 1 echo sv1-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' d814 1 a814 1 echo craynv-cray-unicosmp"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' d819 1 a819 1 FUJITSU_REL=`echo "$UNAME_RELEASE" | sed -e 's/ /_/'` d824 1 a824 1 FUJITSU_REL=`echo "$UNAME_RELEASE" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'` d828 1 a828 1 echo "$UNAME_MACHINE"-pc-bsdi"$UNAME_RELEASE" d831 1 a831 1 echo sparc-unknown-bsdi"$UNAME_RELEASE" d834 1 a834 1 echo "$UNAME_MACHINE"-unknown-bsdi"$UNAME_RELEASE" d838 1 a838 1 case "$UNAME_PROCESSOR" in d844 1 a844 1 echo "$UNAME_PROCESSOR"-unknown-freebsd"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`" d847 1 a847 1 echo "$UNAME_MACHINE"-pc-cygwin d850 1 a850 1 echo "$UNAME_MACHINE"-pc-mingw64 d853 1 a853 1 echo "$UNAME_MACHINE"-pc-mingw32 d856 5 a860 1 echo "$UNAME_MACHINE"-pc-msys d863 1 a863 1 echo "$UNAME_MACHINE"-pc-pw32 d866 1 a866 1 case "$UNAME_MACHINE" in d868 1 a868 1 echo i586-pc-interix"$UNAME_RELEASE" d871 1 a871 1 echo x86_64-unknown-interix"$UNAME_RELEASE" d874 1 a874 1 echo ia64-unknown-interix"$UNAME_RELEASE" d877 12 d890 1 a890 1 echo "$UNAME_MACHINE"-pc-uwin d895 3 d899 1 a899 1 echo powerpcle-unknown-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" d903 1 a903 1 echo "`echo "$UNAME_MACHINE"|sed -e 's,[-/].*$,,'`-unknown-$LIBC`echo "$UNAME_RELEASE"|sed -e 's,/.*$,,'`" d907 1 a907 1 echo "$UNAME_MACHINE-unknown-`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`-$LIBC" d910 1 a910 1 echo "$UNAME_MACHINE"-pc-minix d913 1 a913 1 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" d917 1 a917 1 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" d931 1 a931 1 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" d934 1 a934 1 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" d937 1 a937 1 eval "$set_cc_for_build" d941 1 a941 1 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" d946 1 a946 1 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabi d948 1 a948 1 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabihf d953 1 a953 1 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" d956 1 a956 1 echo "$UNAME_MACHINE"-axis-linux-"$LIBC" d959 1 a959 1 echo "$UNAME_MACHINE"-axis-linux-"$LIBC" d962 1 a962 1 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" d965 1 a965 1 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" d968 1 a968 1 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" d971 1 a971 1 echo "$UNAME_MACHINE"-pc-linux-"$LIBC" d974 1 a974 1 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" d977 1 a977 1 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" d980 1 a980 1 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" d983 1 a983 1 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" d986 2 a987 2 eval "$set_cc_for_build" sed 's/^ //' << EOF > "$dummy.c" d1001 2 a1002 2 eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU'`" test "x$CPU" != x && { echo "$CPU-unknown-linux-$LIBC"; exit; } d1005 1 a1005 1 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" d1008 1 a1008 1 echo or1k-unknown-linux-"$LIBC" d1011 1 a1011 1 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" d1014 1 a1014 1 echo sparc-unknown-linux-"$LIBC" d1017 1 a1017 1 echo hppa64-unknown-linux-"$LIBC" d1022 3 a1024 3 PA7*) echo hppa1.1-unknown-linux-"$LIBC" ;; PA8*) echo hppa2.0-unknown-linux-"$LIBC" ;; *) echo hppa-unknown-linux-"$LIBC" ;; d1028 1 a1028 1 echo powerpc64-unknown-linux-"$LIBC" d1031 1 a1031 1 echo powerpc-unknown-linux-"$LIBC" d1034 1 a1034 1 echo powerpc64le-unknown-linux-"$LIBC" d1037 1 a1037 1 echo powerpcle-unknown-linux-"$LIBC" d1040 1 a1040 1 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" d1043 1 a1043 1 echo "$UNAME_MACHINE"-ibm-linux-"$LIBC" d1046 1 a1046 1 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" d1049 1 a1049 1 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" d1052 1 a1052 1 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" d1055 1 a1055 1 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" d1058 1 a1058 1 echo "$UNAME_MACHINE"-dec-linux-"$LIBC" d1061 1 a1061 1 echo "$UNAME_MACHINE"-pc-linux-"$LIBC" d1064 1 a1064 1 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" d1078 1 a1078 1 echo "$UNAME_MACHINE"-pc-sysv4.2uw"$UNAME_VERSION" d1083 1 a1083 1 echo "$UNAME_MACHINE"-pc-os2-emx d1086 1 a1086 1 echo "$UNAME_MACHINE"-unknown-stop d1089 1 a1089 1 echo "$UNAME_MACHINE"-unknown-atheos d1092 1 a1092 1 echo "$UNAME_MACHINE"-pc-syllable d1095 1 a1095 1 echo i386-unknown-lynxos"$UNAME_RELEASE" d1098 1 a1098 1 echo "$UNAME_MACHINE"-pc-msdosdjgpp d1100 2 a1101 2 i*86:*:4.*:*) UNAME_REL=`echo "$UNAME_RELEASE" | sed 's/\/MP$//'` d1103 1 a1103 1 echo "$UNAME_MACHINE"-univel-sysv"$UNAME_REL" d1105 1 a1105 1 echo "$UNAME_MACHINE"-pc-sysv"$UNAME_REL" d1115 1 a1115 1 echo "$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}{$UNAME_VERSION}" d1120 1 a1120 1 echo "$UNAME_MACHINE"-pc-isc"$UNAME_REL" d1130 1 a1130 1 echo "$UNAME_MACHINE"-pc-sco"$UNAME_REL" d1132 1 a1132 1 echo "$UNAME_MACHINE"-pc-sysv32 d1152 1 a1152 1 echo i860-stardent-sysv"$UNAME_RELEASE" # Stardent Vistra i860-SVR4 d1154 1 a1154 1 echo i860-unknown-sysv"$UNAME_RELEASE" # Unknown i860-SVR4 d1174 1 a1174 1 && { echo i486-ncr-sysv4.3"$OS_REL"; exit; } d1176 1 a1176 1 && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;; d1185 1 a1185 1 && { echo i486-ncr-sysv4.3"$OS_REL"; exit; } d1187 1 a1187 1 && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } d1189 1 a1189 1 && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;; d1191 1 a1191 1 echo m68k-unknown-lynxos"$UNAME_RELEASE" d1197 1 a1197 1 echo sparc-unknown-lynxos"$UNAME_RELEASE" d1200 1 a1200 1 echo rs6000-unknown-lynxos"$UNAME_RELEASE" d1203 1 a1203 1 echo powerpc-unknown-lynxos"$UNAME_RELEASE" d1206 1 a1206 1 echo mips-dde-sysv"$UNAME_RELEASE" d1217 1 a1217 1 echo "$UNAME_MACHINE"-sni-sysv4 d1237 1 a1237 1 echo "$UNAME_MACHINE"-stratus-vos d1244 1 a1244 1 echo m68k-apple-aux"$UNAME_RELEASE" d1251 1 a1251 1 echo mips-nec-sysv"$UNAME_RELEASE" d1253 1 a1253 1 echo mips-unknown-sysv"$UNAME_RELEASE" d1272 1 a1272 1 echo sx4-nec-superux"$UNAME_RELEASE" d1275 1 a1275 1 echo sx5-nec-superux"$UNAME_RELEASE" d1278 1 a1278 1 echo sx6-nec-superux"$UNAME_RELEASE" d1281 1 a1281 1 echo sx7-nec-superux"$UNAME_RELEASE" d1284 1 a1284 1 echo sx8-nec-superux"$UNAME_RELEASE" d1287 1 a1287 1 echo sx8r-nec-superux"$UNAME_RELEASE" d1290 1 a1290 1 echo sxace-nec-superux"$UNAME_RELEASE" d1293 1 a1293 1 echo powerpc-apple-rhapsody"$UNAME_RELEASE" d1296 1 a1296 1 echo "$UNAME_MACHINE"-apple-rhapsody"$UNAME_RELEASE" d1300 1 a1300 1 eval "$set_cc_for_build" d1304 1 a1304 1 if test "`echo "$UNAME_RELEASE" | sed -e 's/\..*//'`" -le 10 ; then d1307 2 a1308 2 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null a1314 7 # On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \ (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_PPC >/dev/null then UNAME_PROCESSOR=powerpc fi d1325 1 a1325 1 echo "$UNAME_PROCESSOR"-apple-darwin"$UNAME_RELEASE" d1333 1 a1333 1 echo "$UNAME_PROCESSOR"-"$UNAME_MACHINE"-nto-qnx"$UNAME_RELEASE" d1338 2 a1339 2 NEO-*:NONSTOP_KERNEL:*:*) echo neo-tandem-nsk"$UNAME_RELEASE" d1342 1 a1342 1 echo nse-tandem-nsk"$UNAME_RELEASE" d1344 2 a1345 2 NSR-*:NONSTOP_KERNEL:*:*) echo nsr-tandem-nsk"$UNAME_RELEASE" d1347 2 a1348 5 NSV-*:NONSTOP_KERNEL:*:*) echo nsv-tandem-nsk"$UNAME_RELEASE" exit ;; NSX-*:NONSTOP_KERNEL:*:*) echo nsx-tandem-nsk"$UNAME_RELEASE" d1357 1 a1357 1 echo "$UNAME_MACHINE"-"$UNAME_SYSTEM"-"$UNAME_RELEASE" d1368 1 a1368 1 echo "$UNAME_MACHINE"-unknown-plan9 d1389 1 a1389 1 echo mips-sei-seiux"$UNAME_RELEASE" d1392 1 a1392 1 echo "$UNAME_MACHINE"-unknown-dragonfly"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`" d1396 1 a1396 1 case "$UNAME_MACHINE" in d1405 1 a1405 1 echo "$UNAME_MACHINE"-pc-skyos"`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'`" d1408 1 a1408 1 echo "$UNAME_MACHINE"-pc-rdos d1411 1 a1411 1 echo "$UNAME_MACHINE"-pc-aros d1414 1 a1414 1 echo "$UNAME_MACHINE"-unknown-esx a1420 13 echo "$0: unable to guess system type" >&2 case "$UNAME_MACHINE:$UNAME_SYSTEM" in mips:Linux | mips64:Linux) # If we got here on MIPS GNU/Linux, output extra information. cat >&2 < and include a ChangeLog # entry. d27 1 a27 3 # This script attempts to guess a canonical system name similar to # config.sub. If it succeeds, it prints the system name on stdout, and # exits with 0. Otherwise, it exits with 1. d30 4 a33 1 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD d53 1 a53 2 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. d135 21 d161 1 a161 1 # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*, d171 4 a174 2 UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ /usr/sbin/$sysctl 2>/dev/null || echo unknown)` d181 5 d189 1 a189 1 # to ELF recently, or will in the future. d191 3 d207 8 a214 1 os=netbsd d227 1 a227 1 release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` d233 5 a237 1 echo "${machine}-${os}${release}" d243 4 d259 3 d268 1 a268 1 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` d278 1 a278 1 UNAME_MACHINE="alpha" ;; d280 1 a280 1 UNAME_MACHINE="alpha" ;; d282 1 a282 1 UNAME_MACHINE="alpha" ;; d284 1 a284 1 UNAME_MACHINE="alphaev5" ;; d286 1 a286 1 UNAME_MACHINE="alphaev56" ;; d288 1 a288 1 UNAME_MACHINE="alphapca56" ;; d290 1 a290 1 UNAME_MACHINE="alphapca57" ;; d292 1 a292 1 UNAME_MACHINE="alphaev6" ;; d294 1 a294 1 UNAME_MACHINE="alphaev67" ;; d296 1 a296 1 UNAME_MACHINE="alphaev68" ;; d298 1 a298 1 UNAME_MACHINE="alphaev68" ;; d300 1 a300 1 UNAME_MACHINE="alphaev68" ;; d302 1 a302 1 UNAME_MACHINE="alphaev69" ;; d304 1 a304 1 UNAME_MACHINE="alphaev7" ;; d306 1 a306 1 UNAME_MACHINE="alphaev79" ;; d313 5 a317 2 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` exit ;; d343 1 a343 1 echo powerpc-ibm-os400 d348 1 a348 1 arm:riscos:*:*|arm:RISCOS:*:*) d381 3 d386 1 a386 1 SUN_ARCH="i386" d390 1 a390 1 if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then d392 1 a392 1 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ d395 1 a395 1 SUN_ARCH="x86_64" d420 1 a420 1 test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 d442 1 a442 1 echo m68k-atari-mint${UNAME_RELEASE} d446 1 a446 1 exit ;; d448 1 a448 1 echo m68k-atari-mint${UNAME_RELEASE} d451 2 a452 2 echo m68k-milan-mint${UNAME_RELEASE} exit ;; d454 2 a455 2 echo m68k-hades-mint${UNAME_RELEASE} exit ;; d457 2 a458 2 echo m68k-unknown-mint${UNAME_RELEASE} exit ;; d528 2 a529 2 # DG/UX returns AViiON for all architectures UNAME_PROCESSOR=`/usr/bin/uname -p` d542 1 a542 1 exit ;; d599 1 a599 1 *:AIX:*:[456]) d606 3 a608 2 if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` d643 11 a653 11 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` case "${sc_cpu_version}" in 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 532) # CPU_PA_RISC2_0 case "${sc_kernel_bits}" in 32) HP_ARCH="hppa2.0n" ;; 64) HP_ARCH="hppa2.0w" ;; '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 esac ;; esac d657 5 a661 1 sed 's/^ //' << EOF >$dummy.c d663 26 a688 30 #define _HPUX_SOURCE #include #include int main () { #if defined(_SC_KERNEL_BITS) long bits = sysconf(_SC_KERNEL_BITS); #endif long cpu = sysconf (_SC_CPU_VERSION); switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0"); break; case CPU_PA_RISC1_1: puts ("hppa1.1"); break; case CPU_PA_RISC2_0: #if defined(_SC_KERNEL_BITS) switch (bits) { case 64: puts ("hppa2.0w"); break; case 32: puts ("hppa2.0n"); break; default: puts ("hppa2.0"); break; } break; #else /* !defined(_SC_KERNEL_BITS) */ puts ("hppa2.0"); break; #endif default: puts ("hppa1.0"); break; } exit (0); } d690 1 a690 1 (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` d694 1 a694 1 if [ ${HP_ARCH} = "hppa2.0w" ] d707 1 a707 1 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | d710 1 a710 1 HP_ARCH="hppa2.0w" d712 1 a712 1 HP_ARCH="hppa64" d779 1 a779 1 exit ;; d785 1 a785 1 exit ;; d788 1 a788 1 exit ;; d791 1 a791 1 exit ;; d794 1 a794 1 exit ;; d817 5 a821 5 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; d823 3 a825 3 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" d837 2 a838 3 case ${UNAME_MACHINE} in pc98) echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; d842 1 a842 1 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; d848 3 d854 3 d858 2 a859 2 # uname -m includes "-pc" on this system. echo ${UNAME_MACHINE}-mingw32 d864 2 a865 2 *:Interix*:[3456]*) case ${UNAME_MACHINE} in d869 1 a869 1 EM64T | authenticamd | genuineintel) d902 1 a902 1 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` d906 1 a906 1 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu d911 24 d940 1 a940 1 echo ${UNAME_MACHINE}-unknown-linux-gnu d942 7 a948 1 echo ${UNAME_MACHINE}-unknown-linux-gnueabi d952 1 a952 1 echo ${UNAME_MACHINE}-unknown-linux-gnu d955 1 a955 1 echo cris-axis-linux-gnu d958 4 a961 1 echo crisv32-axis-linux-gnu d964 7 a970 1 echo frv-unknown-linux-gnu d973 4 a976 1 echo ${UNAME_MACHINE}-unknown-linux-gnu d979 1 a979 1 echo ${UNAME_MACHINE}-unknown-linux-gnu d982 1 a982 1 echo ${UNAME_MACHINE}-unknown-linux-gnu d1000 2 a1001 6 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' /^CPU/{ s: ::g p }'`" test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } d1003 2 a1004 2 or32:Linux:*:*) echo or32-unknown-linux-gnu d1006 2 a1007 2 ppc:Linux:*:*) echo powerpc-unknown-linux-gnu d1009 2 a1010 2 ppc64:Linux:*:*) echo powerpc64-unknown-linux-gnu d1012 2 a1013 13 alpha:Linux:*:*) case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in EV5) UNAME_MACHINE=alphaev5 ;; EV56) UNAME_MACHINE=alphaev56 ;; PCA56) UNAME_MACHINE=alphapca56 ;; PCA57) UNAME_MACHINE=alphapca56 ;; EV6) UNAME_MACHINE=alphaev6 ;; EV67) UNAME_MACHINE=alphaev67 ;; EV68*) UNAME_MACHINE=alphaev68 ;; esac objdump --private-headers /bin/sh | grep -q ld.so.1 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} d1015 2 a1016 2 padre:Linux:*:*) echo sparc-unknown-linux-gnu d1021 3 a1023 3 PA7*) echo hppa1.1-unknown-linux-gnu ;; PA8*) echo hppa2.0-unknown-linux-gnu ;; *) echo hppa-unknown-linux-gnu ;; d1026 14 a1039 2 parisc64:Linux:*:* | hppa64:Linux:*:*) echo hppa64-unknown-linux-gnu d1042 1 a1042 1 echo ${UNAME_MACHINE}-ibm-linux d1045 1 a1045 1 echo ${UNAME_MACHINE}-unknown-linux-gnu d1048 1 a1048 1 echo ${UNAME_MACHINE}-unknown-linux-gnu d1051 4 a1054 1 echo ${UNAME_MACHINE}-unknown-linux-gnu d1057 1 a1057 1 echo ${UNAME_MACHINE}-dec-linux-gnu d1060 1 a1060 1 echo x86_64-unknown-linux-gnu d1063 1 a1063 1 echo ${UNAME_MACHINE}-unknown-linux-gnu a1064 52 i*86:Linux:*:*) # The BFD linker knows what the default object file format is, so # first see if it will tell us. cd to the root directory to prevent # problems with other programs or directories called `ld' in the path. # Set LC_ALL=C to ensure ld outputs messages in English. ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \ | sed -ne '/supported targets:/!d s/[ ][ ]*/ /g s/.*supported targets: *// s/ .*// p'` case "$ld_supported_targets" in elf32-i386) TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" ;; esac # Determine whether the default compiler is a.out or elf eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include #ifdef __ELF__ # ifdef __GLIBC__ # if __GLIBC__ >= 2 LIBC=gnu # else LIBC=gnulibc1 # endif # else LIBC=gnulibc1 # endif #else #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC) LIBC=gnu #else LIBC=gnuaout #endif #endif #ifdef __dietlibc__ LIBC=dietlibc #endif EOF eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' /^LIBC/{ s: ::g p }'`" test x"${LIBC}" != x && { echo "${UNAME_MACHINE}-pc-linux-${LIBC}" exit } test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; } ;; d1072 3 a1074 3 # Unixware is an offshoot of SVR4, but it has its own version # number series starting with 2... # I am not positive that other SVR4 systems won't match this, d1076 1 a1076 1 # Use sysv4.2uw... so that sysv4* matches it. d1108 1 a1108 1 # UnixWare 7.x, OpenUNIX and OpenServer 6. d1136 2 a1137 2 # uname -m prints for DJGPP always 'pc', but it prints nothing about # the processor, so we play safe by assuming i586. d1139 1 a1139 1 # prints for the "djgpp" host, or else GDB configury will decide that d1142 1 a1142 1 exit ;; d1177 2 a1178 2 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4; exit; } ;; d1221 4 a1224 4 PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort # says echo i586-unisys-sysv4 exit ;; d1250 1 a1250 1 echo mips-nec-sysv${UNAME_RELEASE} d1252 1 a1252 1 echo mips-unknown-sysv${UNAME_RELEASE} d1254 1 a1254 1 exit ;; d1267 3 d1288 3 d1299 25 a1323 3 case $UNAME_PROCESSOR in unknown) UNAME_PROCESSOR=powerpc ;; esac d1328 1 a1328 1 if test "$UNAME_PROCESSOR" = "x86"; then d1337 4 a1340 1 NSE-?:NONSTOP_KERNEL:*:*) d1359 1 a1359 1 if test "$cputype" = "386"; then d1385 1 a1385 1 echo mips-sei-seiux${UNAME_RELEASE} d1391 1 a1391 1 UNAME_MACHINE=`(uname -p) 2>/dev/null` d1401 1 a1401 1 echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' d1409 2 a1410 140 esac #echo '(No uname command or uname output not recognized.)' 1>&2 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 eval $set_cc_for_build cat >$dummy.c < # include #endif main () { #if defined (sony) #if defined (MIPSEB) /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, I don't know.... */ printf ("mips-sony-bsd\n"); exit (0); #else #include printf ("m68k-sony-newsos%s\n", #ifdef NEWSOS4 "4" #else "" #endif ); exit (0); #endif #endif #if defined (__arm) && defined (__acorn) && defined (__unix) printf ("arm-acorn-riscix\n"); exit (0); #endif #if defined (hp300) && !defined (hpux) printf ("m68k-hp-bsd\n"); exit (0); #endif #if defined (NeXT) #if !defined (__ARCHITECTURE__) #define __ARCHITECTURE__ "m68k" #endif int version; version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; if (version < 4) printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); else printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); exit (0); #endif #if defined (MULTIMAX) || defined (n16) #if defined (UMAXV) printf ("ns32k-encore-sysv\n"); exit (0); #else #if defined (CMU) printf ("ns32k-encore-mach\n"); exit (0); #else printf ("ns32k-encore-bsd\n"); exit (0); #endif #endif #endif #if defined (__386BSD__) printf ("i386-pc-bsd\n"); exit (0); #endif #if defined (sequent) #if defined (i386) printf ("i386-sequent-dynix\n"); exit (0); #endif #if defined (ns32000) printf ("ns32k-sequent-dynix\n"); exit (0); #endif #endif #if defined (_SEQUENT_) struct utsname un; uname(&un); if (strncmp(un.version, "V2", 2) == 0) { printf ("i386-sequent-ptx2\n"); exit (0); } if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ printf ("i386-sequent-ptx1\n"); exit (0); } printf ("i386-sequent-ptx\n"); exit (0); #endif #if defined (vax) # if !defined (ultrix) # include # if defined (BSD) # if BSD == 43 printf ("vax-dec-bsd4.3\n"); exit (0); # else # if BSD == 199006 printf ("vax-dec-bsd4.3reno\n"); exit (0); # else printf ("vax-dec-bsd\n"); exit (0); # endif # endif # else printf ("vax-dec-bsd\n"); exit (0); # endif # else printf ("vax-dec-ultrix\n"); exit (0); # endif #endif #if defined (alliant) && defined (i860) printf ("i860-alliant-bsd\n"); exit (0); #endif exit (1); } EOF $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && { echo "$SYSTEM_NAME"; exit; } # Apollos put the system type in the environment. test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } # Convex versions that predate uname can use getsysinfo(1) if [ -x /usr/convex/getsysinfo ] then case `getsysinfo -f cpu_type` in c1*) echo c1-convex-bsd exit ;; c2*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi d1412 2 a1413 2 c34*) echo c34-convex-bsd d1415 1 a1415 8 c38*) echo c38-convex-bsd exit ;; c4*) echo c4-convex-bsd exit ;; esac fi d1420 3 a1422 3 This script, last modified $timestamp, has failed to recognize the operating system you are using. It is advised that you download the most up to date version of the config scripts from d1424 1 a1424 1 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD d1426 1 a1426 1 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD d1428 3 a1430 4 If the version you run ($0) is already up to date, please send the following data and any information you think might be pertinent to in order to provide the needed information to handle your system. @ 1.1.1.1 log @from http://invisible-island.net/byacc/byacc.html @ text @@ 1.1.1.2 log @import latest byacc @ text @d4 1 a4 1 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 d7 1 a7 1 timestamp='2009-12-30' d59 2 a60 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. a335 3 i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) echo i386-pc-auroraux${UNAME_RELEASE} exit ;; d810 1 a810 1 *:Interix*:*) d815 1 a815 1 authenticamd | genuineintel | EM64T) a856 14 alpha:Linux:*:*) case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in EV5) UNAME_MACHINE=alphaev5 ;; EV56) UNAME_MACHINE=alphaev56 ;; PCA56) UNAME_MACHINE=alphapca56 ;; PCA57) UNAME_MACHINE=alphapca56 ;; EV6) UNAME_MACHINE=alphaev6 ;; EV67) UNAME_MACHINE=alphaev67 ;; EV68*) UNAME_MACHINE=alphaev68 ;; esac objdump --private-headers /bin/sh | grep -q ld.so.1 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} exit ;; a878 11 i*86:Linux:*:*) LIBC=gnu eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #ifdef __dietlibc__ LIBC=dietlibc #endif EOF eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'` echo "${UNAME_MACHINE}-pc-linux-${LIBC}" exit ;; d904 5 a908 1 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` d914 20 a936 3 parisc64:Linux:*:* | hppa64:Linux:*:*) echo hppa64-unknown-linux-gnu exit ;; d945 2 a946 5 ppc64:Linux:*:*) echo powerpc64-unknown-linux-gnu exit ;; ppc:Linux:*:*) echo powerpc-unknown-linux-gnu d969 52 a1249 10 i386) eval $set_cc_for_build if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then UNAME_PROCESSOR="x86_64" fi fi ;; @ 1.1.1.3 log @Import byacc 20110908 @ text @d4 2 a5 2 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, # 2911 Free Software Foundation, Inc. d7 1 a7 1 timestamp='2011-01-01' d60 2 a61 2 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc. d184 1 a184 1 os=netbsd d223 1 a223 1 *4.0) d226 2 a227 2 *5.*) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` d273 1 a273 4 # Reset EXIT trap before exiting to avoid spurious non-zero exit code. exitcode=$? trap '' 0 exit $exitcode ;; d299 1 a299 1 echo powerpc-ibm-os400 d398 1 a398 1 echo m68k-atari-mint${UNAME_RELEASE} d402 1 a402 1 exit ;; d404 1 a404 1 echo m68k-atari-mint${UNAME_RELEASE} d407 2 a408 2 echo m68k-milan-mint${UNAME_RELEASE} exit ;; d410 2 a411 2 echo m68k-hades-mint${UNAME_RELEASE} exit ;; d413 2 a414 2 echo m68k-unknown-mint${UNAME_RELEASE} exit ;; d484 2 a485 2 # DG/UX returns AViiON for all architectures UNAME_PROCESSOR=`/usr/bin/uname -p` d498 1 a498 1 exit ;; d555 1 a555 1 *:AIX:*:[4567]) d598 2 a599 2 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` case "${sc_cpu_version}" in d734 1 a734 1 exit ;; d740 1 a740 1 exit ;; d743 1 a743 1 exit ;; d746 1 a746 1 exit ;; d749 1 a749 1 exit ;; d773 4 a776 4 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; d778 3 a780 3 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" d808 2 a809 2 # uname -m includes "-pc" on this system. echo ${UNAME_MACHINE}-mingw32 d815 1 a815 1 case ${UNAME_MACHINE} in d863 8 a870 8 EV5) UNAME_MACHINE=alphaev5 ;; EV56) UNAME_MACHINE=alphaev56 ;; PCA56) UNAME_MACHINE=alphapca56 ;; PCA57) UNAME_MACHINE=alphapca56 ;; EV6) UNAME_MACHINE=alphaev6 ;; EV67) UNAME_MACHINE=alphaev67 ;; EV68*) UNAME_MACHINE=alphaev68 ;; esac d877 2 a878 2 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null | \ grep -q __ARM_EABI__ d895 1 a895 1 echo frv-unknown-linux-gnu d900 1 a900 1 sed 's/^ //' << EOF >$dummy.c d963 1 a963 1 echo ${UNAME_MACHINE}-unknown-linux-gnu a970 3 tile*:Linux:*:*) echo ${UNAME_MACHINE}-tilera-linux-gnu exit ;; d978 1 a978 1 echo ${UNAME_MACHINE}-unknown-linux-gnu d987 3 a989 3 # Unixware is an offshoot of SVR4, but it has its own version # number series starting with 2... # I am not positive that other SVR4 systems won't match this, d991 1 a991 1 # Use sysv4.2uw... so that sysv4* matches it. d1023 1 a1023 1 # UnixWare 7.x, OpenUNIX and OpenServer 6. d1051 2 a1052 2 # uname -m prints for DJGPP always 'pc', but it prints nothing about # the processor, so we play safe by assuming i586. d1057 1 a1057 1 exit ;; d1092 2 a1093 2 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4; exit; } ;; d1137 3 a1139 3 # says echo i586-unisys-sysv4 exit ;; d1169 1 a1169 1 exit ;; d1212 6 a1217 6 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then UNAME_PROCESSOR="x86_64" fi d1226 2 a1227 2 UNAME_PROCESSOR=i386 UNAME_MACHINE=pc a1233 3 NEO-?:NONSTOP_KERNEL:*:*) echo neo-tandem-nsk${UNAME_RELEASE} exit ;; d1279 1 a1279 1 echo mips-sei-seiux${UNAME_RELEASE} d1285 1 a1285 1 UNAME_MACHINE=`(uname -p) 2>/dev/null` @ 1.1.1.3.2.1 log @sync with head. for a reference, the tree before this commit was tagged as yamt-pagecache-tag8. this commit was splitted into small chunks to avoid a limitation of cvs. ("Protocol error: too many arguments") @ text @d3 3 a5 1 # Copyright 1992-2013 Free Software Foundation, Inc. d7 1 a7 1 timestamp='2013-02-04' d11 1 a11 1 # the Free Software Foundation; either version 3 of the License, or d20 3 a22 1 # along with this program; if not, see . d27 6 a32 3 # the same distribution terms that you use for the rest of that # program. This Exception is an additional permission under section 7 # of the GNU General Public License, version 3 ("GPLv3"). d34 3 a36 1 # Originally written by Per Bothner. a39 3 # # Please send patches with a ChangeLog entry to config-patches@@gnu.org. d59 3 a61 1 Copyright 1992-2013 Free Software Foundation, Inc. d148 1 a148 1 # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, a204 4 *:Bitrig:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE} exit ;; d223 1 a223 1 *4.0) d226 1 a226 1 *5.*) d307 1 a307 1 arm*:riscos:*:*|arm*:RISCOS:*:*) d603 6 a608 6 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 532) # CPU_PA_RISC2_0 case "${sc_kernel_bits}" in 32) HP_ARCH="hppa2.0n" ;; 64) HP_ARCH="hppa2.0w" ;; d610 2 a611 2 esac ;; esac d615 1 a615 12 sed 's/^ //' << EOF >$dummy.c #define _HPUX_SOURCE #include #include int main () { #if defined(_SC_KERNEL_BITS) long bits = sysconf(_SC_KERNEL_BITS); #endif long cpu = sysconf (_SC_CPU_VERSION); d617 30 a646 19 switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0"); break; case CPU_PA_RISC1_1: puts ("hppa1.1"); break; case CPU_PA_RISC2_0: #if defined(_SC_KERNEL_BITS) switch (bits) { case 64: puts ("hppa2.0w"); break; case 32: puts ("hppa2.0n"); break; default: puts ("hppa2.0"); break; } break; #else /* !defined(_SC_KERNEL_BITS) */ puts ("hppa2.0"); break; #endif default: puts ("hppa1.0"); break; } exit (0); } d795 3 a797 2 UNAME_PROCESSOR=`/usr/bin/uname -p` case ${UNAME_PROCESSOR} in d801 1 a801 1 echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; a806 3 *:MINGW64*:*) echo ${UNAME_MACHINE}-pc-mingw64 exit ;; a809 3 i*:MSYS*:*) echo ${UNAME_MACHINE}-pc-msys exit ;; a863 7 aarch64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; aarch64_be:Linux:*:*) UNAME_MACHINE=aarch64_be echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; d866 7 a872 7 EV5) UNAME_MACHINE=alphaev5 ;; EV56) UNAME_MACHINE=alphaev56 ;; PCA56) UNAME_MACHINE=alphapca56 ;; PCA57) UNAME_MACHINE=alphapca56 ;; EV6) UNAME_MACHINE=alphaev6 ;; EV67) UNAME_MACHINE=alphaev67 ;; EV68*) UNAME_MACHINE=alphaev68 ;; d880 2 a881 2 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_EABI__ d885 1 a885 7 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_PCS_VFP then echo ${UNAME_MACHINE}-unknown-linux-gnueabi else echo ${UNAME_MACHINE}-unknown-linux-gnueabihf fi d892 1 a892 1 echo ${UNAME_MACHINE}-axis-linux-gnu d895 1 a895 1 echo ${UNAME_MACHINE}-axis-linux-gnu d898 1 a898 4 echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; hexagon:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu d903 1 a903 1 sed 's/^ //' << EOF >$dummy.c d940 1 a940 1 echo ${UNAME_MACHINE}-unknown-linux-gnu d975 1 a975 1 echo ${UNAME_MACHINE}-unknown-linux-gnu d981 1 a981 1 echo ${UNAME_MACHINE}-unknown-linux-gnu d1099 1 a1099 1 && { echo i486-ncr-sysv4; exit; } ;; d1142 2 a1143 2 PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort # says d1171 1 a1171 1 echo mips-nec-sysv${UNAME_RELEASE} d1173 1 a1173 1 echo mips-unknown-sysv${UNAME_RELEASE} a1187 3 x86_64:Haiku:*:*) echo x86_64-unknown-haiku exit ;; d1218 6 a1223 6 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then UNAME_PROCESSOR="x86_64" fi d1232 2 a1233 2 UNAME_PROCESSOR=i386 UNAME_MACHINE=pc d1243 1 a1243 1 NSE-*:NONSTOP_KERNEL:*:*) a1311 3 x86_64:VMkernel:*:*) echo ${UNAME_MACHINE}-unknown-esx exit ;; d1314 3 d1334 1 a1334 1 "4" d1336 1 a1336 1 "" d1338 1 a1338 1 ); exit (0); @ 1.1.1.3.8.1 log @resync from head @ text @d3 3 a5 1 # Copyright 1992-2013 Free Software Foundation, Inc. d7 1 a7 1 timestamp='2013-02-04' d11 1 a11 1 # the Free Software Foundation; either version 3 of the License, or d20 3 a22 1 # along with this program; if not, see . d27 6 a32 3 # the same distribution terms that you use for the rest of that # program. This Exception is an additional permission under section 7 # of the GNU General Public License, version 3 ("GPLv3"). d34 3 a36 1 # Originally written by Per Bothner. a39 3 # # Please send patches with a ChangeLog entry to config-patches@@gnu.org. d59 3 a61 1 Copyright 1992-2013 Free Software Foundation, Inc. d148 1 a148 1 # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, a204 4 *:Bitrig:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE} exit ;; d223 1 a223 1 *4.0) d226 1 a226 1 *5.*) d307 1 a307 1 arm*:riscos:*:*|arm*:RISCOS:*:*) d603 6 a608 6 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 532) # CPU_PA_RISC2_0 case "${sc_kernel_bits}" in 32) HP_ARCH="hppa2.0n" ;; 64) HP_ARCH="hppa2.0w" ;; d610 2 a611 2 esac ;; esac d615 1 a615 12 sed 's/^ //' << EOF >$dummy.c #define _HPUX_SOURCE #include #include int main () { #if defined(_SC_KERNEL_BITS) long bits = sysconf(_SC_KERNEL_BITS); #endif long cpu = sysconf (_SC_CPU_VERSION); d617 30 a646 19 switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0"); break; case CPU_PA_RISC1_1: puts ("hppa1.1"); break; case CPU_PA_RISC2_0: #if defined(_SC_KERNEL_BITS) switch (bits) { case 64: puts ("hppa2.0w"); break; case 32: puts ("hppa2.0n"); break; default: puts ("hppa2.0"); break; } break; #else /* !defined(_SC_KERNEL_BITS) */ puts ("hppa2.0"); break; #endif default: puts ("hppa1.0"); break; } exit (0); } d795 3 a797 2 UNAME_PROCESSOR=`/usr/bin/uname -p` case ${UNAME_PROCESSOR} in d801 1 a801 1 echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; a806 3 *:MINGW64*:*) echo ${UNAME_MACHINE}-pc-mingw64 exit ;; a809 3 i*:MSYS*:*) echo ${UNAME_MACHINE}-pc-msys exit ;; a863 7 aarch64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; aarch64_be:Linux:*:*) UNAME_MACHINE=aarch64_be echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; d866 7 a872 7 EV5) UNAME_MACHINE=alphaev5 ;; EV56) UNAME_MACHINE=alphaev56 ;; PCA56) UNAME_MACHINE=alphapca56 ;; PCA57) UNAME_MACHINE=alphapca56 ;; EV6) UNAME_MACHINE=alphaev6 ;; EV67) UNAME_MACHINE=alphaev67 ;; EV68*) UNAME_MACHINE=alphaev68 ;; d880 2 a881 2 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_EABI__ d885 1 a885 7 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_PCS_VFP then echo ${UNAME_MACHINE}-unknown-linux-gnueabi else echo ${UNAME_MACHINE}-unknown-linux-gnueabihf fi d892 1 a892 1 echo ${UNAME_MACHINE}-axis-linux-gnu d895 1 a895 1 echo ${UNAME_MACHINE}-axis-linux-gnu d898 1 a898 4 echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; hexagon:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu d903 1 a903 1 sed 's/^ //' << EOF >$dummy.c d940 1 a940 1 echo ${UNAME_MACHINE}-unknown-linux-gnu d975 1 a975 1 echo ${UNAME_MACHINE}-unknown-linux-gnu d981 1 a981 1 echo ${UNAME_MACHINE}-unknown-linux-gnu d1099 1 a1099 1 && { echo i486-ncr-sysv4; exit; } ;; d1142 2 a1143 2 PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort # says d1171 1 a1171 1 echo mips-nec-sysv${UNAME_RELEASE} d1173 1 a1173 1 echo mips-unknown-sysv${UNAME_RELEASE} a1187 3 x86_64:Haiku:*:*) echo x86_64-unknown-haiku exit ;; d1218 6 a1223 6 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then UNAME_PROCESSOR="x86_64" fi d1232 2 a1233 2 UNAME_PROCESSOR=i386 UNAME_MACHINE=pc d1243 1 a1243 1 NSE-*:NONSTOP_KERNEL:*:*) a1311 3 x86_64:VMkernel:*:*) echo ${UNAME_MACHINE}-unknown-esx exit ;; d1314 3 d1334 1 a1334 1 "4" d1336 1 a1336 1 "" d1338 1 a1338 1 ); exit (0); @ 1.1.1.4 log @Import byacc 20130304 @ text @d3 3 a5 1 # Copyright 1992-2013 Free Software Foundation, Inc. d7 1 a7 1 timestamp='2013-02-04' d11 1 a11 1 # the Free Software Foundation; either version 3 of the License, or d20 3 a22 1 # along with this program; if not, see . d27 6 a32 3 # the same distribution terms that you use for the rest of that # program. This Exception is an additional permission under section 7 # of the GNU General Public License, version 3 ("GPLv3"). d34 3 a36 1 # Originally written by Per Bothner. a39 3 # # Please send patches with a ChangeLog entry to config-patches@@gnu.org. d59 3 a61 1 Copyright 1992-2013 Free Software Foundation, Inc. d148 1 a148 1 # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, a204 4 *:Bitrig:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE} exit ;; d223 1 a223 1 *4.0) d226 1 a226 1 *5.*) d307 1 a307 1 arm*:riscos:*:*|arm*:RISCOS:*:*) d603 6 a608 6 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 532) # CPU_PA_RISC2_0 case "${sc_kernel_bits}" in 32) HP_ARCH="hppa2.0n" ;; 64) HP_ARCH="hppa2.0w" ;; d610 2 a611 2 esac ;; esac d615 1 a615 12 sed 's/^ //' << EOF >$dummy.c #define _HPUX_SOURCE #include #include int main () { #if defined(_SC_KERNEL_BITS) long bits = sysconf(_SC_KERNEL_BITS); #endif long cpu = sysconf (_SC_CPU_VERSION); d617 30 a646 19 switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0"); break; case CPU_PA_RISC1_1: puts ("hppa1.1"); break; case CPU_PA_RISC2_0: #if defined(_SC_KERNEL_BITS) switch (bits) { case 64: puts ("hppa2.0w"); break; case 32: puts ("hppa2.0n"); break; default: puts ("hppa2.0"); break; } break; #else /* !defined(_SC_KERNEL_BITS) */ puts ("hppa2.0"); break; #endif default: puts ("hppa1.0"); break; } exit (0); } d795 3 a797 2 UNAME_PROCESSOR=`/usr/bin/uname -p` case ${UNAME_PROCESSOR} in d801 1 a801 1 echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; a806 3 *:MINGW64*:*) echo ${UNAME_MACHINE}-pc-mingw64 exit ;; a809 3 i*:MSYS*:*) echo ${UNAME_MACHINE}-pc-msys exit ;; a863 7 aarch64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; aarch64_be:Linux:*:*) UNAME_MACHINE=aarch64_be echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; d866 7 a872 7 EV5) UNAME_MACHINE=alphaev5 ;; EV56) UNAME_MACHINE=alphaev56 ;; PCA56) UNAME_MACHINE=alphapca56 ;; PCA57) UNAME_MACHINE=alphapca56 ;; EV6) UNAME_MACHINE=alphaev6 ;; EV67) UNAME_MACHINE=alphaev67 ;; EV68*) UNAME_MACHINE=alphaev68 ;; d880 2 a881 2 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_EABI__ d885 1 a885 7 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_PCS_VFP then echo ${UNAME_MACHINE}-unknown-linux-gnueabi else echo ${UNAME_MACHINE}-unknown-linux-gnueabihf fi d892 1 a892 1 echo ${UNAME_MACHINE}-axis-linux-gnu d895 1 a895 1 echo ${UNAME_MACHINE}-axis-linux-gnu d898 1 a898 4 echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; hexagon:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu d903 1 a903 1 sed 's/^ //' << EOF >$dummy.c d940 1 a940 1 echo ${UNAME_MACHINE}-unknown-linux-gnu d975 1 a975 1 echo ${UNAME_MACHINE}-unknown-linux-gnu d981 1 a981 1 echo ${UNAME_MACHINE}-unknown-linux-gnu d1099 1 a1099 1 && { echo i486-ncr-sysv4; exit; } ;; d1142 2 a1143 2 PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort # says d1171 1 a1171 1 echo mips-nec-sysv${UNAME_RELEASE} d1173 1 a1173 1 echo mips-unknown-sysv${UNAME_RELEASE} a1187 3 x86_64:Haiku:*:*) echo x86_64-unknown-haiku exit ;; d1218 6 a1223 6 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then UNAME_PROCESSOR="x86_64" fi d1232 2 a1233 2 UNAME_PROCESSOR=i386 UNAME_MACHINE=pc d1243 1 a1243 1 NSE-*:NONSTOP_KERNEL:*:*) a1311 3 x86_64:VMkernel:*:*) echo ${UNAME_MACHINE}-unknown-esx exit ;; d1314 3 d1334 1 a1334 1 "4" d1336 1 a1336 1 "" d1338 1 a1338 1 ); exit (0); @ 1.1.1.5 log @Import byacc 20141128 @ text @d3 1 a3 1 # Copyright 1992-2014 Free Software Foundation, Inc. d5 1 a5 1 timestamp='2014-03-23' d53 1 a53 1 Copyright 1992-2014 Free Software Foundation, Inc. a134 21 case "${UNAME_SYSTEM}" in Linux|GNU|GNU/*) # If the system lacks a compiler, then just pick glibc. # We could probably try harder. LIBC=gnu eval $set_cc_for_build cat <<-EOF > $dummy.c #include #if defined(__UCLIBC__) LIBC=uclibc #elif defined(__dietlibc__) LIBC=dietlibc #else LIBC=gnu #endif EOF eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | sed 's, ,,g'` ;; esac d808 1 a808 1 *:MSYS*:*) d856 1 a856 1 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` d860 1 a860 1 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC} d866 1 a866 1 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} d870 1 a870 1 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} d883 2 a884 5 if test "$?" = 0 ; then LIBC="gnulibc1" ; fi echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; arc:Linux:*:* | arceb:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} d891 1 a891 1 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} d896 1 a896 1 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi d898 1 a898 1 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf d903 1 a903 1 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} d906 1 a906 1 echo ${UNAME_MACHINE}-axis-linux-${LIBC} d909 1 a909 1 echo ${UNAME_MACHINE}-axis-linux-${LIBC} d912 1 a912 1 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} d915 1 a915 1 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} d918 9 a926 1 echo ${UNAME_MACHINE}-pc-linux-${LIBC} d929 1 a929 1 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} d932 1 a932 1 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} d935 1 a935 1 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} d954 1 a954 1 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; } d956 2 a957 5 openrisc*:Linux:*:*) echo or1k-unknown-linux-${LIBC} exit ;; or32:Linux:*:* | or1k*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} d960 1 a960 1 echo sparc-unknown-linux-${LIBC} d963 1 a963 1 echo hppa64-unknown-linux-${LIBC} d968 3 a970 3 PA7*) echo hppa1.1-unknown-linux-${LIBC} ;; PA8*) echo hppa2.0-unknown-linux-${LIBC} ;; *) echo hppa-unknown-linux-${LIBC} ;; d974 1 a974 1 echo powerpc64-unknown-linux-${LIBC} d977 1 a977 7 echo powerpc-unknown-linux-${LIBC} exit ;; ppc64le:Linux:*:*) echo powerpc64le-unknown-linux-${LIBC} exit ;; ppcle:Linux:*:*) echo powerpcle-unknown-linux-${LIBC} d980 1 a980 1 echo ${UNAME_MACHINE}-ibm-linux-${LIBC} d983 1 a983 1 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} d986 1 a986 1 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} d989 1 a989 1 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} d992 1 a992 1 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} d995 1 a995 1 echo ${UNAME_MACHINE}-dec-linux-${LIBC} d998 1 a998 1 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} d1001 1 a1001 1 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} d1234 13 a1246 25 eval $set_cc_for_build if test "$UNAME_PROCESSOR" = unknown ; then UNAME_PROCESSOR=powerpc fi if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then case $UNAME_PROCESSOR in i386) UNAME_PROCESSOR=x86_64 ;; powerpc) UNAME_PROCESSOR=powerpc64 ;; esac fi fi elif test "$UNAME_PROCESSOR" = i386 ; then # Avoid executing cc on OS X 10.9, as it ships with a stub # that puts up a graphical alert prompting to install # developer tools. Any system running Mac OS X 10.7 or # later (Darwin 11 and later) is required to have a 64-bit # processor. This is not true of the ARM version of Darwin # that Apple uses in portable devices. UNAME_PROCESSOR=x86_64 fi d1337 148 @ 1.1.1.6 log @Import byacc 20150711 @ text @d3 1 a3 1 # Copyright 1992-2015 Free Software Foundation, Inc. d5 1 a5 1 timestamp='2015-03-04' d27 1 a27 1 # Originally written by Per Bothner; maintained since 2000 by Ben Elliston. d32 1 a32 1 # Please send patches to . d53 1 a53 1 Copyright 1992-2015 Free Software Foundation, Inc. d171 2 a172 4 UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \ /sbin/$sysctl 2>/dev/null || \ /usr/sbin/$sysctl 2>/dev/null || \ echo unknown)` a178 5 earmv*) arch=`echo ${UNAME_MACHINE_ARCH} | sed -e 's,^e\(armv[0-9]\).*$,\1,'` endian=`echo ${UNAME_MACHINE_ARCH} | sed -ne 's,^.*\(eb\)$,\1,p'` machine=${arch}${endian}-unknown ;; d184 1 a184 1 arm*|earm*|i386|m68k|ns32k|sh3*|sparc|vax) a199 7 # Determine ABI tags. case "${UNAME_MACHINE_ARCH}" in earm*) expr='s/^earmv[0-9]/-eabi/;s/eb$//' abi=`echo ${UNAME_MACHINE_ARCH} | sed -e "$expr"` ;; esac d216 1 a216 1 echo "${machine}-${os}${release}${abi}" d582 2 a583 3 if [ -x /usr/bin/lslpp ] ; then IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc | awk -F: '{ print $3 }' | sed s/[0-9]*$/0/` a934 3 e2k:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; @ 1.1.1.6.4.1 log @Sync with HEAD @ text @d3 1 a3 1 # Copyright 1992-2017 Free Software Foundation, Inc. d5 1 a5 1 timestamp='2017-01-01' d30 1 a30 1 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess d53 1 a53 1 Copyright 1992-2017 Free Software Foundation, Inc. d189 1 a189 1 # to ELF recently (or will in the future) and ABI. d191 1 a191 4 earm*) os=netbsdelf ;; arm*|i386|m68k|ns32k|sh3*|sparc|vax) d224 1 a224 1 release=`echo ${UNAME_RELEASE} | sed -e 's/[-_].*//' | cut -d. -f1,2` a239 4 *:LibertyBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'` echo ${UNAME_MACHINE_ARCH}-unknown-libertybsd${UNAME_RELEASE} exit ;; a251 3 *:Sortix:*:*) echo ${UNAME_MACHINE}-unknown-sortix exit ;; d268 1 a268 1 UNAME_MACHINE=alpha ;; d270 1 a270 1 UNAME_MACHINE=alpha ;; d272 1 a272 1 UNAME_MACHINE=alpha ;; d274 1 a274 1 UNAME_MACHINE=alphaev5 ;; d276 1 a276 1 UNAME_MACHINE=alphaev56 ;; d278 1 a278 1 UNAME_MACHINE=alphapca56 ;; d280 1 a280 1 UNAME_MACHINE=alphapca57 ;; d282 1 a282 1 UNAME_MACHINE=alphaev6 ;; d284 1 a284 1 UNAME_MACHINE=alphaev67 ;; d286 1 a286 1 UNAME_MACHINE=alphaev68 ;; d288 1 a288 1 UNAME_MACHINE=alphaev68 ;; d290 1 a290 1 UNAME_MACHINE=alphaev68 ;; d292 1 a292 1 UNAME_MACHINE=alphaev69 ;; d294 1 a294 1 UNAME_MACHINE=alphaev7 ;; d296 1 a296 1 UNAME_MACHINE=alphaev79 ;; d303 1 a303 1 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz` d376 1 a376 1 SUN_ARCH=i386 d380 1 a380 1 if [ "$CC_FOR_BUILD" != no_compiler_found ]; then d382 1 a382 1 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ d385 1 a385 1 SUN_ARCH=x86_64 d410 1 a410 1 test "x${UNAME_RELEASE}" = x && UNAME_RELEASE=3 d635 2 a636 2 523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0 528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1 d639 3 a641 3 32) HP_ARCH=hppa2.0n ;; 64) HP_ARCH=hppa2.0w ;; '') HP_ARCH=hppa2.0 ;; # HP-UX 10.20 d680 1 a680 1 (CCOPTS="" $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` d684 1 a684 1 if [ ${HP_ARCH} = hppa2.0w ] d697 1 a697 1 if echo __LP64__ | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | d700 1 a700 1 HP_ARCH=hppa2.0w d702 1 a702 1 HP_ARCH=hppa64 d807 2 a808 2 FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz` FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` d813 2 a814 2 FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'` d896 1 a896 1 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC} d919 1 a919 1 if test "$?" = 0 ; then LIBC=gnulibc1 ; fi a964 3 k1om:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; a989 3 mips64el:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; a1021 3 riscv32:Linux:*:* | riscv64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; d1041 1 a1041 1 echo ${UNAME_MACHINE}-pc-linux-${LIBC} d1120 1 a1120 1 # prints for the "djgpp" host, or else GDB configure will decide that a1268 3 SX-ACE:SUPER-UX:*:*) echo sxace-nec-superux${UNAME_RELEASE} exit ;; d1282 1 a1282 1 if [ "$CC_FOR_BUILD" != no_compiler_found ]; then d1284 1 a1284 1 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ d1306 1 a1306 1 if test "$UNAME_PROCESSOR" = x86; then d1337 1 a1337 1 if test "$cputype" = 386; then d1379 1 a1379 1 echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE} | sed -e 's/ .*$//'` a1389 3 amd64:Isilon\ OneFS:*:*) echo x86_64-unknown-onefs exit ;; d1395 3 a1397 3 This script (version $timestamp), has failed to recognize the operating system you are using. If your script is old, overwrite config.guess and config.sub with the latest versions from: d1399 1 a1399 1 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess d1401 1 a1401 1 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub d1403 4 a1406 3 If $0 has already been updated, send the following data and any information you think might be pertinent to config-patches@@gnu.org to provide the necessary information to handle your system. @ 1.1.1.6.2.1 log @Sync with HEAD @ text @d3 1 a3 1 # Copyright 1992-2017 Free Software Foundation, Inc. d5 1 a5 1 timestamp='2017-01-01' d30 1 a30 1 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess d53 1 a53 1 Copyright 1992-2017 Free Software Foundation, Inc. d189 1 a189 1 # to ELF recently (or will in the future) and ABI. d191 1 a191 4 earm*) os=netbsdelf ;; arm*|i386|m68k|ns32k|sh3*|sparc|vax) d224 1 a224 1 release=`echo ${UNAME_RELEASE} | sed -e 's/[-_].*//' | cut -d. -f1,2` a239 4 *:LibertyBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'` echo ${UNAME_MACHINE_ARCH}-unknown-libertybsd${UNAME_RELEASE} exit ;; a251 3 *:Sortix:*:*) echo ${UNAME_MACHINE}-unknown-sortix exit ;; d268 1 a268 1 UNAME_MACHINE=alpha ;; d270 1 a270 1 UNAME_MACHINE=alpha ;; d272 1 a272 1 UNAME_MACHINE=alpha ;; d274 1 a274 1 UNAME_MACHINE=alphaev5 ;; d276 1 a276 1 UNAME_MACHINE=alphaev56 ;; d278 1 a278 1 UNAME_MACHINE=alphapca56 ;; d280 1 a280 1 UNAME_MACHINE=alphapca57 ;; d282 1 a282 1 UNAME_MACHINE=alphaev6 ;; d284 1 a284 1 UNAME_MACHINE=alphaev67 ;; d286 1 a286 1 UNAME_MACHINE=alphaev68 ;; d288 1 a288 1 UNAME_MACHINE=alphaev68 ;; d290 1 a290 1 UNAME_MACHINE=alphaev68 ;; d292 1 a292 1 UNAME_MACHINE=alphaev69 ;; d294 1 a294 1 UNAME_MACHINE=alphaev7 ;; d296 1 a296 1 UNAME_MACHINE=alphaev79 ;; d303 1 a303 1 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz` d376 1 a376 1 SUN_ARCH=i386 d380 1 a380 1 if [ "$CC_FOR_BUILD" != no_compiler_found ]; then d382 1 a382 1 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ d385 1 a385 1 SUN_ARCH=x86_64 d410 1 a410 1 test "x${UNAME_RELEASE}" = x && UNAME_RELEASE=3 d635 2 a636 2 523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0 528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1 d639 3 a641 3 32) HP_ARCH=hppa2.0n ;; 64) HP_ARCH=hppa2.0w ;; '') HP_ARCH=hppa2.0 ;; # HP-UX 10.20 d680 1 a680 1 (CCOPTS="" $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` d684 1 a684 1 if [ ${HP_ARCH} = hppa2.0w ] d697 1 a697 1 if echo __LP64__ | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | d700 1 a700 1 HP_ARCH=hppa2.0w d702 1 a702 1 HP_ARCH=hppa64 d807 2 a808 2 FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz` FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` d813 2 a814 2 FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'` d896 1 a896 1 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC} d919 1 a919 1 if test "$?" = 0 ; then LIBC=gnulibc1 ; fi a964 3 k1om:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; a989 3 mips64el:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; a1021 3 riscv32:Linux:*:* | riscv64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; d1041 1 a1041 1 echo ${UNAME_MACHINE}-pc-linux-${LIBC} d1120 1 a1120 1 # prints for the "djgpp" host, or else GDB configure will decide that a1268 3 SX-ACE:SUPER-UX:*:*) echo sxace-nec-superux${UNAME_RELEASE} exit ;; d1282 1 a1282 1 if [ "$CC_FOR_BUILD" != no_compiler_found ]; then d1284 1 a1284 1 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ d1306 1 a1306 1 if test "$UNAME_PROCESSOR" = x86; then d1337 1 a1337 1 if test "$cputype" = 386; then d1379 1 a1379 1 echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE} | sed -e 's/ .*$//'` a1389 3 amd64:Isilon\ OneFS:*:*) echo x86_64-unknown-onefs exit ;; d1395 3 a1397 3 This script (version $timestamp), has failed to recognize the operating system you are using. If your script is old, overwrite config.guess and config.sub with the latest versions from: d1399 1 a1399 1 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess d1401 1 a1401 1 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub d1403 4 a1406 3 If $0 has already been updated, send the following data and any information you think might be pertinent to config-patches@@gnu.org to provide the necessary information to handle your system. @ 1.1.1.7 log @2017-02-01 Thomas E. Dickey * test/btyacc/expr.oxout.error, test/btyacc/expr.oxout.output, test/btyacc/expr.oxout.tab.c, test/btyacc/expr.oxout.tab.h, test/yacc/expr.oxout.error, test/yacc/expr.oxout.output, test/yacc/expr.oxout.tab.c, test/yacc/expr.oxout.tab.h: RCS_BASE * package/debian/copyright: update copyright * reader.c, defs.h, main.c: avoid using regex.h since some low-end platforms do not have this * test/expr.oxout.y: RCS_BASE * configure: regen * aclocal.m4: quiet a strict gcc warning in CF_MKSTEMP 2017-02-01 Tom.Shields * main.c, reader.c, defs.h: process #line directives, like bison and flex 2017-02-01 Thomas E. Dickey * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: bump 2016-12-31 Thomas E. Dickey * config.guess, config.sub: 2017-01-01 2016-12-02 Thomas E. Dickey * test/btyacc/quote_calc4-s.tab.c, test/btyacc/varsyntax_calc1.tab.c, test/btyacc/error.tab.c, test/btyacc/grammar.tab.c, test/btyacc/inherit0.tab.c, test/btyacc/inherit1.tab.c, test/btyacc/inherit2.tab.c, test/btyacc/ok_syntax1.tab.c, test/btyacc/pure_calc.tab.c, test/btyacc/pure_error.tab.c, test/btyacc/quote_calc-s.tab.c, test/btyacc/quote_calc.tab.c, test/btyacc/quote_calc2-s.tab.c, test/btyacc/quote_calc2.tab.c, test/btyacc/quote_calc3-s.tab.c, test/btyacc/quote_calc3.tab.c, test/btyacc/quote_calc4.tab.c, test/btyacc/calc.tab.c, test/btyacc/calc1.tab.c, test/btyacc/calc2.tab.c, test/btyacc/calc3.tab.c, test/btyacc/code_calc.code.c, test/btyacc/code_error.code.c, test/btyacc/empty.tab.c, test/btyacc/err_inherit3.tab.c, test/btyacc/err_inherit4.tab.c, test/btyacc/err_syntax10.tab.c, test/btyacc/err_syntax11.tab.c, test/btyacc/err_syntax12.tab.c, test/btyacc/err_syntax18.tab.c, test/btyacc/err_syntax20.tab.c, test/btyacc/rename_debug.c, test/btyacc/btyacc_calc1.tab.c, test/btyacc/btyacc_demo.tab.c, test/btyacc/btyacc_destroy1.tab.c, test/btyacc/btyacc_destroy2.tab.c, test/btyacc/btyacc_destroy3.tab.c, btyaccpar.c: regen * btyaccpar.skel: changes from NetBSD + use YYINT rather than short in btyaccpar.skel (some of this had already been done by Tom Shields) + remove some casts of malloc/realloc * yaccpar.c, yaccpar.skel, output.c: changes from NetBSD - Add some more bison stuff to make the mesa/gallium parser work: %initial-action (add missing source struct member in location) %debug (unimplemented) %error-verbose (unimplemented) This changes some existing code: + yylloc is now a pointer, so + the first parameter to YYERROR_DECL() is a pointer + struct YYLTYPE now has a "source" field * test/btyacc/btyacc_demo.tab.h, test/btyacc/code_calc.tab.c, test/btyacc/code_error.tab.c, test/btyacc/err_inherit4.tab.h: regen * btyaccpar.c, btyaccpar.skel, reader.c: changes from NetBSD - Add some more bison stuff to make the mesa/gallium parser work: %initial-action (add missing source struct member in location) %debug (unimplemented) %error-verbose (unimplemented) This changes some existing code: + yylloc is now a pointer, so + the first parameter to YYERROR_DECL() is a pointer + struct YYLTYPE now has a "source" field * reader.c: fix from NetBSD: correct off-by-one when adding a null in copy_param() * reader.c: adapted from NetBSD - Convert *most* error fingerprints to: -unterminated_arglist(int a_lineno, char *a_line, char *a_cptr) +unterminated_arglist(const struct ainfo *a) - Cast new args to unsigned char * defs.h: changes from NetBSD - Add some more bison stuff to make the mesa/gallium parser work: %initial-action (add missing source struct member in location) %debug (unimplemented) %error-verbose (unimplemented) This changes some existing code: + yylloc is now a pointer, so + the first parameter to YYERROR_DECL() is a pointer + struct YYLTYPE now has a "source" field * defs.h: adapted from NetBSD - Convert *most* error fingerprints to: -unterminated_arglist(int a_lineno, char *a_line, char *a_cptr) +unterminated_arglist(const struct ainfo *a) - Cast new args to unsigned char * main.c: changes from NetBSD - Add some more bison stuff to make the mesa/gallium parser work: %initial-action (add missing source struct member in location) %debug (unimplemented) %error-verbose (unimplemented) This changes some existing code: + yylloc is now a pointer, so + the first parameter to YYERROR_DECL() is a pointer + struct YYLTYPE now has a "source" field * error.c: adapted from NetBSD - Convert *most* error fingerprints to: -unterminated_arglist(int a_lineno, char *a_line, char *a_cptr) +unterminated_arglist(const struct ainfo *a) - Cast new args to unsigned char * mstring.c: adapted change from NetBSD to add casts for ctype macros * test/btyacc/btyacc_demo.tab.h, test/btyacc/err_inherit4.tab.h: regen * output.c: reorder to eliminate a forward-reference 2016-12-02 Tom.Shields * output.c: modify output to enable compilation of a lexer generated by flex (using "%option bison-bridge" and "%option bison-locations") to be used with a parser generated by b(t)yacc (using directives "%locations" and "%pure-parser"). 2016-12-02 Thomas E. Dickey * configure: regen * aclocal.m4: Improved autoconf macros CF_CC_ENV_FLAGS + improve split between compiler and options, prompted by report where user had "ccache" before the compiler + leave non-preprocessor options in "$CC" (but still copy them to "$CFLAGS" since that's where they should be) CF_GNU_SOURCE,v + recent glibc (Debian 2.23-4 for example) has misordered ifdef/checks for new symbol _DEFAULT_SOURCE, producing warning messages when only _GNU_SOURCE is defined. Add a followup check to define _DEFAULT_SOURCE. CF_XOPEN_SOURCE + add "uclinux" to list of Linux's (patch by Yann E. Morin) + use _GNU_SOURCE for cygwin headers + build-fixes for OS/2 * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: bump 2016-11-20 Thomas E. Dickey * config.sub: 2016-11-19 * config.guess: 2016-10-02 2016-06-06 Thomas E. Dickey * configure: regen * aclocal.m4: improved autoconf macros: CF_CC_ENV_FLAGS - don't limit the check to -I, -U and -D options, since the added options can include various compiler options before and after preprocessor options. CF_PROG_LINT - add cpplint to programs to use; drop ad hoc tdlint and alint. * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: bump * lalr.c: indented * btyaccpar.c: regen * skel2c: adjust whitespace so that generated skeleton will follow the same format as other code * mkpar.c, verbose.c, lr0.c, reader.c, error.c, output.c: indented * reader.c: fix two compiler warnings * test/btyacc/inherit2.tab.c, test/btyacc/ok_syntax1.tab.c, test/btyacc/pure_calc.tab.c, test/btyacc/pure_error.tab.c, test/btyacc/quote_calc-s.tab.c, test/btyacc/quote_calc.tab.c, test/btyacc/quote_calc2-s.tab.c, test/btyacc/quote_calc2.tab.c, test/btyacc/quote_calc3-s.tab.c, test/btyacc/quote_calc3.tab.c, test/btyacc/quote_calc4-s.tab.c, test/btyacc/quote_calc4.tab.c, test/btyacc/varsyntax_calc1.tab.c, test/btyacc/err_syntax12.tab.c, test/btyacc/err_syntax18.tab.c, test/btyacc/err_syntax20.tab.c, test/btyacc/error.tab.c, test/btyacc/grammar.tab.c, test/btyacc/inherit0.tab.c, test/btyacc/inherit1.tab.c, test/btyacc/btyacc_calc1.tab.c, test/btyacc/btyacc_demo.tab.c, test/btyacc/btyacc_destroy1.tab.c, test/btyacc/btyacc_destroy2.tab.c, test/btyacc/btyacc_destroy3.tab.c, test/btyacc/calc.tab.c, test/btyacc/calc1.tab.c, test/btyacc/calc2.tab.c, test/btyacc/calc3.tab.c, test/btyacc/code_calc.code.c, test/btyacc/code_error.code.c, test/btyacc/empty.tab.c, test/btyacc/err_inherit3.tab.c, test/btyacc/err_inherit4.tab.c, test/btyacc/err_syntax10.tab.c, test/btyacc/err_syntax11.tab.c, test/btyacc/rename_debug.c, btyaccpar.c, test/yacc/quote_calc2-s.tab.c, test/yacc/quote_calc2.tab.c, test/yacc/quote_calc3-s.tab.c, test/yacc/quote_calc3.tab.c, test/yacc/quote_calc4-s.tab.c, test/yacc/quote_calc4.tab.c, test/yacc/varsyntax_calc1.tab.c, test/yacc/err_syntax20.tab.c, test/yacc/error.tab.c, test/yacc/grammar.tab.c, test/yacc/ok_syntax1.tab.c, test/yacc/pure_calc.tab.c, test/yacc/pure_error.tab.c, test/yacc/quote_calc-s.tab.c, test/yacc/quote_calc.tab.c, test/yacc/calc.tab.c, test/yacc/calc1.tab.c, test/yacc/calc2.tab.c, test/yacc/calc3.tab.c, test/yacc/code_calc.code.c, test/yacc/code_error.code.c, test/yacc/empty.tab.c, test/yacc/err_syntax10.tab.c, test/yacc/err_syntax11.tab.c, test/yacc/err_syntax12.tab.c, test/yacc/err_syntax18.tab.c, test/yacc/rename_debug.c, yaccpar.c: regen 2016-06-06 Tom.Shields * btyaccpar.skel, yaccpar.skel: small fix for an edge case of initialized data in Chris Dodd's btyacc changes: "Avoid crash when input pops up an Action error at the first token" 2016-06-01 Thomas E. Dickey * test/yacc/quote_calc2-s.tab.c, test/yacc/quote_calc3-s.tab.c, test/yacc/quote_calc3.tab.c, test/yacc/quote_calc4-s.tab.c, test/yacc/quote_calc4.tab.c, test/yacc/varsyntax_calc1.tab.c, test/yacc/err_syntax18.tab.c, test/yacc/err_syntax20.tab.c, test/yacc/err_syntax24.error, test/yacc/error.tab.c, test/yacc/grammar.tab.c, test/yacc/ok_syntax1.tab.c, test/yacc/pure_calc.tab.c, test/yacc/pure_error.tab.c, test/yacc/quote_calc-s.tab.c, test/yacc/quote_calc.tab.c, test/yacc/quote_calc2.tab.c, test/yacc/calc.tab.c, test/yacc/calc1.tab.c, test/yacc/calc2.tab.c, test/yacc/calc3.tab.c, test/yacc/code_calc.code.c, test/yacc/code_calc.tab.c, test/yacc/code_calc.tab.h, test/yacc/code_error.code.c, test/yacc/empty.tab.c, test/yacc/err_syntax10.tab.c, test/yacc/err_syntax11.tab.c, test/yacc/err_syntax12.tab.c, test/yacc/rename_debug.c, yaccpar.c, test/btyacc/quote_calc-s.tab.c, test/btyacc/quote_calc.tab.c, test/btyacc/quote_calc2-s.tab.c, test/btyacc/quote_calc2.tab.c, test/btyacc/quote_calc3-s.tab.c, test/btyacc/quote_calc3.tab.c, test/btyacc/quote_calc4-s.tab.c, test/btyacc/quote_calc4.tab.c, test/btyacc/varsyntax_calc1.tab.c, test/btyacc/err_syntax13.tab.c, test/btyacc/err_syntax14.tab.c, test/btyacc/err_syntax15.tab.c, test/btyacc/err_syntax16.tab.c, test/btyacc/err_syntax17.tab.c, test/btyacc/err_syntax18.tab.c, test/btyacc/err_syntax19.tab.c, test/btyacc/err_syntax2.tab.c, test/btyacc/err_syntax20.tab.c, test/btyacc/err_syntax21.tab.c, test/btyacc/err_syntax22.tab.c, test/btyacc/err_syntax23.tab.c, test/btyacc/err_syntax24.error, test/btyacc/err_syntax24.tab.c, test/btyacc/err_syntax25.tab.c, test/btyacc/err_syntax26.tab.c, test/btyacc/err_syntax27.tab.c, test/btyacc/err_syntax3.tab.c, test/btyacc/err_syntax4.tab.c, test/btyacc/err_syntax5.tab.c, test/btyacc/err_syntax6.tab.c, test/btyacc/err_syntax7.tab.c, test/btyacc/err_syntax7a.tab.c, test/btyacc/err_syntax7b.tab.c, test/btyacc/err_syntax8.tab.c, test/btyacc/err_syntax8a.tab.c, test/btyacc/err_syntax9.tab.c, test/btyacc/error.tab.c, test/btyacc/grammar.tab.c, test/btyacc/inherit0.tab.c, test/btyacc/inherit1.tab.c, test/btyacc/inherit2.output, test/btyacc/inherit2.tab.c, test/btyacc/ok_syntax1.tab.c, test/btyacc/pure_calc.tab.c, test/btyacc/pure_error.tab.c, test/btyacc/btyacc_calc1.tab.c, test/btyacc/btyacc_demo.error, test/btyacc/btyacc_demo.output, test/btyacc/btyacc_demo.tab.c, test/btyacc/btyacc_destroy1.tab.c, test/btyacc/btyacc_destroy2.tab.c, test/btyacc/btyacc_destroy3.tab.c, test/btyacc/calc.tab.c, test/btyacc/calc1.tab.c, test/btyacc/calc2.tab.c, test/btyacc/calc3.tab.c, test/btyacc/code_calc.code.c, test/btyacc/code_calc.tab.c, test/btyacc/code_calc.tab.h, test/btyacc/code_error.code.c, test/btyacc/empty.tab.c, test/btyacc/err_inherit1.tab.c, test/btyacc/err_inherit2.tab.c, test/btyacc/err_inherit3.output, test/btyacc/err_inherit3.tab.c, test/btyacc/err_inherit4.output, test/btyacc/err_inherit4.tab.c, test/btyacc/err_inherit5.tab.c, test/btyacc/err_syntax1.tab.c, test/btyacc/err_syntax10.tab.c, test/btyacc/err_syntax11.tab.c, test/btyacc/err_syntax12.tab.c, test/btyacc/rename_debug.c, btyaccpar.c: regen 2016-06-01 Tom.Shields * btyaccpar.skel, defs.h, error.c, output.c, reader.c, test/code_calc.y, test/err_inherit4.y, test/run_make.sh, yaccpar.skel: fixes for issues in btyacc (report by Francis Andre): + correction to the placement of the #line directive for a %union specification + recovery of a set of casts originally added into btyaccpar.c rather than into btyaccpar.skel, and so are lost whenever building from scratch + Chris Dodd's btyacc improved handling of inherited attributes to eliminate implicit empty copy rules that are not necessary, and thereby avoiding the introduction of extra parsing ambiguity + Chris Dodd's added support for @@-N syntax to reference inherited position information + correction to bad interaction between %token-table and YYDEBUG, where YYDEBUG was required to be defined in order to compile the generated code + correction to yyname[] access in code included with YYDEBUG defined for single character symbols not recognized (e.g., input containing '&' character where grammar doesn't define that as a symbol) - map to existing "illegal-symbol" entry in byname[] + fixes to test/run_make.sh: skip test-err_* files; in the bison test phase skip additional files that contain features not supported by bison and inhibit new bison warning messages + minor changes to btyaccpar.skel & yaccpar.skel so they are more similar in their commonality; makes it easier to maintain the pair of files using vimdiff + changes to a couple of test cases for coverage of #3, #4 and #5 above 2016-06-01 Thomas E. Dickey * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: bump 2016-03-24 Thomas E. Dickey * reader.c: unused variable * package/pkgsrc/Makefile, package/debian/copyright: bump 2016-03-24 Jung-uk.Kim * main.c: correct logic for finding output suffix in the "-o" option, which matched the first occurrence of ".c" in the name in 2005-08-13 changes rather than at the end of the filename (patch by Jung-uk Kim) 2016-03-24 Thomas E. Dickey * aclocal.m4: update CF_WITH_MAN2HTML to use configured shell rather than /bin/sh * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: bump 2016-01-25 Thomas E. Dickey * config.guess, config.sub: 2016-01-01 @ text @d3 1 a3 1 # Copyright 1992-2017 Free Software Foundation, Inc. d5 1 a5 1 timestamp='2017-01-01' d30 1 a30 1 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess d53 1 a53 1 Copyright 1992-2017 Free Software Foundation, Inc. d189 1 a189 1 # to ELF recently (or will in the future) and ABI. d191 1 a191 4 earm*) os=netbsdelf ;; arm*|i386|m68k|ns32k|sh3*|sparc|vax) d224 1 a224 1 release=`echo ${UNAME_RELEASE} | sed -e 's/[-_].*//' | cut -d. -f1,2` a239 4 *:LibertyBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'` echo ${UNAME_MACHINE_ARCH}-unknown-libertybsd${UNAME_RELEASE} exit ;; a251 3 *:Sortix:*:*) echo ${UNAME_MACHINE}-unknown-sortix exit ;; d268 1 a268 1 UNAME_MACHINE=alpha ;; d270 1 a270 1 UNAME_MACHINE=alpha ;; d272 1 a272 1 UNAME_MACHINE=alpha ;; d274 1 a274 1 UNAME_MACHINE=alphaev5 ;; d276 1 a276 1 UNAME_MACHINE=alphaev56 ;; d278 1 a278 1 UNAME_MACHINE=alphapca56 ;; d280 1 a280 1 UNAME_MACHINE=alphapca57 ;; d282 1 a282 1 UNAME_MACHINE=alphaev6 ;; d284 1 a284 1 UNAME_MACHINE=alphaev67 ;; d286 1 a286 1 UNAME_MACHINE=alphaev68 ;; d288 1 a288 1 UNAME_MACHINE=alphaev68 ;; d290 1 a290 1 UNAME_MACHINE=alphaev68 ;; d292 1 a292 1 UNAME_MACHINE=alphaev69 ;; d294 1 a294 1 UNAME_MACHINE=alphaev7 ;; d296 1 a296 1 UNAME_MACHINE=alphaev79 ;; d303 1 a303 1 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz` d376 1 a376 1 SUN_ARCH=i386 d380 1 a380 1 if [ "$CC_FOR_BUILD" != no_compiler_found ]; then d382 1 a382 1 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ d385 1 a385 1 SUN_ARCH=x86_64 d410 1 a410 1 test "x${UNAME_RELEASE}" = x && UNAME_RELEASE=3 d635 2 a636 2 523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0 528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1 d639 3 a641 3 32) HP_ARCH=hppa2.0n ;; 64) HP_ARCH=hppa2.0w ;; '') HP_ARCH=hppa2.0 ;; # HP-UX 10.20 d680 1 a680 1 (CCOPTS="" $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` d684 1 a684 1 if [ ${HP_ARCH} = hppa2.0w ] d697 1 a697 1 if echo __LP64__ | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | d700 1 a700 1 HP_ARCH=hppa2.0w d702 1 a702 1 HP_ARCH=hppa64 d807 2 a808 2 FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz` FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` d813 2 a814 2 FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'` d896 1 a896 1 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC} d919 1 a919 1 if test "$?" = 0 ; then LIBC=gnulibc1 ; fi a964 3 k1om:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; a989 3 mips64el:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; a1021 3 riscv32:Linux:*:* | riscv64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; d1041 1 a1041 1 echo ${UNAME_MACHINE}-pc-linux-${LIBC} d1120 1 a1120 1 # prints for the "djgpp" host, or else GDB configure will decide that a1268 3 SX-ACE:SUPER-UX:*:*) echo sxace-nec-superux${UNAME_RELEASE} exit ;; d1282 1 a1282 1 if [ "$CC_FOR_BUILD" != no_compiler_found ]; then d1284 1 a1284 1 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ d1306 1 a1306 1 if test "$UNAME_PROCESSOR" = x86; then d1337 1 a1337 1 if test "$cputype" = 386; then d1379 1 a1379 1 echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE} | sed -e 's/ .*$//'` a1389 3 amd64:Isilon\ OneFS:*:*) echo x86_64-unknown-onefs exit ;; d1395 3 a1397 3 This script (version $timestamp), has failed to recognize the operating system you are using. If your script is old, overwrite config.guess and config.sub with the latest versions from: d1399 1 a1399 1 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess d1401 1 a1401 1 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub d1403 4 a1406 3 If $0 has already been updated, send the following data and any information you think might be pertinent to config-patches@@gnu.org to provide the necessary information to handle your system. @ 1.1.1.8 log @Import byacc 20170430 @ text @d5 1 a5 1 timestamp='2017-03-05' d840 3 a842 3 UNAME_PROCESSOR=x86_64 ;; i386) UNAME_PROCESSOR=i586 ;; a843 1 echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` a1345 3 NSX-?:NONSTOP_KERNEL:*:*) echo nsx-tandem-nsk${UNAME_RELEASE} exit ;; @ 1.1.1.9 log @2018-06-09 Thomas E. Dickey * yacc.1: minor typographical fixes * test/btyacc/err_syntax20.tab.c, test/btyacc/error.tab.c, test/btyacc/expr.oxout.tab.c, test/btyacc/grammar.tab.c, test/btyacc/inherit0.tab.c, test/btyacc/inherit1.tab.c, test/btyacc/inherit2.tab.c, test/btyacc/ok_syntax1.tab.c, test/btyacc/pure_calc.tab.c, test/btyacc/pure_error.tab.c, test/btyacc/quote_calc-s.tab.c, test/btyacc/quote_calc.tab.c, test/btyacc/quote_calc2-s.tab.c, test/btyacc/quote_calc2.tab.c, test/btyacc/quote_calc3-s.tab.c, test/btyacc/quote_calc3.tab.c, test/btyacc/quote_calc4-s.tab.c, test/btyacc/quote_calc4.tab.c, test/btyacc/varsyntax_calc1.tab.c, test/btyacc/btyacc_calc1.tab.c, test/btyacc/btyacc_demo.tab.c, test/btyacc/btyacc_destroy1.tab.c, test/btyacc/btyacc_destroy2.tab.c, test/btyacc/btyacc_destroy3.tab.c, test/btyacc/calc.tab.c, test/btyacc/calc1.tab.c, test/btyacc/calc2.tab.c, test/btyacc/calc3.tab.c, test/btyacc/code_calc.code.c, test/btyacc/code_error.code.c, test/btyacc/empty.tab.c, test/btyacc/err_inherit3.tab.c, test/btyacc/err_inherit4.tab.c, test/btyacc/err_syntax10.tab.c, test/btyacc/err_syntax11.tab.c, test/btyacc/err_syntax12.tab.c, test/btyacc/err_syntax18.tab.c, test/btyacc/rename_debug.c, btyaccpar.c: regen * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: bump 2018-06-09 Tom.Shields * btyaccpar.skel: add casts to fix g++ (clang++) compile errors in the backtracking skeleton due to assignment of ‘void *’ to another pointer type. 2018-05-25 Thomas E. Dickey * test/run_make.sh: check if this is bison 3+ before adding options to suppress warnings * package/byacc.spec: build-fix for Mageia 6 * package/byacc.spec: add btyacc package * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: bump * package/debian/control: add a package for btyacc * package/debian/rules: generate a package for btyacc 2018-05-24 Thomas E. Dickey * test/btyacc/pure_calc.tab.c, test/btyacc/pure_error.tab.c, test/btyacc/quote_calc-s.tab.c, test/btyacc/quote_calc.tab.c, test/btyacc/quote_calc2-s.tab.c, test/btyacc/quote_calc2.tab.c, test/btyacc/quote_calc3-s.tab.c, test/btyacc/quote_calc3.tab.c, test/btyacc/quote_calc4-s.tab.c, test/btyacc/quote_calc4.tab.c, test/btyacc/varsyntax_calc1.tab.c, test/btyacc/code_error.code.c, test/btyacc/empty.tab.c, test/btyacc/err_inherit3.tab.c, test/btyacc/err_inherit4.tab.c, test/btyacc/err_syntax10.tab.c, test/btyacc/err_syntax11.tab.c, test/btyacc/err_syntax12.tab.c, test/btyacc/err_syntax18.tab.c, test/btyacc/err_syntax20.tab.c, test/btyacc/error.tab.c, test/btyacc/expr.oxout.tab.c, test/btyacc/grammar.tab.c, test/btyacc/inherit0.tab.c, test/btyacc/inherit1.tab.c, test/btyacc/inherit2.tab.c, test/btyacc/ok_syntax1.tab.c, btyaccpar.c, test/btyacc/btyacc_calc1.tab.c, test/btyacc/btyacc_demo.tab.c, test/btyacc/btyacc_destroy1.tab.c, test/btyacc/btyacc_destroy2.tab.c, test/btyacc/btyacc_destroy3.tab.c, test/btyacc/calc.tab.c, test/btyacc/calc1.tab.c, test/btyacc/calc2.tab.c, test/btyacc/calc3.tab.c, test/btyacc/code_calc.code.c, test/btyacc/rename_debug.c: regen * btyaccpar.skel: fix typo 2018-05-21 Thomas E. Dickey * test/run_make.sh: ignore case for "%" directives to skip with old-yacc, and add %token-table to the list * btyaccpar.c: regen 2018-05-21 Christos.Zoulas * btyaccpar.skel: improve compatibility with bison by changing the YYLLOC_DEFAULT macro to use YYRHSLOC() macro, and adjusting the array indices of yyerror_loc_range[] for consistency. 2018-05-10 Thomas E. Dickey * output.c: add a fallback definition for YYDEBUG to the -i externs file. * test/btyacc/rename_debug.i, test/yacc/rename_debug.i: regen * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: bump 2018-05-09 Thomas E. Dickey * configure: regen * aclocal.m4: resync with my-autoconf * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: bump * test/btyacc/rename_debug.i, btyaccpar.c, test/btyacc/btyacc_calc1.tab.c, test/btyacc/btyacc_demo.tab.c, test/btyacc/btyacc_destroy1.tab.c, test/btyacc/btyacc_destroy2.tab.c, test/btyacc/btyacc_destroy3.tab.c, test/btyacc/calc.tab.c, test/btyacc/calc1.tab.c, test/btyacc/calc2.tab.c, test/btyacc/calc3.tab.c, test/btyacc/code_calc.code.c, test/btyacc/code_error.code.c, test/btyacc/empty.tab.c, test/btyacc/err_inherit3.tab.c, test/btyacc/err_inherit4.tab.c, test/btyacc/err_syntax10.tab.c, test/btyacc/err_syntax11.tab.c, test/btyacc/err_syntax12.tab.c, test/btyacc/err_syntax18.tab.c, test/btyacc/err_syntax20.tab.c, test/btyacc/error.tab.c, test/btyacc/expr.oxout.tab.c, test/btyacc/grammar.tab.c, test/btyacc/inherit0.tab.c, test/btyacc/inherit1.tab.c, test/btyacc/inherit2.tab.c, test/btyacc/ok_syntax1.tab.c, test/btyacc/pure_calc.tab.c, test/btyacc/pure_error.tab.c, test/btyacc/quote_calc-s.tab.c, test/btyacc/quote_calc.tab.c, test/btyacc/quote_calc2-s.tab.c, test/btyacc/quote_calc2.tab.c, test/btyacc/quote_calc3-s.tab.c, test/btyacc/quote_calc3.tab.c, test/btyacc/quote_calc4-s.tab.c, test/btyacc/quote_calc4.tab.c, test/btyacc/rename_debug.c, test/btyacc/varsyntax_calc1.tab.c: regen * btyaccpar.skel: apply Guy Harris' changes here as well * test/btyacc/rename_debug.i, test/yacc/rename_debug.i: regen * output.c: correct/improve fallback prototype for yylex() * test/btyacc/rename_debug.i, test/yacc/rename_debug.i: regen 2018-05-08 Thomas E. Dickey * test/btyacc/grammar.tab.c, test/yacc/grammar.tab.c: regen * test/grammar.y: quiet some warnings from gcc 7 when doing "make check_make" * package/debian/watch, package/pkgsrc/Makefile: update ftp-url * test/btyacc/ok_syntax1.tab.h, test/btyacc/btyacc_calc1.tab.h: regen * output.c: provide yylex() declaration for simple case (request by "Mutiny") * test/yacc/err_syntax20.tab.c, test/yacc/error.tab.c, test/yacc/expr.oxout.tab.c, test/yacc/grammar.tab.c, test/yacc/ok_syntax1.tab.c, test/yacc/ok_syntax1.tab.h, test/yacc/pure_calc.tab.c, test/yacc/pure_error.tab.c, test/yacc/quote_calc-s.tab.c, test/yacc/quote_calc.tab.c, test/yacc/quote_calc2-s.tab.c, test/yacc/quote_calc2.tab.c, test/yacc/quote_calc3-s.tab.c, test/yacc/quote_calc3.tab.c, test/yacc/quote_calc4-s.tab.c, test/yacc/quote_calc4.tab.c, test/yacc/varsyntax_calc1.tab.c, test/yacc/calc.tab.c, test/yacc/calc1.tab.c, test/yacc/calc2.tab.c, test/yacc/calc3.tab.c, test/yacc/code_calc.code.c, test/yacc/code_error.code.c, test/yacc/empty.tab.c, test/yacc/err_syntax10.tab.c, test/yacc/err_syntax11.tab.c, test/yacc/err_syntax12.tab.c, test/yacc/err_syntax18.tab.c, test/yacc/rename_debug.c, test/yacc/rename_debug.i, yaccpar.c: regen * VERSION, package/byacc.spec, package/debian/changelog, package/debian/copyright, package/mingw-byacc.spec, package/pkgsrc/Makefile: bump 2018-05-06 Guy.Harris * yaccpar.skel: two fixes: 1) define yydebug only if YYDEBUG is defined and 2) make yynerrs a parser-local variable if the parser is reentrant. 2018-02-24 Guy.Harris * output.c: do not emit "extern YYSTYPE yylval;" for pure parsers 2018-02-05 Thomas E. Dickey * config.sub: 2018-01-15 * config.guess: 2018-01-26 2017-12-04 erik.b.andersen * main.c: A proper path for temporary files is needed by byacc under Windows commandline, otherwise there's a risk of empty files. The TEMP environment variable is always defined in Windows. * defs.h: The noreturn attribute needs to be specified before function to be portable among compilers (gcc, clang, msvc). 2017-12-04 Thomas E. Dickey * reader.c: adapted fix by Erik B: a) increase the length of name[] to account for a trailing null b) note that calling syntax_error() from get_number() does not return 2017-09-14 Tom.Shields * yacc.1: fix typo 2017-07-09 Thomas E. Dickey * package/byacc.spec, package/mingw-byacc.spec: use predefined "configure" * reader.c: remove unused assignment * package/debian/rules: use dpkg-buildflags * configure: regen * aclocal.m4: resync with my-autoconf * reader.c, output.c, defs.h: add/use IS_NAME1() and IS_NAME2() to reduce clutter * reader.c, output.c, defs.h: guard against sign-extension in ctype-macros * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: bump * reader.c: check for numeric overflow in get_number() * reader.c: correct limit-checks for input filename and line-number, in case no valid filename and/or number was found. @ text @d3 1 a3 1 # Copyright 1992-2018 Free Software Foundation, Inc. d5 1 a5 1 timestamp='2018-01-26' d18 1 a18 1 # along with this program; if not, see . d30 1 a30 1 # https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess d42 1 a42 1 Options: d53 1 a53 1 Copyright 1992-2018 Free Software Foundation, Inc. d110 1 a110 1 ,,) echo "int x;" > "$dummy.c" ; d112 1 a112 1 if ($c -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then d135 1 a135 1 case "$UNAME_SYSTEM" in d141 2 a142 2 eval "$set_cc_for_build" cat <<-EOF > "$dummy.c" d152 1 a152 8 eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`" # If ldd exists, use it to detect musl libc. if command -v ldd >/dev/null && \ ldd --version 2>&1 | grep -q ^musl then LIBC=musl fi d158 1 a158 1 case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in d172 2 a173 2 "/sbin/$sysctl" 2>/dev/null || \ "/usr/sbin/$sysctl" 2>/dev/null || \ d175 1 a175 1 case "$UNAME_MACHINE_ARCH" in d182 3 a184 3 arch=`echo "$UNAME_MACHINE_ARCH" | sed -e 's,^e\(armv[0-9]\).*$,\1,'` endian=`echo "$UNAME_MACHINE_ARCH" | sed -ne 's,^.*\(eb\)$,\1,p'` machine="${arch}${endian}"-unknown d186 1 a186 1 *) machine="$UNAME_MACHINE_ARCH"-unknown ;; d190 1 a190 1 case "$UNAME_MACHINE_ARCH" in d195 1 a195 1 eval "$set_cc_for_build" d211 1 a211 1 case "$UNAME_MACHINE_ARCH" in d214 1 a214 1 abi=`echo "$UNAME_MACHINE_ARCH" | sed -e "$expr"` d222 1 a222 1 case "$UNAME_VERSION" in d227 1 a227 1 release=`echo "$UNAME_RELEASE" | sed -e 's/[-_].*//' | cut -d. -f1,2` d233 1 a233 1 echo "$machine-${os}${release}${abi}" d237 1 a237 1 echo "$UNAME_MACHINE_ARCH"-unknown-bitrig"$UNAME_RELEASE" d241 1 a241 1 echo "$UNAME_MACHINE_ARCH"-unknown-openbsd"$UNAME_RELEASE" d245 1 a245 4 echo "$UNAME_MACHINE_ARCH"-unknown-libertybsd"$UNAME_RELEASE" exit ;; *:MidnightBSD:*:*) echo "$UNAME_MACHINE"-unknown-midnightbsd"$UNAME_RELEASE" d248 1 a248 1 echo "$UNAME_MACHINE"-unknown-ekkobsd"$UNAME_RELEASE" d251 1 a251 1 echo "$UNAME_MACHINE"-unknown-solidbsd"$UNAME_RELEASE" d254 1 a254 1 echo powerpc-unknown-mirbsd"$UNAME_RELEASE" d257 1 a257 1 echo "$UNAME_MACHINE"-unknown-mirbsd"$UNAME_RELEASE" d260 1 a260 4 echo "$UNAME_MACHINE"-unknown-sortix exit ;; *:Redox:*:*) echo "$UNAME_MACHINE"-unknown-redox a261 3 mips:OSF1:*.*) echo mips-dec-osf1 exit ;; d313 1 a313 1 echo "$UNAME_MACHINE"-dec-osf"`echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`" d318 9 d331 1 a331 1 echo "$UNAME_MACHINE"-unknown-amigaos d334 1 a334 1 echo "$UNAME_MACHINE"-unknown-morphos d346 1 a346 1 echo arm-acorn-riscix"$UNAME_RELEASE" d373 1 a373 1 echo "$UNAME_MACHINE"-ibm-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`" d376 1 a376 1 echo sparc-hal-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" d379 1 a379 1 echo sparc-sun-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`" d382 1 a382 1 echo i386-pc-auroraux"$UNAME_RELEASE" d385 1 a385 1 eval "$set_cc_for_build" d398 1 a398 1 echo "$SUN_ARCH"-pc-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" d404 1 a404 1 echo sparc-sun-solaris3"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" d413 1 a413 1 echo sparc-sun-sunos"`echo "$UNAME_RELEASE"|sed -e 's/-/_/'`" d416 1 a416 1 echo m68k-sun-sunos"$UNAME_RELEASE" d420 1 a420 1 test "x$UNAME_RELEASE" = x && UNAME_RELEASE=3 d423 1 a423 1 echo m68k-sun-sunos"$UNAME_RELEASE" d426 1 a426 1 echo sparc-sun-sunos"$UNAME_RELEASE" d431 1 a431 1 echo sparc-auspex-sunos"$UNAME_RELEASE" d442 1 a442 1 echo m68k-atari-mint"$UNAME_RELEASE" d445 1 a445 1 echo m68k-atari-mint"$UNAME_RELEASE" d448 1 a448 1 echo m68k-atari-mint"$UNAME_RELEASE" d451 1 a451 1 echo m68k-milan-mint"$UNAME_RELEASE" d454 1 a454 1 echo m68k-hades-mint"$UNAME_RELEASE" d457 1 a457 1 echo m68k-unknown-mint"$UNAME_RELEASE" d460 1 a460 1 echo m68k-apple-machten"$UNAME_RELEASE" d463 1 a463 1 echo powerpc-apple-machten"$UNAME_RELEASE" d469 1 a469 1 echo mips-dec-ultrix"$UNAME_RELEASE" d472 1 a472 1 echo vax-dec-ultrix"$UNAME_RELEASE" d475 1 a475 1 echo clipper-intergraph-clix"$UNAME_RELEASE" d478 2 a479 2 eval "$set_cc_for_build" sed 's/^ //' << EOF > "$dummy.c" d488 1 a488 1 printf ("mips-mips-riscos%ssysv\\n", argv[1]); exit (0); d491 1 a491 1 printf ("mips-mips-riscos%ssvr4\\n", argv[1]); exit (0); d494 1 a494 1 printf ("mips-mips-riscos%sbsd\\n", argv[1]); exit (0); d500 3 a502 3 $CC_FOR_BUILD -o "$dummy" "$dummy.c" && dummyarg=`echo "$UNAME_RELEASE" | sed -n 's/\([0-9]*\).*/\1/p'` && SYSTEM_NAME=`"$dummy" "$dummyarg"` && d504 1 a504 1 echo mips-mips-riscos"$UNAME_RELEASE" d530 1 a530 1 if [ "$UNAME_PROCESSOR" = mc88100 ] || [ "$UNAME_PROCESSOR" = mc88110 ] d532 2 a533 2 if [ "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx ] || \ [ "$TARGET_BINARY_INTERFACE"x = x ] d535 1 a535 1 echo m88k-dg-dgux"$UNAME_RELEASE" d537 1 a537 1 echo m88k-dg-dguxbcs"$UNAME_RELEASE" d540 1 a540 1 echo i586-dg-dgux"$UNAME_RELEASE" d557 1 a557 1 echo mips-sgi-irix"`echo "$UNAME_RELEASE"|sed -e 's/-/_/g'`" d569 1 a569 1 IBM_REV="$UNAME_VERSION.$UNAME_RELEASE" d571 1 a571 1 echo "$UNAME_MACHINE"-ibm-aix"$IBM_REV" d575 2 a576 2 eval "$set_cc_for_build" sed 's/^ //' << EOF > "$dummy.c" d587 1 a587 1 if $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` d601 1 a601 1 if /usr/sbin/lsattr -El "$IBM_CPU_ID" | grep ' POWER' >/dev/null 2>&1; then d610 1 a610 1 IBM_REV="$UNAME_VERSION.$UNAME_RELEASE" d612 1 a612 1 echo "$IBM_ARCH"-ibm-aix"$IBM_REV" d617 1 a617 1 ibmrt:4.4BSD:*|romp-ibm:4.4BSD:*) d621 1 a621 1 echo romp-ibm-bsd"$UNAME_RELEASE" # 4.3 with uname added to d636 4 a639 4 HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'` case "$UNAME_MACHINE" in 9000/31?) HP_ARCH=m68000 ;; 9000/[34]??) HP_ARCH=m68k ;; d644 1 a644 1 case "$sc_cpu_version" in d648 1 a648 1 case "$sc_kernel_bits" in d655 3 a657 3 if [ "$HP_ARCH" = "" ]; then eval "$set_cc_for_build" sed 's/^ //' << EOF > "$dummy.c" d690 1 a690 1 (CCOPTS="" $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null) && HP_ARCH=`"$dummy"` d694 1 a694 1 if [ "$HP_ARCH" = hppa2.0w ] d696 1 a696 1 eval "$set_cc_for_build" d715 1 a715 1 echo "$HP_ARCH"-hp-hpux"$HPUX_REV" d718 2 a719 2 HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'` echo ia64-hp-hpux"$HPUX_REV" d722 2 a723 2 eval "$set_cc_for_build" sed 's/^ //' << EOF > "$dummy.c" d748 1 a748 1 $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` && d752 1 a752 1 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:*) d761 1 a761 1 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:*) d769 1 a769 1 echo "$UNAME_MACHINE"-unknown-osf1mk d771 1 a771 1 echo "$UNAME_MACHINE"-unknown-osf1 d796 1 a796 1 echo ymp-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' d799 1 a799 1 echo "$UNAME_MACHINE"-cray-unicos"$UNAME_RELEASE" \ d805 1 a805 1 echo t90-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' d808 1 a808 1 echo alphaev5-cray-unicosmk"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' d811 1 a811 1 echo sv1-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' d814 1 a814 1 echo craynv-cray-unicosmp"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' d819 1 a819 1 FUJITSU_REL=`echo "$UNAME_RELEASE" | sed -e 's/ /_/'` d824 1 a824 1 FUJITSU_REL=`echo "$UNAME_RELEASE" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'` d828 1 a828 1 echo "$UNAME_MACHINE"-pc-bsdi"$UNAME_RELEASE" d831 1 a831 1 echo sparc-unknown-bsdi"$UNAME_RELEASE" d834 1 a834 1 echo "$UNAME_MACHINE"-unknown-bsdi"$UNAME_RELEASE" d838 1 a838 1 case "$UNAME_PROCESSOR" in d844 1 a844 1 echo "$UNAME_PROCESSOR"-unknown-freebsd"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`" d847 1 a847 1 echo "$UNAME_MACHINE"-pc-cygwin d850 1 a850 1 echo "$UNAME_MACHINE"-pc-mingw64 d853 1 a853 1 echo "$UNAME_MACHINE"-pc-mingw32 d856 5 a860 1 echo "$UNAME_MACHINE"-pc-msys d863 1 a863 1 echo "$UNAME_MACHINE"-pc-pw32 d866 1 a866 1 case "$UNAME_MACHINE" in d868 1 a868 1 echo i586-pc-interix"$UNAME_RELEASE" d871 1 a871 1 echo x86_64-unknown-interix"$UNAME_RELEASE" d874 1 a874 1 echo ia64-unknown-interix"$UNAME_RELEASE" d877 12 d890 1 a890 1 echo "$UNAME_MACHINE"-pc-uwin d895 3 d899 1 a899 1 echo powerpcle-unknown-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" d903 1 a903 1 echo "`echo "$UNAME_MACHINE"|sed -e 's,[-/].*$,,'`-unknown-$LIBC`echo "$UNAME_RELEASE"|sed -e 's,/.*$,,'`" d907 1 a907 1 echo "$UNAME_MACHINE-unknown-`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`-$LIBC" d910 1 a910 1 echo "$UNAME_MACHINE"-pc-minix d913 1 a913 1 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" d917 1 a917 1 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" d931 1 a931 1 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" d934 1 a934 1 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" d937 1 a937 1 eval "$set_cc_for_build" d941 1 a941 1 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" d946 1 a946 1 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabi d948 1 a948 1 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabihf d953 1 a953 1 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" d956 1 a956 1 echo "$UNAME_MACHINE"-axis-linux-"$LIBC" d959 1 a959 1 echo "$UNAME_MACHINE"-axis-linux-"$LIBC" d962 1 a962 1 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" d965 1 a965 1 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" d968 1 a968 1 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" d971 1 a971 1 echo "$UNAME_MACHINE"-pc-linux-"$LIBC" d974 1 a974 1 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" d977 1 a977 1 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" d980 1 a980 1 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" d983 1 a983 1 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" d986 2 a987 2 eval "$set_cc_for_build" sed 's/^ //' << EOF > "$dummy.c" d1001 2 a1002 2 eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU'`" test "x$CPU" != x && { echo "$CPU-unknown-linux-$LIBC"; exit; } d1005 1 a1005 1 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" d1008 1 a1008 1 echo or1k-unknown-linux-"$LIBC" d1011 1 a1011 1 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" d1014 1 a1014 1 echo sparc-unknown-linux-"$LIBC" d1017 1 a1017 1 echo hppa64-unknown-linux-"$LIBC" d1022 3 a1024 3 PA7*) echo hppa1.1-unknown-linux-"$LIBC" ;; PA8*) echo hppa2.0-unknown-linux-"$LIBC" ;; *) echo hppa-unknown-linux-"$LIBC" ;; d1028 1 a1028 1 echo powerpc64-unknown-linux-"$LIBC" d1031 1 a1031 1 echo powerpc-unknown-linux-"$LIBC" d1034 1 a1034 1 echo powerpc64le-unknown-linux-"$LIBC" d1037 1 a1037 1 echo powerpcle-unknown-linux-"$LIBC" d1040 1 a1040 1 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" d1043 1 a1043 1 echo "$UNAME_MACHINE"-ibm-linux-"$LIBC" d1046 1 a1046 1 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" d1049 1 a1049 1 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" d1052 1 a1052 1 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" d1055 1 a1055 1 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" d1058 1 a1058 1 echo "$UNAME_MACHINE"-dec-linux-"$LIBC" d1061 1 a1061 1 echo "$UNAME_MACHINE"-pc-linux-"$LIBC" d1064 1 a1064 1 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" d1078 1 a1078 1 echo "$UNAME_MACHINE"-pc-sysv4.2uw"$UNAME_VERSION" d1083 1 a1083 1 echo "$UNAME_MACHINE"-pc-os2-emx d1086 1 a1086 1 echo "$UNAME_MACHINE"-unknown-stop d1089 1 a1089 1 echo "$UNAME_MACHINE"-unknown-atheos d1092 1 a1092 1 echo "$UNAME_MACHINE"-pc-syllable d1095 1 a1095 1 echo i386-unknown-lynxos"$UNAME_RELEASE" d1098 1 a1098 1 echo "$UNAME_MACHINE"-pc-msdosdjgpp d1100 2 a1101 2 i*86:*:4.*:*) UNAME_REL=`echo "$UNAME_RELEASE" | sed 's/\/MP$//'` d1103 1 a1103 1 echo "$UNAME_MACHINE"-univel-sysv"$UNAME_REL" d1105 1 a1105 1 echo "$UNAME_MACHINE"-pc-sysv"$UNAME_REL" d1115 1 a1115 1 echo "$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}{$UNAME_VERSION}" d1120 1 a1120 1 echo "$UNAME_MACHINE"-pc-isc"$UNAME_REL" d1130 1 a1130 1 echo "$UNAME_MACHINE"-pc-sco"$UNAME_REL" d1132 1 a1132 1 echo "$UNAME_MACHINE"-pc-sysv32 d1152 1 a1152 1 echo i860-stardent-sysv"$UNAME_RELEASE" # Stardent Vistra i860-SVR4 d1154 1 a1154 1 echo i860-unknown-sysv"$UNAME_RELEASE" # Unknown i860-SVR4 d1174 1 a1174 1 && { echo i486-ncr-sysv4.3"$OS_REL"; exit; } d1176 1 a1176 1 && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;; d1185 1 a1185 1 && { echo i486-ncr-sysv4.3"$OS_REL"; exit; } d1187 1 a1187 1 && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } d1189 1 a1189 1 && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;; d1191 1 a1191 1 echo m68k-unknown-lynxos"$UNAME_RELEASE" d1197 1 a1197 1 echo sparc-unknown-lynxos"$UNAME_RELEASE" d1200 1 a1200 1 echo rs6000-unknown-lynxos"$UNAME_RELEASE" d1203 1 a1203 1 echo powerpc-unknown-lynxos"$UNAME_RELEASE" d1206 1 a1206 1 echo mips-dde-sysv"$UNAME_RELEASE" d1217 1 a1217 1 echo "$UNAME_MACHINE"-sni-sysv4 d1237 1 a1237 1 echo "$UNAME_MACHINE"-stratus-vos d1244 1 a1244 1 echo m68k-apple-aux"$UNAME_RELEASE" d1251 1 a1251 1 echo mips-nec-sysv"$UNAME_RELEASE" d1253 1 a1253 1 echo mips-unknown-sysv"$UNAME_RELEASE" d1272 1 a1272 1 echo sx4-nec-superux"$UNAME_RELEASE" d1275 1 a1275 1 echo sx5-nec-superux"$UNAME_RELEASE" d1278 1 a1278 1 echo sx6-nec-superux"$UNAME_RELEASE" d1281 1 a1281 1 echo sx7-nec-superux"$UNAME_RELEASE" d1284 1 a1284 1 echo sx8-nec-superux"$UNAME_RELEASE" d1287 1 a1287 1 echo sx8r-nec-superux"$UNAME_RELEASE" d1290 1 a1290 1 echo sxace-nec-superux"$UNAME_RELEASE" d1293 1 a1293 1 echo powerpc-apple-rhapsody"$UNAME_RELEASE" d1296 1 a1296 1 echo "$UNAME_MACHINE"-apple-rhapsody"$UNAME_RELEASE" d1300 1 a1300 1 eval "$set_cc_for_build" d1304 1 a1304 1 if test "`echo "$UNAME_RELEASE" | sed -e 's/\..*//'`" -le 10 ; then d1307 2 a1308 2 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null a1314 7 # On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \ (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_PPC >/dev/null then UNAME_PROCESSOR=powerpc fi d1325 1 a1325 1 echo "$UNAME_PROCESSOR"-apple-darwin"$UNAME_RELEASE" d1333 1 a1333 1 echo "$UNAME_PROCESSOR"-"$UNAME_MACHINE"-nto-qnx"$UNAME_RELEASE" d1338 2 a1339 2 NEO-*:NONSTOP_KERNEL:*:*) echo neo-tandem-nsk"$UNAME_RELEASE" d1342 1 a1342 1 echo nse-tandem-nsk"$UNAME_RELEASE" d1344 2 a1345 2 NSR-*:NONSTOP_KERNEL:*:*) echo nsr-tandem-nsk"$UNAME_RELEASE" d1347 2 a1348 5 NSV-*:NONSTOP_KERNEL:*:*) echo nsv-tandem-nsk"$UNAME_RELEASE" exit ;; NSX-*:NONSTOP_KERNEL:*:*) echo nsx-tandem-nsk"$UNAME_RELEASE" d1357 1 a1357 1 echo "$UNAME_MACHINE"-"$UNAME_SYSTEM"-"$UNAME_RELEASE" d1368 1 a1368 1 echo "$UNAME_MACHINE"-unknown-plan9 d1389 1 a1389 1 echo mips-sei-seiux"$UNAME_RELEASE" d1392 1 a1392 1 echo "$UNAME_MACHINE"-unknown-dragonfly"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`" d1396 1 a1396 1 case "$UNAME_MACHINE" in d1405 1 a1405 1 echo "$UNAME_MACHINE"-pc-skyos"`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'`" d1408 1 a1408 1 echo "$UNAME_MACHINE"-pc-rdos d1411 1 a1411 1 echo "$UNAME_MACHINE"-pc-aros d1414 1 a1414 1 echo "$UNAME_MACHINE"-unknown-esx a1420 13 echo "$0: unable to guess system type" >&2 case "$UNAME_MACHINE:$UNAME_SYSTEM" in mips:Linux | mips64:Linux) # If we got here on MIPS GNU/Linux, output extra information. cat >&2 < * test/btyacc/big_b.error, test/btyacc/big_l.error, test/btyacc/help.error, test/btyacc/no_b_opt.error, test/btyacc/no_output2.error, test/btyacc/no_p_opt.error, test/btyacc/nostdin.error, test/yacc/big_b.error, test/yacc/big_l.error, test/yacc/help.error, test/yacc/no_b_opt.error, test/yacc/no_output2.error, test/yacc/no_p_opt.error, test/yacc/nostdin.error: regen * test/run_test.sh: test "-H" rather than "-D" 2019-06-16 Thomas E. Dickey * main.c, yacc.1: change "-D" option to "-H" (discussion with Ethan Sommer) * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: bump * test/btyacc/defines1.calc.c, test/btyacc/defines2.calc.c, test/btyacc/defines3.calc.c: RCS_BASE * test/run_test.sh: in test_defines, save the ".c" file too * test/yacc/defines3.calc.c, test/yacc/defines2.calc.c, test/yacc/defines1.calc.c: RCS_BASE * test/run_test.sh: output of test_defines should be a header ".h", not ".c" * test/btyacc/defines1.calc.h, test/btyacc/defines1.error, test/btyacc/defines1.output, test/btyacc/defines2.calc.h, test/btyacc/defines2.error, test/btyacc/defines2.output, test/btyacc/defines3.calc.h, test/btyacc/defines3.error, test/btyacc/defines3.output: RCS_BASE * main.c: however, a subsequent -d cancels -D * test/yacc/defines1.calc.h, test/yacc/defines3.calc.h: RCS_BASE * main.c: -D option implies -d * test/yacc/defines1.error, test/yacc/defines1.output, test/yacc/defines2.calc.h, test/yacc/defines2.error, test/yacc/defines2.output, test/yacc/defines3.error, test/yacc/defines3.output: RCS_BASE * yacc.1: align macro definitions with my other manpages * test/run_test.sh: add test for -D after -d or -b options * test/btyacc/stdin1.calc.c, test/btyacc/stdin1.error, test/btyacc/stdin1.output, test/btyacc/stdin2.calc.c, test/btyacc/stdin2.error, test/btyacc/stdin2.output: RCS_BASE * test/btyacc/big_b.error, test/btyacc/big_b.output, test/btyacc/big_l.error, test/btyacc/big_l.output, test/btyacc/help.error, test/btyacc/help.output, test/btyacc/no_b_opt.error, test/btyacc/no_b_opt.output, test/btyacc/no_b_opt1.error, test/btyacc/no_b_opt1.output, test/btyacc/no_code_c.error, test/btyacc/no_code_c.output, test/btyacc/no_defines.error, test/btyacc/no_defines.output, test/btyacc/no_graph.error, test/btyacc/no_graph.output, test/btyacc/no_include.error, test/btyacc/no_include.output, test/btyacc/no_opts.error, test/btyacc/no_opts.output, test/btyacc/no_output.error, test/btyacc/no_output.output, test/btyacc/no_output1.error, test/btyacc/no_output1.output, test/btyacc/no_output2.error, test/btyacc/no_output2.output, test/btyacc/no_p_opt.error, test/btyacc/no_p_opt.output, test/btyacc/no_p_opt1.error, test/btyacc/no_p_opt1.output, test/btyacc/no_verbose.error, test/btyacc/no_verbose.output, test/btyacc/nostdin.error, test/btyacc/nostdin.output, test/yacc/big_b.error, test/yacc/big_b.output, test/yacc/big_l.error, test/yacc/big_l.output, test/yacc/help.error, test/yacc/help.output, test/yacc/no_b_opt.error, test/yacc/no_b_opt.output, test/yacc/no_b_opt1.error, test/yacc/no_b_opt1.output, test/yacc/no_code_c.error, test/yacc/no_code_c.output, test/yacc/no_defines.error, test/yacc/no_defines.output, test/yacc/no_graph.error, test/yacc/no_graph.output, test/yacc/no_include.error, test/yacc/no_include.output, test/yacc/no_opts.error, test/yacc/no_opts.output, test/yacc/no_output.error, test/yacc/no_output.output, test/yacc/no_output1.error, test/yacc/no_output1.output, test/yacc/no_output2.error, test/yacc/no_output2.output, test/yacc/no_p_opt.error, test/yacc/no_p_opt.output, test/yacc/no_p_opt1.error, test/yacc/no_p_opt1.output, test/yacc/no_verbose.error, test/yacc/no_verbose.output, test/yacc/nostdin.error, test/yacc/nostdin.output: regen * test/run_test.sh: add a test for stdin "-" vs end-options "--", and correct a redirection of stderr in test_flags * test/yacc/stdin2.output, test/yacc/stdin2.calc.c, test/yacc/stdin1.calc.c, test/yacc/stdin1.error, test/yacc/stdin1.output, test/yacc/stdin2.error: RCS_BASE * test/btyacc/big_b.output, test/btyacc/big_l.output, test/btyacc/help.output, test/btyacc/no_b_opt.output, test/btyacc/no_output2.output, test/btyacc/no_p_opt.output, test/btyacc/nostdin.output, test/yacc/big_b.output, test/yacc/big_l.output, test/yacc/help.output, test/yacc/no_b_opt.output, test/yacc/no_output2.output, test/yacc/no_p_opt.output, test/yacc/nostdin.output: regen * main.c: add -D option, to specify filename vs y.tab.h for -d * defs.h: add dflag2, for -D option * yacc.1: document -D option * config_h.in: updated with autoheader-252 * configure: regen * package/debian/copyright: bump * aclocal.m4: add CF_GETOPT_HEADER * aclocal.m4: Improved autoconf macros: + CF_CC_ENV_FLAGS putting preprocessor flags in CFLAGS also is a nuisance, which can be addressed in the same way. + CF_GCC_WARNINGS factor out workaround for XTSTRINGDEFINES as CF_CONST_X_STRING + CF_GNU_SOURCE The check for _DEFAULT_SOURCE should apply to "recent" Cygwin (since early 2016), and except for "NEWLIB" vs "GLIBC" in the test, acts the same if I pretend that "newlib" is the GNU C library. Without this, the check falls through to the _XOPEN_SOURCE test, which breaks the pseudoterminal checks for xterm. + CF_POSIX_C_SOURCE add/use CF_POSIX_VISIBLE + CF_TRY_XOPEN_SOURCE use CF_APPEND_TEXT + CF_WITH_MAN2HTML use sed to work around non-POSIX tail utility + CF_XOPEN_SOURCE use CF_APPEND_TEXT add/use CF_POSIX_VISIBLE * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: bump 2019-06-10 Thomas E. Dickey * config.guess: 2019-06-10 2019-05-22 Thomas E. Dickey * config.sub: 2019-05-22 @ text @d3 1 a3 1 # Copyright 1992-2019 Free Software Foundation, Inc. d5 1 a5 1 timestamp='2019-06-10' d53 1 a53 1 Copyright 1992-2019 Free Software Foundation, Inc. d87 2 d99 24 a122 28 tmp= # shellcheck disable=SC2172 trap 'test -z "$tmp" || rm -fr "$tmp"' 0 1 2 13 15 set_cc_for_build() { : "${TMPDIR=/tmp}" # shellcheck disable=SC2039 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir "$tmp" 2>/dev/null) ; } || { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir "$tmp" 2>/dev/null) && echo "Warning: creating insecure temp directory" >&2 ; } || { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } dummy=$tmp/dummy case ${CC_FOR_BUILD-},${HOST_CC-},${CC-} in ,,) echo "int x;" > "$dummy.c" for driver in cc gcc c89 c99 ; do if ($driver -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then CC_FOR_BUILD="$driver" break fi done if test x"$CC_FOR_BUILD" = x ; then CC_FOR_BUILD=no_compiler_found fi ;; ,,*) CC_FOR_BUILD=$CC ;; ,*,*) CC_FOR_BUILD=$HOST_CC ;; esac } d126 1 a126 1 if test -f /.attbin/uname ; then d141 1 a141 1 set_cc_for_build d202 1 a202 1 set_cc_for_build d240 1 a240 1 echo "$machine-${os}${release}${abi-}" a262 3 *:OS108:*:*) echo "$UNAME_MACHINE"-unknown-os108_"$UNAME_RELEASE" exit ;; d392 1 a392 1 set_cc_for_build d485 1 a485 1 set_cc_for_build d582 1 a582 1 set_cc_for_build d663 1 a663 1 set_cc_for_build d703 1 a703 1 set_cc_for_build d729 1 a729 1 set_cc_for_build a842 11 arm:FreeBSD:*:*) UNAME_PROCESSOR=`uname -p` set_cc_for_build if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_PCS_VFP then echo "${UNAME_PROCESSOR}"-unknown-freebsd"`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`"-gnueabi else echo "${UNAME_PROCESSOR}"-unknown-freebsd"`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`"-gnueabihf fi exit ;; d884 1 a884 1 echo x86_64-pc-cygwin d897 2 a898 2 *:Minix:*:*) echo "$UNAME_MACHINE"-unknown-minix d925 1 a925 1 set_cc_for_build d974 1 a974 3 set_cc_for_build IS_GLIBC=0 test x"${LIBC}" = xgnu && IS_GLIBC=1 d977 2 a978 28 #undef mips #undef mipsel #undef mips64 #undef mips64el #if ${IS_GLIBC} && defined(_ABI64) LIBCABI=gnuabi64 #else #if ${IS_GLIBC} && defined(_ABIN32) LIBCABI=gnuabin32 #else LIBCABI=${LIBC} #endif #endif #if ${IS_GLIBC} && defined(__mips64) && defined(__mips_isa_rev) && __mips_isa_rev>=6 CPU=mipsisa64r6 #else #if ${IS_GLIBC} && !defined(__mips64) && defined(__mips_isa_rev) && __mips_isa_rev>=6 CPU=mipsisa32r6 #else #if defined(__mips64) CPU=mips64 #else CPU=mips #endif #endif #endif d980 1 a980 1 MIPS_ENDIAN=el d983 1 a983 1 MIPS_ENDIAN= d985 1 a985 1 MIPS_ENDIAN= d989 2 a990 2 eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU\|^MIPS_ENDIAN\|^LIBCABI'`" test "x$CPU" != x && { echo "$CPU${MIPS_ENDIAN}-unknown-linux-$LIBCABI"; exit; } d1103 1 a1103 1 echo "$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}" d1287 23 a1309 29 UNAME_PROCESSOR=`uname -p` case $UNAME_PROCESSOR in unknown) UNAME_PROCESSOR=powerpc ;; esac if command -v xcode-select > /dev/null 2> /dev/null && \ ! xcode-select --print-path > /dev/null 2> /dev/null ; then # Avoid executing cc if there is no toolchain installed as # cc will be a stub that puts up a graphical alert # prompting the user to install developer tools. CC_FOR_BUILD=no_compiler_found else set_cc_for_build fi if [ "$CC_FOR_BUILD" != no_compiler_found ]; then if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then case $UNAME_PROCESSOR in i386) UNAME_PROCESSOR=x86_64 ;; powerpc) UNAME_PROCESSOR=powerpc64 ;; esac fi # On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \ (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_PPC >/dev/null then UNAME_PROCESSOR=powerpc d1312 7 a1318 2 # uname -m returns i386 or x86_64 UNAME_PROCESSOR=$UNAME_MACHINE a1360 1 # shellcheck disable=SC2154 a1416 3 *:Unleashed:*:*) echo "$UNAME_MACHINE"-unknown-unleashed"$UNAME_RELEASE" exit ;; a1418 137 # No uname command or uname output not recognized. set_cc_for_build cat > "$dummy.c" < #include #endif #if defined(ultrix) || defined(_ultrix) || defined(__ultrix) || defined(__ultrix__) #if defined (vax) || defined (__vax) || defined (__vax__) || defined(mips) || defined(__mips) || defined(__mips__) || defined(MIPS) || defined(__MIPS__) #include #if defined(_SIZE_T_) || defined(SIGLOST) #include #endif #endif #endif main () { #if defined (sony) #if defined (MIPSEB) /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, I don't know.... */ printf ("mips-sony-bsd\n"); exit (0); #else #include printf ("m68k-sony-newsos%s\n", #ifdef NEWSOS4 "4" #else "" #endif ); exit (0); #endif #endif #if defined (NeXT) #if !defined (__ARCHITECTURE__) #define __ARCHITECTURE__ "m68k" #endif int version; version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; if (version < 4) printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); else printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); exit (0); #endif #if defined (MULTIMAX) || defined (n16) #if defined (UMAXV) printf ("ns32k-encore-sysv\n"); exit (0); #else #if defined (CMU) printf ("ns32k-encore-mach\n"); exit (0); #else printf ("ns32k-encore-bsd\n"); exit (0); #endif #endif #endif #if defined (__386BSD__) printf ("i386-pc-bsd\n"); exit (0); #endif #if defined (sequent) #if defined (i386) printf ("i386-sequent-dynix\n"); exit (0); #endif #if defined (ns32000) printf ("ns32k-sequent-dynix\n"); exit (0); #endif #endif #if defined (_SEQUENT_) struct utsname un; uname(&un); if (strncmp(un.version, "V2", 2) == 0) { printf ("i386-sequent-ptx2\n"); exit (0); } if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ printf ("i386-sequent-ptx1\n"); exit (0); } printf ("i386-sequent-ptx\n"); exit (0); #endif #if defined (vax) #if !defined (ultrix) #include #if defined (BSD) #if BSD == 43 printf ("vax-dec-bsd4.3\n"); exit (0); #else #if BSD == 199006 printf ("vax-dec-bsd4.3reno\n"); exit (0); #else printf ("vax-dec-bsd\n"); exit (0); #endif #endif #else printf ("vax-dec-bsd\n"); exit (0); #endif #else #if defined(_SIZE_T_) || defined(SIGLOST) struct utsname un; uname (&un); printf ("vax-dec-ultrix%s\n", un.release); exit (0); #else printf ("vax-dec-ultrix\n"); exit (0); #endif #endif #endif #if defined(ultrix) || defined(_ultrix) || defined(__ultrix) || defined(__ultrix__) #if defined(mips) || defined(__mips) || defined(__mips__) || defined(MIPS) || defined(__MIPS__) #if defined(_SIZE_T_) || defined(SIGLOST) struct utsname *un; uname (&un); printf ("mips-dec-ultrix%s\n", un.release); exit (0); #else printf ("mips-dec-ultrix\n"); exit (0); #endif #endif #endif #if defined (alliant) && defined (i860) printf ("i860-alliant-bsd\n"); exit (0); #endif exit (1); } EOF $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null && SYSTEM_NAME=`$dummy` && { echo "$SYSTEM_NAME"; exit; } # Apollos put the system type in the environment. test -d /usr/apollo && { echo "$ISP-apollo-$SYSTYPE"; exit; } d1472 1 a1472 1 # eval: (add-hook 'before-save-hook 'time-stamp) @ 1.1.1.11 log @2021-01-09 Thomas E. Dickey * package/debian/copyright, VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: bump 2021-01-05 Thomas E. Dickey * configure: regen * aclocal.m4: resync with my-autoconf 2020-09-22 Thomas E. Dickey * closure.c, warshall.c: fix undefined-behavior diagnosed with gcc -fsanitize=undefined (report by Alexander Richardson) 2020-09-10 Thomas E. Dickey * LICENSE: RCS_BASE * reader.c, output.c: cppcheck -- reduce scope * defs.h: update to 2.0 * test/btyacc/btyacc_calc1.tab.c, test/btyacc/btyacc_demo.tab.c, test/btyacc/btyacc_destroy1.tab.c, test/btyacc/btyacc_destroy2.tab.c, test/btyacc/btyacc_destroy3.tab.c, test/btyacc/calc.tab.c, test/btyacc/calc1.tab.c, test/btyacc/calc2.tab.c, test/btyacc/calc3.tab.c, test/btyacc/calc_code_all.tab.c, test/btyacc/calc_code_default.tab.c, test/btyacc/calc_code_imports.tab.c, test/btyacc/calc_code_provides.tab.c, test/btyacc/calc_code_requires.tab.c, test/btyacc/calc_code_top.tab.c, test/btyacc/code_calc.code.c, test/btyacc/code_error.code.c, test/btyacc/defines1.calc.c, test/btyacc/defines2.calc.c, test/btyacc/defines3.calc.c, test/btyacc/empty.tab.c, test/btyacc/err_inherit1.tab.c, test/btyacc/err_inherit2.tab.c, test/btyacc/err_inherit3.tab.c, test/btyacc/err_inherit4.tab.c, test/btyacc/err_inherit5.tab.c, test/btyacc/err_syntax1.tab.c, test/btyacc/err_syntax10.tab.c, test/btyacc/err_syntax11.tab.c, test/btyacc/err_syntax12.tab.c, test/btyacc/err_syntax13.tab.c, test/btyacc/err_syntax14.tab.c, test/btyacc/err_syntax15.tab.c, test/btyacc/err_syntax16.tab.c, test/btyacc/err_syntax17.tab.c, test/btyacc/err_syntax18.tab.c, test/btyacc/err_syntax19.tab.c, test/btyacc/err_syntax2.tab.c, test/btyacc/err_syntax20.tab.c, test/btyacc/err_syntax21.tab.c, test/btyacc/err_syntax22.tab.c, test/btyacc/err_syntax23.tab.c, test/btyacc/err_syntax24.tab.c, test/btyacc/err_syntax25.tab.c, test/btyacc/err_syntax26.tab.c, test/btyacc/err_syntax27.tab.c, test/btyacc/err_syntax3.tab.c, test/btyacc/err_syntax4.tab.c, test/btyacc/err_syntax5.tab.c, test/btyacc/err_syntax6.tab.c, test/btyacc/err_syntax7.tab.c, test/btyacc/err_syntax7a.tab.c, test/btyacc/err_syntax7b.tab.c, test/btyacc/err_syntax8.tab.c, test/btyacc/err_syntax8a.tab.c, test/btyacc/err_syntax9.tab.c, test/btyacc/error.tab.c, test/btyacc/expr.oxout.tab.c, test/btyacc/grammar.tab.c, test/btyacc/inherit0.tab.c, test/btyacc/inherit1.tab.c, test/btyacc/inherit2.tab.c, test/btyacc/ok_syntax1.tab.c, test/btyacc/pure_calc.tab.c, test/btyacc/pure_error.tab.c, test/btyacc/quote_calc-s.tab.c, test/btyacc/quote_calc.tab.c, test/btyacc/quote_calc2-s.tab.c, test/btyacc/quote_calc2.tab.c, test/btyacc/quote_calc3-s.tab.c, test/btyacc/quote_calc3.tab.c, test/btyacc/quote_calc4-s.tab.c, test/btyacc/quote_calc4.tab.c, test/btyacc/rename_debug.c, test/btyacc/stdin1.calc.c, test/btyacc/stdin2.calc.c, test/btyacc/varsyntax_calc1.tab.c, test/yacc/calc.tab.c, test/yacc/calc1.tab.c, test/yacc/calc2.tab.c, test/yacc/calc3.tab.c, test/yacc/calc_code_all.tab.c, test/yacc/calc_code_default.tab.c, test/yacc/calc_code_imports.tab.c, test/yacc/calc_code_provides.tab.c, test/yacc/calc_code_requires.tab.c, test/yacc/calc_code_top.tab.c, test/yacc/code_calc.code.c, test/yacc/code_error.code.c, test/yacc/defines1.calc.c, test/yacc/defines2.calc.c, test/yacc/defines3.calc.c, test/yacc/empty.tab.c, test/yacc/err_syntax1.tab.c, test/yacc/err_syntax10.tab.c, test/yacc/err_syntax11.tab.c, test/yacc/err_syntax12.tab.c, test/yacc/err_syntax13.tab.c, test/yacc/err_syntax14.tab.c, test/yacc/err_syntax15.tab.c, test/yacc/err_syntax16.tab.c, test/yacc/err_syntax17.tab.c, test/yacc/err_syntax18.tab.c, test/yacc/err_syntax19.tab.c, test/yacc/err_syntax2.tab.c, test/yacc/err_syntax20.tab.c, test/yacc/err_syntax21.tab.c, test/yacc/err_syntax22.tab.c, test/yacc/err_syntax23.tab.c, test/yacc/err_syntax24.tab.c, test/yacc/err_syntax25.tab.c, test/yacc/err_syntax26.tab.c, test/yacc/err_syntax27.tab.c, test/yacc/err_syntax3.tab.c, test/yacc/err_syntax4.tab.c, test/yacc/err_syntax5.tab.c, test/yacc/err_syntax6.tab.c, test/yacc/err_syntax7.tab.c, test/yacc/err_syntax7a.tab.c, test/yacc/err_syntax7b.tab.c, test/yacc/err_syntax8.tab.c, test/yacc/err_syntax8a.tab.c, test/yacc/err_syntax9.tab.c, test/yacc/error.tab.c, test/yacc/expr.oxout.tab.c, test/yacc/grammar.tab.c, test/yacc/ok_syntax1.tab.c, test/yacc/pure_calc.tab.c, test/yacc/pure_error.tab.c, test/yacc/quote_calc-s.tab.c, test/yacc/quote_calc.tab.c, test/yacc/quote_calc2-s.tab.c, test/yacc/quote_calc2.tab.c, test/yacc/quote_calc3-s.tab.c, test/yacc/quote_calc3.tab.c, test/yacc/quote_calc4-s.tab.c, test/yacc/quote_calc4.tab.c, test/yacc/rename_debug.c, test/yacc/stdin1.calc.c, test/yacc/stdin2.calc.c, test/yacc/varsyntax_calc1.tab.c: update to version 2.0 * reader.c: improve loop which skips backward through a (possibly nested) sequence of square-brackets. * reader.c: simplify a check to quiet a bogus cppcheck-warning * yacc.1: bump date * reader.c: add a note about a bogus cppcheck warning * configure: regen * configure.in: always check for gcc attributes, to work around defect in clang's imitation of this feature * reader.c: cppcheck -- scope reduction cppcheck -- eliminate bogus returns after no-return functions * verbose.c, output.c, mkpar.c, main.c, warshall.c, lr0.c, lalr.c, graph.c, closure.c: cppcheck -- scope reduction * package/debian/compat: quiet compatibility-warning * yacc.1: use "ASCII" for dashes which are part of proper names * configure: regen * configure.in: switch to --enable-warnings, for consistency * aclocal.m4: resync with my-autoconf, for compiler-warning fixes with macOS * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: bump 2020-08-16 Thomas E. Dickey * config.guess, config.sub: 2020-08-17 2020-06-28 Thomas E. Dickey * config.sub: 2020/06/28 2020-06-14 Thomas E. Dickey * config.guess: 2020/04/26 2020-03-30 Thomas E. Dickey * package/debian/copyright: bump * test/yacc/grammar.tab.c, test/btyacc/grammar.tab.c, test/grammar.y, reader.c: typo found with codespell * yacc.1: fixes noted in the original report, overlooked in followup 2020-03-30 Bjarni.Ingi.Gislason * yacc.1: typography/spelling fixes - Debian #955175 2020-03-30 Thomas E. Dickey * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: bump 2020-03-10 Thomas E. Dickey * configure: regen * aclocal.m4: resync with my-autoconf, mostly fixes for compiler-warnings * configure.in: use macro to suppress X-dependency from newer macros 2019-12-20 Thomas E. Dickey * config.guess: 2019-12-21 2019-11-25 Tom.Shields * main.c: fix an inconsistency between the getopt and non-getopt configuration. In the former, getopt always used "yacc", not the name of the executable. 2019-11-25 Thomas E. Dickey * test/run_make.sh: suppress bison's -Wyacc warning, which is not useful. * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: bump 2019-11-19 Thomas E. Dickey * yacc.1: new version of manpage * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: bump * yacc.1: document %code * test/btyacc/calc_code_all.error, test/btyacc/calc_code_all.output, test/btyacc/calc_code_all.tab.c, test/btyacc/calc_code_all.tab.h, test/btyacc/calc_code_default.error, test/btyacc/calc_code_default.output, test/btyacc/calc_code_default.tab.c, test/btyacc/calc_code_default.tab.h, test/btyacc/calc_code_imports.error, test/btyacc/calc_code_imports.output, test/btyacc/calc_code_imports.tab.c, test/btyacc/calc_code_imports.tab.h, test/btyacc/calc_code_provides.error, test/btyacc/calc_code_provides.output, test/btyacc/calc_code_provides.tab.c, test/btyacc/calc_code_provides.tab.h, test/btyacc/calc_code_requires.error, test/btyacc/calc_code_requires.output, test/btyacc/calc_code_requires.tab.c, test/btyacc/calc_code_requires.tab.h, test/btyacc/calc_code_top.error, test/btyacc/calc_code_top.output, test/btyacc/calc_code_top.tab.c, test/btyacc/calc_code_top.tab.h, test/yacc/calc_code_all.tab.c, test/yacc/calc_code_all.tab.h, test/yacc/calc_code_default.tab.c, test/yacc/calc_code_provides.tab.c, test/yacc/calc_code_provides.tab.h, test/yacc/calc_code_requires.tab.c, test/yacc/calc_code_requires.tab.h, test/yacc/calc_code_top.tab.c: RCS_BASE * output.c: amend updates for 'outline' when processing "%code" in code-file * output.c: modify output_code_lines() to show begin/end block comments which were in reader.c, and to generate a #line for the code-file. * reader.c: modify copy_code() to allow for multiple %code directives for a given section, recording the input line-number for each directive as a #line in the resulting string. remove the block start/end comments, since those will be done for a whole section in output.c * mstring.c, defs.h: add msrenew() * test/yacc/calc_code_all.error, test/yacc/calc_code_all.output, test/yacc/calc_code_default.error, test/yacc/calc_code_default.output, test/yacc/calc_code_default.tab.h, test/yacc/calc_code_imports.error, test/yacc/calc_code_imports.output, test/yacc/calc_code_imports.tab.c, test/yacc/calc_code_imports.tab.h, test/yacc/calc_code_provides.error, test/yacc/calc_code_provides.output, test/yacc/calc_code_requires.error, test/yacc/calc_code_requires.output, test/yacc/calc_code_top.error, test/yacc/calc_code_top.output, test/yacc/calc_code_top.tab.h: RCS_BASE 2019-11-18 Thomas E. Dickey * test/calc_code_imports.y, test/calc_code_all.y, test/calc_code_default.y, test/calc_code_top.y, test/calc_code_provides.y, test/calc_code_requires.y: RCS_BASE 2019-11-04 Michael.Forney * defs.h: add missing "extern" for new variable "code_lines" 2019-11-03 Thomas E. Dickey * main.c: build-fix for MinGW cross-compiling * output.c, reader.c: gcc-warnings * output.c: check validity of text_file before rewind remove redundant check of iflag * main.c: fix memory-leak reported by clang * mkpar.c: guard against a null-reference reported by clang (unlikely) * reader.c: fix two coverity warnings: a) resource leak on malloc-failure b) possible null-pointer dereference on parse-error * test/btyacc/err_inherit4.tab.h, test/btyacc/btyacc_demo.tab.h: regen * defs.h: use enum's to simplify recent change * mstring.c: enable mstring() in regular byacc, since Zoulas' change relies upon it 2019-11-03 Christos.Zoulas * defs.h, reader.c, output.c: add support for bison's "%code" feature also fix a small bug: declare YYLTYPE externally when producing locations 2019-11-03 Thomas E. Dickey * test/btyacc/help.error, test/btyacc/no_b_opt.error, test/btyacc/no_output2.error, test/btyacc/no_p_opt.error, test/yacc/help.error, test/yacc/no_b_opt.error, test/yacc/no_output2.error, test/yacc/no_p_opt.error: regen * test/run_test.sh: there's no standard wording for the options-errors from getopt; filter that to "error message" in the test reference files. * main.c: provide for using getopt(), to accommodate a case where developers have relied upon non-POSIX behavior. * test/run_test.sh: getopt's messages do not print the full pathname of yacc in some cases; adjust the sed-script which changes those to "YACC" * configure: regen * config_h.in: regen, using autoheader-252 * configure.in: add configure check for getopt * configure: regen * aclocal.m4: resync with my-autoconf adds a fix which accommodates a difference in warning options between gcc/clang when --enable-warnings is not set. * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: bump 2019-09-11 Thomas E. Dickey * config.guess, config.sub: 2019-09-10 @ text @d3 1 a3 1 # Copyright 1992-2020 Free Software Foundation, Inc. d5 1 a5 1 timestamp='2020-08-17' d53 1 a53 1 Copyright 1992-2020 Free Software Foundation, Inc. a101 2 # prevent multiple calls if $tmp is already set test "$tmp" && return 0 a276 3 *:Twizzler:*:*) echo "$UNAME_MACHINE"-unknown-twizzler exit ;; d281 2 a282 2 echo mips-dec-osf1 exit ;; d402 1 a402 1 if test "$CC_FOR_BUILD" != no_compiler_found; then d542 1 a542 1 if test "$UNAME_PROCESSOR" = mc88100 || test "$UNAME_PROCESSOR" = mc88110 d544 2 a545 2 if test "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx || \ test "$TARGET_BINARY_INTERFACE"x = x d578 1 a578 1 if test -x /usr/bin/oslevel ; then d618 1 a618 1 if test -x /usr/bin/lslpp ; then d653 1 a653 1 if test -x /usr/bin/getconf; then d667 1 a667 1 if test "$HP_ARCH" = ""; then d706 1 a706 1 if test "$HP_ARCH" = hppa2.0w d780 1 a780 1 if test -x /usr/sbin/sysversion ; then d924 1 a924 1 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' /proc/cpuinfo 2>/dev/null` in d1093 1 a1093 11 set_cc_for_build LIBCABI=$LIBC if test "$CC_FOR_BUILD" != no_compiler_found; then if (echo '#ifdef __ILP32__'; echo IS_X32; echo '#endif') | \ (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_X32 >/dev/null then LIBCABI="$LIBC"x32 fi fi echo "$UNAME_MACHINE"-pc-linux-"$LIBCABI" d1282 1 a1282 1 if test -d /usr/nec; then a1329 3 arm64:Darwin:*:*) echo aarch64-apple-darwin"$UNAME_RELEASE" exit ;; d1344 1 a1344 1 if test "$CC_FOR_BUILD" != no_compiler_found; then a1626 6 EOF year=`echo $timestamp | sed 's,-.*,,'` # shellcheck disable=SC2003 if test "`expr "\`date +%Y\`" - "$year"`" -lt 3 ; then cat >&2 < * yacc.1: minor cleanup * package/debian/copyright: bump * configure: regen * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: bump 2023-12-01 Thomas E. Dickey * aclocal.m4: resync with my-autoconf: CF_CONST_X_STRING CF_MKSTEMP CF_WITH_MAN2HTML CF_XOPEN_SOURCE 2023-09-15 Thomas E. Dickey * config.sub: 2023-09-15 2023-08-22 Thomas E. Dickey * config.guess: 2023-08-22 2023-05-21 Thomas E. Dickey * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: bump * configure: regen * aclocal.m4: updates for CF_INSTALL_MAN from reflex, which needs the symbolic link feature * aclocal.m4: improve install-man by adding sed commands for --program-transform-name 2023-05-19 Thomas E. Dickey * makefile.in: use CF_INSTALL_MAN * aclocal.m4: add CF_INSTALL_MAN, to begin refactoring install rule for manpage * configure: regen * configure.in: use CF_INSTALL_MAN 2023-05-18 Thomas E. Dickey * error.c, defs.h, reader.c: allow @@1 or $@@ with a warning if no %locations was given 2023-05-17 Thomas E. Dickey * reader.c: clear pointer in end_ainfo() after freeing it. 2023-05-16 Thomas E. Dickey * reader.c: report errors in %define as "unexpected value" * reader.c: add/use macros begin_ainfo() and end_ainfo() to reduce clutter * defs.h, error.c: add function unexpected_value() * reader.c: recognize bison's "%define api.pure" as an alternative to "%pure-parser" * reader.c: add %nterm as an alias for %type, since bison made that confusion. * reader.c: ensure that filler_buf and prefix_buf are initialized for the special case where they are empty (report by Martin Jansa, cf: 20230219) * output.c: make test-differences smaller when compiling with YY_NO_LEAKS by replacing a blank line with the generated #define rather than adding 3 lines. * reader.c: gcc-warnings 2023-05-15 Thomas E. Dickey * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: bump * reader.c: when copying parameters, check for a case where the last token is not a name, e.g., "foo [1]" would have "[1]". In this case, scan back to find the actual parameter name. * reader.c: correct a use-after-free in more_curly, which could occur if a %lex-param or %parse-param was multi-line (Redhat #2183006). 2023-05-11 Thomas E. Dickey * main.c: rename no_space() to on_error() * error.c: rename no_space() to no_error(), handling any errno * defs.h: rename no_space() to on_error() 2023-04-03 Thomas E. Dickey * aclocal.m4: resync with my-autoconf: CF_GCC_VERSION CF_XOPEN_SOURCE 2023-02-26 Thomas E. Dickey * mstring.c, reader.c: yak-indent 2023-02-26 mingodad * reader.c: patch for byacc #6: Segmentation fault when trying to parse bison-3.8.2 grammar 2023-02-26 Thomas E. Dickey * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: bump 2023-02-20 Thomas E. Dickey * configure: regen * aclocal.m4: resync with my-autoconf 2023-02-19 Thomas E. Dickey * test/yacc/ok_syntax1.tab.h, test/yacc/ok_syntax1.tab.c, test/btyacc/ok_syntax1.tab.h, test/btyacc/ok_syntax1.tab.c: regen * test/ok_syntax1.y: modify test for %union to add tag for testing reader.c * reader.c: provide for a named union, e.g., "%union foo" by detecting the name and deferring the typedef in that case until the end of copying the union definition (report by Dag-Erling Smørgrav). * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: bump 2023-02-01 Thomas E. Dickey * configure: regen * configure.in: initialize $ac_includes_default * VERSION, package/byacc.spec, package/debian/changelog, package/debian/copyright, package/mingw-byacc.spec, package/pkgsrc/Makefile: bump 2023-01-05 Thomas E. Dickey * aclocal.m4: resync with my-autoconf 2022-12-29 Thomas E. Dickey * configure: regen * configure.in: correct help-message for --disable-btyacc option, and fix the reporting of the selected option value in the configure script's output (report by Daniel Weaver) * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: bump 2022-12-02 Thomas E. Dickey * aclocal.m4: resync with my-autconf 2022-11-06 Thomas E. Dickey * test/run_test.sh: use context diff, to work with AIX * defs.h: fprintf_lineno might be passed a null, when reading from stdin - show "(null)" * makefile.in, test/run_make.sh, test/run_test.sh, test/run_lint.sh: fgrep-fixes * yacc.1: mention use of stderr/stdout for usage/debugging * yacc.1: document %empty * yacc.1: document %debug * yacc.1: minor fixes with check-manpage * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: bump 2022-10-02 Thomas E. Dickey * configure: regen * aclocal.m4: resync with my-autoconf 2022-08-01 Thomas E. Dickey * config.guess, config.sub: 2022-08-01 2022-01-28 Thomas E. Dickey * package/debian/copyright: update, fix typo * package/debian/rules, package/debian/control: adapt from current Debian package * configure: regen * configure.in: change default for the backtracking option to match the most-common usage of byacc * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: update packaging, renaming debian folder back to its original location to verify that the version-mangling used in the accepted Debian package will work with the continuous-integration system. 2022-01-18 Thomas E. Dickey * package/debian/watch: adapt from current Debian package 2022-01-14 Thomas E. Dickey * VERSION, package/byacc.spec, package/detest/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: bump 2022-01-09 Thomas E. Dickey * package/detest/changelog: build-script * package/debian/changelog: update to use oldstable-compatible rules/config, for testing version upgrade * package/detest/watch: build-script * package/debian/watch: update to use oldstable-compatible rules/config, for testing version upgrade * package/detest/control: build-script * package/debian/control: update to use oldstable-compatible rules/config, for testing version upgrade * package/byacc.spec, package/mingw-byacc.spec: use rpmlint, etc., to "update" these to follow Redhat7 and later. due to incompatbilities in that route, this package will not build with #6. * reader.c, output.c: change a few malloc's to calloc's so clang analyzer can see initialized data * closure.c: modify address computation in closure.c to avoid undefined behavior on machines which do not support large offsets (analysis/patch by Jessica Clarke, cf: 2014-09-17) * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: bump 2022-01-08 Thomas E. Dickey * package/detest/copyright, package/detest/rules: build-script * package/debian/copyright, package/debian/rules: update to use oldstable-compatible rules/config, for testing version upgrade 2022-01-02 Thomas E. Dickey * package/debian/control: minor fixes adapted from btyacc package * package/debian/byacc.docs: RCS_BASE * package/detest/byacc.docs: build-script * package/debian/byacc2.prerm: RCS_BASE * package/detest/byacc2.prerm: build-script * package/debian/byacc2.postinst: RCS_BASE * package/detest/byacc2.postinst: build-script * package/debian/byacc.postinst: RCS_BASE * package/detest/byacc.postinst: build-script * package/debian/byacc.prerm: RCS_BASE * package/detest/byacc.prerm: build-script * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: bump 2022-01-01 Thomas E. Dickey * test/run_test.sh: adjust to ignore NetBSD's difference in getopt warnings. * package/pkgsrc/Makefile: resync with pkgsrc * test/yacc/expr.oxout.tab.c, test/btyacc/expr.oxout.tab.c: regen * test/expr.oxout.y, test/expr.oxout.h: fix gcc warnings * test/yacc/expr.oxout.tab.c, test/yacc/expr.oxout.tab.h: regen * test/run_make.sh: workaround for compiling the expr.oxout.y files * test/expr.oxout.y: fix syntax error * test/btyacc/expr.oxout.tab.c: regen * test/expr.oxout.h: RCS_BASE * test/yacc/expr.oxout.tab.c: fix syntax error * test/btyacc/expr.oxout.tab.c: regen, s/expr.oxout/expr_oxout/g * test/btyacc/expr.oxout.tab.h: regen * test/run_test.sh: filter the default prefix to change "." to "_", so that the generated files will compile consistently with run_make.sh * package/debian/control, package/debian/prerm, package/debian/postinst: add "byacc2" as an alternative for "yacc" * package/byacc.spec, package/debian/control, package/debian/rules: rename "btyacc" to "byacc2" to co-exist with traditional "btyacc" package * package/debian/copyright, VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: bump 2021-12-24 Thomas E. Dickey * package/debian/rules: fixes from Debian package for lintian warnings * package/debian/control: updates for Debian standard * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: bump * package/debian/byacc2.docs: RCS_BASE * package/detest/byacc2.docs: build-script * package/debian/docs, package/debian/copyright, package/debian/control: errata from Debian package * config.sub: 2021-12-24 From: Dmitry V. Levin config.sub: alias aarch64le to aarch64 Apparently, QNX reports aarch64 as aarch64le on little-endian machines. * config.sub (aarch64le-*): Set cpu to aarch64. (timestamp): Update. * doc/config.sub.1: Regenerate. * testsuite/config-sub.data (aarch64le-qnx): New test. Reported-by: Elad Lahav Link: https://lists.gnu.org/archive/html/config-patches/2021-12/msg00009.html 2021-12-16 Thomas E. Dickey * configure: regen * aclocal.m4: resync with my-autoconf 2021-12-13 Thomas E. Dickey * config.sub: 2021-10-27 From: Dmitry V. Levin config.sub: fix typo in timestamp * config.sub: Fix timestamp. * doc/config.sub.1: Regenerate. Reported-by: Jordi Sanfeliu Fixes: a013aac61edfa2a03727521508286480010e7bf3 Signed-off-by: Dmitry V. Levin 2021-11-30 Thomas E. Dickey * config.guess: 2021-11-30 From: Andreas F. Borchert config.guess: x86_64-pc-solaris2.11 is not properly recognized config.guess guesses Solaris 11 to run on a 32-bit platform despite Solaris 11 no longer supporting any 32-bit platform. See the following code at lines 434 to 445: | SUN_ARCH=i386 | # If there is a compiler, see if it is configured for 64-bit objects. | # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. | # This test works for both compilers. | if test "$CC_FOR_BUILD" != no_compiler_found; then | if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ | grep IS_64BIT_ARCH >/dev/null | then | SUN_ARCH=x86_64 | fi | fi If "cc" is installed, i.e. the Oracle Studio compiler, this one is chosen for $CC_FOR_BUILD. This compiler, the gcc provided by Oracle and also gcc bootstrapped from sources on that platform with a default configuration will by default generate 32-bit binaries -- even on a 64-bit platform. And __amd64 will not be defined for compilations targeting a 32-bit platform. This is different from the corresponding behaviour on GNU/Linux systems where the local platform is targeted by default. Thus, as long as you do not add "-m64" or if you have a custom-built gcc which defaults to 64 bit, you will get 32-bit binaries on Solaris despite living on a 64-bit platform. * config.guess (i86pc:SunOS:5.*:* || i86xen:SunOS:5.*:*): Adapt the test by adding the "-m64" flag. This will work properly for Solaris 10 as well (the last Solaris release that supported x86 32-bit platforms). * doc/config.guess.1: Regenerate. Signed-off-by: Dmitry V. Levin 2021-10-27 Thomas E. Dickey * config.guess: 2021-10-27 From: Jordi Sanfeliu Recognize Fiwix $ make check cd testsuite && bash config-guess.sh && rm uname PASS: config.guess checks (137 tests) cd testsuite && bash config-sub.sh PASS: config.sub checks (882 tests) PASS: config.sub idempotency checks (819 tests) PASS: config.sub canonicalise each config.guess testcase (137 tests) * config.guess (i*86:Fiwix:*:*): Recognize. * config.sub (fiwix*): Likewise. * doc/config.guess.1: Regenerate. * doc/config.sub.1: Likewise. * testsuite/config-guess.data: Add a test case for Fiwix. * testsuite/config-sub.data (i386-fiwix): New test. Signed-off-by: Dmitry V. Levin * config.sub: 2021-20-27 From: Jordi Sanfeliu Recognize Fiwix $ make check cd testsuite && bash config-guess.sh && rm uname PASS: config.guess checks (137 tests) cd testsuite && bash config-sub.sh PASS: config.sub checks (882 tests) PASS: config.sub idempotency checks (819 tests) PASS: config.sub canonicalise each config.guess testcase (137 tests) * config.guess (i*86:Fiwix:*:*): Recognize. * config.sub (fiwix*): Likewise. * doc/config.guess.1: Regenerate. * doc/config.sub.1: Likewise. * testsuite/config-guess.data: Add a test case for Fiwix. * testsuite/config-sub.data (i386-fiwix): New test. Signed-off-by: Dmitry V. Levin 2021-10-18 Thomas E. Dickey * config.sub: 2021-08-14 From: Kinshuk Dua config.sub: Fix typo in comment Fixes: 5e531d391852a54e7fab2d8ff55625fca514b305 Signed-off-by: Dmitry V. Levin 2021-08-14 Thomas E. Dickey * config.sub: 2021-08-14 From: Nick Bowler config.sub: work around command assignment bug in some shells When combining variable assignments with a shell command, some older shells (notably heirloom-sh and presumably also Solaris 10 /bin/sh) have a bug which causes the assignment to alter the current execution environment whenever the command is a shell built-in. For example: % dash -c 'x=good; x=bad echo >/dev/null; echo $x' good % jsh -c 'x=good; x=bad echo >/dev/null; echo $x' bad The config.sub script contains a few commands of the form: IFS=- read ... which triggers this bug, causing the IFS assignment to persist for the remainder of the script. This can cause misbehaviour in certain cases, for example: % jsh config.sub i386-linux-gnu config.sub: test: unknown operator gnu % jsh config.sub i386-gnu/linux sed: can't read s|gnu/linux|gnu|: No such file or directory Invalid configuration `i386-gnu/linux': OS `' not recognized * config.sub: Save and restore IFS explicitly to avoid shell bugs. * doc/config.sub.1: Regenerate. Signed-off-by: Dmitry V. Levin 2021-08-08 Thomas E. Dickey * reader.c: fix memory-leak when replacing $$'s in destructor code (report/testcase by Boris Kolpackov). * main.c: account for a memory-leak * test/btyacc/btyacc_calc1.tab.c, test/btyacc/btyacc_demo.tab.c, test/btyacc/btyacc_destroy1.tab.c, test/btyacc/btyacc_destroy2.tab.c, test/btyacc/btyacc_destroy3.tab.c, test/btyacc/calc.tab.c, test/btyacc/calc1.tab.c, test/btyacc/calc2.tab.c, test/btyacc/calc3.tab.c, test/btyacc/calc_code_all.tab.c, test/btyacc/calc_code_default.tab.c, test/btyacc/calc_code_imports.tab.c, test/btyacc/calc_code_provides.tab.c, test/btyacc/calc_code_requires.tab.c, test/btyacc/calc_code_top.tab.c, test/btyacc/code_calc.code.c, test/btyacc/code_error.code.c, test/btyacc/defines1.calc.c, test/btyacc/defines2.calc.c, test/btyacc/defines3.calc.c, test/btyacc/empty.tab.c, test/btyacc/err_inherit3.tab.c, test/btyacc/err_inherit4.tab.c, test/btyacc/err_syntax10.tab.c, test/btyacc/err_syntax11.tab.c, test/btyacc/err_syntax12.tab.c, test/btyacc/err_syntax18.tab.c, test/btyacc/err_syntax20.tab.c, test/btyacc/error.tab.c, test/btyacc/expr.oxout.tab.c, test/btyacc/grammar.tab.c, test/btyacc/inherit0.tab.c, test/btyacc/inherit1.tab.c, test/btyacc/inherit2.tab.c, test/btyacc/ok_syntax1.tab.c, test/btyacc/pure_calc.tab.c, test/btyacc/pure_error.tab.c, test/btyacc/quote_calc-s.tab.c, test/btyacc/quote_calc.tab.c, test/btyacc/quote_calc2-s.tab.c, test/btyacc/quote_calc2.tab.c, test/btyacc/quote_calc3-s.tab.c, test/btyacc/quote_calc3.tab.c, test/btyacc/quote_calc4-s.tab.c, test/btyacc/quote_calc4.tab.c, test/btyacc/rename_debug.c, test/btyacc/stdin1.calc.c, test/btyacc/stdin2.calc.c, test/btyacc/varsyntax_calc1.tab.c, test/yacc/calc.tab.c, test/yacc/calc1.tab.c, test/yacc/calc2.tab.c, test/yacc/calc3.tab.c, test/yacc/calc_code_all.tab.c, test/yacc/calc_code_default.tab.c, test/yacc/calc_code_imports.tab.c, test/yacc/calc_code_provides.tab.c, test/yacc/calc_code_requires.tab.c, test/yacc/calc_code_top.tab.c, test/yacc/code_calc.code.c, test/yacc/code_error.code.c, test/yacc/defines1.calc.c, test/yacc/defines2.calc.c, test/yacc/defines3.calc.c, test/yacc/empty.tab.c, test/yacc/err_syntax10.tab.c, test/yacc/err_syntax11.tab.c, test/yacc/err_syntax12.tab.c, test/yacc/err_syntax18.tab.c, test/yacc/err_syntax20.tab.c, test/yacc/error.tab.c, test/yacc/expr.oxout.tab.c, test/yacc/grammar.tab.c, test/yacc/ok_syntax1.tab.c, test/yacc/pure_calc.tab.c, test/yacc/pure_error.tab.c, test/yacc/quote_calc-s.tab.c, test/yacc/quote_calc.tab.c, test/yacc/quote_calc2-s.tab.c, test/yacc/quote_calc2.tab.c, test/yacc/quote_calc3-s.tab.c, test/yacc/quote_calc3.tab.c, test/yacc/quote_calc4-s.tab.c, test/yacc/quote_calc4.tab.c, test/yacc/rename_debug.c, test/yacc/stdin1.calc.c, test/yacc/stdin2.calc.c, test/yacc/varsyntax_calc1.tab.c, btyaccpar.c, yaccpar.c: regen * btyaccpar.skel, yaccpar.skel: revert change to initialization of yystate, which confuses gcc, making a different warning * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: bump 2021-08-04 Thomas E. Dickey * config.sub: 2021-08-04 From: Jeremy Soller config.sub: add Linux Relibc Target $ make check cd testsuite && bash config-guess.sh && rm uname PASS: config.guess checks (136 tests) cd testsuite && bash config-sub.sh PASS: config.sub checks (881 tests) PASS: config.sub idempotency checks (818 tests) PASS: config.sub canonicalise each config.guess testcase (136 tests) * config.sub (relibc*): Recognize. * doc/config.sub.1: Regenerate. * testsuite/config-sub.data (x86_64-linux-relibc): New test. Signed-off-by: Dmitry V. Levin 2021-08-02 Thomas E. Dickey * main.c, yacc.1: add "-h" option * yacc.1: fix date * test/btyacc/no_b_opt.error, test/btyacc/no_output2.error, test/btyacc/no_p_opt.error, test/btyacc/big_b.error, test/btyacc/big_l.error, test/btyacc/help.error, test/btyacc/nostdin.error, test/yacc/big_b.error, test/yacc/big_l.error, test/yacc/help.error, test/yacc/no_b_opt.error, test/yacc/no_output2.error, test/yacc/no_p_opt.error, test/yacc/nostdin.error: regen * main.c: map any of bison's long-options which have a corresponding yacc option into the latter, without depending upon getopt_long(). * main.c: suggested patch: From: Boris Kolpackov Subject: Re: [PATCH] support bison's --defines and --output options in byacc * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: bump 2021-08-01 Thomas E. Dickey * test/btyacc/inherit2.tab.c, test/btyacc/btyacc_destroy2.tab.c, test/btyacc/btyacc_destroy3.tab.c, test/btyacc/err_inherit3.tab.c, test/btyacc/err_inherit4.tab.c, test/btyacc/btyacc_demo.tab.c, test/btyacc/btyacc_destroy1.tab.c: regen * output.c: fix a misplaced #line, which was after a generated line in the code-file * test/yacc/ok_syntax1.tab.c, test/yacc/pure_calc.tab.c, test/yacc/quote_calc-s.tab.c, test/yacc/quote_calc.tab.c, test/yacc/quote_calc2-s.tab.c, test/yacc/quote_calc2.tab.c, test/yacc/quote_calc3-s.tab.c, test/yacc/quote_calc3.tab.c, test/yacc/quote_calc4-s.tab.c, test/yacc/quote_calc4.tab.c, test/yacc/varsyntax_calc1.tab.c, test/yacc/err_syntax18.tab.c, test/yacc/err_syntax20.tab.c, test/yacc/expr.oxout.tab.c, test/yacc/grammar.tab.c, test/yacc/calc.tab.c, test/yacc/calc1.tab.c, test/yacc/calc2.tab.c, test/yacc/calc3.tab.c, test/yacc/calc_code_all.tab.c, test/yacc/calc_code_default.tab.c, test/yacc/calc_code_imports.tab.c, test/yacc/calc_code_provides.tab.c, test/yacc/calc_code_requires.tab.c, test/yacc/calc_code_top.tab.c, test/yacc/code_calc.code.c, test/yacc/defines1.calc.c, test/yacc/defines2.calc.c, test/yacc/defines3.calc.c, test/yacc/stdin1.calc.c, test/yacc/stdin2.calc.c: regen * output.c: add a state-machine to output_semantic_actions() to detect and replace the "#line" directives added by Roland Illig's change, making them show the actual line-numbers in the code-file. * test/btyacc/pure_calc.tab.c, test/btyacc/quote_calc-s.tab.c, test/btyacc/quote_calc.tab.c, test/btyacc/quote_calc2-s.tab.c, test/btyacc/quote_calc2.tab.c, test/btyacc/quote_calc3-s.tab.c, test/btyacc/quote_calc3.tab.c, test/btyacc/quote_calc4-s.tab.c, test/btyacc/quote_calc4.tab.c, test/btyacc/varsyntax_calc1.tab.c, test/btyacc/err_syntax18.tab.c, test/btyacc/err_syntax20.tab.c, test/btyacc/expr.oxout.tab.c, test/btyacc/grammar.tab.c, test/btyacc/inherit0.tab.c, test/btyacc/inherit1.tab.c, test/btyacc/inherit2.tab.c, test/btyacc/ok_syntax1.tab.c, test/btyacc/btyacc_calc1.tab.c, test/btyacc/btyacc_demo.tab.c, test/btyacc/btyacc_destroy1.tab.c, test/btyacc/btyacc_destroy2.tab.c, test/btyacc/btyacc_destroy3.tab.c, test/btyacc/calc.tab.c, test/btyacc/calc1.tab.c, test/btyacc/calc2.tab.c, test/btyacc/calc3.tab.c, test/btyacc/calc_code_all.tab.c, test/btyacc/calc_code_default.tab.c, test/btyacc/calc_code_imports.tab.c, test/btyacc/calc_code_provides.tab.c, test/btyacc/calc_code_requires.tab.c, test/btyacc/calc_code_top.tab.c, test/btyacc/code_calc.code.c, test/btyacc/defines1.calc.c, test/btyacc/defines2.calc.c, test/btyacc/defines3.calc.c, test/btyacc/err_inherit3.tab.c, test/btyacc/err_inherit4.tab.c, test/btyacc/stdin1.calc.c, test/btyacc/stdin2.calc.c: regen * reader.c: adapt a patch by Roland Illig which added #line directives with dummy filename and line number, because the debug information was incorrect. The actual fix (see output_semantic_actions) is to emit #line directives which correspond to the code-file. * reader.c: simplify an ifdef so I can balance {/} * output.c: use new macro * defs.h: add fprintf_lineno macro * reader.c: make that a little simpler - but I see that this should be using the code-file's line-numbering rather than "" * reader.c: make that into a macro, and add a begin_case() to more/less match (the #line's are not together in some btyacc cases...) * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: bump 2021-07-14 Thomas E. Dickey * reader.c: From: Roland Illig Subject: small patch for byacc ... this splits up "\nbreak;\n" output to put #line directives after first "\n" 2021-07-06 Thomas E. Dickey * config.sub: 2021-07-06 From: Stephanos Ioannidis config.sub: add Zephyr RTOS support This adds the Zephyr RTOS targets in preparation for implementing the Zephyr RTOS-specific toolchain support. $ make check cd testsuite && bash config-guess.sh && rm uname PASS: config.guess checks (136 tests) cd testsuite && bash config-sub.sh PASS: config.sub checks (880 tests) PASS: config.sub idempotency checks (817 tests) PASS: config.sub canonicalise each config.guess testcase (136 tests) * config.sub (zephyr*): Recognize. * doc/config.sub.1: Regenerate. * testsuite/config-sub.data: Add testcases for *-zephyr. Signed-off-by: Stephanos Ioannidis Signed-off-by: Dmitry V. Levin 2021-07-03 Thomas E. Dickey * config.sub: 2021-07-03 From: Ozkan Sezer config.sub: disable shellcheck SC2006 / SC2268 warnings This is in line with the recent config.guess change in commit 12fcf67c9108f4c4b581eaa302088782f0ee40ea * config.sub (shellcheck disable): Add SC2006,SC2268. Suggested-by: Jacob Bachmeyer Signed-off-by: Ozkan Sezer Signed-off-by: Dmitry V. Levin * config.sub: 2021-07-03 From: Ozkan Sezer config.sub: normalize the quoting in the `echo FOO | sed ...` Some cases quote the argument to echo and some do not. At runtime it probably does not matter because the substituted values will never contain whitespace, but quoting them all would make shellcheck more useful. * config.sub: Consistently quote the argument of echo. * doc/config.sub.1: Regenerate. Suggested-by: Jacob Bachmeyer Signed-off-by: Ozkan Sezer Signed-off-by: Dmitry V. Levin 2021-07-02 Thomas E. Dickey * config.sub: 2021-06-03 From: Ozkan Sezer config.sub: replace POSIX $( ) with classic ` ` throughout This is in line with the recent config.guess change in commit d70c4fa934de164178054c3a60aaa0024ed07c91. The patch was generated using patch-6.gawk script introduced in that commit. * config.sub: Revert POSIX command substitutions to classic form. Signed-off-by: Ozkan Sezer Signed-off-by: Dmitry V. Levin 2021-06-19 Thomas E. Dickey * configure: regen * aclocal.m4: resync with my-autoconf * test/btyacc/quote_calc3-s.tab.c, test/btyacc/quote_calc3.tab.c, test/btyacc/quote_calc4-s.tab.c, test/btyacc/quote_calc4.tab.c, test/btyacc/varsyntax_calc1.tab.c, test/btyacc/err_syntax18.tab.c, test/btyacc/err_syntax20.tab.c, test/btyacc/error.tab.c, test/btyacc/expr.oxout.tab.c, test/btyacc/grammar.tab.c, test/btyacc/inherit0.tab.c, test/btyacc/inherit1.tab.c, test/btyacc/inherit2.tab.c, test/btyacc/ok_syntax1.tab.c, test/btyacc/pure_calc.tab.c, test/btyacc/pure_error.tab.c, test/btyacc/quote_calc-s.tab.c, test/btyacc/quote_calc.tab.c, test/btyacc/quote_calc2-s.tab.c, test/btyacc/quote_calc2.tab.c, test/btyacc/btyacc_calc1.tab.c, test/btyacc/btyacc_demo.tab.c, test/btyacc/btyacc_destroy1.tab.c, test/btyacc/btyacc_destroy2.tab.c, test/btyacc/btyacc_destroy3.tab.c, test/btyacc/calc.tab.c, test/btyacc/calc1.tab.c, test/btyacc/calc2.tab.c, test/btyacc/calc3.tab.c, test/btyacc/calc_code_all.tab.c, test/btyacc/calc_code_default.tab.c, test/btyacc/calc_code_imports.tab.c, test/btyacc/calc_code_provides.tab.c, test/btyacc/calc_code_requires.tab.c, test/btyacc/calc_code_top.tab.c, test/btyacc/code_calc.code.c, test/btyacc/code_error.code.c, test/btyacc/defines1.calc.c, test/btyacc/defines2.calc.c, test/btyacc/defines3.calc.c, test/btyacc/empty.tab.c, test/btyacc/err_inherit3.tab.c, test/btyacc/err_inherit4.tab.c, test/btyacc/err_syntax10.tab.c, test/btyacc/err_syntax11.tab.c, test/btyacc/err_syntax12.tab.c, test/btyacc/rename_debug.c, btyaccpar.c, test/btyacc/stdin1.calc.c, test/btyacc/stdin2.calc.c, test/yacc/quote_calc2-s.tab.c, test/yacc/quote_calc2.tab.c, test/yacc/quote_calc3-s.tab.c, test/yacc/quote_calc3.tab.c, test/yacc/quote_calc4-s.tab.c, test/yacc/quote_calc4.tab.c, test/yacc/varsyntax_calc1.tab.c, test/yacc/err_syntax11.tab.c, test/yacc/err_syntax12.tab.c, test/yacc/err_syntax18.tab.c, test/yacc/err_syntax20.tab.c, test/yacc/error.tab.c, test/yacc/expr.oxout.tab.c, test/yacc/grammar.tab.c, test/yacc/ok_syntax1.tab.c, test/yacc/pure_calc.tab.c, test/yacc/pure_error.tab.c, test/yacc/quote_calc-s.tab.c, test/yacc/quote_calc.tab.c, test/yacc/calc.tab.c, test/yacc/calc1.tab.c, test/yacc/calc2.tab.c, test/yacc/calc3.tab.c, test/yacc/calc_code_all.tab.c, test/yacc/calc_code_default.tab.c, test/yacc/calc_code_imports.tab.c, test/yacc/calc_code_provides.tab.c, test/yacc/calc_code_requires.tab.c, test/yacc/calc_code_top.tab.c, test/yacc/code_calc.code.c, test/yacc/code_error.code.c, test/yacc/defines1.calc.c, test/yacc/defines2.calc.c, test/yacc/defines3.calc.c, test/yacc/empty.tab.c, test/yacc/err_syntax10.tab.c, test/yacc/rename_debug.c, test/yacc/stdin1.calc.c, test/yacc/stdin2.calc.c, yaccpar.c: regen * btyaccpar.skel, yaccpar.skel: cancel unused assignments * output.c: gcc warning * test/run_test.sh, test/run_lint.sh, test/run_make.sh: shellcheck-warnings 2021-06-19 jannick0 * test/run_test.sh: changes suggested at https://github.com/jannick0/byacc-snapshots/tree/YYINT-fix-20210520 2021-06-19 Thomas E. Dickey * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: bump 2021-06-13 Thomas E. Dickey * aclocal.m4: resync with my-autoconf 2021-06-04 Thomas E. Dickey * config.guess: 2021-06-03 From: Vineet Gupta Recognize arc32 This is the 32-bit variant of ARCv3 ISA (which is not compatible with the 32-bit ARCv2 ISA) | make check | cd testsuite && bash config-guess.sh && rm uname | PASS: config.guess checks (136 tests) | cd testsuite && bash config-sub.sh | PASS: config.sub checks (864 tests) | PASS: config.sub idempotency checks (801 tests) | PASS: config.sub canonicalise each config.guess testcase (136 tests) * config.guess (arc32:Linux:*:*): Recognize. * config.sub (arc32): Likewise. * doc/config.guess.1: Regenerate. * doc/config.sub.1: Likewise. * testsuite/config-guess.data: Add a test case for arc32. * testsuite/config-sub.data (arc32, arc*-elf): Add test cases. Signed-off-by: Vineet Gupta Signed-off-by: Dmitry V. Levin * config.sub: 2021-06-03 (repaired) From: Vineet Gupta Recognize arc32 This is the 32-bit variant of ARCv3 ISA (which is not compatible with the 32-bit ARCv2 ISA) | make check | cd testsuite && bash config-guess.sh && rm uname | PASS: config.guess checks (136 tests) | cd testsuite && bash config-sub.sh | PASS: config.sub checks (864 tests) | PASS: config.sub idempotency checks (801 tests) | PASS: config.sub canonicalise each config.guess testcase (136 tests) * config.guess (arc32:Linux:*:*): Recognize. * config.sub (arc32): Likewise. * doc/config.guess.1: Regenerate. * doc/config.sub.1: Likewise. * testsuite/config-guess.data: Add a test case for arc32. * testsuite/config-sub.data (arc32, arc*-elf): Add test cases. Signed-off-by: Vineet Gupta Signed-off-by: Dmitry V. Levin 2021-05-26 Thomas E. Dickey * config.guess: 2021-05-24 From: Jacob Bachmeyer config.guess: manual fixups after previous automatic patch The tool could not handle command substitutions that span lines, but fortunately there were only two such substitutions in the script. The test for which universe is active on Pyramid is rewritten into a case block because it was the only use of a command substitution as an argument to the test command, which would require quoting. * config.guess: Rewrite "if" for Pyramid systems to "case". * config.guess: 2021-05-24 (repaired) From: Jacob Bachmeyer config.guess: replace POSIX $( ) with classic ` ` throughout The previous replacement of backticks with POSIX command substitutions was ill-considered and illogical: this script recognizes many archaic machine types that probably never had POSIX shells, therefore it needs to be able to run successfully under pre-POSIX shells. This patch was generated using the included GNU Awk program. * config.guess: Revert POSIX command substitutions to classic form. * patch-6.gawk: Store the tool that produced the automated patch. 2021-05-25 Thomas E. Dickey * config.guess: 2021-05-24 (repaired) From: Jacob Bachmeyer config.guess: manual fixup after previous automated patches This patch provides the special handling for the GNU system. As these were two small and unique edits, they were not included in the scripts. This patch also cleans up other minor issues that must be addressed before reverting to classic command substitutions and updates "shellcheck" directives to account for changes in this script and the change in "shellcheck" towards reporting individual portability issues. * config.guess: 2021-05-24 (repaired) From: Jacob Bachmeyer config.guess: automatic fixups after previous automated patch This patch was generated using the following command: sed -i config.guess \ -e '/="[^"]\+"\(-\|$\)/s/="\([^"([:space:])]\+\)"/=\1/' \ -e '/="[^"]\+"[[:alnum:]]/s/="\$\([^([:space:])]\+\)"/=${\1}/' \ -e \ '/\$(echo[^|]\+|/s/\([^[:space:]]\)[[:space:]]*|[[:space:]]*sed/\1 | sed/g' * config.guess: Remove unneeded quotes in other variable assignments, standardize spacing for "echo ... | sed" substitutions. * config.guess: 2021-05-24 (repaired) From: Jacob Bachmeyer config.guess: remove unneeded quotes and factor command substitutions This is further cleanup and simplifies some constructs that can confuse Emacs' syntax highlighting while generally reducing required quoting. This patch was generated using the included GNU Awk program. * config.guess: Remove unneeded variable quotes and factor out command substitutions when setting GUESS. * patch-3.gawk: Store the tool that produced the automated patch. * config.guess: 2021-05-24 (repaired) From: Jacob Bachmeyer config.guess: manual fixups after previous automatic patch * config.guess: Adjust a few "leftover" cases that the tool could not easily recognize and fixes comment indentation in a few other special cases. * config.guess: 2021-05-24 (repaired) From: Jacob Bachmeyer config.guess: introduce intermediate variable with uname results This will allow quoting to be significantly simplified in another pass through the file. * config.guess: Introduce GUESS variable to hold results of uname analysis. * config.guess: 2021-05-24 (repaired) From: Jacob Bachmeyer config.guess: use intermediate variable with uname results This will allow quoting to be significantly simplified in another pass through the file. This patch was generated using the included GNU Awk program. * config.guess: Use GUESS variable to hold results of uname analysis. * patch-1.gawk: Store the tool that produced the automated patch. 2021-05-24 Thomas E. Dickey * config.guess: 2021-05-24 (repaired) From: Dmitry V. Levin config.guess: fix shellcheck warning SC2154 While, according to Plan 9 documentation, the environment variable $cputype is set to the name of the kernel's CPU's architecture, shellcheck warns that cputype is referenced but not assigned. Be on the safe side and do not use cputype if it is not defined or empty. * config.guess (*:Plan9:*:*): Fix shellcheck warning SC2154. * config.guess: 2021-05-24 (repaired) From: Dmitry V. Levin config.guess: remove redundant quotes in case commands According to the GNU Autoconf Portable Shell Programming manual, the Bourne shell does not systematically split variables and back-quoted expressions, in particular on the right-hand side of assignments and in the argument of 'case'. The change is made automatically using the following command: $ sed -E -i 's/(\)/\1\2\3/' config.guess * config.guess: Simplify case commands by removing quotes around the argument. Suggested-by: Jacob Bachmeyer * config.guess: 2021-05-24 (repaired) From: Dmitry V. Levin config.guess: simplify exit status workaround on alphaev67-dec-osf5.1 Commit 29865ea8a5622cdd80b7a69a0afa78004b4cd311 introduced an exit trap reset before exiting to avoid a spurious non-zero exit status on alphaev67-dec-osf5.1. Simplify that code a bit by moving the exit trap reset around. * config.guess (alpha:OSF1:*:*): Reset exit trap earlier. * doc/config.guess.1: Regenerate. 2021-05-20 Thomas E. Dickey * test/btyacc/btyacc_calc1.tab.c, test/btyacc/btyacc_demo.tab.c, test/btyacc/btyacc_destroy1.tab.c, test/btyacc/btyacc_destroy2.tab.c, test/btyacc/btyacc_destroy3.tab.c, test/btyacc/calc.tab.c, test/btyacc/calc1.tab.c, test/btyacc/calc2.tab.c, test/btyacc/calc3.tab.c, test/btyacc/calc_code_all.tab.c, test/btyacc/calc_code_default.tab.c, test/btyacc/calc_code_imports.tab.c, test/btyacc/calc_code_provides.tab.c, test/btyacc/calc_code_requires.tab.c, test/btyacc/calc_code_top.tab.c, test/btyacc/code_calc.code.c, test/btyacc/code_calc.tab.c, test/btyacc/code_error.code.c, test/btyacc/code_error.tab.c, test/btyacc/defines1.calc.c, test/btyacc/defines2.calc.c, test/btyacc/defines3.calc.c, test/btyacc/empty.tab.c, test/btyacc/err_inherit3.tab.c, test/btyacc/err_inherit4.tab.c, test/btyacc/err_syntax10.tab.c, test/btyacc/err_syntax11.tab.c, test/btyacc/err_syntax12.tab.c, test/btyacc/err_syntax18.tab.c, test/btyacc/err_syntax20.tab.c, test/btyacc/error.tab.c, test/btyacc/expr.oxout.tab.c, test/btyacc/grammar.tab.c, test/btyacc/inherit0.tab.c, test/btyacc/inherit1.tab.c, test/btyacc/inherit2.tab.c, test/btyacc/ok_syntax1.tab.c, test/btyacc/pure_calc.tab.c, test/btyacc/pure_error.tab.c, test/btyacc/quote_calc-s.tab.c, test/btyacc/quote_calc.tab.c, test/btyacc/quote_calc2-s.tab.c, test/btyacc/quote_calc2.tab.c, test/btyacc/quote_calc3-s.tab.c, test/btyacc/quote_calc3.tab.c, test/btyacc/quote_calc4-s.tab.c, test/btyacc/quote_calc4.tab.c, test/btyacc/rename_debug.c, test/btyacc/stdin1.calc.c, test/btyacc/stdin2.calc.c, test/btyacc/varsyntax_calc1.tab.c, test/yacc/calc.tab.c, test/yacc/calc1.tab.c, test/yacc/calc2.tab.c, test/yacc/calc3.tab.c, test/yacc/calc_code_all.tab.c, test/yacc/calc_code_default.tab.c, test/yacc/calc_code_imports.tab.c, test/yacc/calc_code_provides.tab.c, test/yacc/calc_code_requires.tab.c, test/yacc/calc_code_top.tab.c, test/yacc/code_calc.code.c, test/yacc/code_calc.tab.c, test/yacc/code_error.code.c, test/yacc/code_error.tab.c, test/yacc/defines1.calc.c, test/yacc/defines2.calc.c, test/yacc/defines3.calc.c, test/yacc/empty.tab.c, test/yacc/err_syntax10.tab.c, test/yacc/err_syntax11.tab.c, test/yacc/err_syntax12.tab.c, test/yacc/err_syntax18.tab.c, test/yacc/err_syntax20.tab.c, test/yacc/error.tab.c, test/yacc/expr.oxout.tab.c, test/yacc/grammar.tab.c, test/yacc/ok_syntax1.tab.c, test/yacc/pure_calc.tab.c, test/yacc/pure_error.tab.c, test/yacc/quote_calc-s.tab.c, test/yacc/quote_calc.tab.c, test/yacc/quote_calc2-s.tab.c, test/yacc/quote_calc2.tab.c, test/yacc/quote_calc3-s.tab.c, test/yacc/quote_calc3.tab.c, test/yacc/quote_calc4-s.tab.c, test/yacc/quote_calc4.tab.c, test/yacc/rename_debug.c, test/yacc/stdin1.calc.c, test/yacc/stdin2.calc.c, test/yacc/varsyntax_calc1.tab.c: regen * mkpar.c, reader.c: change printf format to allow for long-YYINT * lalr.c, lr0.c: change type, fix gcc warnings * verbose.c: change type, fix gcc warnings also change printf format, to allow for long YYINT * output.c: change type, fix gcc warnings also change printf format, to allow for long-YYINT * package/debian/rules, package/byacc.spec: change max-table-size to correspond with switch of YYINT from short to int * defs.h: change default for MAXTABLE to INT_MAX, like the FreeBSD port. that requires changing some types to eliminate type-mismatches. * configure: regen * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: bump 2021-05-01 Thomas E. Dickey * aclocal.m4: resync with my-autoconf 2021-04-30 Thomas E. Dickey * config.sub: 2021-04-30 (repaired) From: Maciej W. Rozycki config.sub: Handle MIPS R3 and R5 ISA levels with CPU names Complement binutils commit ae52f4830604 ("Add MIPS r3 and r5 support.") and recognize MIPS CPU patterns for the R3 and R5 ISA levels, used by GAS to set defaults. * config.sub (mipsisa32r3, mipsisa32r3el, mipsisa32r5, mipsisa32r5el, mipsisa64r3, mipsisa64r3el, mipsisa64r5, mipsisa64r5el): Recognize. * doc/config.sub.1: Regenerate. * testsuite/config-sub.data: Add test cases. Signed-off-by: Dmitry V. Levin 2021-04-21 Thomas E. Dickey * config.guess, config.sub: 2021-04-21 (repaired) From: Vineet Gupta Recognize arc64 This paves way for setting up arc64 software ecosystem. $ make check cd testsuite && bash config-guess.sh && rm uname PASS: config.guess checks (136 tests) cd testsuite && bash config-sub.sh PASS: config.sub checks (853 tests) PASS: config.sub idempotency checks (790 tests) PASS: config.sub canonicalise each config.guess testcase (136 tests) * config.guess (arc64:Linux:*:*): Recognize. * config.sub (arc64): Likewise. * doc/config.guess.1: Regenerate. * doc/config.sub.1: Likewise. * testsuite/config-guess.data: Add a test case for arc64. * testsuite/config-sub.data (arc64, arc*-elf): Add test cases. Signed-off-by: Vineet Gupta Signed-off-by: Dmitry V. Levin 2021-04-16 Thomas E. Dickey * config.guess: 2021-04-16 (repaired) From: Purple Rain config.guess: add SecBSD support * config.guess (*:SecBSD:*:*): Recognize. * doc/config.guess.1: Regenerate. * testsuite/config-guess.data: Add a test case. Signed-off-by: Dmitry V. Levin * config.sub: 2021-04-16 (repaired) From: Purple Rain config.sub: add SecBSD support * config.sub (secbsd*): Recognize. * doc/config.sub.1: Regenerate. * testsuite/config-sub.data: Add x86_64-secbsd. Signed-off-by: Dmitry V. Levin 2021-03-28 Thomas E. Dickey * reader.c: ignore bison's "%empty" extension * reader.c, defs.h: %debug was a trivial bison "extension", mark it as such * yacc.1: use italics in a few places where bold was inappropriate * test/btyacc/varsyntax_calc1.tab.c, test/btyacc/varsyntax_calc1.tab.h, test/btyacc/expr.oxout.tab.c, test/btyacc/expr.oxout.tab.h, test/btyacc/inherit1.tab.c, test/btyacc/inherit1.tab.h, test/btyacc/inherit2.tab.c, test/btyacc/inherit2.tab.h, test/btyacc/ok_syntax1.tab.c, test/btyacc/ok_syntax1.tab.h, test/btyacc/err_inherit3.tab.c, test/btyacc/err_inherit3.tab.h, test/btyacc/err_inherit4.tab.c, test/btyacc/err_inherit4.tab.h, test/btyacc/btyacc_calc1.tab.c, test/btyacc/btyacc_calc1.tab.h, test/btyacc/btyacc_demo.tab.c, test/btyacc/btyacc_demo.tab.h, test/btyacc/btyacc_destroy1.tab.c, test/btyacc/btyacc_destroy1.tab.h, test/btyacc/btyacc_destroy2.tab.c, test/btyacc/btyacc_destroy2.tab.h, test/btyacc/btyacc_destroy3.tab.c, test/btyacc/btyacc_destroy3.tab.h, test/btyacc/calc1.tab.c, test/btyacc/calc1.tab.h, test/yacc/varsyntax_calc1.tab.c, test/yacc/varsyntax_calc1.tab.h, test/yacc/expr.oxout.tab.c, test/yacc/expr.oxout.tab.h, test/yacc/ok_syntax1.tab.c, test/yacc/ok_syntax1.tab.h, test/yacc/calc1.tab.c, test/yacc/calc1.tab.h: regen * reader.c: add union tag to YYSTYPE structure for compatibility with a feature which bison copied from Solaris yacc (request by Ella Stanforth) * configure: regen * config_h.in: update for _Noreturn feature * aclocal.m4: updated to work with autoheader * defs.h: apply syntax change needed for _Noreturn keyword * package/byacc.spec, package/debian/rules: use stdnoreturn * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: bump 2021-03-20 Thomas E. Dickey * configure: regen * aclocal.m4: resync with my-autoconf (adds --enable-stdnoreturn option) 2021-03-10 Thomas E. Dickey * config.sub: 2021-03-10 (repaired) From: Idan Horo config.sub: Add support for SerenityOS * config.sub (serenity*): Recognize. * doc/config.sub.1: Regenerate. * testsuite/config-sub.data: Add i386-serenity. Signed-off-by: Dmitry V. Levin 2021-01-25 Thomas E. Dickey * config.guess: 2021-01-25 (repaired) From: Kalamatee config.guess: update AROS system detection * config.guess: Recognize *:AROS:*:*. * doc/config.guess.1: Regenerate. * testsuite/config-guess.data: Add test cases. Signed-off-by: Dmitry V. Levin 2021-01-19 Thomas E. Dickey * config.guess: 2021-01-19 (repaired) From: M. Levinson config.guess: fix shell variable quoting bug * config.guess (*:NetBSD:*:*): Spell out the full sysctl command twice instead of using a shell variable. * doc/config.guess.1: Regenerate. Fixes: 827c77253b396c07306927b2a4b794a3251c48eb Signed-off-by: Dmitry V. Levin @ text @d3 1 a3 1 # Copyright 1992-2023 Free Software Foundation, Inc. d5 1 a5 3 # shellcheck disable=SC2006,SC2268 # see below for rationale timestamp='2023-08-22' d9 1 a9 1 # the Free Software Foundation, either version 3 of the License, or d30 1 a30 1 # https://git.savannah.gnu.org/cgit/config.git/plain/config.guess a34 8 # The "shellcheck disable" line above the timestamp inhibits complaints # about features and limitations of the classic Bourne shell that were # superseded or lifted in POSIX. However, this script identifies a wide # variety of pre-POSIX systems that do not have POSIX shells at all, and # even some reasonably current systems (Solaris 10 as case-in-point) still # have a pre-POSIX /bin/sh. d40 1 a40 1 Output the configuration name of the system '$me' is run on. d53 1 a53 1 Copyright 1992-2023 Free Software Foundation, Inc. d59 1 a59 1 Try '$me --help' for more information." a86 3 # Just in case it came from the environment. GUESS= d92 2 a93 2 # Historically, 'CC_FOR_BUILD' used to be named 'HOST_CC'. We still # use 'HOST_CC' if defined, but it is deprecated. d105 1 a105 1 # shellcheck disable=SC2039,SC3028 d115 1 a115 1 CC_FOR_BUILD=$driver d136 1 a136 1 UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown d139 1 a139 1 case $UNAME_SYSTEM in d141 3 a143 1 LIBC=unknown a146 3 #if defined(__ANDROID__) LIBC=android #else d152 1 a152 1 #elif defined(__GLIBC__) a153 7 #else #include /* First heuristic to detect musl libc. */ #ifdef __DEFINED_va_list LIBC=musl #endif #endif d156 1 a156 2 cc_set_libc=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'` eval "$cc_set_libc" d158 5 a162 11 # Second heuristic to detect musl libc. if [ "$LIBC" = unknown ] && command -v ldd >/dev/null && ldd --version 2>&1 | grep -q ^musl; then LIBC=musl fi # If the system lacks a compiler, then just pick glibc. # We could probably try harder. if [ "$LIBC" = unknown ]; then LIBC=gnu d169 1 a169 1 case $UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION in d181 1 d183 2 a184 2 /sbin/sysctl -n hw.machine_arch 2>/dev/null || \ /usr/sbin/sysctl -n hw.machine_arch 2>/dev/null || \ d186 1 a186 2 case $UNAME_MACHINE_ARCH in aarch64eb) machine=aarch64_be-unknown ;; d195 1 a195 1 machine=${arch}${endian}-unknown d197 1 a197 1 *) machine=$UNAME_MACHINE_ARCH-unknown ;; d201 1 a201 1 case $UNAME_MACHINE_ARCH in d222 1 a222 1 case $UNAME_MACHINE_ARCH in d233 1 a233 1 case $UNAME_VERSION in d244 2 a245 2 GUESS=$machine-${os}${release}${abi-} ;; d248 2 a249 2 GUESS=$UNAME_MACHINE_ARCH-unknown-bitrig$UNAME_RELEASE ;; d252 2 a253 6 GUESS=$UNAME_MACHINE_ARCH-unknown-openbsd$UNAME_RELEASE ;; *:SecBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/SecBSD.//'` GUESS=$UNAME_MACHINE_ARCH-unknown-secbsd$UNAME_RELEASE ;; d256 2 a257 2 GUESS=$UNAME_MACHINE_ARCH-unknown-libertybsd$UNAME_RELEASE ;; d259 2 a260 2 GUESS=$UNAME_MACHINE-unknown-midnightbsd$UNAME_RELEASE ;; d262 2 a263 2 GUESS=$UNAME_MACHINE-unknown-ekkobsd$UNAME_RELEASE ;; d265 2 a266 2 GUESS=$UNAME_MACHINE-unknown-solidbsd$UNAME_RELEASE ;; d268 2 a269 2 GUESS=$UNAME_MACHINE-unknown-os108_$UNAME_RELEASE ;; d271 2 a272 2 GUESS=powerpc-unknown-mirbsd$UNAME_RELEASE ;; d274 2 a275 2 GUESS=$UNAME_MACHINE-unknown-mirbsd$UNAME_RELEASE ;; d277 2 a278 2 GUESS=$UNAME_MACHINE-unknown-sortix ;; d280 2 a281 2 GUESS=$UNAME_MACHINE-unknown-twizzler ;; d283 2 a284 2 GUESS=$UNAME_MACHINE-unknown-redox ;; d286 2 a287 2 GUESS=mips-dec-osf1 ;; a288 2 # Reset EXIT trap before exiting to avoid spurious non-zero exit code. trap '' 0 d302 1 a302 1 case $ALPHA_CPU_TYPE in d339 5 a343 3 OSF_REL=`echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz` GUESS=$UNAME_MACHINE-dec-osf$OSF_REL ;; d345 2 a346 2 GUESS=m68k-unknown-sysv4 ;; d348 2 a349 2 GUESS=$UNAME_MACHINE-unknown-amigaos ;; d351 2 a352 2 GUESS=$UNAME_MACHINE-unknown-morphos ;; d354 2 a355 2 GUESS=i370-ibm-openedition ;; d357 2 a358 2 GUESS=s390-ibm-zvmoe ;; d360 2 a361 2 GUESS=powerpc-ibm-os400 ;; d363 2 a364 2 GUESS=arm-acorn-riscix$UNAME_RELEASE ;; d366 2 a367 2 GUESS=arm-unknown-riscos ;; d369 2 a370 2 GUESS=hppa1.1-hitachi-hiuxmpp ;; d373 6 a378 5 case `(/bin/universe) 2>/dev/null` in att) GUESS=pyramid-pyramid-sysv3 ;; *) GUESS=pyramid-pyramid-bsd ;; esac ;; d380 2 a381 2 GUESS=pyramid-pyramid-svr4 ;; d383 2 a384 2 GUESS=sparc-icl-nx6 ;; d387 2 a388 3 sparc) GUESS=sparc-icl-nx7 ;; esac ;; d390 2 a391 3 SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` GUESS=$UNAME_MACHINE-ibm-solaris2$SUN_REL ;; d393 2 a394 3 SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` GUESS=sparc-hal-solaris2$SUN_REL ;; d396 2 a397 3 SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` GUESS=sparc-sun-solaris2$SUN_REL ;; d399 2 a400 2 GUESS=i386-pc-auroraux$UNAME_RELEASE ;; d409 1 a409 1 (CCOPTS="" $CC_FOR_BUILD -m64 -E - 2>/dev/null) | \ d415 2 a416 3 SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` GUESS=$SUN_ARCH-pc-solaris2$SUN_REL ;; d421 2 a422 3 SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` GUESS=sparc-sun-solaris3$SUN_REL ;; d424 1 a424 1 case `/usr/bin/arch -k` in d429 3 a431 4 # Japanese Language versions have a version number like '4.1.3-JL'. SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/-/_/'` GUESS=sparc-sun-sunos$SUN_REL ;; d433 2 a434 2 GUESS=m68k-sun-sunos$UNAME_RELEASE ;; d438 1 a438 1 case `/bin/arch` in d440 1 a440 1 GUESS=m68k-sun-sunos$UNAME_RELEASE d443 1 a443 1 GUESS=sparc-sun-sunos$UNAME_RELEASE d446 1 a446 1 ;; d448 2 a449 2 GUESS=sparc-auspex-sunos$UNAME_RELEASE ;; d459 2 a460 2 GUESS=m68k-atari-mint$UNAME_RELEASE ;; d462 2 a463 2 GUESS=m68k-atari-mint$UNAME_RELEASE ;; d465 2 a466 2 GUESS=m68k-atari-mint$UNAME_RELEASE ;; d468 2 a469 2 GUESS=m68k-milan-mint$UNAME_RELEASE ;; d471 2 a472 2 GUESS=m68k-hades-mint$UNAME_RELEASE ;; d474 2 a475 2 GUESS=m68k-unknown-mint$UNAME_RELEASE ;; d477 2 a478 2 GUESS=m68k-apple-machten$UNAME_RELEASE ;; d480 2 a481 2 GUESS=powerpc-apple-machten$UNAME_RELEASE ;; d483 2 a484 2 GUESS=mips-dec-mach_bsd4.3 ;; d486 2 a487 2 GUESS=mips-dec-ultrix$UNAME_RELEASE ;; d489 2 a490 2 GUESS=vax-dec-ultrix$UNAME_RELEASE ;; d492 2 a493 2 GUESS=clipper-intergraph-clix$UNAME_RELEASE ;; d521 2 a522 2 GUESS=mips-mips-riscos$UNAME_RELEASE ;; d524 2 a525 2 GUESS=powerpc-motorola-powermax ;; d527 2 a528 2 GUESS=powerpc-harris-powermax ;; d530 2 a531 2 GUESS=powerpc-harris-powermax ;; d533 2 a534 2 GUESS=powerpc-harris-powerunix ;; d536 2 a537 2 GUESS=m88k-harris-cxux7 ;; d539 2 a540 2 GUESS=m88k-motorola-sysv4 ;; d542 2 a543 2 GUESS=m88k-motorola-sysv3 ;; d552 1 a552 1 GUESS=m88k-dg-dgux$UNAME_RELEASE d554 1 a554 1 GUESS=m88k-dg-dguxbcs$UNAME_RELEASE d557 1 a557 1 GUESS=i586-dg-dgux$UNAME_RELEASE d559 1 a559 1 ;; d561 2 a562 2 GUESS=m88k-dolphin-sysv3 ;; d565 2 a566 2 GUESS=m88k-motorola-sysv3 ;; d568 2 a569 2 GUESS=m88k-tektronix-sysv3 ;; d571 2 a572 2 GUESS=m68k-tektronix-bsd ;; d574 2 a575 3 IRIX_REL=`echo "$UNAME_RELEASE" | sed -e 's/-/_/g'` GUESS=mips-sgi-irix$IRIX_REL ;; d577 2 a578 2 GUESS=romp-ibm-aix # uname -m gives an 8 hex-code CPU id ;; # Note that: echo "'`uname -s`'" gives 'AIX ' d580 2 a581 2 GUESS=i386-ibm-aix ;; d586 1 a586 1 IBM_REV=$UNAME_VERSION.$UNAME_RELEASE d588 2 a589 2 GUESS=$UNAME_MACHINE-ibm-aix$IBM_REV ;; d606 1 a606 1 GUESS=$SYSTEM_NAME d608 1 a608 1 GUESS=rs6000-ibm-aix3.2.5 d611 1 a611 1 GUESS=rs6000-ibm-aix3.2.4 d613 1 a613 1 GUESS=rs6000-ibm-aix3.2 d615 1 a615 1 ;; d624 1 a624 1 IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc | \ d627 1 a627 1 IBM_REV=$UNAME_VERSION.$UNAME_RELEASE d629 2 a630 2 GUESS=$IBM_ARCH-ibm-aix$IBM_REV ;; d632 2 a633 2 GUESS=rs6000-ibm-aix ;; d635 2 a636 2 GUESS=romp-ibm-bsd4.4 ;; d638 2 a639 2 GUESS=romp-ibm-bsd$UNAME_RELEASE # 4.3 with uname added to ;; # report: romp-ibm BSD 4.3 d641 2 a642 2 GUESS=rs6000-bull-bosx ;; d644 2 a645 2 GUESS=m68k-bull-sysv3 ;; d647 2 a648 2 GUESS=m68k-hp-bsd ;; d650 2 a651 2 GUESS=m68k-hp-bsd4.4 ;; d653 2 a654 2 HPUX_REV=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*.[0B]*//'` case $UNAME_MACHINE in d661 1 a661 1 case $sc_cpu_version in d665 1 a665 1 case $sc_kernel_bits in d732 2 a733 2 GUESS=$HP_ARCH-hp-hpux$HPUX_REV ;; d735 3 a737 3 HPUX_REV=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*.[0B]*//'` GUESS=ia64-hp-hpux$HPUX_REV ;; d767 2 a768 2 GUESS=unknown-hitachi-hiuxwe2 ;; d770 2 a771 2 GUESS=hppa1.1-hp-bsd ;; d773 2 a774 2 GUESS=hppa1.0-hp-bsd ;; d776 2 a777 2 GUESS=hppa1.0-hp-mpeix ;; d779 2 a780 2 GUESS=hppa1.1-hp-osf ;; d782 2 a783 2 GUESS=hppa1.0-hp-osf ;; d786 1 a786 1 GUESS=$UNAME_MACHINE-unknown-osf1mk d788 1 a788 1 GUESS=$UNAME_MACHINE-unknown-osf1 d790 1 a790 1 ;; d792 2 a793 2 GUESS=hppa1.1-hp-lites ;; d795 2 a796 2 GUESS=c1-convex-bsd ;; d804 2 a805 2 GUESS=c34-convex-bsd ;; d807 2 a808 2 GUESS=c38-convex-bsd ;; d810 2 a811 2 GUESS=c4-convex-bsd ;; d813 2 a814 3 CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` GUESS=ymp-cray-unicos$CRAY_REL ;; d822 2 a823 3 CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` GUESS=t90-cray-unicos$CRAY_REL ;; d825 2 a826 3 CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` GUESS=alphaev5-cray-unicosmk$CRAY_REL ;; d828 2 a829 3 CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` GUESS=sv1-cray-unicos$CRAY_REL ;; d831 2 a832 3 CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` GUESS=craynv-cray-unicosmp$CRAY_REL ;; d837 2 a838 2 GUESS=${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL} ;; d842 2 a843 2 GUESS=sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL} ;; d845 2 a846 2 GUESS=$UNAME_MACHINE-pc-bsdi$UNAME_RELEASE ;; d848 2 a849 2 GUESS=sparc-unknown-bsdi$UNAME_RELEASE ;; d851 2 a852 2 GUESS=$UNAME_MACHINE-unknown-bsdi$UNAME_RELEASE ;; d859 1 a859 2 FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL-gnueabi d861 1 a861 2 FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL-gnueabihf d863 1 a863 1 ;; d865 2 a866 2 UNAME_PROCESSOR=`uname -p` case $UNAME_PROCESSOR in d872 2 a873 3 FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL ;; d875 2 a876 2 GUESS=$UNAME_MACHINE-pc-cygwin ;; d878 2 a879 2 GUESS=$UNAME_MACHINE-pc-mingw64 ;; d881 2 a882 2 GUESS=$UNAME_MACHINE-pc-mingw32 ;; d884 2 a885 2 GUESS=$UNAME_MACHINE-pc-msys ;; d887 2 a888 5 GUESS=$UNAME_MACHINE-pc-pw32 ;; *:SerenityOS:*:*) GUESS=$UNAME_MACHINE-pc-serenity ;; d890 1 a890 1 case $UNAME_MACHINE in d892 2 a893 2 GUESS=i586-pc-interix$UNAME_RELEASE ;; d895 2 a896 2 GUESS=x86_64-unknown-interix$UNAME_RELEASE ;; d898 2 a899 2 GUESS=ia64-unknown-interix$UNAME_RELEASE ;; d902 2 a903 2 GUESS=$UNAME_MACHINE-pc-uwin ;; d905 2 a906 2 GUESS=x86_64-pc-cygwin ;; d908 2 a909 3 SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` GUESS=powerpcle-unknown-solaris2$SUN_REL ;; d912 2 a913 4 GNU_ARCH=`echo "$UNAME_MACHINE" | sed -e 's,[-/].*$,,'` GNU_REL=`echo "$UNAME_RELEASE" | sed -e 's,/.*$,,'` GUESS=$GNU_ARCH-unknown-$LIBC$GNU_REL ;; d916 2 a917 10 GNU_SYS=`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"` GNU_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` GUESS=$UNAME_MACHINE-unknown-$GNU_SYS$GNU_REL-$LIBC ;; x86_64:[Mm]anagarm:*:*|i?86:[Mm]anagarm:*:*) GUESS="$UNAME_MACHINE-pc-managarm-mlibc" ;; *:[Mm]anagarm:*:*) GUESS="$UNAME_MACHINE-unknown-managarm-mlibc" ;; d919 2 a920 2 GUESS=$UNAME_MACHINE-unknown-minix ;; d922 2 a923 22 set_cc_for_build CPU=$UNAME_MACHINE LIBCABI=$LIBC if test "$CC_FOR_BUILD" != no_compiler_found; then ABI=64 sed 's/^ //' << EOF > "$dummy.c" #ifdef __ARM_EABI__ #ifdef __ARM_PCS_VFP ABI=eabihf #else ABI=eabi #endif #endif EOF cc_set_abi=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^ABI' | sed 's, ,,g'` eval "$cc_set_abi" case $ABI in eabi | eabihf) CPU=armv8l; LIBCABI=$LIBC$ABI ;; esac fi GUESS=$CPU-unknown-linux-$LIBCABI ;; d926 2 a927 2 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; d940 5 a944 5 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; arc:Linux:*:* | arceb:Linux:*:* | arc32:Linux:*:* | arc64:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; d950 1 a950 1 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC d955 1 a955 1 GUESS=$UNAME_MACHINE-unknown-linux-${LIBC}eabi d957 1 a957 1 GUESS=$UNAME_MACHINE-unknown-linux-${LIBC}eabihf d960 1 a960 1 ;; d962 2 a963 2 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; d965 2 a966 2 GUESS=$UNAME_MACHINE-axis-linux-$LIBC ;; d968 2 a969 2 GUESS=$UNAME_MACHINE-axis-linux-$LIBC ;; d971 2 a972 2 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; d974 2 a975 2 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; d977 2 a978 2 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; d980 2 a981 2 GUESS=$UNAME_MACHINE-pc-linux-$LIBC ;; d983 2 a984 2 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; d986 2 a987 14 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; kvx:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; kvx:cos:*:*) GUESS=$UNAME_MACHINE-unknown-cos ;; kvx:mbr:*:*) GUESS=$UNAME_MACHINE-unknown-mbr ;; loongarch32:Linux:*:* | loongarch64:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; d989 2 a990 2 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; d992 2 a993 2 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; d1038 1 a1038 2 cc_set_vars=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU\|^MIPS_ENDIAN\|^LIBCABI'` eval "$cc_set_vars" d1042 2 a1043 2 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; d1045 2 a1046 2 GUESS=or1k-unknown-linux-$LIBC ;; d1048 2 a1049 2 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; d1051 2 a1052 2 GUESS=sparc-unknown-linux-$LIBC ;; d1054 2 a1055 2 GUESS=hppa64-unknown-linux-$LIBC ;; d1059 3 a1061 3 PA7*) GUESS=hppa1.1-unknown-linux-$LIBC ;; PA8*) GUESS=hppa2.0-unknown-linux-$LIBC ;; *) GUESS=hppa-unknown-linux-$LIBC ;; d1063 1 a1063 1 ;; d1065 2 a1066 2 GUESS=powerpc64-unknown-linux-$LIBC ;; d1068 2 a1069 2 GUESS=powerpc-unknown-linux-$LIBC ;; d1071 2 a1072 2 GUESS=powerpc64le-unknown-linux-$LIBC ;; d1074 5 a1078 5 GUESS=powerpcle-unknown-linux-$LIBC ;; riscv32:Linux:*:* | riscv32be:Linux:*:* | riscv64:Linux:*:* | riscv64be:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; d1080 2 a1081 2 GUESS=$UNAME_MACHINE-ibm-linux-$LIBC ;; d1083 2 a1084 2 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; d1086 2 a1087 2 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; d1089 2 a1090 2 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; d1092 2 a1093 2 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; d1095 2 a1096 2 GUESS=$UNAME_MACHINE-dec-linux-$LIBC ;; a1098 1 CPU=$UNAME_MACHINE d1101 6 a1106 16 ABI=64 sed 's/^ //' << EOF > "$dummy.c" #ifdef __i386__ ABI=x86 #else #ifdef __ILP32__ ABI=x32 #endif #endif EOF cc_set_abi=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^ABI' | sed 's, ,,g'` eval "$cc_set_abi" case $ABI in x86) CPU=i686 ;; x32) LIBCABI=${LIBC}x32 ;; esac d1108 2 a1109 2 GUESS=$CPU-pc-linux-$LIBCABI ;; d1111 2 a1112 2 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; d1117 2 a1118 2 GUESS=i386-sequent-sysv4 ;; d1125 2 a1126 2 GUESS=$UNAME_MACHINE-pc-sysv4.2uw$UNAME_VERSION ;; d1128 1 a1128 1 # If we were able to find 'uname', then EMX Unix compatibility d1130 2 a1131 2 GUESS=$UNAME_MACHINE-pc-os2-emx ;; d1133 2 a1134 2 GUESS=$UNAME_MACHINE-unknown-stop ;; d1136 2 a1137 2 GUESS=$UNAME_MACHINE-unknown-atheos ;; d1139 2 a1140 2 GUESS=$UNAME_MACHINE-pc-syllable ;; d1142 2 a1143 2 GUESS=i386-unknown-lynxos$UNAME_RELEASE ;; d1145 2 a1146 2 GUESS=$UNAME_MACHINE-pc-msdosdjgpp ;; d1150 1 a1150 1 GUESS=$UNAME_MACHINE-univel-sysv$UNAME_REL d1152 1 a1152 1 GUESS=$UNAME_MACHINE-pc-sysv$UNAME_REL d1154 1 a1154 1 ;; d1162 2 a1163 2 GUESS=$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} ;; d1167 1 a1167 1 GUESS=$UNAME_MACHINE-pc-isc$UNAME_REL d1177 1 a1177 1 GUESS=$UNAME_MACHINE-pc-sco$UNAME_REL d1179 1 a1179 1 GUESS=$UNAME_MACHINE-pc-sysv32 d1181 1 a1181 1 ;; d1189 2 a1190 2 GUESS=i586-pc-msdosdjgpp ;; d1192 2 a1193 2 GUESS=i386-pc-mach3 ;; d1195 2 a1196 2 GUESS=i860-intel-osf1 ;; d1199 1 a1199 1 GUESS=i860-stardent-sysv$UNAME_RELEASE # Stardent Vistra i860-SVR4 d1201 1 a1201 1 GUESS=i860-unknown-sysv$UNAME_RELEASE # Unknown i860-SVR4 d1203 1 a1203 1 ;; d1206 2 a1207 2 GUESS=m68010-convergent-sysv ;; d1209 2 a1210 2 GUESS=m68k-convergent-sysv ;; d1212 2 a1213 2 GUESS=m68k-diab-dnix ;; d1238 2 a1239 2 GUESS=m68k-unknown-lynxos$UNAME_RELEASE ;; d1241 2 a1242 2 GUESS=m68k-atari-sysv4 ;; d1244 2 a1245 2 GUESS=sparc-unknown-lynxos$UNAME_RELEASE ;; d1247 2 a1248 2 GUESS=rs6000-unknown-lynxos$UNAME_RELEASE ;; d1250 2 a1251 2 GUESS=powerpc-unknown-lynxos$UNAME_RELEASE ;; d1253 2 a1254 2 GUESS=mips-dde-sysv$UNAME_RELEASE ;; d1256 2 a1257 2 GUESS=mips-sni-sysv4 ;; d1259 2 a1260 2 GUESS=mips-sni-sysv4 ;; d1264 1 a1264 1 GUESS=$UNAME_MACHINE-sni-sysv4 d1266 1 a1266 1 GUESS=ns32k-sni-sysv d1268 2 a1269 2 ;; PENTIUM:*:4.0*:*) # Unisys 'ClearPath HMP IX 4000' SVR4/MP effort d1271 2 a1272 2 GUESS=i586-unisys-sysv4 ;; d1276 2 a1277 2 GUESS=hppa1.1-stratus-sysv4 ;; d1280 2 a1281 2 GUESS=i860-stratus-sysv4 ;; d1284 2 a1285 2 GUESS=$UNAME_MACHINE-stratus-vos ;; d1288 2 a1289 2 GUESS=hppa1.1-stratus-vos ;; d1291 2 a1292 2 GUESS=m68k-apple-aux$UNAME_RELEASE ;; d1294 2 a1295 2 GUESS=mips-sony-newsos6 ;; d1298 1 a1298 1 GUESS=mips-nec-sysv$UNAME_RELEASE d1300 1 a1300 1 GUESS=mips-unknown-sysv$UNAME_RELEASE d1302 1 a1302 1 ;; d1304 2 a1305 2 GUESS=powerpc-be-beos ;; d1307 2 a1308 2 GUESS=powerpc-apple-beos ;; d1310 2 a1311 2 GUESS=i586-pc-beos ;; d1313 5 a1317 8 GUESS=i586-pc-haiku ;; ppc:Haiku:*:*) # Haiku running on Apple PowerPC GUESS=powerpc-apple-haiku ;; *:Haiku:*:*) # Haiku modern gcc (not bound by BeOS compat) GUESS=$UNAME_MACHINE-unknown-haiku ;; d1319 2 a1320 2 GUESS=sx4-nec-superux$UNAME_RELEASE ;; d1322 2 a1323 2 GUESS=sx5-nec-superux$UNAME_RELEASE ;; d1325 2 a1326 2 GUESS=sx6-nec-superux$UNAME_RELEASE ;; d1328 2 a1329 2 GUESS=sx7-nec-superux$UNAME_RELEASE ;; d1331 2 a1332 2 GUESS=sx8-nec-superux$UNAME_RELEASE ;; d1334 2 a1335 2 GUESS=sx8r-nec-superux$UNAME_RELEASE ;; d1337 2 a1338 2 GUESS=sxace-nec-superux$UNAME_RELEASE ;; d1340 2 a1341 2 GUESS=powerpc-apple-rhapsody$UNAME_RELEASE ;; d1343 2 a1344 2 GUESS=$UNAME_MACHINE-apple-rhapsody$UNAME_RELEASE ;; d1346 2 a1347 2 GUESS=aarch64-apple-darwin$UNAME_RELEASE ;; d1383 2 a1384 2 GUESS=$UNAME_PROCESSOR-apple-darwin$UNAME_RELEASE ;; d1391 2 a1392 2 GUESS=$UNAME_PROCESSOR-$UNAME_MACHINE-nto-qnx$UNAME_RELEASE ;; d1394 2 a1395 2 GUESS=i386-pc-qnx ;; d1397 2 a1398 2 GUESS=neo-tandem-nsk$UNAME_RELEASE ;; d1400 2 a1401 2 GUESS=nse-tandem-nsk$UNAME_RELEASE ;; d1403 2 a1404 2 GUESS=nsr-tandem-nsk$UNAME_RELEASE ;; d1406 2 a1407 2 GUESS=nsv-tandem-nsk$UNAME_RELEASE ;; d1409 2 a1410 2 GUESS=nsx-tandem-nsk$UNAME_RELEASE ;; d1412 2 a1413 2 GUESS=mips-compaq-nonstopux ;; d1415 2 a1416 2 GUESS=bs2000-siemens-sysv ;; d1418 2 a1419 2 GUESS=$UNAME_MACHINE-$UNAME_SYSTEM-$UNAME_RELEASE ;; d1424 2 a1425 1 if test "${cputype-}" = 386; then d1427 2 a1428 2 elif test "x${cputype-}" != x; then UNAME_MACHINE=$cputype d1430 2 a1431 2 GUESS=$UNAME_MACHINE-unknown-plan9 ;; d1433 2 a1434 2 GUESS=pdp10-unknown-tops10 ;; d1436 2 a1437 2 GUESS=pdp10-unknown-tenex ;; d1439 2 a1440 2 GUESS=pdp10-dec-tops20 ;; d1442 2 a1443 2 GUESS=pdp10-xkl-tops20 ;; d1445 2 a1446 2 GUESS=pdp10-unknown-tops20 ;; d1448 2 a1449 2 GUESS=pdp10-unknown-its ;; d1451 2 a1452 2 GUESS=mips-sei-seiux$UNAME_RELEASE ;; d1454 2 a1455 3 DRAGONFLY_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` GUESS=$UNAME_MACHINE-unknown-dragonfly$DRAGONFLY_REL ;; d1458 4 a1461 4 case $UNAME_MACHINE in A*) GUESS=alpha-dec-vms ;; I*) GUESS=ia64-dec-vms ;; V*) GUESS=vax-dec-vms ;; d1464 2 a1465 2 GUESS=i386-pc-xenix ;; d1467 2 a1468 3 SKYOS_REL=`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'` GUESS=$UNAME_MACHINE-pc-skyos$SKYOS_REL ;; d1470 5 a1474 8 GUESS=$UNAME_MACHINE-pc-rdos ;; i*86:Fiwix:*:*) GUESS=$UNAME_MACHINE-pc-fiwix ;; *:AROS:*:*) GUESS=$UNAME_MACHINE-unknown-aros ;; d1476 2 a1477 2 GUESS=$UNAME_MACHINE-unknown-esx ;; d1479 2 a1480 2 GUESS=x86_64-unknown-onefs ;; d1482 2 a1483 2 GUESS=$UNAME_MACHINE-unknown-unleashed$UNAME_RELEASE ;; a1485 6 # Do we have a guess based on uname results? if test "x$GUESS" != x; then echo "$GUESS" exit fi d1617 1 a1617 1 $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null && SYSTEM_NAME=`"$dummy"` && d1625 1 a1625 1 case $UNAME_MACHINE:$UNAME_SYSTEM in d1642 1 a1642 1 https://git.savannah.gnu.org/cgit/config.git/plain/config.guess d1644 1 a1644 1 https://git.savannah.gnu.org/cgit/config.git/plain/config.sub d1647 1 a1647 2 our_year=`echo $timestamp | sed 's,-.*,,'` thisyear=`date +%Y` d1649 1 a1649 2 script_age=`expr "$thisyear" - "$our_year"` if test "$script_age" -lt 3 ; then @ 1.1.1.13 log @Import byacc-2024-12-31, previous was 2024-01-09 2024-12-31 Thomas E. Dickey * package/pkgsrc/distinfo: regen * main.c: s/0/NULL/ * main.c: gcc warning * reader.c: make UCH() consistent wrt IS_xxxx macros (prompted by patch by Christos Zoulas) 2024-12-31 Christos Zoulas * main.c: from NetBSD - if "-o" option is given, derive the filename of the ".h" definitions-file by stripping commonly-used C/C++ suffixes such as ".c" and then adding ".h" 2024-12-31 Thomas E. Dickey * main.c: provide a fallback definition for W_OK, e.g., for Windows * package/pkgsrc/Makefile: resync with pkgsrc in NetBSD 10 (report by Roland Illig) * yacc.1: minor typographical fixes * main.c: correct condition for using $TEMP environment variable (report by Johann 'Myrkraverk' Oskarsson) * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: bump 2024-12-21 Thomas E. Dickey * configure: regen * aclocal.m4: resync with my-autoconf 2024-12-14 Thomas E. Dickey * output.c, yaccpar.c: gcc15 zero vs null warnings * test/yacc/calc.tab.c, test/yacc/calc1.tab.c, test/yacc/calc2.tab.c, test/yacc/calc3.tab.c, test/yacc/calc_code_all.tab.c, test/yacc/calc_code_default.tab.c, test/yacc/calc_code_imports.tab.c, test/yacc/calc_code_provides.tab.c, test/yacc/calc_code_requires.tab.c, test/yacc/calc_code_top.tab.c, test/yacc/code_calc.code.c, test/yacc/code_calc.tab.c, test/yacc/code_error.code.c, test/yacc/code_error.tab.c, test/yacc/defines1.calc.c, test/yacc/defines2.calc.c, test/yacc/defines3.calc.c, test/yacc/empty.tab.c, test/yacc/err_syntax10.tab.c, test/yacc/err_syntax11.tab.c, test/yacc/err_syntax12.tab.c, test/yacc/err_syntax18.tab.c, test/yacc/err_syntax20.tab.c, test/yacc/error.tab.c, test/yacc/expr.oxout.tab.c, test/yacc/grammar.tab.c, test/yacc/ok_syntax1.tab.c, test/yacc/pure_calc.tab.c, test/yacc/pure_error.tab.c, test/yacc/quote_calc-s.tab.c, test/yacc/quote_calc.tab.c, test/yacc/quote_calc2-s.tab.c, test/yacc/quote_calc2.tab.c, test/yacc/quote_calc3-s.tab.c, test/yacc/quote_calc3.tab.c, test/yacc/quote_calc4-s.tab.c, test/yacc/quote_calc4.tab.c, test/yacc/rename_debug.c, test/yacc/stdin1.calc.c, test/yacc/stdin2.calc.c, test/yacc/varsyntax_calc1.tab.c, test/btyacc/btyacc_calc1.tab.c, test/btyacc/btyacc_demo.tab.c, test/btyacc/btyacc_destroy1.tab.c, test/btyacc/btyacc_destroy2.tab.c, test/btyacc/btyacc_destroy3.tab.c, test/btyacc/calc.tab.c, test/btyacc/calc1.tab.c, test/btyacc/calc2.tab.c, test/btyacc/calc3.tab.c, test/btyacc/calc_code_all.tab.c, test/btyacc/calc_code_default.tab.c, test/btyacc/calc_code_imports.tab.c, test/btyacc/calc_code_provides.tab.c, test/btyacc/calc_code_requires.tab.c, test/btyacc/calc_code_top.tab.c, test/btyacc/code_calc.code.c, test/btyacc/code_calc.tab.c, test/btyacc/code_error.code.c, test/btyacc/code_error.tab.c, test/btyacc/defines1.calc.c, test/btyacc/defines2.calc.c, test/btyacc/defines3.calc.c, test/btyacc/empty.tab.c, test/btyacc/err_inherit3.tab.c, test/btyacc/err_inherit4.tab.c, test/btyacc/err_syntax10.tab.c, test/btyacc/err_syntax11.tab.c, test/btyacc/err_syntax12.tab.c, test/btyacc/err_syntax18.tab.c, test/btyacc/err_syntax20.tab.c, test/btyacc/error.tab.c, test/btyacc/expr.oxout.tab.c, test/btyacc/grammar.tab.c, test/btyacc/inherit0.tab.c, test/btyacc/inherit1.tab.c, test/btyacc/inherit2.tab.c, test/btyacc/ok_syntax1.tab.c, test/btyacc/pure_calc.tab.c, test/btyacc/pure_error.tab.c, test/btyacc/quote_calc-s.tab.c, test/btyacc/quote_calc.tab.c, test/btyacc/quote_calc2-s.tab.c, test/btyacc/quote_calc2.tab.c, test/btyacc/quote_calc3-s.tab.c, test/btyacc/quote_calc3.tab.c, test/btyacc/quote_calc4-s.tab.c, test/btyacc/quote_calc4.tab.c, test/btyacc/rename_debug.c, test/btyacc/stdin1.calc.c, test/btyacc/stdin2.calc.c, test/btyacc/varsyntax_calc1.tab.c: regen * lalr.c, mstring.c, reader.c, btyaccpar.c, test/expr.oxout.y, test/grammar.y, test/varsyntax_calc1.y, test/err_syntax27.y, test/calc1.y, test/btyacc_demo.y, test/btyacc_calc1.y, symtab.c, main.c, mkpar.c, lr0.c, defs.h, error.c: gcc15 zero vs null warnings * configure: regen * aclocal.m4: resync with my-autoconf * package/pkgsrc/Makefile, VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec: bump 2024-07-28 Thomas E. Dickey * config.guess: 2024-07-27 2024-06-03 Thomas E. Dickey * config.sub: 2024-05-27 @ text @d3 1 a3 1 # Copyright 1992-2024 Free Software Foundation, Inc. d7 1 a7 1 timestamp='2024-07-27' d63 1 a63 1 Copyright 1992-2024 Free Software Foundation, Inc. d126 1 a126 1 for driver in cc gcc c17 c99 c89 ; do a167 2 #elif defined(__LLVM_LIBC__) LIBC=llvm d635 1 a635 2 int main () d719 1 a719 2 int main () a1595 3 *:Ironclad:*:*) GUESS=$UNAME_MACHINE-unknown-ironclad ;; a1618 1 int @ 1.1.1.14 log @Import byacc-20260126 (previous was 20241231) 2026-01-24 Thomas E. Dickey * test/expr.oxout.h, test/btyacc/calc_code_all.tab.c, test/btyacc/calc_code_all.tab.h, test/btyacc/calc_code_default.tab.c, test/btyacc/calc_code_provides.tab.c, test/btyacc/calc_code_provides.tab.h, test/btyacc/calc_code_requires.tab.c, test/btyacc/calc_code_requires.tab.h, test/btyacc/calc_code_top.tab.c, test/btyacc/ok_syntax1.tab.c, test/btyacc/ok_syntax1.tab.h, test/yacc/calc_code_all.tab.c, test/yacc/calc_code_all.tab.h, test/yacc/calc_code_default.tab.c, test/yacc/calc_code_provides.tab.c, test/yacc/calc_code_provides.tab.h, test/yacc/calc_code_requires.tab.c, test/yacc/calc_code_requires.tab.h, test/yacc/calc_code_top.tab.c, test/yacc/ok_syntax1.tab.c, test/yacc/ok_syntax1.tab.h: trim * output.c, defs.h, reader.c: add/use puts_trim() to trim trailing blanks from output files * package/debian/copyright: bump * configure: regen * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: bump 2025-12-25 Thomas E. Dickey * aclocal.m4: resync with my-autoconf 2025-12-14 Thomas E. Dickey * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: bump * configure: regen * aclocal.m4: resync with my-autoconf: reduces warnings if "modern" autoconf is used * configure.in: adjusted with autoupdate 2025-11-11 Thomas E. Dickey * configure: regen * aclocal.m4: resync with my-autoconf fixes for portability vs "t64" variants of glibc 2025-10-07 Thomas E. Dickey * main.c, closure.c, graph.c, lalr.c, lr0.c, mkpar.c, output.c, reader.c, verbose.c, warshall.c: cppcheck * package/debian/copyright, VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: bump * configure: regen * aclocal.m4: resync with my-autoconf use CF_PROG_INSTALL * configure.in: use CF_PROG_INSTALL 2025-07-09 Thomas E. Dickey * config.guess, config.sub: update to 2025-07-10 2025-06-08 Thomas E. Dickey * install-sh: fix license @ text @d3 1 a3 1 # Copyright 1992-2025 Free Software Foundation, Inc. d7 1 a7 1 timestamp='2025-07-10' d63 1 a63 1 Copyright 1992-2025 Free Software Foundation, Inc. d1600 2 a1601 5 x86_64:[Ii]ronclad:*:*|i?86:[Ii]ronclad:*:*) GUESS=$UNAME_MACHINE-pc-ironclad-mlibc ;; *:[Ii]ronclad:*:*) GUESS=$UNAME_MACHINE-unknown-ironclad-mlibc d1811 1 a1811 1 # eval: (add-hook 'before-save-hook 'time-stamp nil t) d1813 1 a1813 1 # time-stamp-format: "%Y-%02m-%02d" @