From Patrice Mandin:
authorRyan C. Gordon
Sat, 20 Aug 2005 21:39:06 +0000
changeset 1122e253d5448fce
parent 1121 7c3aa6e87a05
child 1123 28ac87a38c17
From Patrice Mandin:

"Just a request about test subdirectory: the autotools files
(config.guess, config.sub, etc...) are a bit outdated, and I have to
update them for my cross-compilation party. So it would be nice to
have these updated.

...

Just removing these files works, because then configure will use
those of SDL's topdir. Could someone else check this, just to be sure?
i.e. remove config.guess, config.sub, install-sh and mkinstalldirs from
test subdir."


I tested on Linux and MacOSX...seems to be safe, so I'm nuking the files.

--ryan.
test/config.guess
test/config.sub
test/install-sh
test/mkinstalldirs
     1.1 --- a/test/config.guess	Sat Aug 20 17:46:33 2005 +0000
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,1368 +0,0 @@
     1.4 -#! /bin/sh
     1.5 -# Attempt to guess a canonical system name.
     1.6 -#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
     1.7 -#   Free Software Foundation, Inc.
     1.8 -
     1.9 -timestamp='2001-03-16'
    1.10 -
    1.11 -# This file is free software; you can redistribute it and/or modify it
    1.12 -# under the terms of the GNU General Public License as published by
    1.13 -# the Free Software Foundation; either version 2 of the License, or
    1.14 -# (at your option) any later version.
    1.15 -#
    1.16 -# This program is distributed in the hope that it will be useful, but
    1.17 -# WITHOUT ANY WARRANTY; without even the implied warranty of
    1.18 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    1.19 -# General Public License for more details.
    1.20 -#
    1.21 -# You should have received a copy of the GNU General Public License
    1.22 -# along with this program; if not, write to the Free Software
    1.23 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
    1.24 -#
    1.25 -# As a special exception to the GNU General Public License, if you
    1.26 -# distribute this file as part of a program that contains a
    1.27 -# configuration script generated by Autoconf, you may include it under
    1.28 -# the same distribution terms that you use for the rest of that program.
    1.29 -
    1.30 -# Written by Per Bothner <bothner@cygnus.com>.
    1.31 -# Please send patches to <config-patches@gnu.org>.
    1.32 -#
    1.33 -# This script attempts to guess a canonical system name similar to
    1.34 -# config.sub.  If it succeeds, it prints the system name on stdout, and
    1.35 -# exits with 0.  Otherwise, it exits with 1.
    1.36 -#
    1.37 -# The plan is that this can be called by configure scripts if you
    1.38 -# don't specify an explicit build system type.
    1.39 -
    1.40 -me=`echo "$0" | sed -e 's,.*/,,'`
    1.41 -
    1.42 -usage="\
    1.43 -Usage: $0 [OPTION]
    1.44 -
    1.45 -Output the configuration name of the system \`$me' is run on.
    1.46 -
    1.47 -Operation modes:
    1.48 -  -h, --help         print this help, then exit
    1.49 -  -t, --time-stamp   print date of last modification, then exit
    1.50 -  -v, --version      print version number, then exit
    1.51 -
    1.52 -Report bugs and patches to <config-patches@gnu.org>."
    1.53 -
    1.54 -version="\
    1.55 -GNU config.guess ($timestamp)
    1.56 -
    1.57 -Originally written by Per Bothner.
    1.58 -Copyright (C) 1992, 93, 94, 95, 96, 97, 98, 99, 2000
    1.59 -Free Software Foundation, Inc.
    1.60 -
    1.61 -This is free software; see the source for copying conditions.  There is NO
    1.62 -warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
    1.63 -
    1.64 -help="
    1.65 -Try \`$me --help' for more information."
    1.66 -
    1.67 -# Parse command line
    1.68 -while test $# -gt 0 ; do
    1.69 -  case $1 in
    1.70 -    --time-stamp | --time* | -t )
    1.71 -       echo "$timestamp" ; exit 0 ;;
    1.72 -    --version | -v )
    1.73 -       echo "$version" ; exit 0 ;;
    1.74 -    --help | --h* | -h )
    1.75 -       echo "$usage"; exit 0 ;;
    1.76 -    -- )     # Stop option processing
    1.77 -       shift; break ;;
    1.78 -    - )	# Use stdin as input.
    1.79 -       break ;;
    1.80 -    -* )
    1.81 -       echo "$me: invalid option $1$help" >&2
    1.82 -       exit 1 ;;
    1.83 -    * )
    1.84 -       break ;;
    1.85 -  esac
    1.86 -done
    1.87 -
    1.88 -if test $# != 0; then
    1.89 -  echo "$me: too many arguments$help" >&2
    1.90 -  exit 1
    1.91 -fi
    1.92 -
    1.93 -
    1.94 -dummy=dummy-$$
    1.95 -trap 'rm -f $dummy.c $dummy.o $dummy.rel $dummy; exit 1' 1 2 15
    1.96 -
    1.97 -# CC_FOR_BUILD -- compiler used by this script.
    1.98 -# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
    1.99 -# use `HOST_CC' if defined, but it is deprecated.
   1.100 -
   1.101 -case $CC_FOR_BUILD,$HOST_CC,$CC in
   1.102 - ,,)    echo "int dummy(){}" > $dummy.c
   1.103 -	for c in cc gcc c89 ; do
   1.104 -	  ($c $dummy.c -c -o $dummy.o) >/dev/null 2>&1
   1.105 -	  if test $? = 0 ; then
   1.106 -	     CC_FOR_BUILD="$c"; break
   1.107 -	  fi
   1.108 -	done
   1.109 -	rm -f $dummy.c $dummy.o $dummy.rel
   1.110 -	if test x"$CC_FOR_BUILD" = x ; then
   1.111 -	  CC_FOR_BUILD=no_compiler_found
   1.112 -	fi
   1.113 -	;;
   1.114 - ,,*)   CC_FOR_BUILD=$CC ;;
   1.115 - ,*,*)  CC_FOR_BUILD=$HOST_CC ;;
   1.116 -esac
   1.117 -
   1.118 -# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
   1.119 -# (ghazi@noc.rutgers.edu 8/24/94.)
   1.120 -if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
   1.121 -	PATH=$PATH:/.attbin ; export PATH
   1.122 -fi
   1.123 -
   1.124 -UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
   1.125 -UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
   1.126 -UNAME_SYSTEM=`(uname -s) 2>/dev/null`  || UNAME_SYSTEM=unknown
   1.127 -UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
   1.128 -
   1.129 -# Note: order is significant - the case branches are not exclusive.
   1.130 -
   1.131 -case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
   1.132 -    *:NetBSD:*:*)
   1.133 -	# Netbsd (nbsd) targets should (where applicable) match one or
   1.134 -	# more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
   1.135 -	# *-*-netbsdecoff* and *-*-netbsd*.  For targets that recently
   1.136 -	# switched to ELF, *-*-netbsd* would select the old
   1.137 -	# object file format.  This provides both forward
   1.138 -	# compatibility and a consistent mechanism for selecting the
   1.139 -	# object file format.
   1.140 -	# Determine the machine/vendor (is the vendor relevant).
   1.141 -	case "${UNAME_MACHINE}" in
   1.142 -	    amiga) machine=m68k-unknown ;;
   1.143 -	    arm32) machine=arm-unknown ;;
   1.144 -	    atari*) machine=m68k-atari ;;
   1.145 -	    sun3*) machine=m68k-sun ;;
   1.146 -	    mac68k) machine=m68k-apple ;;
   1.147 -	    macppc) machine=powerpc-apple ;;
   1.148 -	    hp3[0-9][05]) machine=m68k-hp ;;
   1.149 -	    ibmrt|romp-ibm) machine=romp-ibm ;;
   1.150 -	    *) machine=${UNAME_MACHINE}-unknown ;;
   1.151 -	esac
   1.152 -	# The Operating System including object format, if it has switched
   1.153 -	# to ELF recently, or will in the future.
   1.154 -	case "${UNAME_MACHINE}" in
   1.155 -	    i386|sparc|amiga|arm*|hp300|mvme68k|vax|atari|luna68k|mac68k|news68k|next68k|pc532|sun3*|x68k)
   1.156 -		if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
   1.157 -			| grep __ELF__ >/dev/null
   1.158 -		then
   1.159 -		    # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
   1.160 -		    # Return netbsd for either.  FIX?
   1.161 -		    os=netbsd
   1.162 -		else
   1.163 -		    os=netbsdelf
   1.164 -		fi
   1.165 -		;;
   1.166 -	    *)
   1.167 -	        os=netbsd
   1.168 -		;;
   1.169 -	esac
   1.170 -	# The OS release
   1.171 -	release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
   1.172 -	# Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
   1.173 -	# contains redundant information, the shorter form:
   1.174 -	# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
   1.175 -	echo "${machine}-${os}${release}"
   1.176 -	exit 0 ;;
   1.177 -    alpha:OSF1:*:*)
   1.178 -	if test $UNAME_RELEASE = "V4.0"; then
   1.179 -		UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
   1.180 -	fi
   1.181 -	# A Vn.n version is a released version.
   1.182 -	# A Tn.n version is a released field test version.
   1.183 -	# A Xn.n version is an unreleased experimental baselevel.
   1.184 -	# 1.2 uses "1.2" for uname -r.
   1.185 -	cat <<EOF >$dummy.s
   1.186 -	.data
   1.187 -\$Lformat:
   1.188 -	.byte 37,100,45,37,120,10,0	# "%d-%x\n"
   1.189 -
   1.190 -	.text
   1.191 -	.globl main
   1.192 -	.align 4
   1.193 -	.ent main
   1.194 -main:
   1.195 -	.frame \$30,16,\$26,0
   1.196 -	ldgp \$29,0(\$27)
   1.197 -	.prologue 1
   1.198 -	.long 0x47e03d80 # implver \$0
   1.199 -	lda \$2,-1
   1.200 -	.long 0x47e20c21 # amask \$2,\$1
   1.201 -	lda \$16,\$Lformat
   1.202 -	mov \$0,\$17
   1.203 -	not \$1,\$18
   1.204 -	jsr \$26,printf
   1.205 -	ldgp \$29,0(\$26)
   1.206 -	mov 0,\$16
   1.207 -	jsr \$26,exit
   1.208 -	.end main
   1.209 -EOF
   1.210 -	$CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null
   1.211 -	if test "$?" = 0 ; then
   1.212 -		case `./$dummy` in
   1.213 -			0-0)
   1.214 -				UNAME_MACHINE="alpha"
   1.215 -				;;
   1.216 -			1-0)
   1.217 -				UNAME_MACHINE="alphaev5"
   1.218 -				;;
   1.219 -			1-1)
   1.220 -				UNAME_MACHINE="alphaev56"
   1.221 -				;;
   1.222 -			1-101)
   1.223 -				UNAME_MACHINE="alphapca56"
   1.224 -				;;
   1.225 -			2-303)
   1.226 -				UNAME_MACHINE="alphaev6"
   1.227 -				;;
   1.228 -			2-307)
   1.229 -				UNAME_MACHINE="alphaev67"
   1.230 -				;;
   1.231 -		esac
   1.232 -	fi
   1.233 -	rm -f $dummy.s $dummy
   1.234 -	echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
   1.235 -	exit 0 ;;
   1.236 -    Alpha\ *:Windows_NT*:*)
   1.237 -	# How do we know it's Interix rather than the generic POSIX subsystem?
   1.238 -	# Should we change UNAME_MACHINE based on the output of uname instead
   1.239 -	# of the specific Alpha model?
   1.240 -	echo alpha-pc-interix
   1.241 -	exit 0 ;;
   1.242 -    21064:Windows_NT:50:3)
   1.243 -	echo alpha-dec-winnt3.5
   1.244 -	exit 0 ;;
   1.245 -    Amiga*:UNIX_System_V:4.0:*)
   1.246 -	echo m68k-unknown-sysv4
   1.247 -	exit 0;;
   1.248 -    amiga:OpenBSD:*:*)
   1.249 -	echo m68k-unknown-openbsd${UNAME_RELEASE}
   1.250 -	exit 0 ;;
   1.251 -    *:[Aa]miga[Oo][Ss]:*:*)
   1.252 -	echo ${UNAME_MACHINE}-unknown-amigaos
   1.253 -	exit 0 ;;
   1.254 -    arc64:OpenBSD:*:*)
   1.255 -	echo mips64el-unknown-openbsd${UNAME_RELEASE}
   1.256 -	exit 0 ;;
   1.257 -    arc:OpenBSD:*:*)
   1.258 -	echo mipsel-unknown-openbsd${UNAME_RELEASE}
   1.259 -	exit 0 ;;
   1.260 -    hkmips:OpenBSD:*:*)
   1.261 -	echo mips-unknown-openbsd${UNAME_RELEASE}
   1.262 -	exit 0 ;;
   1.263 -    pmax:OpenBSD:*:*)
   1.264 -	echo mipsel-unknown-openbsd${UNAME_RELEASE}
   1.265 -	exit 0 ;;
   1.266 -    sgi:OpenBSD:*:*)
   1.267 -	echo mips-unknown-openbsd${UNAME_RELEASE}
   1.268 -	exit 0 ;;
   1.269 -    wgrisc:OpenBSD:*:*)
   1.270 -	echo mipsel-unknown-openbsd${UNAME_RELEASE}
   1.271 -	exit 0 ;;
   1.272 -    *:OS/390:*:*)
   1.273 -	echo i370-ibm-openedition
   1.274 -	exit 0 ;;
   1.275 -    arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
   1.276 -	echo arm-acorn-riscix${UNAME_RELEASE}
   1.277 -	exit 0;;
   1.278 -    SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
   1.279 -	echo hppa1.1-hitachi-hiuxmpp
   1.280 -	exit 0;;
   1.281 -    Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
   1.282 -	# akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
   1.283 -	if test "`(/bin/universe) 2>/dev/null`" = att ; then
   1.284 -		echo pyramid-pyramid-sysv3
   1.285 -	else
   1.286 -		echo pyramid-pyramid-bsd
   1.287 -	fi
   1.288 -	exit 0 ;;
   1.289 -    NILE*:*:*:dcosx)
   1.290 -	echo pyramid-pyramid-svr4
   1.291 -	exit 0 ;;
   1.292 -    sun4H:SunOS:5.*:*)
   1.293 -	echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
   1.294 -	exit 0 ;;
   1.295 -    sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
   1.296 -	echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
   1.297 -	exit 0 ;;
   1.298 -    i86pc:SunOS:5.*:*)
   1.299 -	echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
   1.300 -	exit 0 ;;
   1.301 -    sun4*:SunOS:6*:*)
   1.302 -	# According to config.sub, this is the proper way to canonicalize
   1.303 -	# SunOS6.  Hard to guess exactly what SunOS6 will be like, but
   1.304 -	# it's likely to be more like Solaris than SunOS4.
   1.305 -	echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
   1.306 -	exit 0 ;;
   1.307 -    sun4*:SunOS:*:*)
   1.308 -	case "`/usr/bin/arch -k`" in
   1.309 -	    Series*|S4*)
   1.310 -		UNAME_RELEASE=`uname -v`
   1.311 -		;;
   1.312 -	esac
   1.313 -	# Japanese Language versions have a version number like `4.1.3-JL'.
   1.314 -	echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
   1.315 -	exit 0 ;;
   1.316 -    sun3*:SunOS:*:*)
   1.317 -	echo m68k-sun-sunos${UNAME_RELEASE}
   1.318 -	exit 0 ;;
   1.319 -    sun*:*:4.2BSD:*)
   1.320 -	UNAME_RELEASE=`(head -1 /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
   1.321 -	test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
   1.322 -	case "`/bin/arch`" in
   1.323 -	    sun3)
   1.324 -		echo m68k-sun-sunos${UNAME_RELEASE}
   1.325 -		;;
   1.326 -	    sun4)
   1.327 -		echo sparc-sun-sunos${UNAME_RELEASE}
   1.328 -		;;
   1.329 -	esac
   1.330 -	exit 0 ;;
   1.331 -    aushp:SunOS:*:*)
   1.332 -	echo sparc-auspex-sunos${UNAME_RELEASE}
   1.333 -	exit 0 ;;
   1.334 -    atari*:OpenBSD:*:*)
   1.335 -	echo m68k-unknown-openbsd${UNAME_RELEASE}
   1.336 -	exit 0 ;;
   1.337 -    # The situation for MiNT is a little confusing.  The machine name
   1.338 -    # can be virtually everything (everything which is not
   1.339 -    # "atarist" or "atariste" at least should have a processor
   1.340 -    # > m68000).  The system name ranges from "MiNT" over "FreeMiNT"
   1.341 -    # to the lowercase version "mint" (or "freemint").  Finally
   1.342 -    # the system name "TOS" denotes a system which is actually not
   1.343 -    # MiNT.  But MiNT is downward compatible to TOS, so this should
   1.344 -    # be no problem.
   1.345 -    atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
   1.346 -        echo m68k-atari-mint${UNAME_RELEASE}
   1.347 -	exit 0 ;;
   1.348 -    atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
   1.349 -	echo m68k-atari-mint${UNAME_RELEASE}
   1.350 -        exit 0 ;;
   1.351 -    *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
   1.352 -        echo m68k-atari-mint${UNAME_RELEASE}
   1.353 -	exit 0 ;;
   1.354 -    milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
   1.355 -        echo m68k-milan-mint${UNAME_RELEASE}
   1.356 -        exit 0 ;;
   1.357 -    hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
   1.358 -        echo m68k-hades-mint${UNAME_RELEASE}
   1.359 -        exit 0 ;;
   1.360 -    *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
   1.361 -        echo m68k-unknown-mint${UNAME_RELEASE}
   1.362 -        exit 0 ;;
   1.363 -    sun3*:OpenBSD:*:*)
   1.364 -	echo m68k-unknown-openbsd${UNAME_RELEASE}
   1.365 -	exit 0 ;;
   1.366 -    mac68k:OpenBSD:*:*)
   1.367 -	echo m68k-unknown-openbsd${UNAME_RELEASE}
   1.368 -	exit 0 ;;
   1.369 -    mvme68k:OpenBSD:*:*)
   1.370 -	echo m68k-unknown-openbsd${UNAME_RELEASE}
   1.371 -	exit 0 ;;
   1.372 -    mvme88k:OpenBSD:*:*)
   1.373 -	echo m88k-unknown-openbsd${UNAME_RELEASE}
   1.374 -	exit 0 ;;
   1.375 -    powerpc:machten:*:*)
   1.376 -	echo powerpc-apple-machten${UNAME_RELEASE}
   1.377 -	exit 0 ;;
   1.378 -    RISC*:Mach:*:*)
   1.379 -	echo mips-dec-mach_bsd4.3
   1.380 -	exit 0 ;;
   1.381 -    RISC*:ULTRIX:*:*)
   1.382 -	echo mips-dec-ultrix${UNAME_RELEASE}
   1.383 -	exit 0 ;;
   1.384 -    VAX*:ULTRIX*:*:*)
   1.385 -	echo vax-dec-ultrix${UNAME_RELEASE}
   1.386 -	exit 0 ;;
   1.387 -    2020:CLIX:*:* | 2430:CLIX:*:*)
   1.388 -	echo clipper-intergraph-clix${UNAME_RELEASE}
   1.389 -	exit 0 ;;
   1.390 -    mips:*:*:UMIPS | mips:*:*:RISCos)
   1.391 -	sed 's/^	//' << EOF >$dummy.c
   1.392 -#ifdef __cplusplus
   1.393 -#include <stdio.h>  /* for printf() prototype */
   1.394 -	int main (int argc, char *argv[]) {
   1.395 -#else
   1.396 -	int main (argc, argv) int argc; char *argv[]; {
   1.397 -#endif
   1.398 -	#if defined (host_mips) && defined (MIPSEB)
   1.399 -	#if defined (SYSTYPE_SYSV)
   1.400 -	  printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
   1.401 -	#endif
   1.402 -	#if defined (SYSTYPE_SVR4)
   1.403 -	  printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
   1.404 -	#endif
   1.405 -	#if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
   1.406 -	  printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
   1.407 -	#endif
   1.408 -	#endif
   1.409 -	  exit (-1);
   1.410 -	}
   1.411 -EOF
   1.412 -	$CC_FOR_BUILD $dummy.c -o $dummy \
   1.413 -	  && ./$dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
   1.414 -	  && rm -f $dummy.c $dummy && exit 0
   1.415 -	rm -f $dummy.c $dummy
   1.416 -	echo mips-mips-riscos${UNAME_RELEASE}
   1.417 -	exit 0 ;;
   1.418 -    Night_Hawk:Power_UNIX:*:*)
   1.419 -	echo powerpc-harris-powerunix
   1.420 -	exit 0 ;;
   1.421 -    m88k:CX/UX:7*:*)
   1.422 -	echo m88k-harris-cxux7
   1.423 -	exit 0 ;;
   1.424 -    m88k:*:4*:R4*)
   1.425 -	echo m88k-motorola-sysv4
   1.426 -	exit 0 ;;
   1.427 -    m88k:*:3*:R3*)
   1.428 -	echo m88k-motorola-sysv3
   1.429 -	exit 0 ;;
   1.430 -    AViiON:dgux:*:*)
   1.431 -        # DG/UX returns AViiON for all architectures
   1.432 -        UNAME_PROCESSOR=`/usr/bin/uname -p`
   1.433 -	if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
   1.434 -	then
   1.435 -	    if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
   1.436 -	       [ ${TARGET_BINARY_INTERFACE}x = x ]
   1.437 -	    then
   1.438 -		echo m88k-dg-dgux${UNAME_RELEASE}
   1.439 -	    else
   1.440 -		echo m88k-dg-dguxbcs${UNAME_RELEASE}
   1.441 -	    fi
   1.442 -	else
   1.443 -	    echo i586-dg-dgux${UNAME_RELEASE}
   1.444 -	fi
   1.445 - 	exit 0 ;;
   1.446 -    M88*:DolphinOS:*:*)	# DolphinOS (SVR3)
   1.447 -	echo m88k-dolphin-sysv3
   1.448 -	exit 0 ;;
   1.449 -    M88*:*:R3*:*)
   1.450 -	# Delta 88k system running SVR3
   1.451 -	echo m88k-motorola-sysv3
   1.452 -	exit 0 ;;
   1.453 -    XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
   1.454 -	echo m88k-tektronix-sysv3
   1.455 -	exit 0 ;;
   1.456 -    Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
   1.457 -	echo m68k-tektronix-bsd
   1.458 -	exit 0 ;;
   1.459 -    *:IRIX*:*:*)
   1.460 -	echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
   1.461 -	exit 0 ;;
   1.462 -    ????????:AIX?:[12].1:2)   # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
   1.463 -	echo romp-ibm-aix      # uname -m gives an 8 hex-code CPU id
   1.464 -	exit 0 ;;              # Note that: echo "'`uname -s`'" gives 'AIX '
   1.465 -    i?86:AIX:*:*)
   1.466 -	echo i386-ibm-aix
   1.467 -	exit 0 ;;
   1.468 -    ia64:AIX:*:*)
   1.469 -	if [ -x /usr/bin/oslevel ] ; then
   1.470 -		IBM_REV=`/usr/bin/oslevel`
   1.471 -	else
   1.472 -		IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
   1.473 -	fi
   1.474 -	echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
   1.475 -	exit 0 ;;
   1.476 -    *:AIX:2:3)
   1.477 -	if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
   1.478 -		sed 's/^		//' << EOF >$dummy.c
   1.479 -		#include <sys/systemcfg.h>
   1.480 -
   1.481 -		main()
   1.482 -			{
   1.483 -			if (!__power_pc())
   1.484 -				exit(1);
   1.485 -			puts("powerpc-ibm-aix3.2.5");
   1.486 -			exit(0);
   1.487 -			}
   1.488 -EOF
   1.489 -		$CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm -f $dummy.c $dummy && exit 0
   1.490 -		rm -f $dummy.c $dummy
   1.491 -		echo rs6000-ibm-aix3.2.5
   1.492 -	elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
   1.493 -		echo rs6000-ibm-aix3.2.4
   1.494 -	else
   1.495 -		echo rs6000-ibm-aix3.2
   1.496 -	fi
   1.497 -	exit 0 ;;
   1.498 -    *:AIX:*:[45])
   1.499 -	IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | head -1 | awk '{ print $1 }'`
   1.500 -	if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
   1.501 -		IBM_ARCH=rs6000
   1.502 -	else
   1.503 -		IBM_ARCH=powerpc
   1.504 -	fi
   1.505 -	if [ -x /usr/bin/oslevel ] ; then
   1.506 -		IBM_REV=`/usr/bin/oslevel`
   1.507 -	else
   1.508 -		IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
   1.509 -	fi
   1.510 -	echo ${IBM_ARCH}-ibm-aix${IBM_REV}
   1.511 -	exit 0 ;;
   1.512 -    *:AIX:*:*)
   1.513 -	echo rs6000-ibm-aix
   1.514 -	exit 0 ;;
   1.515 -    ibmrt:4.4BSD:*|romp-ibm:BSD:*)
   1.516 -	echo romp-ibm-bsd4.4
   1.517 -	exit 0 ;;
   1.518 -    ibmrt:*BSD:*|romp-ibm:BSD:*)            # covers RT/PC BSD and
   1.519 -	echo romp-ibm-bsd${UNAME_RELEASE}   # 4.3 with uname added to
   1.520 -	exit 0 ;;                           # report: romp-ibm BSD 4.3
   1.521 -    *:BOSX:*:*)
   1.522 -	echo rs6000-bull-bosx
   1.523 -	exit 0 ;;
   1.524 -    DPX/2?00:B.O.S.:*:*)
   1.525 -	echo m68k-bull-sysv3
   1.526 -	exit 0 ;;
   1.527 -    9000/[34]??:4.3bsd:1.*:*)
   1.528 -	echo m68k-hp-bsd
   1.529 -	exit 0 ;;
   1.530 -    hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
   1.531 -	echo m68k-hp-bsd4.4
   1.532 -	exit 0 ;;
   1.533 -    9000/[34678]??:HP-UX:*:*)
   1.534 -	HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
   1.535 -	case "${UNAME_MACHINE}" in
   1.536 -	    9000/31? )            HP_ARCH=m68000 ;;
   1.537 -	    9000/[34]?? )         HP_ARCH=m68k ;;
   1.538 -	    9000/[678][0-9][0-9])
   1.539 -              case "${HPUX_REV}" in
   1.540 -                11.[0-9][0-9])
   1.541 -                  if [ -x /usr/bin/getconf ]; then
   1.542 -                    sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
   1.543 -                    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
   1.544 -                    case "${sc_cpu_version}" in
   1.545 -                      523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
   1.546 -                      528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
   1.547 -                      532)                      # CPU_PA_RISC2_0
   1.548 -                        case "${sc_kernel_bits}" in
   1.549 -                          32) HP_ARCH="hppa2.0n" ;;
   1.550 -                          64) HP_ARCH="hppa2.0w" ;;
   1.551 -                        esac ;;
   1.552 -                    esac
   1.553 -                  fi ;;
   1.554 -              esac
   1.555 -              if [ "${HP_ARCH}" = "" ]; then
   1.556 -              sed 's/^              //' << EOF >$dummy.c
   1.557 -
   1.558 -              #define _HPUX_SOURCE
   1.559 -              #include <stdlib.h>
   1.560 -              #include <unistd.h>
   1.561 -
   1.562 -              int main ()
   1.563 -              {
   1.564 -              #if defined(_SC_KERNEL_BITS)
   1.565 -                  long bits = sysconf(_SC_KERNEL_BITS);
   1.566 -              #endif
   1.567 -                  long cpu  = sysconf (_SC_CPU_VERSION);
   1.568 -
   1.569 -                  switch (cpu)
   1.570 -              	{
   1.571 -              	case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
   1.572 -              	case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
   1.573 -              	case CPU_PA_RISC2_0:
   1.574 -              #if defined(_SC_KERNEL_BITS)
   1.575 -              	    switch (bits)
   1.576 -              		{
   1.577 -              		case 64: puts ("hppa2.0w"); break;
   1.578 -              		case 32: puts ("hppa2.0n"); break;
   1.579 -              		default: puts ("hppa2.0"); break;
   1.580 -              		} break;
   1.581 -              #else  /* !defined(_SC_KERNEL_BITS) */
   1.582 -              	    puts ("hppa2.0"); break;
   1.583 -              #endif
   1.584 -              	default: puts ("hppa1.0"); break;
   1.585 -              	}
   1.586 -                  exit (0);
   1.587 -              }
   1.588 -EOF
   1.589 -	(CCOPTS= $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null ) && HP_ARCH=`./$dummy`
   1.590 -	if test -z "$HP_ARCH"; then HP_ARCH=hppa; fi
   1.591 -	rm -f $dummy.c $dummy
   1.592 -	fi ;;
   1.593 -	esac
   1.594 -	echo ${HP_ARCH}-hp-hpux${HPUX_REV}
   1.595 -	exit 0 ;;
   1.596 -    ia64:HP-UX:*:*)
   1.597 -	HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
   1.598 -	echo ia64-hp-hpux${HPUX_REV}
   1.599 -	exit 0 ;;
   1.600 -    3050*:HI-UX:*:*)
   1.601 -	sed 's/^	//' << EOF >$dummy.c
   1.602 -	#include <unistd.h>
   1.603 -	int
   1.604 -	main ()
   1.605 -	{
   1.606 -	  long cpu = sysconf (_SC_CPU_VERSION);
   1.607 -	  /* The order matters, because CPU_IS_HP_MC68K erroneously returns
   1.608 -	     true for CPU_PA_RISC1_0.  CPU_IS_PA_RISC returns correct
   1.609 -	     results, however.  */
   1.610 -	  if (CPU_IS_PA_RISC (cpu))
   1.611 -	    {
   1.612 -	      switch (cpu)
   1.613 -		{
   1.614 -		  case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
   1.615 -		  case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
   1.616 -		  case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
   1.617 -		  default: puts ("hppa-hitachi-hiuxwe2"); break;
   1.618 -		}
   1.619 -	    }
   1.620 -	  else if (CPU_IS_HP_MC68K (cpu))
   1.621 -	    puts ("m68k-hitachi-hiuxwe2");
   1.622 -	  else puts ("unknown-hitachi-hiuxwe2");
   1.623 -	  exit (0);
   1.624 -	}
   1.625 -EOF
   1.626 -	$CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm -f $dummy.c $dummy && exit 0
   1.627 -	rm -f $dummy.c $dummy
   1.628 -	echo unknown-hitachi-hiuxwe2
   1.629 -	exit 0 ;;
   1.630 -    9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
   1.631 -	echo hppa1.1-hp-bsd
   1.632 -	exit 0 ;;
   1.633 -    9000/8??:4.3bsd:*:*)
   1.634 -	echo hppa1.0-hp-bsd
   1.635 -	exit 0 ;;
   1.636 -    *9??*:MPE/iX:*:*)
   1.637 -	echo hppa1.0-hp-mpeix
   1.638 -	exit 0 ;;
   1.639 -    hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
   1.640 -	echo hppa1.1-hp-osf
   1.641 -	exit 0 ;;
   1.642 -    hp8??:OSF1:*:*)
   1.643 -	echo hppa1.0-hp-osf
   1.644 -	exit 0 ;;
   1.645 -    i?86:OSF1:*:*)
   1.646 -	if [ -x /usr/sbin/sysversion ] ; then
   1.647 -	    echo ${UNAME_MACHINE}-unknown-osf1mk
   1.648 -	else
   1.649 -	    echo ${UNAME_MACHINE}-unknown-osf1
   1.650 -	fi
   1.651 -	exit 0 ;;
   1.652 -    parisc*:Lites*:*:*)
   1.653 -	echo hppa1.1-hp-lites
   1.654 -	exit 0 ;;
   1.655 -    hppa*:OpenBSD:*:*)
   1.656 -	echo hppa-unknown-openbsd
   1.657 -	exit 0 ;;
   1.658 -    C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
   1.659 -	echo c1-convex-bsd
   1.660 -        exit 0 ;;
   1.661 -    C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
   1.662 -	if getsysinfo -f scalar_acc
   1.663 -	then echo c32-convex-bsd
   1.664 -	else echo c2-convex-bsd
   1.665 -	fi
   1.666 -        exit 0 ;;
   1.667 -    C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
   1.668 -	echo c34-convex-bsd
   1.669 -        exit 0 ;;
   1.670 -    C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
   1.671 -	echo c38-convex-bsd
   1.672 -        exit 0 ;;
   1.673 -    C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
   1.674 -	echo c4-convex-bsd
   1.675 -        exit 0 ;;
   1.676 -    CRAY*X-MP:*:*:*)
   1.677 -	echo xmp-cray-unicos
   1.678 -        exit 0 ;;
   1.679 -    CRAY*Y-MP:*:*:*)
   1.680 -	echo ymp-cray-unicos${UNAME_RELEASE}
   1.681 -	exit 0 ;;
   1.682 -    CRAY*[A-Z]90:*:*:*)
   1.683 -	echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
   1.684 -	| sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
   1.685 -	      -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/
   1.686 -	exit 0 ;;
   1.687 -    CRAY*TS:*:*:*)
   1.688 -	echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
   1.689 -	exit 0 ;;
   1.690 -    CRAY*T3D:*:*:*)
   1.691 -	echo alpha-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
   1.692 -	exit 0 ;;
   1.693 -    CRAY*T3E:*:*:*)
   1.694 -	echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
   1.695 -	exit 0 ;;
   1.696 -    CRAY*SV1:*:*:*)
   1.697 -	echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
   1.698 -	exit 0 ;;
   1.699 -    CRAY-2:*:*:*)
   1.700 -	echo cray2-cray-unicos
   1.701 -        exit 0 ;;
   1.702 -    F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
   1.703 -	FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
   1.704 -        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
   1.705 -        FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
   1.706 -        echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
   1.707 -        exit 0 ;;
   1.708 -    hp300:OpenBSD:*:*)
   1.709 -	echo m68k-unknown-openbsd${UNAME_RELEASE}
   1.710 -	exit 0 ;;
   1.711 -    i?86:BSD/386:*:* | i?86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
   1.712 -	echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
   1.713 -	exit 0 ;;
   1.714 -    sparc*:BSD/OS:*:*)
   1.715 -	echo sparc-unknown-bsdi${UNAME_RELEASE}
   1.716 -	exit 0 ;;
   1.717 -    *:BSD/OS:*:*)
   1.718 -	echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
   1.719 -	exit 0 ;;
   1.720 -    *:FreeBSD:*:*)
   1.721 -	echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
   1.722 -	exit 0 ;;
   1.723 -    *:OpenBSD:*:*)
   1.724 -	echo ${UNAME_MACHINE}-unknown-openbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
   1.725 -	exit 0 ;;
   1.726 -    i*:CYGWIN*:*)
   1.727 -	echo ${UNAME_MACHINE}-pc-cygwin
   1.728 -	exit 0 ;;
   1.729 -    i*:MINGW*:*)
   1.730 -	echo ${UNAME_MACHINE}-pc-mingw32
   1.731 -	exit 0 ;;
   1.732 -    i*:PW*:*)
   1.733 -	echo ${UNAME_MACHINE}-pc-pw32
   1.734 -	exit 0 ;;
   1.735 -    i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
   1.736 -	# How do we know it's Interix rather than the generic POSIX subsystem?
   1.737 -	# It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
   1.738 -	# UNAME_MACHINE based on the output of uname instead of i386?
   1.739 -	echo i386-pc-interix
   1.740 -	exit 0 ;;
   1.741 -    i*:UWIN*:*)
   1.742 -	echo ${UNAME_MACHINE}-pc-uwin
   1.743 -	exit 0 ;;
   1.744 -    p*:CYGWIN*:*)
   1.745 -	echo powerpcle-unknown-cygwin
   1.746 -	exit 0 ;;
   1.747 -    prep*:SunOS:5.*:*)
   1.748 -	echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
   1.749 -	exit 0 ;;
   1.750 -    *:GNU:*:*)
   1.751 -	echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
   1.752 -	exit 0 ;;
   1.753 -    i*86:Minix:*:*)
   1.754 -	echo ${UNAME_MACHINE}-pc-minix
   1.755 -	exit 0 ;;
   1.756 -    arm*:Linux:*:*)
   1.757 -	echo ${UNAME_MACHINE}-unknown-linux-gnu
   1.758 -	exit 0 ;;
   1.759 -    ia64:Linux:*:*)
   1.760 -	echo ${UNAME_MACHINE}-unknown-linux
   1.761 -	exit 0 ;;
   1.762 -    m68*:Linux:*:*)
   1.763 -	echo ${UNAME_MACHINE}-unknown-linux-gnu
   1.764 -	exit 0 ;;
   1.765 -    mips:Linux:*:*)
   1.766 -	cat >$dummy.c <<EOF
   1.767 -#ifdef __cplusplus
   1.768 -#include <stdio.h>  /* for printf() prototype */
   1.769 -int main (int argc, char *argv[]) {
   1.770 -#else
   1.771 -int main (argc, argv) int argc; char *argv[]; {
   1.772 -#endif
   1.773 -#ifdef __MIPSEB__
   1.774 -  printf ("%s-unknown-linux-gnu\n", argv[1]);
   1.775 -#endif
   1.776 -#ifdef __MIPSEL__
   1.777 -  printf ("%sel-unknown-linux-gnu\n", argv[1]);
   1.778 -#endif
   1.779 -  return 0;
   1.780 -}
   1.781 -EOF
   1.782 -	$CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy "${UNAME_MACHINE}" && rm -f $dummy.c $dummy && exit 0
   1.783 -	rm -f $dummy.c $dummy
   1.784 -	;;
   1.785 -    ppc:Linux:*:*)
   1.786 -	# Determine Lib Version
   1.787 -	cat >$dummy.c <<EOF
   1.788 -#include <features.h>
   1.789 -#if defined(__GLIBC__)
   1.790 -extern char __libc_version[];
   1.791 -extern char __libc_release[];
   1.792 -#endif
   1.793 -main(argc, argv)
   1.794 -     int argc;
   1.795 -     char *argv[];
   1.796 -{
   1.797 -#if defined(__GLIBC__)
   1.798 -  printf("%s %s\n", __libc_version, __libc_release);
   1.799 -#else
   1.800 -  printf("unknown\n");
   1.801 -#endif
   1.802 -  return 0;
   1.803 -}
   1.804 -EOF
   1.805 -	LIBC=""
   1.806 -	$CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null
   1.807 -	if test "$?" = 0 ; then
   1.808 -		./$dummy | grep 1\.99 > /dev/null
   1.809 -		if test "$?" = 0 ; then LIBC="libc1" ; fi
   1.810 -	fi
   1.811 -	rm -f $dummy.c $dummy
   1.812 -	echo powerpc-unknown-linux-gnu${LIBC}
   1.813 -	exit 0 ;;
   1.814 -    alpha:Linux:*:*)
   1.815 -	cat <<EOF >$dummy.s
   1.816 -	  .data
   1.817 -	  \$Lformat:
   1.818 -		.byte 37,100,45,37,120,10,0	# "%d-%x\n"
   1.819 -	   .text
   1.820 -		.globl main
   1.821 -		.align 4
   1.822 -		.ent main
   1.823 -	    main:
   1.824 -		.frame \$30,16,\$26,0
   1.825 -		ldgp \$29,0(\$27)
   1.826 -		.prologue 1
   1.827 -		.long 0x47e03d80 # implver \$0
   1.828 -		lda \$2,-1
   1.829 -		.long 0x47e20c21 # amask \$2,\$1
   1.830 -		lda \$16,\$Lformat
   1.831 -		mov \$0,\$17
   1.832 -		not \$1,\$18
   1.833 -		jsr \$26,printf
   1.834 -		ldgp \$29,0(\$26)
   1.835 -		mov 0,\$16
   1.836 -		jsr \$26,exit
   1.837 -		.end main
   1.838 -EOF
   1.839 -	LIBC=""
   1.840 -	$CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null
   1.841 -	if test "$?" = 0 ; then
   1.842 -		case `./$dummy` in
   1.843 -		0-0)	UNAME_MACHINE="alpha" ;;
   1.844 -		1-0)	UNAME_MACHINE="alphaev5" ;;
   1.845 -		1-1)    UNAME_MACHINE="alphaev56" ;;
   1.846 -		1-101)	UNAME_MACHINE="alphapca56" ;;
   1.847 -		2-303)	UNAME_MACHINE="alphaev6" ;;
   1.848 -		2-307)	UNAME_MACHINE="alphaev67" ;;
   1.849 -		esac
   1.850 -		objdump --private-headers $dummy | \
   1.851 -		  grep ld.so.1 > /dev/null
   1.852 -		if test "$?" = 0 ; then
   1.853 -			LIBC="libc1"
   1.854 -		fi
   1.855 -	fi
   1.856 -	rm -f $dummy.s $dummy
   1.857 -	echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
   1.858 -	exit 0 ;;
   1.859 -    parisc:Linux:*:* | hppa:Linux:*:*)
   1.860 -	# Look for CPU level
   1.861 -	case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
   1.862 -	  PA7*) echo hppa1.1-unknown-linux-gnu ;;
   1.863 -	  PA8*) echo hppa2.0-unknown-linux-gnu ;;
   1.864 -	  *)    echo hppa-unknown-linux-gnu ;;
   1.865 -	esac
   1.866 -	exit 0 ;;
   1.867 -    parisc64:Linux:*:* | hppa64:Linux:*:*)
   1.868 -	echo hppa64-unknown-linux-gnu
   1.869 -	exit 0 ;;
   1.870 -    s390:Linux:*:* | s390x:Linux:*:*)
   1.871 -	echo ${UNAME_MACHINE}-ibm-linux
   1.872 -	exit 0 ;;
   1.873 -    sh*:Linux:*:*)
   1.874 -	echo ${UNAME_MACHINE}-unknown-linux-gnu
   1.875 -	exit 0 ;;
   1.876 -    sparc:Linux:*:* | sparc64:Linux:*:*)
   1.877 -	echo ${UNAME_MACHINE}-unknown-linux-gnu
   1.878 -	exit 0 ;;
   1.879 -    x86_64:Linux:*:*)
   1.880 -	echo x86_64-unknown-linux-gnu
   1.881 -	exit 0 ;;
   1.882 -    i?86:Linux:*:*)
   1.883 -	# The BFD linker knows what the default object file format is, so
   1.884 -	# first see if it will tell us. cd to the root directory to prevent
   1.885 -	# problems with other programs or directories called `ld' in the path.
   1.886 -	ld_supported_emulations=`cd /; ld --help 2>&1 \
   1.887 -			 | sed -ne '/supported emulations:/!d
   1.888 -				    s/[ 	][ 	]*/ /g
   1.889 -				    s/.*supported emulations: *//
   1.890 -				    s/ .*//
   1.891 -				    p'`
   1.892 -        case "$ld_supported_emulations" in
   1.893 -	  i?86linux)
   1.894 -		echo "${UNAME_MACHINE}-pc-linux-gnuaout"
   1.895 -		exit 0
   1.896 -		;;
   1.897 -	  elf_i?86)
   1.898 -		TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
   1.899 -		;;
   1.900 -	  i?86coff)
   1.901 -		echo "${UNAME_MACHINE}-pc-linux-gnucoff"
   1.902 -		exit 0
   1.903 -		;;
   1.904 -	esac
   1.905 -	# Either a pre-BFD a.out linker (linux-gnuoldld)
   1.906 -	# or one that does not give us useful --help.
   1.907 -	# GCC wants to distinguish between linux-gnuoldld and linux-gnuaout.
   1.908 -	# If ld does not provide *any* "supported emulations:"
   1.909 -	# that means it is gnuoldld.
   1.910 -	test -z "$ld_supported_emulations" && echo "${UNAME_MACHINE}-pc-linux-gnuoldld" && exit 0
   1.911 -	case "${UNAME_MACHINE}" in
   1.912 -	i?86)
   1.913 -	  VENDOR=pc;
   1.914 -	  ;;
   1.915 -	*)
   1.916 -	  VENDOR=unknown;
   1.917 -	  ;;
   1.918 -	esac
   1.919 -	# Determine whether the default compiler is a.out or elf
   1.920 -	cat >$dummy.c <<EOF
   1.921 -#include <features.h>
   1.922 -#ifdef __cplusplus
   1.923 -#include <stdio.h>  /* for printf() prototype */
   1.924 -	int main (int argc, char *argv[]) {
   1.925 -#else
   1.926 -	int main (argc, argv) int argc; char *argv[]; {
   1.927 -#endif
   1.928 -#ifdef __ELF__
   1.929 -# ifdef __GLIBC__
   1.930 -#  if __GLIBC__ >= 2
   1.931 -    printf ("%s-${VENDOR}-linux-gnu\n", argv[1]);
   1.932 -#  else
   1.933 -    printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]);
   1.934 -#  endif
   1.935 -# else
   1.936 -   printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]);
   1.937 -# endif
   1.938 -#else
   1.939 -  printf ("%s-${VENDOR}-linux-gnuaout\n", argv[1]);
   1.940 -#endif
   1.941 -  return 0;
   1.942 -}
   1.943 -EOF
   1.944 -	$CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy "${UNAME_MACHINE}" && rm -f $dummy.c $dummy && exit 0
   1.945 -	rm -f $dummy.c $dummy
   1.946 -	test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
   1.947 -	;;
   1.948 -# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.  earlier versions
   1.949 -# are messed up and put the nodename in both sysname and nodename.
   1.950 -    i?86:DYNIX/ptx:4*:*)
   1.951 -	echo i386-sequent-sysv4
   1.952 -	exit 0 ;;
   1.953 -    i?86:UNIX_SV:4.2MP:2.*)
   1.954 -        # Unixware is an offshoot of SVR4, but it has its own version
   1.955 -        # number series starting with 2...
   1.956 -        # I am not positive that other SVR4 systems won't match this,
   1.957 -	# I just have to hope.  -- rms.
   1.958 -        # Use sysv4.2uw... so that sysv4* matches it.
   1.959 -	echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
   1.960 -	exit 0 ;;
   1.961 -    i?86:*:4.*:* | i?86:SYSTEM_V:4.*:*)
   1.962 -	UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
   1.963 -	if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
   1.964 -		echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
   1.965 -	else
   1.966 -		echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
   1.967 -	fi
   1.968 -	exit 0 ;;
   1.969 -    i?86:*:5:7*)
   1.970 -        # Fixed at (any) Pentium or better
   1.971 -        UNAME_MACHINE=i586
   1.972 -        if [ ${UNAME_SYSTEM} = "UnixWare" ] ; then
   1.973 -	    echo ${UNAME_MACHINE}-sco-sysv${UNAME_RELEASE}uw${UNAME_VERSION}
   1.974 -	else
   1.975 -	    echo ${UNAME_MACHINE}-pc-sysv${UNAME_RELEASE}
   1.976 -	fi
   1.977 -	exit 0 ;;
   1.978 -    i?86:*:3.2:*)
   1.979 -	if test -f /usr/options/cb.name; then
   1.980 -		UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
   1.981 -		echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
   1.982 -	elif /bin/uname -X 2>/dev/null >/dev/null ; then
   1.983 -		UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')`
   1.984 -		(/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486
   1.985 -		(/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \
   1.986 -			&& UNAME_MACHINE=i586
   1.987 -		(/bin/uname -X|egrep '^Machine.*Pent ?II' >/dev/null) \
   1.988 -			&& UNAME_MACHINE=i686
   1.989 -		(/bin/uname -X|egrep '^Machine.*Pentium Pro' >/dev/null) \
   1.990 -			&& UNAME_MACHINE=i686
   1.991 -		echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
   1.992 -	else
   1.993 -		echo ${UNAME_MACHINE}-pc-sysv32
   1.994 -	fi
   1.995 -	exit 0 ;;
   1.996 -    i?86:*DOS:*:*)
   1.997 -	echo ${UNAME_MACHINE}-pc-msdosdjgpp
   1.998 -	exit 0 ;;
   1.999 -    pc:*:*:*)
  1.1000 -	# Left here for compatibility:
  1.1001 -        # uname -m prints for DJGPP always 'pc', but it prints nothing about
  1.1002 -        # the processor, so we play safe by assuming i386.
  1.1003 -	echo i386-pc-msdosdjgpp
  1.1004 -        exit 0 ;;
  1.1005 -    Intel:Mach:3*:*)
  1.1006 -	echo i386-pc-mach3
  1.1007 -	exit 0 ;;
  1.1008 -    paragon:*:*:*)
  1.1009 -	echo i860-intel-osf1
  1.1010 -	exit 0 ;;
  1.1011 -    i860:*:4.*:*) # i860-SVR4
  1.1012 -	if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
  1.1013 -	  echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
  1.1014 -	else # Add other i860-SVR4 vendors below as they are discovered.
  1.1015 -	  echo i860-unknown-sysv${UNAME_RELEASE}  # Unknown i860-SVR4
  1.1016 -	fi
  1.1017 -	exit 0 ;;
  1.1018 -    mini*:CTIX:SYS*5:*)
  1.1019 -	# "miniframe"
  1.1020 -	echo m68010-convergent-sysv
  1.1021 -	exit 0 ;;
  1.1022 -    M68*:*:R3V[567]*:*)
  1.1023 -	test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
  1.1024 -    3[34]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 4850:*:4.0:3.0)
  1.1025 -	OS_REL=''
  1.1026 -	test -r /etc/.relid \
  1.1027 -	&& OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
  1.1028 -	/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  1.1029 -	  && echo i486-ncr-sysv4.3${OS_REL} && exit 0
  1.1030 -	/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
  1.1031 -	  && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;;
  1.1032 -    3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
  1.1033 -        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  1.1034 -          && echo i486-ncr-sysv4 && exit 0 ;;
  1.1035 -    m68*:LynxOS:2.*:*)
  1.1036 -	echo m68k-unknown-lynxos${UNAME_RELEASE}
  1.1037 -	exit 0 ;;
  1.1038 -    mc68030:UNIX_System_V:4.*:*)
  1.1039 -	echo m68k-atari-sysv4
  1.1040 -	exit 0 ;;
  1.1041 -    i?86:LynxOS:2.*:* | i?86:LynxOS:3.[01]*:*)
  1.1042 -	echo i386-unknown-lynxos${UNAME_RELEASE}
  1.1043 -	exit 0 ;;
  1.1044 -    TSUNAMI:LynxOS:2.*:*)
  1.1045 -	echo sparc-unknown-lynxos${UNAME_RELEASE}
  1.1046 -	exit 0 ;;
  1.1047 -    rs6000:LynxOS:2.*:*)
  1.1048 -	echo rs6000-unknown-lynxos${UNAME_RELEASE}
  1.1049 -	exit 0 ;;
  1.1050 -    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:*)
  1.1051 -	echo powerpc-unknown-lynxos${UNAME_RELEASE}
  1.1052 -	exit 0 ;;
  1.1053 -    SM[BE]S:UNIX_SV:*:*)
  1.1054 -	echo mips-dde-sysv${UNAME_RELEASE}
  1.1055 -	exit 0 ;;
  1.1056 -    RM*:ReliantUNIX-*:*:*)
  1.1057 -	echo mips-sni-sysv4
  1.1058 -	exit 0 ;;
  1.1059 -    RM*:SINIX-*:*:*)
  1.1060 -	echo mips-sni-sysv4
  1.1061 -	exit 0 ;;
  1.1062 -    *:SINIX-*:*:*)
  1.1063 -	if uname -p 2>/dev/null >/dev/null ; then
  1.1064 -		UNAME_MACHINE=`(uname -p) 2>/dev/null`
  1.1065 -		echo ${UNAME_MACHINE}-sni-sysv4
  1.1066 -	else
  1.1067 -		echo ns32k-sni-sysv
  1.1068 -	fi
  1.1069 -	exit 0 ;;
  1.1070 -    PENTIUM:CPunix:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
  1.1071 -                           # says <Richard.M.Bartel@ccMail.Census.GOV>
  1.1072 -        echo i586-unisys-sysv4
  1.1073 -        exit 0 ;;
  1.1074 -    *:UNIX_System_V:4*:FTX*)
  1.1075 -	# From Gerald Hewes <hewes@openmarket.com>.
  1.1076 -	# How about differentiating between stratus architectures? -djm
  1.1077 -	echo hppa1.1-stratus-sysv4
  1.1078 -	exit 0 ;;
  1.1079 -    *:*:*:FTX*)
  1.1080 -	# From seanf@swdc.stratus.com.
  1.1081 -	echo i860-stratus-sysv4
  1.1082 -	exit 0 ;;
  1.1083 -    mc68*:A/UX:*:*)
  1.1084 -	echo m68k-apple-aux${UNAME_RELEASE}
  1.1085 -	exit 0 ;;
  1.1086 -    news*:NEWS-OS:6*:*)
  1.1087 -	echo mips-sony-newsos6
  1.1088 -	exit 0 ;;
  1.1089 -    R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
  1.1090 -	if [ -d /usr/nec ]; then
  1.1091 -	        echo mips-nec-sysv${UNAME_RELEASE}
  1.1092 -	else
  1.1093 -	        echo mips-unknown-sysv${UNAME_RELEASE}
  1.1094 -	fi
  1.1095 -        exit 0 ;;
  1.1096 -    BeBox:BeOS:*:*)	# BeOS running on hardware made by Be, PPC only.
  1.1097 -	echo powerpc-be-beos
  1.1098 -	exit 0 ;;
  1.1099 -    BeMac:BeOS:*:*)	# BeOS running on Mac or Mac clone, PPC only.
  1.1100 -	echo powerpc-apple-beos
  1.1101 -	exit 0 ;;
  1.1102 -    BePC:BeOS:*:*)	# BeOS running on Intel PC compatible.
  1.1103 -	echo i586-pc-beos
  1.1104 -	exit 0 ;;
  1.1105 -    SX-4:SUPER-UX:*:*)
  1.1106 -	echo sx4-nec-superux${UNAME_RELEASE}
  1.1107 -	exit 0 ;;
  1.1108 -    SX-5:SUPER-UX:*:*)
  1.1109 -	echo sx5-nec-superux${UNAME_RELEASE}
  1.1110 -	exit 0 ;;
  1.1111 -    Power*:Rhapsody:*:*)
  1.1112 -	echo powerpc-apple-rhapsody${UNAME_RELEASE}
  1.1113 -	exit 0 ;;
  1.1114 -    *:Rhapsody:*:*)
  1.1115 -	echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
  1.1116 -	exit 0 ;;
  1.1117 -    *:Darwin:*:*)
  1.1118 -	echo `uname -p`-apple-darwin${UNAME_RELEASE}
  1.1119 -	exit 0 ;;
  1.1120 -    *:procnto*:*:* | *:QNX:[0123456789]*:*)
  1.1121 -	if test "${UNAME_MACHINE}" = "x86pc"; then
  1.1122 -		UNAME_MACHINE=pc
  1.1123 -	fi
  1.1124 -	echo `uname -p`-${UNAME_MACHINE}-nto-qnx
  1.1125 -	exit 0 ;;
  1.1126 -    *:QNX:*:4*)
  1.1127 -	echo i386-pc-qnx
  1.1128 -	exit 0 ;;
  1.1129 -    NSR-[KW]:NONSTOP_KERNEL:*:*)
  1.1130 -	echo nsr-tandem-nsk${UNAME_RELEASE}
  1.1131 -	exit 0 ;;
  1.1132 -    *:NonStop-UX:*:*)
  1.1133 -	echo mips-compaq-nonstopux
  1.1134 -	exit 0 ;;
  1.1135 -    BS2000:POSIX*:*:*)
  1.1136 -	echo bs2000-siemens-sysv
  1.1137 -	exit 0 ;;
  1.1138 -    DS/*:UNIX_System_V:*:*)
  1.1139 -	echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
  1.1140 -	exit 0 ;;
  1.1141 -    *:Plan9:*:*)
  1.1142 -	# "uname -m" is not consistent, so use $cputype instead. 386
  1.1143 -	# is converted to i386 for consistency with other x86
  1.1144 -	# operating systems.
  1.1145 -	if test "$cputype" = "386"; then
  1.1146 -	    UNAME_MACHINE=i386
  1.1147 -	else
  1.1148 -	    UNAME_MACHINE="$cputype"
  1.1149 -	fi
  1.1150 -	echo ${UNAME_MACHINE}-unknown-plan9
  1.1151 -	exit 0 ;;
  1.1152 -    i?86:OS/2:*:*)
  1.1153 -	# If we were able to find `uname', then EMX Unix compatibility
  1.1154 -	# is probably installed.
  1.1155 -	echo ${UNAME_MACHINE}-pc-os2-emx
  1.1156 -	exit 0 ;;
  1.1157 -    *:TOPS-10:*:*)
  1.1158 -	echo pdp10-unknown-tops10
  1.1159 -	exit 0 ;;
  1.1160 -    *:TENEX:*:*)
  1.1161 -	echo pdp10-unknown-tenex
  1.1162 -	exit 0 ;;
  1.1163 -    KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
  1.1164 -	echo pdp10-dec-tops20
  1.1165 -	exit 0 ;;
  1.1166 -    XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
  1.1167 -	echo pdp10-xkl-tops20
  1.1168 -	exit 0 ;;
  1.1169 -    *:TOPS-20:*:*)
  1.1170 -	echo pdp10-unknown-tops20
  1.1171 -	exit 0 ;;
  1.1172 -    *:ITS:*:*)
  1.1173 -	echo pdp10-unknown-its
  1.1174 -	exit 0 ;;
  1.1175 -esac
  1.1176 -
  1.1177 -#echo '(No uname command or uname output not recognized.)' 1>&2
  1.1178 -#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
  1.1179 -
  1.1180 -cat >$dummy.c <<EOF
  1.1181 -#ifdef _SEQUENT_
  1.1182 -# include <sys/types.h>
  1.1183 -# include <sys/utsname.h>
  1.1184 -#endif
  1.1185 -main ()
  1.1186 -{
  1.1187 -#if defined (sony)
  1.1188 -#if defined (MIPSEB)
  1.1189 -  /* BFD wants "bsd" instead of "newsos".  Perhaps BFD should be changed,
  1.1190 -     I don't know....  */
  1.1191 -  printf ("mips-sony-bsd\n"); exit (0);
  1.1192 -#else
  1.1193 -#include <sys/param.h>
  1.1194 -  printf ("m68k-sony-newsos%s\n",
  1.1195 -#ifdef NEWSOS4
  1.1196 -          "4"
  1.1197 -#else
  1.1198 -	  ""
  1.1199 -#endif
  1.1200 -         ); exit (0);
  1.1201 -#endif
  1.1202 -#endif
  1.1203 -
  1.1204 -#if defined (__arm) && defined (__acorn) && defined (__unix)
  1.1205 -  printf ("arm-acorn-riscix"); exit (0);
  1.1206 -#endif
  1.1207 -
  1.1208 -#if defined (hp300) && !defined (hpux)
  1.1209 -  printf ("m68k-hp-bsd\n"); exit (0);
  1.1210 -#endif
  1.1211 -
  1.1212 -#if defined (NeXT)
  1.1213 -#if !defined (__ARCHITECTURE__)
  1.1214 -#define __ARCHITECTURE__ "m68k"
  1.1215 -#endif
  1.1216 -  int version;
  1.1217 -  version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
  1.1218 -  if (version < 4)
  1.1219 -    printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
  1.1220 -  else
  1.1221 -    printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
  1.1222 -  exit (0);
  1.1223 -#endif
  1.1224 -
  1.1225 -#if defined (MULTIMAX) || defined (n16)
  1.1226 -#if defined (UMAXV)
  1.1227 -  printf ("ns32k-encore-sysv\n"); exit (0);
  1.1228 -#else
  1.1229 -#if defined (CMU)
  1.1230 -  printf ("ns32k-encore-mach\n"); exit (0);
  1.1231 -#else
  1.1232 -  printf ("ns32k-encore-bsd\n"); exit (0);
  1.1233 -#endif
  1.1234 -#endif
  1.1235 -#endif
  1.1236 -
  1.1237 -#if defined (__386BSD__)
  1.1238 -  printf ("i386-pc-bsd\n"); exit (0);
  1.1239 -#endif
  1.1240 -
  1.1241 -#if defined (sequent)
  1.1242 -#if defined (i386)
  1.1243 -  printf ("i386-sequent-dynix\n"); exit (0);
  1.1244 -#endif
  1.1245 -#if defined (ns32000)
  1.1246 -  printf ("ns32k-sequent-dynix\n"); exit (0);
  1.1247 -#endif
  1.1248 -#endif
  1.1249 -
  1.1250 -#if defined (_SEQUENT_)
  1.1251 -    struct utsname un;
  1.1252 -
  1.1253 -    uname(&un);
  1.1254 -
  1.1255 -    if (strncmp(un.version, "V2", 2) == 0) {
  1.1256 -	printf ("i386-sequent-ptx2\n"); exit (0);
  1.1257 -    }
  1.1258 -    if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
  1.1259 -	printf ("i386-sequent-ptx1\n"); exit (0);
  1.1260 -    }
  1.1261 -    printf ("i386-sequent-ptx\n"); exit (0);
  1.1262 -
  1.1263 -#endif
  1.1264 -
  1.1265 -#if defined (vax)
  1.1266 -# if !defined (ultrix)
  1.1267 -#  include <sys/param.h>
  1.1268 -#  if defined (BSD)
  1.1269 -#   if BSD == 43
  1.1270 -      printf ("vax-dec-bsd4.3\n"); exit (0);
  1.1271 -#   else
  1.1272 -#    if BSD == 199006
  1.1273 -      printf ("vax-dec-bsd4.3reno\n"); exit (0);
  1.1274 -#    else
  1.1275 -      printf ("vax-dec-bsd\n"); exit (0);
  1.1276 -#    endif
  1.1277 -#   endif
  1.1278 -#  else
  1.1279 -    printf ("vax-dec-bsd\n"); exit (0);
  1.1280 -#  endif
  1.1281 -# else
  1.1282 -    printf ("vax-dec-ultrix\n"); exit (0);
  1.1283 -# endif
  1.1284 -#endif
  1.1285 -
  1.1286 -#if defined (alliant) && defined (i860)
  1.1287 -  printf ("i860-alliant-bsd\n"); exit (0);
  1.1288 -#endif
  1.1289 -
  1.1290 -  exit (1);
  1.1291 -}
  1.1292 -EOF
  1.1293 -
  1.1294 -$CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy && rm -f $dummy.c $dummy && exit 0
  1.1295 -rm -f $dummy.c $dummy
  1.1296 -
  1.1297 -# Apollos put the system type in the environment.
  1.1298 -
  1.1299 -test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; }
  1.1300 -
  1.1301 -# Convex versions that predate uname can use getsysinfo(1)
  1.1302 -
  1.1303 -if [ -x /usr/convex/getsysinfo ]
  1.1304 -then
  1.1305 -    case `getsysinfo -f cpu_type` in
  1.1306 -    c1*)
  1.1307 -	echo c1-convex-bsd
  1.1308 -	exit 0 ;;
  1.1309 -    c2*)
  1.1310 -	if getsysinfo -f scalar_acc
  1.1311 -	then echo c32-convex-bsd
  1.1312 -	else echo c2-convex-bsd
  1.1313 -	fi
  1.1314 -	exit 0 ;;
  1.1315 -    c34*)
  1.1316 -	echo c34-convex-bsd
  1.1317 -	exit 0 ;;
  1.1318 -    c38*)
  1.1319 -	echo c38-convex-bsd
  1.1320 -	exit 0 ;;
  1.1321 -    c4*)
  1.1322 -	echo c4-convex-bsd
  1.1323 -	exit 0 ;;
  1.1324 -    esac
  1.1325 -fi
  1.1326 -
  1.1327 -cat >&2 <<EOF
  1.1328 -$0: unable to guess system type
  1.1329 -
  1.1330 -This script, last modified $timestamp, has failed to recognize
  1.1331 -the operating system you are using. It is advised that you
  1.1332 -download the most up to date version of the config scripts from
  1.1333 -
  1.1334 -    ftp://ftp.gnu.org/pub/gnu/config/
  1.1335 -
  1.1336 -If the version you run ($0) is already up to date, please
  1.1337 -send the following data and any information you think might be
  1.1338 -pertinent to <config-patches@gnu.org> in order to provide the needed
  1.1339 -information to handle your system.
  1.1340 -
  1.1341 -config.guess timestamp = $timestamp
  1.1342 -
  1.1343 -uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1.1344 -uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1.1345 -uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1.1346 -uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1.1347 -
  1.1348 -/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
  1.1349 -/bin/uname -X     = `(/bin/uname -X) 2>/dev/null`
  1.1350 -
  1.1351 -hostinfo               = `(hostinfo) 2>/dev/null`
  1.1352 -/bin/universe          = `(/bin/universe) 2>/dev/null`
  1.1353 -/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null`
  1.1354 -/bin/arch              = `(/bin/arch) 2>/dev/null`
  1.1355 -/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null`
  1.1356 -/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
  1.1357 -
  1.1358 -UNAME_MACHINE = ${UNAME_MACHINE}
  1.1359 -UNAME_RELEASE = ${UNAME_RELEASE}
  1.1360 -UNAME_SYSTEM  = ${UNAME_SYSTEM}
  1.1361 -UNAME_VERSION = ${UNAME_VERSION}
  1.1362 -EOF
  1.1363 -
  1.1364 -exit 1
  1.1365 -
  1.1366 -# Local variables:
  1.1367 -# eval: (add-hook 'write-file-hooks 'time-stamp)
  1.1368 -# time-stamp-start: "timestamp='"
  1.1369 -# time-stamp-format: "%:y-%02m-%02d"
  1.1370 -# time-stamp-end: "'"
  1.1371 -# End:
     2.1 --- a/test/config.sub	Sat Aug 20 17:46:33 2005 +0000
     2.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.3 @@ -1,1357 +0,0 @@
     2.4 -#! /bin/sh
     2.5 -# Configuration validation subroutine script.
     2.6 -#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
     2.7 -#   Free Software Foundation, Inc.
     2.8 -
     2.9 -timestamp='2001-03-19'
    2.10 -
    2.11 -# This file is (in principle) common to ALL GNU software.
    2.12 -# The presence of a machine in this file suggests that SOME GNU software
    2.13 -# can handle that machine.  It does not imply ALL GNU software can.
    2.14 -#
    2.15 -# This file is free software; you can redistribute it and/or modify
    2.16 -# it under the terms of the GNU General Public License as published by
    2.17 -# the Free Software Foundation; either version 2 of the License, or
    2.18 -# (at your option) any later version.
    2.19 -#
    2.20 -# This program is distributed in the hope that it will be useful,
    2.21 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
    2.22 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    2.23 -# GNU General Public License for more details.
    2.24 -#
    2.25 -# You should have received a copy of the GNU General Public License
    2.26 -# along with this program; if not, write to the Free Software
    2.27 -# Foundation, Inc., 59 Temple Place - Suite 330,
    2.28 -# Boston, MA 02111-1307, USA.
    2.29 -
    2.30 -# As a special exception to the GNU General Public License, if you
    2.31 -# distribute this file as part of a program that contains a
    2.32 -# configuration script generated by Autoconf, you may include it under
    2.33 -# the same distribution terms that you use for the rest of that program.
    2.34 -
    2.35 -# Please send patches to <config-patches@gnu.org>.
    2.36 -#
    2.37 -# Configuration subroutine to validate and canonicalize a configuration type.
    2.38 -# Supply the specified configuration type as an argument.
    2.39 -# If it is invalid, we print an error message on stderr and exit with code 1.
    2.40 -# Otherwise, we print the canonical config type on stdout and succeed.
    2.41 -
    2.42 -# This file is supposed to be the same for all GNU packages
    2.43 -# and recognize all the CPU types, system types and aliases
    2.44 -# that are meaningful with *any* GNU software.
    2.45 -# Each package is responsible for reporting which valid configurations
    2.46 -# it does not support.  The user should be able to distinguish
    2.47 -# a failure to support a valid configuration from a meaningless
    2.48 -# configuration.
    2.49 -
    2.50 -# The goal of this file is to map all the various variations of a given
    2.51 -# machine specification into a single specification in the form:
    2.52 -#	CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
    2.53 -# or in some cases, the newer four-part form:
    2.54 -#	CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
    2.55 -# It is wrong to echo any other type of specification.
    2.56 -
    2.57 -me=`echo "$0" | sed -e 's,.*/,,'`
    2.58 -
    2.59 -usage="\
    2.60 -Usage: $0 [OPTION] CPU-MFR-OPSYS
    2.61 -       $0 [OPTION] ALIAS
    2.62 -
    2.63 -Canonicalize a configuration name.
    2.64 -
    2.65 -Operation modes:
    2.66 -  -h, --help         print this help, then exit
    2.67 -  -t, --time-stamp   print date of last modification, then exit
    2.68 -  -v, --version      print version number, then exit
    2.69 -
    2.70 -Report bugs and patches to <config-patches@gnu.org>."
    2.71 -
    2.72 -version="\
    2.73 -GNU config.sub ($timestamp)
    2.74 -
    2.75 -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
    2.76 -Free Software Foundation, Inc.
    2.77 -
    2.78 -This is free software; see the source for copying conditions.  There is NO
    2.79 -warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
    2.80 -
    2.81 -help="
    2.82 -Try \`$me --help' for more information."
    2.83 -
    2.84 -# Parse command line
    2.85 -while test $# -gt 0 ; do
    2.86 -  case $1 in
    2.87 -    --time-stamp | --time* | -t )
    2.88 -       echo "$timestamp" ; exit 0 ;;
    2.89 -    --version | -v )
    2.90 -       echo "$version" ; exit 0 ;;
    2.91 -    --help | --h* | -h )
    2.92 -       echo "$usage"; exit 0 ;;
    2.93 -    -- )     # Stop option processing
    2.94 -       shift; break ;;
    2.95 -    - )	# Use stdin as input.
    2.96 -       break ;;
    2.97 -    -* )
    2.98 -       echo "$me: invalid option $1$help"
    2.99 -       exit 1 ;;
   2.100 -
   2.101 -    *local*)
   2.102 -       # First pass through any local machine types.
   2.103 -       echo $1
   2.104 -       exit 0;;
   2.105 -
   2.106 -    * )
   2.107 -       break ;;
   2.108 -  esac
   2.109 -done
   2.110 -
   2.111 -case $# in
   2.112 - 0) echo "$me: missing argument$help" >&2
   2.113 -    exit 1;;
   2.114 - 1) ;;
   2.115 - *) echo "$me: too many arguments$help" >&2
   2.116 -    exit 1;;
   2.117 -esac
   2.118 -
   2.119 -# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
   2.120 -# Here we must recognize all the valid KERNEL-OS combinations.
   2.121 -maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
   2.122 -case $maybe_os in
   2.123 -  nto-qnx* | linux-gnu* | storm-chaos* | os2-emx*)
   2.124 -    os=-$maybe_os
   2.125 -    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
   2.126 -    ;;
   2.127 -  *)
   2.128 -    basic_machine=`echo $1 | sed 's/-[^-]*$//'`
   2.129 -    if [ $basic_machine != $1 ]
   2.130 -    then os=`echo $1 | sed 's/.*-/-/'`
   2.131 -    else os=; fi
   2.132 -    ;;
   2.133 -esac
   2.134 -
   2.135 -### Let's recognize common machines as not being operating systems so
   2.136 -### that things like config.sub decstation-3100 work.  We also
   2.137 -### recognize some manufacturers as not being operating systems, so we
   2.138 -### can provide default operating systems below.
   2.139 -case $os in
   2.140 -	-sun*os*)
   2.141 -		# Prevent following clause from handling this invalid input.
   2.142 -		;;
   2.143 -	-dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
   2.144 -	-att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
   2.145 -	-unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
   2.146 -	-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
   2.147 -	-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
   2.148 -	-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
   2.149 -	-apple | -axis)
   2.150 -		os=
   2.151 -		basic_machine=$1
   2.152 -		;;
   2.153 -	-sim | -cisco | -oki | -wec | -winbond)
   2.154 -		os=
   2.155 -		basic_machine=$1
   2.156 -		;;
   2.157 -	-scout)
   2.158 -		;;
   2.159 -	-wrs)
   2.160 -		os=-vxworks
   2.161 -		basic_machine=$1
   2.162 -		;;
   2.163 -	-hiux*)
   2.164 -		os=-hiuxwe2
   2.165 -		;;
   2.166 -	-sco5)
   2.167 -		os=-sco3.2v5
   2.168 -		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
   2.169 -		;;
   2.170 -	-sco4)
   2.171 -		os=-sco3.2v4
   2.172 -		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
   2.173 -		;;
   2.174 -	-sco3.2.[4-9]*)
   2.175 -		os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
   2.176 -		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
   2.177 -		;;
   2.178 -	-sco3.2v[4-9]*)
   2.179 -		# Don't forget version if it is 3.2v4 or newer.
   2.180 -		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
   2.181 -		;;
   2.182 -	-sco*)
   2.183 -		os=-sco3.2v2
   2.184 -		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
   2.185 -		;;
   2.186 -	-udk*)
   2.187 -		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
   2.188 -		;;
   2.189 -	-isc)
   2.190 -		os=-isc2.2
   2.191 -		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
   2.192 -		;;
   2.193 -	-clix*)
   2.194 -		basic_machine=clipper-intergraph
   2.195 -		;;
   2.196 -	-isc*)
   2.197 -		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
   2.198 -		;;
   2.199 -	-lynx*)
   2.200 -		os=-lynxos
   2.201 -		;;
   2.202 -	-ptx*)
   2.203 -		basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
   2.204 -		;;
   2.205 -	-windowsnt*)
   2.206 -		os=`echo $os | sed -e 's/windowsnt/winnt/'`
   2.207 -		;;
   2.208 -	-psos*)
   2.209 -		os=-psos
   2.210 -		;;
   2.211 -	-mint | -mint[0-9]*)
   2.212 -		basic_machine=m68k-atari
   2.213 -		os=-mint
   2.214 -		;;
   2.215 -esac
   2.216 -
   2.217 -# Decode aliases for certain CPU-COMPANY combinations.
   2.218 -case $basic_machine in
   2.219 -	# Recognize the basic CPU types without company name.
   2.220 -	# Some are omitted here because they have special meanings below.
   2.221 -	tahoe | i860 | ia64 | m32r | m68k | m68000 | m88k | ns32k | arc \
   2.222 -	        | arm | arme[lb] | arm[bl]e | armv[2345] | armv[345][lb] | strongarm | xscale \
   2.223 -		| pyramid | mn10200 | mn10300 | tron | a29k \
   2.224 -		| 580 | i960 | h8300 \
   2.225 -		| x86 | ppcbe | mipsbe | mipsle | shbe | shle \
   2.226 -		| hppa | hppa1.0 | hppa1.1 | hppa2.0 | hppa2.0w | hppa2.0n \
   2.227 -		| hppa64 \
   2.228 -		| alpha | alphaev[4-8] | alphaev56 | alphapca5[67] \
   2.229 -		| alphaev6[78] \
   2.230 -		| we32k | ns16k | clipper | i370 | sh | sh[34] \
   2.231 -		| powerpc | powerpcle \
   2.232 -		| 1750a | dsp16xx | pdp10 | pdp11 \
   2.233 -		| mips16 | mips64 | mipsel | mips64el \
   2.234 -		| mips64orion | mips64orionel | mipstx39 | mipstx39el \
   2.235 -		| mips64vr4300 | mips64vr4300el | mips64vr4100 | mips64vr4100el \
   2.236 -		| mips64vr5000 | miprs64vr5000el | mcore | s390 | s390x \
   2.237 -		| sparc | sparclet | sparclite | sparc64 | sparcv9 | v850 | c4x \
   2.238 -		| thumb | d10v | d30v | fr30 | avr | openrisc | tic80 \
   2.239 -		| pj | pjl | h8500)
   2.240 -		basic_machine=$basic_machine-unknown
   2.241 -		;;
   2.242 -	m6811 | m68hc11 | m6812 | m68hc12)
   2.243 -		# Motorola 68HC11/12.
   2.244 -		basic_machine=$basic_machine-unknown
   2.245 -		os=-none
   2.246 -		;;
   2.247 -	m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | z8k | v70 | w65)
   2.248 -		;;
   2.249 -
   2.250 -	# We use `pc' rather than `unknown'
   2.251 -	# because (1) that's what they normally are, and
   2.252 -	# (2) the word "unknown" tends to confuse beginning users.
   2.253 -	i[234567]86 | x86_64)
   2.254 -	  basic_machine=$basic_machine-pc
   2.255 -	  ;;
   2.256 -	# Object if more than one company name word.
   2.257 -	*-*-*)
   2.258 -		echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
   2.259 -		exit 1
   2.260 -		;;
   2.261 -	# Recognize the basic CPU types with company name.
   2.262 -	# FIXME: clean up the formatting here.
   2.263 -	vax-* | tahoe-* | i[234567]86-* | i860-* | ia64-* | m32r-* | m68k-* | m68000-* \
   2.264 -	      | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | c[123]* \
   2.265 -	      | arm-*  | armbe-* | armle-* | armv*-* | strongarm-* | xscale-* \
   2.266 -	      | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \
   2.267 -	      | power-* | none-* | 580-* | cray2-* | h8300-* | h8500-* | i960-* \
   2.268 -	      | xmp-* | ymp-* \
   2.269 -	      | x86-* | ppcbe-* | mipsbe-* | mipsle-* | shbe-* | shle-* \
   2.270 -	      | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* | hppa2.0w-* \
   2.271 -	      | hppa2.0n-* | hppa64-* \
   2.272 -	      | alpha-* | alphaev[4-8]-* | alphaev56-* | alphapca5[67]-* \
   2.273 -	      | alphaev6[78]-* \
   2.274 -	      | we32k-* | cydra-* | ns16k-* | pn-* | np1-* | xps100-* \
   2.275 -	      | clipper-* | orion-* \
   2.276 -	      | sparclite-* | pdp10-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \
   2.277 -	      | sparc64-* | sparcv9-* | sparc86x-* | mips16-* | mips64-* | mipsel-* \
   2.278 -	      | mips64el-* | mips64orion-* | mips64orionel-* \
   2.279 -	      | mips64vr4100-* | mips64vr4100el-* | mips64vr4300-* | mips64vr4300el-* \
   2.280 -	      | mipstx39-* | mipstx39el-* | mcore-* \
   2.281 -	      | f30[01]-* | f700-* | s390-* | s390x-* | sv1-* | t3e-* \
   2.282 -	      | [cjt]90-* \
   2.283 -	      | m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | d10v-* \
   2.284 -	      | thumb-* | v850-* | d30v-* | tic30-* | tic80-* | c30-* | fr30-* \
   2.285 -	      | bs2000-* | tic54x-* | c54x-* | x86_64-* | pj-* | pjl-*)
   2.286 -		;;
   2.287 -	# Recognize the various machine names and aliases which stand
   2.288 -	# for a CPU type and a company and sometimes even an OS.
   2.289 -	386bsd)
   2.290 -		basic_machine=i386-unknown
   2.291 -		os=-bsd
   2.292 -		;;
   2.293 -	3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
   2.294 -		basic_machine=m68000-att
   2.295 -		;;
   2.296 -	3b*)
   2.297 -		basic_machine=we32k-att
   2.298 -		;;
   2.299 -	a29khif)
   2.300 -		basic_machine=a29k-amd
   2.301 -		os=-udi
   2.302 -		;;
   2.303 -	adobe68k)
   2.304 -		basic_machine=m68010-adobe
   2.305 -		os=-scout
   2.306 -		;;
   2.307 -	alliant | fx80)
   2.308 -		basic_machine=fx80-alliant
   2.309 -		;;
   2.310 -	altos | altos3068)
   2.311 -		basic_machine=m68k-altos
   2.312 -		;;
   2.313 -	am29k)
   2.314 -		basic_machine=a29k-none
   2.315 -		os=-bsd
   2.316 -		;;
   2.317 -	amdahl)
   2.318 -		basic_machine=580-amdahl
   2.319 -		os=-sysv
   2.320 -		;;
   2.321 -	amiga | amiga-*)
   2.322 -		basic_machine=m68k-unknown
   2.323 -		;;
   2.324 -	amigaos | amigados)
   2.325 -		basic_machine=m68k-unknown
   2.326 -		os=-amigaos
   2.327 -		;;
   2.328 -	amigaunix | amix)
   2.329 -		basic_machine=m68k-unknown
   2.330 -		os=-sysv4
   2.331 -		;;
   2.332 -	apollo68)
   2.333 -		basic_machine=m68k-apollo
   2.334 -		os=-sysv
   2.335 -		;;
   2.336 -	apollo68bsd)
   2.337 -		basic_machine=m68k-apollo
   2.338 -		os=-bsd
   2.339 -		;;
   2.340 -	aux)
   2.341 -		basic_machine=m68k-apple
   2.342 -		os=-aux
   2.343 -		;;
   2.344 -	balance)
   2.345 -		basic_machine=ns32k-sequent
   2.346 -		os=-dynix
   2.347 -		;;
   2.348 -	convex-c1)
   2.349 -		basic_machine=c1-convex
   2.350 -		os=-bsd
   2.351 -		;;
   2.352 -	convex-c2)
   2.353 -		basic_machine=c2-convex
   2.354 -		os=-bsd
   2.355 -		;;
   2.356 -	convex-c32)
   2.357 -		basic_machine=c32-convex
   2.358 -		os=-bsd
   2.359 -		;;
   2.360 -	convex-c34)
   2.361 -		basic_machine=c34-convex
   2.362 -		os=-bsd
   2.363 -		;;
   2.364 -	convex-c38)
   2.365 -		basic_machine=c38-convex
   2.366 -		os=-bsd
   2.367 -		;;
   2.368 -	cray | ymp)
   2.369 -		basic_machine=ymp-cray
   2.370 -		os=-unicos
   2.371 -		;;
   2.372 -	cray2)
   2.373 -		basic_machine=cray2-cray
   2.374 -		os=-unicos
   2.375 -		;;
   2.376 -	[cjt]90)
   2.377 -		basic_machine=${basic_machine}-cray
   2.378 -		os=-unicos
   2.379 -		;;
   2.380 -	crds | unos)
   2.381 -		basic_machine=m68k-crds
   2.382 -		;;
   2.383 -	cris | cris-* | etrax*)
   2.384 -		basic_machine=cris-axis
   2.385 -		;;
   2.386 -	da30 | da30-*)
   2.387 -		basic_machine=m68k-da30
   2.388 -		;;
   2.389 -	decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
   2.390 -		basic_machine=mips-dec
   2.391 -		;;
   2.392 -	delta | 3300 | motorola-3300 | motorola-delta \
   2.393 -	      | 3300-motorola | delta-motorola)
   2.394 -		basic_machine=m68k-motorola
   2.395 -		;;
   2.396 -	delta88)
   2.397 -		basic_machine=m88k-motorola
   2.398 -		os=-sysv3
   2.399 -		;;
   2.400 -	dpx20 | dpx20-*)
   2.401 -		basic_machine=rs6000-bull
   2.402 -		os=-bosx
   2.403 -		;;
   2.404 -	dpx2* | dpx2*-bull)
   2.405 -		basic_machine=m68k-bull
   2.406 -		os=-sysv3
   2.407 -		;;
   2.408 -	ebmon29k)
   2.409 -		basic_machine=a29k-amd
   2.410 -		os=-ebmon
   2.411 -		;;
   2.412 -	elxsi)
   2.413 -		basic_machine=elxsi-elxsi
   2.414 -		os=-bsd
   2.415 -		;;
   2.416 -	encore | umax | mmax)
   2.417 -		basic_machine=ns32k-encore
   2.418 -		;;
   2.419 -	es1800 | OSE68k | ose68k | ose | OSE)
   2.420 -		basic_machine=m68k-ericsson
   2.421 -		os=-ose
   2.422 -		;;
   2.423 -	fx2800)
   2.424 -		basic_machine=i860-alliant
   2.425 -		;;
   2.426 -	genix)
   2.427 -		basic_machine=ns32k-ns
   2.428 -		;;
   2.429 -	gmicro)
   2.430 -		basic_machine=tron-gmicro
   2.431 -		os=-sysv
   2.432 -		;;
   2.433 -	go32)
   2.434 -		basic_machine=i386-pc
   2.435 -		os=-go32
   2.436 -		;;
   2.437 -	h3050r* | hiux*)
   2.438 -		basic_machine=hppa1.1-hitachi
   2.439 -		os=-hiuxwe2
   2.440 -		;;
   2.441 -	h8300hms)
   2.442 -		basic_machine=h8300-hitachi
   2.443 -		os=-hms
   2.444 -		;;
   2.445 -	h8300xray)
   2.446 -		basic_machine=h8300-hitachi
   2.447 -		os=-xray
   2.448 -		;;
   2.449 -	h8500hms)
   2.450 -		basic_machine=h8500-hitachi
   2.451 -		os=-hms
   2.452 -		;;
   2.453 -	harris)
   2.454 -		basic_machine=m88k-harris
   2.455 -		os=-sysv3
   2.456 -		;;
   2.457 -	hp300-*)
   2.458 -		basic_machine=m68k-hp
   2.459 -		;;
   2.460 -	hp300bsd)
   2.461 -		basic_machine=m68k-hp
   2.462 -		os=-bsd
   2.463 -		;;
   2.464 -	hp300hpux)
   2.465 -		basic_machine=m68k-hp
   2.466 -		os=-hpux
   2.467 -		;;
   2.468 -	hp3k9[0-9][0-9] | hp9[0-9][0-9])
   2.469 -		basic_machine=hppa1.0-hp
   2.470 -		;;
   2.471 -	hp9k2[0-9][0-9] | hp9k31[0-9])
   2.472 -		basic_machine=m68000-hp
   2.473 -		;;
   2.474 -	hp9k3[2-9][0-9])
   2.475 -		basic_machine=m68k-hp
   2.476 -		;;
   2.477 -	hp9k6[0-9][0-9] | hp6[0-9][0-9])
   2.478 -		basic_machine=hppa1.0-hp
   2.479 -		;;
   2.480 -	hp9k7[0-79][0-9] | hp7[0-79][0-9])
   2.481 -		basic_machine=hppa1.1-hp
   2.482 -		;;
   2.483 -	hp9k78[0-9] | hp78[0-9])
   2.484 -		# FIXME: really hppa2.0-hp
   2.485 -		basic_machine=hppa1.1-hp
   2.486 -		;;
   2.487 -	hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
   2.488 -		# FIXME: really hppa2.0-hp
   2.489 -		basic_machine=hppa1.1-hp
   2.490 -		;;
   2.491 -	hp9k8[0-9][13679] | hp8[0-9][13679])
   2.492 -		basic_machine=hppa1.1-hp
   2.493 -		;;
   2.494 -	hp9k8[0-9][0-9] | hp8[0-9][0-9])
   2.495 -		basic_machine=hppa1.0-hp
   2.496 -		;;
   2.497 -	hppa-next)
   2.498 -		os=-nextstep3
   2.499 -		;;
   2.500 -	hppaosf)
   2.501 -		basic_machine=hppa1.1-hp
   2.502 -		os=-osf
   2.503 -		;;
   2.504 -	hppro)
   2.505 -		basic_machine=hppa1.1-hp
   2.506 -		os=-proelf
   2.507 -		;;
   2.508 -	i370-ibm* | ibm*)
   2.509 -		basic_machine=i370-ibm
   2.510 -		;;
   2.511 -# I'm not sure what "Sysv32" means.  Should this be sysv3.2?
   2.512 -	i[34567]86v32)
   2.513 -		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
   2.514 -		os=-sysv32
   2.515 -		;;
   2.516 -	i[34567]86v4*)
   2.517 -		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
   2.518 -		os=-sysv4
   2.519 -		;;
   2.520 -	i[34567]86v)
   2.521 -		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
   2.522 -		os=-sysv
   2.523 -		;;
   2.524 -	i[34567]86sol2)
   2.525 -		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
   2.526 -		os=-solaris2
   2.527 -		;;
   2.528 -	i386mach)
   2.529 -		basic_machine=i386-mach
   2.530 -		os=-mach
   2.531 -		;;
   2.532 -	i386-vsta | vsta)
   2.533 -		basic_machine=i386-unknown
   2.534 -		os=-vsta
   2.535 -		;;
   2.536 -	iris | iris4d)
   2.537 -		basic_machine=mips-sgi
   2.538 -		case $os in
   2.539 -		    -irix*)
   2.540 -			;;
   2.541 -		    *)
   2.542 -			os=-irix4
   2.543 -			;;
   2.544 -		esac
   2.545 -		;;
   2.546 -	isi68 | isi)
   2.547 -		basic_machine=m68k-isi
   2.548 -		os=-sysv
   2.549 -		;;
   2.550 -	m88k-omron*)
   2.551 -		basic_machine=m88k-omron
   2.552 -		;;
   2.553 -	magnum | m3230)
   2.554 -		basic_machine=mips-mips
   2.555 -		os=-sysv
   2.556 -		;;
   2.557 -	merlin)
   2.558 -		basic_machine=ns32k-utek
   2.559 -		os=-sysv
   2.560 -		;;
   2.561 -	mingw32)
   2.562 -		basic_machine=i386-pc
   2.563 -		os=-mingw32
   2.564 -		;;
   2.565 -	miniframe)
   2.566 -		basic_machine=m68000-convergent
   2.567 -		;;
   2.568 -	*mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
   2.569 -		basic_machine=m68k-atari
   2.570 -		os=-mint
   2.571 -		;;
   2.572 -	mipsel*-linux*)
   2.573 -		basic_machine=mipsel-unknown
   2.574 -		os=-linux-gnu
   2.575 -		;;
   2.576 -	mips*-linux*)
   2.577 -		basic_machine=mips-unknown
   2.578 -		os=-linux-gnu
   2.579 -		;;
   2.580 -	mips3*-*)
   2.581 -		basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
   2.582 -		;;
   2.583 -	mips3*)
   2.584 -		basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
   2.585 -		;;
   2.586 -	mmix*)
   2.587 -		basic_machine=mmix-knuth
   2.588 -		os=-mmixware
   2.589 -		;;
   2.590 -	monitor)
   2.591 -		basic_machine=m68k-rom68k
   2.592 -		os=-coff
   2.593 -		;;
   2.594 -	msdos)
   2.595 -		basic_machine=i386-pc
   2.596 -		os=-msdos
   2.597 -		;;
   2.598 -	mvs)
   2.599 -		basic_machine=i370-ibm
   2.600 -		os=-mvs
   2.601 -		;;
   2.602 -	ncr3000)
   2.603 -		basic_machine=i486-ncr
   2.604 -		os=-sysv4
   2.605 -		;;
   2.606 -	netbsd386)
   2.607 -		basic_machine=i386-unknown
   2.608 -		os=-netbsd
   2.609 -		;;
   2.610 -	netwinder)
   2.611 -		basic_machine=armv4l-rebel
   2.612 -		os=-linux
   2.613 -		;;
   2.614 -	news | news700 | news800 | news900)
   2.615 -		basic_machine=m68k-sony
   2.616 -		os=-newsos
   2.617 -		;;
   2.618 -	news1000)
   2.619 -		basic_machine=m68030-sony
   2.620 -		os=-newsos
   2.621 -		;;
   2.622 -	news-3600 | risc-news)
   2.623 -		basic_machine=mips-sony
   2.624 -		os=-newsos
   2.625 -		;;
   2.626 -	necv70)
   2.627 -		basic_machine=v70-nec
   2.628 -		os=-sysv
   2.629 -		;;
   2.630 -	next | m*-next )
   2.631 -		basic_machine=m68k-next
   2.632 -		case $os in
   2.633 -		    -nextstep* )
   2.634 -			;;
   2.635 -		    -ns2*)
   2.636 -		      os=-nextstep2
   2.637 -			;;
   2.638 -		    *)
   2.639 -		      os=-nextstep3
   2.640 -			;;
   2.641 -		esac
   2.642 -		;;
   2.643 -	nh3000)
   2.644 -		basic_machine=m68k-harris
   2.645 -		os=-cxux
   2.646 -		;;
   2.647 -	nh[45]000)
   2.648 -		basic_machine=m88k-harris
   2.649 -		os=-cxux
   2.650 -		;;
   2.651 -	nindy960)
   2.652 -		basic_machine=i960-intel
   2.653 -		os=-nindy
   2.654 -		;;
   2.655 -	mon960)
   2.656 -		basic_machine=i960-intel
   2.657 -		os=-mon960
   2.658 -		;;
   2.659 -	nonstopux)
   2.660 -		basic_machine=mips-compaq
   2.661 -		os=-nonstopux
   2.662 -		;;
   2.663 -	np1)
   2.664 -		basic_machine=np1-gould
   2.665 -		;;
   2.666 -	nsr-tandem)
   2.667 -		basic_machine=nsr-tandem
   2.668 -		;;
   2.669 -	op50n-* | op60c-*)
   2.670 -		basic_machine=hppa1.1-oki
   2.671 -		os=-proelf
   2.672 -		;;
   2.673 -	OSE68000 | ose68000)
   2.674 -		basic_machine=m68000-ericsson
   2.675 -		os=-ose
   2.676 -		;;
   2.677 -	os68k)
   2.678 -		basic_machine=m68k-none
   2.679 -		os=-os68k
   2.680 -		;;
   2.681 -	pa-hitachi)
   2.682 -		basic_machine=hppa1.1-hitachi
   2.683 -		os=-hiuxwe2
   2.684 -		;;
   2.685 -	paragon)
   2.686 -		basic_machine=i860-intel
   2.687 -		os=-osf
   2.688 -		;;
   2.689 -	pbd)
   2.690 -		basic_machine=sparc-tti
   2.691 -		;;
   2.692 -	pbb)
   2.693 -		basic_machine=m68k-tti
   2.694 -		;;
   2.695 -        pc532 | pc532-*)
   2.696 -		basic_machine=ns32k-pc532
   2.697 -		;;
   2.698 -	pentium | p5 | k5 | k6 | nexgen)
   2.699 -		basic_machine=i586-pc
   2.700 -		;;
   2.701 -	pentiumpro | p6 | 6x86 | athlon)
   2.702 -		basic_machine=i686-pc
   2.703 -		;;
   2.704 -	pentiumii | pentium2)
   2.705 -		basic_machine=i686-pc
   2.706 -		;;
   2.707 -	pentium-* | p5-* | k5-* | k6-* | nexgen-*)
   2.708 -		basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
   2.709 -		;;
   2.710 -	pentiumpro-* | p6-* | 6x86-* | athlon-*)
   2.711 -		basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
   2.712 -		;;
   2.713 -	pentiumii-* | pentium2-*)
   2.714 -		basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
   2.715 -		;;
   2.716 -	pn)
   2.717 -		basic_machine=pn-gould
   2.718 -		;;
   2.719 -	power)	basic_machine=power-ibm
   2.720 -		;;
   2.721 -	ppc)	basic_machine=powerpc-unknown
   2.722 -	        ;;
   2.723 -	ppc-*)	basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
   2.724 -		;;
   2.725 -	ppcle | powerpclittle | ppc-le | powerpc-little)
   2.726 -		basic_machine=powerpcle-unknown
   2.727 -	        ;;
   2.728 -	ppcle-* | powerpclittle-*)
   2.729 -		basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
   2.730 -		;;
   2.731 -	ps2)
   2.732 -		basic_machine=i386-ibm
   2.733 -		;;
   2.734 -	pw32)
   2.735 -		basic_machine=i586-unknown
   2.736 -		os=-pw32
   2.737 -		;;
   2.738 -	rom68k)
   2.739 -		basic_machine=m68k-rom68k
   2.740 -		os=-coff
   2.741 -		;;
   2.742 -	rm[46]00)
   2.743 -		basic_machine=mips-siemens
   2.744 -		;;
   2.745 -	rtpc | rtpc-*)
   2.746 -		basic_machine=romp-ibm
   2.747 -		;;
   2.748 -	sa29200)
   2.749 -		basic_machine=a29k-amd
   2.750 -		os=-udi
   2.751 -		;;
   2.752 -	sequent)
   2.753 -		basic_machine=i386-sequent
   2.754 -		;;
   2.755 -	sh)
   2.756 -		basic_machine=sh-hitachi
   2.757 -		os=-hms
   2.758 -		;;
   2.759 -	sparclite-wrs)
   2.760 -		basic_machine=sparclite-wrs
   2.761 -		os=-vxworks
   2.762 -		;;
   2.763 -	sps7)
   2.764 -		basic_machine=m68k-bull
   2.765 -		os=-sysv2
   2.766 -		;;
   2.767 -	spur)
   2.768 -		basic_machine=spur-unknown
   2.769 -		;;
   2.770 -	st2000)
   2.771 -		basic_machine=m68k-tandem
   2.772 -		;;
   2.773 -	stratus)
   2.774 -		basic_machine=i860-stratus
   2.775 -		os=-sysv4
   2.776 -		;;
   2.777 -	sun2)
   2.778 -		basic_machine=m68000-sun
   2.779 -		;;
   2.780 -	sun2os3)
   2.781 -		basic_machine=m68000-sun
   2.782 -		os=-sunos3
   2.783 -		;;
   2.784 -	sun2os4)
   2.785 -		basic_machine=m68000-sun
   2.786 -		os=-sunos4
   2.787 -		;;
   2.788 -	sun3os3)
   2.789 -		basic_machine=m68k-sun
   2.790 -		os=-sunos3
   2.791 -		;;
   2.792 -	sun3os4)
   2.793 -		basic_machine=m68k-sun
   2.794 -		os=-sunos4
   2.795 -		;;
   2.796 -	sun4os3)
   2.797 -		basic_machine=sparc-sun
   2.798 -		os=-sunos3
   2.799 -		;;
   2.800 -	sun4os4)
   2.801 -		basic_machine=sparc-sun
   2.802 -		os=-sunos4
   2.803 -		;;
   2.804 -	sun4sol2)
   2.805 -		basic_machine=sparc-sun
   2.806 -		os=-solaris2
   2.807 -		;;
   2.808 -	sun3 | sun3-*)
   2.809 -		basic_machine=m68k-sun
   2.810 -		;;
   2.811 -	sun4)
   2.812 -		basic_machine=sparc-sun
   2.813 -		;;
   2.814 -	sun386 | sun386i | roadrunner)
   2.815 -		basic_machine=i386-sun
   2.816 -		;;
   2.817 -	sv1)
   2.818 -		basic_machine=sv1-cray
   2.819 -		os=-unicos
   2.820 -		;;
   2.821 -	symmetry)
   2.822 -		basic_machine=i386-sequent
   2.823 -		os=-dynix
   2.824 -		;;
   2.825 -	t3e)
   2.826 -		basic_machine=t3e-cray
   2.827 -		os=-unicos
   2.828 -		;;
   2.829 -	tic54x | c54x*)
   2.830 -		basic_machine=tic54x-unknown
   2.831 -		os=-coff
   2.832 -		;;
   2.833 -	tx39)
   2.834 -		basic_machine=mipstx39-unknown
   2.835 -		;;
   2.836 -	tx39el)
   2.837 -		basic_machine=mipstx39el-unknown
   2.838 -		;;
   2.839 -	tower | tower-32)
   2.840 -		basic_machine=m68k-ncr
   2.841 -		;;
   2.842 -	udi29k)
   2.843 -		basic_machine=a29k-amd
   2.844 -		os=-udi
   2.845 -		;;
   2.846 -	ultra3)
   2.847 -		basic_machine=a29k-nyu
   2.848 -		os=-sym1
   2.849 -		;;
   2.850 -	v810 | necv810)
   2.851 -		basic_machine=v810-nec
   2.852 -		os=-none
   2.853 -		;;
   2.854 -	vaxv)
   2.855 -		basic_machine=vax-dec
   2.856 -		os=-sysv
   2.857 -		;;
   2.858 -	vms)
   2.859 -		basic_machine=vax-dec
   2.860 -		os=-vms
   2.861 -		;;
   2.862 -	vpp*|vx|vx-*)
   2.863 -               basic_machine=f301-fujitsu
   2.864 -               ;;
   2.865 -	vxworks960)
   2.866 -		basic_machine=i960-wrs
   2.867 -		os=-vxworks
   2.868 -		;;
   2.869 -	vxworks68)
   2.870 -		basic_machine=m68k-wrs
   2.871 -		os=-vxworks
   2.872 -		;;
   2.873 -	vxworks29k)
   2.874 -		basic_machine=a29k-wrs
   2.875 -		os=-vxworks
   2.876 -		;;
   2.877 -	w65*)
   2.878 -		basic_machine=w65-wdc
   2.879 -		os=-none
   2.880 -		;;
   2.881 -	w89k-*)
   2.882 -		basic_machine=hppa1.1-winbond
   2.883 -		os=-proelf
   2.884 -		;;
   2.885 -	xmp)
   2.886 -		basic_machine=xmp-cray
   2.887 -		os=-unicos
   2.888 -		;;
   2.889 -        xps | xps100)
   2.890 -		basic_machine=xps100-honeywell
   2.891 -		;;
   2.892 -	z8k-*-coff)
   2.893 -		basic_machine=z8k-unknown
   2.894 -		os=-sim
   2.895 -		;;
   2.896 -	none)
   2.897 -		basic_machine=none-none
   2.898 -		os=-none
   2.899 -		;;
   2.900 -
   2.901 -# Here we handle the default manufacturer of certain CPU types.  It is in
   2.902 -# some cases the only manufacturer, in others, it is the most popular.
   2.903 -	w89k)
   2.904 -		basic_machine=hppa1.1-winbond
   2.905 -		;;
   2.906 -	op50n)
   2.907 -		basic_machine=hppa1.1-oki
   2.908 -		;;
   2.909 -	op60c)
   2.910 -		basic_machine=hppa1.1-oki
   2.911 -		;;
   2.912 -	mips)
   2.913 -		if [ x$os = x-linux-gnu ]; then
   2.914 -			basic_machine=mips-unknown
   2.915 -		else
   2.916 -			basic_machine=mips-mips
   2.917 -		fi
   2.918 -		;;
   2.919 -	romp)
   2.920 -		basic_machine=romp-ibm
   2.921 -		;;
   2.922 -	rs6000)
   2.923 -		basic_machine=rs6000-ibm
   2.924 -		;;
   2.925 -	vax)
   2.926 -		basic_machine=vax-dec
   2.927 -		;;
   2.928 -	pdp10)
   2.929 -		# there are many clones, so DEC is not a safe bet
   2.930 -		basic_machine=pdp10-unknown
   2.931 -		;;
   2.932 -	pdp11)
   2.933 -		basic_machine=pdp11-dec
   2.934 -		;;
   2.935 -	we32k)
   2.936 -		basic_machine=we32k-att
   2.937 -		;;
   2.938 -	sh3 | sh4)
   2.939 -		basic_machine=sh-unknown
   2.940 -		;;
   2.941 -	sparc | sparcv9)
   2.942 -		basic_machine=sparc-sun
   2.943 -		;;
   2.944 -        cydra)
   2.945 -		basic_machine=cydra-cydrome
   2.946 -		;;
   2.947 -	orion)
   2.948 -		basic_machine=orion-highlevel
   2.949 -		;;
   2.950 -	orion105)
   2.951 -		basic_machine=clipper-highlevel
   2.952 -		;;
   2.953 -	mac | mpw | mac-mpw)
   2.954 -		basic_machine=m68k-apple
   2.955 -		;;
   2.956 -	pmac | pmac-mpw)
   2.957 -		basic_machine=powerpc-apple
   2.958 -		;;
   2.959 -	c4x*)
   2.960 -		basic_machine=c4x-none
   2.961 -		os=-coff
   2.962 -		;;
   2.963 -	*)
   2.964 -		echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
   2.965 -		exit 1
   2.966 -		;;
   2.967 -esac
   2.968 -
   2.969 -# Here we canonicalize certain aliases for manufacturers.
   2.970 -case $basic_machine in
   2.971 -	*-digital*)
   2.972 -		basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
   2.973 -		;;
   2.974 -	*-commodore*)
   2.975 -		basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
   2.976 -		;;
   2.977 -	*)
   2.978 -		;;
   2.979 -esac
   2.980 -
   2.981 -# Decode manufacturer-specific aliases for certain operating systems.
   2.982 -
   2.983 -if [ x"$os" != x"" ]
   2.984 -then
   2.985 -case $os in
   2.986 -        # First match some system type aliases
   2.987 -        # that might get confused with valid system types.
   2.988 -	# -solaris* is a basic system type, with this one exception.
   2.989 -	-solaris1 | -solaris1.*)
   2.990 -		os=`echo $os | sed -e 's|solaris1|sunos4|'`
   2.991 -		;;
   2.992 -	-solaris)
   2.993 -		os=-solaris2
   2.994 -		;;
   2.995 -	-svr4*)
   2.996 -		os=-sysv4
   2.997 -		;;
   2.998 -	-unixware*)
   2.999 -		os=-sysv4.2uw
  2.1000 -		;;
  2.1001 -	-gnu/linux*)
  2.1002 -		os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
  2.1003 -		;;
  2.1004 -	# First accept the basic system types.
  2.1005 -	# The portable systems comes first.
  2.1006 -	# Each alternative MUST END IN A *, to match a version number.
  2.1007 -	# -sysv* is not here because it comes later, after sysvr4.
  2.1008 -	-gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
  2.1009 -	      | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
  2.1010 -	      | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
  2.1011 -	      | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
  2.1012 -	      | -aos* \
  2.1013 -	      | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
  2.1014 -	      | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
  2.1015 -	      | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
  2.1016 -	      | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
  2.1017 -	      | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
  2.1018 -	      | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
  2.1019 -	      | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
  2.1020 -	      | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
  2.1021 -	      | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \
  2.1022 -	      | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
  2.1023 -	      | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* | -os2*)
  2.1024 -	# Remember, each alternative MUST END IN *, to match a version number.
  2.1025 -		;;
  2.1026 -	-qnx*)
  2.1027 -		case $basic_machine in
  2.1028 -		    x86-* | i[34567]86-*)
  2.1029 -			;;
  2.1030 -		    *)
  2.1031 -			os=-nto$os
  2.1032 -			;;
  2.1033 -		esac
  2.1034 -		;;
  2.1035 -	-nto*)
  2.1036 -		os=-nto-qnx
  2.1037 -		;;
  2.1038 -	-sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
  2.1039 -	      | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
  2.1040 -	      | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
  2.1041 -		;;
  2.1042 -	-mac*)
  2.1043 -		os=`echo $os | sed -e 's|mac|macos|'`
  2.1044 -		;;
  2.1045 -	-linux*)
  2.1046 -		os=`echo $os | sed -e 's|linux|linux-gnu|'`
  2.1047 -		;;
  2.1048 -	-sunos5*)
  2.1049 -		os=`echo $os | sed -e 's|sunos5|solaris2|'`
  2.1050 -		;;
  2.1051 -	-sunos6*)
  2.1052 -		os=`echo $os | sed -e 's|sunos6|solaris3|'`
  2.1053 -		;;
  2.1054 -	-opened*)
  2.1055 -		os=-openedition
  2.1056 -		;;
  2.1057 -	-wince*)
  2.1058 -		os=-wince
  2.1059 -		;;
  2.1060 -	-osfrose*)
  2.1061 -		os=-osfrose
  2.1062 -		;;
  2.1063 -	-osf*)
  2.1064 -		os=-osf
  2.1065 -		;;
  2.1066 -	-utek*)
  2.1067 -		os=-bsd
  2.1068 -		;;
  2.1069 -	-dynix*)
  2.1070 -		os=-bsd
  2.1071 -		;;
  2.1072 -	-acis*)
  2.1073 -		os=-aos
  2.1074 -		;;
  2.1075 -	-386bsd)
  2.1076 -		os=-bsd
  2.1077 -		;;
  2.1078 -	-ctix* | -uts*)
  2.1079 -		os=-sysv
  2.1080 -		;;
  2.1081 -	-ns2 )
  2.1082 -	        os=-nextstep2
  2.1083 -		;;
  2.1084 -	-nsk*)
  2.1085 -		os=-nsk
  2.1086 -		;;
  2.1087 -	# Preserve the version number of sinix5.
  2.1088 -	-sinix5.*)
  2.1089 -		os=`echo $os | sed -e 's|sinix|sysv|'`
  2.1090 -		;;
  2.1091 -	-sinix*)
  2.1092 -		os=-sysv4
  2.1093 -		;;
  2.1094 -	-triton*)
  2.1095 -		os=-sysv3
  2.1096 -		;;
  2.1097 -	-oss*)
  2.1098 -		os=-sysv3
  2.1099 -		;;
  2.1100 -	-svr4)
  2.1101 -		os=-sysv4
  2.1102 -		;;
  2.1103 -	-svr3)
  2.1104 -		os=-sysv3
  2.1105 -		;;
  2.1106 -	-sysvr4)
  2.1107 -		os=-sysv4
  2.1108 -		;;
  2.1109 -	# This must come after -sysvr4.
  2.1110 -	-sysv*)
  2.1111 -		;;
  2.1112 -	-ose*)
  2.1113 -		os=-ose
  2.1114 -		;;
  2.1115 -	-es1800*)
  2.1116 -		os=-ose
  2.1117 -		;;
  2.1118 -	-xenix)
  2.1119 -		os=-xenix
  2.1120 -		;;
  2.1121 -        -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
  2.1122 -	        os=-mint
  2.1123 -		;;
  2.1124 -	-none)
  2.1125 -		;;
  2.1126 -	*)
  2.1127 -		# Get rid of the `-' at the beginning of $os.
  2.1128 -		os=`echo $os | sed 's/[^-]*-//'`
  2.1129 -		echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
  2.1130 -		exit 1
  2.1131 -		;;
  2.1132 -esac
  2.1133 -else
  2.1134 -
  2.1135 -# Here we handle the default operating systems that come with various machines.
  2.1136 -# The value should be what the vendor currently ships out the door with their
  2.1137 -# machine or put another way, the most popular os provided with the machine.
  2.1138 -
  2.1139 -# Note that if you're going to try to match "-MANUFACTURER" here (say,
  2.1140 -# "-sun"), then you have to tell the case statement up towards the top
  2.1141 -# that MANUFACTURER isn't an operating system.  Otherwise, code above
  2.1142 -# will signal an error saying that MANUFACTURER isn't an operating
  2.1143 -# system, and we'll never get to this point.
  2.1144 -
  2.1145 -case $basic_machine in
  2.1146 -	*-acorn)
  2.1147 -		os=-riscix1.2
  2.1148 -		;;
  2.1149 -	arm*-rebel)
  2.1150 -		os=-linux
  2.1151 -		;;
  2.1152 -	arm*-semi)
  2.1153 -		os=-aout
  2.1154 -		;;
  2.1155 -	pdp10-*)
  2.1156 -		os=-tops20
  2.1157 -		;;
  2.1158 -        pdp11-*)
  2.1159 -		os=-none
  2.1160 -		;;
  2.1161 -	*-dec | vax-*)
  2.1162 -		os=-ultrix4.2
  2.1163 -		;;
  2.1164 -	m68*-apollo)
  2.1165 -		os=-domain
  2.1166 -		;;
  2.1167 -	i386-sun)
  2.1168 -		os=-sunos4.0.2
  2.1169 -		;;
  2.1170 -	m68000-sun)
  2.1171 -		os=-sunos3
  2.1172 -		# This also exists in the configure program, but was not the
  2.1173 -		# default.
  2.1174 -		# os=-sunos4
  2.1175 -		;;
  2.1176 -	m68*-cisco)
  2.1177 -		os=-aout
  2.1178 -		;;
  2.1179 -	mips*-cisco)
  2.1180 -		os=-elf
  2.1181 -		;;
  2.1182 -	mips*-*)
  2.1183 -		os=-elf
  2.1184 -		;;
  2.1185 -	*-tti)	# must be before sparc entry or we get the wrong os.
  2.1186 -		os=-sysv3
  2.1187 -		;;
  2.1188 -	sparc-* | *-sun)
  2.1189 -		os=-sunos4.1.1
  2.1190 -		;;
  2.1191 -	*-be)
  2.1192 -		os=-beos
  2.1193 -		;;
  2.1194 -	*-ibm)
  2.1195 -		os=-aix
  2.1196 -		;;
  2.1197 -	*-wec)
  2.1198 -		os=-proelf
  2.1199 -		;;
  2.1200 -	*-winbond)
  2.1201 -		os=-proelf
  2.1202 -		;;
  2.1203 -	*-oki)
  2.1204 -		os=-proelf
  2.1205 -		;;
  2.1206 -	*-hp)
  2.1207 -		os=-hpux
  2.1208 -		;;
  2.1209 -	*-hitachi)
  2.1210 -		os=-hiux
  2.1211 -		;;
  2.1212 -	i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
  2.1213 -		os=-sysv
  2.1214 -		;;
  2.1215 -	*-cbm)
  2.1216 -		os=-amigaos
  2.1217 -		;;
  2.1218 -	*-dg)
  2.1219 -		os=-dgux
  2.1220 -		;;
  2.1221 -	*-dolphin)
  2.1222 -		os=-sysv3
  2.1223 -		;;
  2.1224 -	m68k-ccur)
  2.1225 -		os=-rtu
  2.1226 -		;;
  2.1227 -	m88k-omron*)
  2.1228 -		os=-luna
  2.1229 -		;;
  2.1230 -	*-next )
  2.1231 -		os=-nextstep
  2.1232 -		;;
  2.1233 -	*-sequent)
  2.1234 -		os=-ptx
  2.1235 -		;;
  2.1236 -	*-crds)
  2.1237 -		os=-unos
  2.1238 -		;;
  2.1239 -	*-ns)
  2.1240 -		os=-genix
  2.1241 -		;;
  2.1242 -	i370-*)
  2.1243 -		os=-mvs
  2.1244 -		;;
  2.1245 -	*-next)
  2.1246 -		os=-nextstep3
  2.1247 -		;;
  2.1248 -        *-gould)
  2.1249 -		os=-sysv
  2.1250 -		;;
  2.1251 -        *-highlevel)
  2.1252 -		os=-bsd
  2.1253 -		;;
  2.1254 -	*-encore)
  2.1255 -		os=-bsd
  2.1256 -		;;
  2.1257 -        *-sgi)
  2.1258 -		os=-irix
  2.1259 -		;;
  2.1260 -        *-siemens)
  2.1261 -		os=-sysv4
  2.1262 -		;;
  2.1263 -	*-masscomp)
  2.1264 -		os=-rtu
  2.1265 -		;;
  2.1266 -	f30[01]-fujitsu | f700-fujitsu)
  2.1267 -		os=-uxpv
  2.1268 -		;;
  2.1269 -	*-rom68k)
  2.1270 -		os=-coff
  2.1271 -		;;
  2.1272 -	*-*bug)
  2.1273 -		os=-coff
  2.1274 -		;;
  2.1275 -	*-apple)
  2.1276 -		os=-macos
  2.1277 -		;;
  2.1278 -	*-atari*)
  2.1279 -		os=-mint
  2.1280 -		;;
  2.1281 -	*)
  2.1282 -		os=-none
  2.1283 -		;;
  2.1284 -esac
  2.1285 -fi
  2.1286 -
  2.1287 -# Here we handle the case where we know the os, and the CPU type, but not the
  2.1288 -# manufacturer.  We pick the logical manufacturer.
  2.1289 -vendor=unknown
  2.1290 -case $basic_machine in
  2.1291 -	*-unknown)
  2.1292 -		case $os in
  2.1293 -			-riscix*)
  2.1294 -				vendor=acorn
  2.1295 -				;;
  2.1296 -			-sunos*)
  2.1297 -				vendor=sun
  2.1298 -				;;
  2.1299 -			-aix*)
  2.1300 -				vendor=ibm
  2.1301 -				;;
  2.1302 -			-beos*)
  2.1303 -				vendor=be
  2.1304 -				;;
  2.1305 -			-hpux*)
  2.1306 -				vendor=hp
  2.1307 -				;;
  2.1308 -			-mpeix*)
  2.1309 -				vendor=hp
  2.1310 -				;;
  2.1311 -			-hiux*)
  2.1312 -				vendor=hitachi
  2.1313 -				;;
  2.1314 -			-unos*)
  2.1315 -				vendor=crds
  2.1316 -				;;
  2.1317 -			-dgux*)
  2.1318 -				vendor=dg
  2.1319 -				;;
  2.1320 -			-luna*)
  2.1321 -				vendor=omron
  2.1322 -				;;
  2.1323 -			-genix*)
  2.1324 -				vendor=ns
  2.1325 -				;;
  2.1326 -			-mvs* | -opened*)
  2.1327 -				vendor=ibm
  2.1328 -				;;
  2.1329 -			-ptx*)
  2.1330 -				vendor=sequent
  2.1331 -				;;
  2.1332 -			-vxsim* | -vxworks*)
  2.1333 -				vendor=wrs
  2.1334 -				;;
  2.1335 -			-aux*)
  2.1336 -				vendor=apple
  2.1337 -				;;
  2.1338 -			-hms*)
  2.1339 -				vendor=hitachi
  2.1340 -				;;
  2.1341 -			-mpw* | -macos*)
  2.1342 -				vendor=apple
  2.1343 -				;;
  2.1344 -			-*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
  2.1345 -				vendor=atari
  2.1346 -				;;
  2.1347 -		esac
  2.1348 -		basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
  2.1349 -		;;
  2.1350 -esac
  2.1351 -
  2.1352 -echo $basic_machine$os
  2.1353 -exit 0
  2.1354 -
  2.1355 -# Local variables:
  2.1356 -# eval: (add-hook 'write-file-hooks 'time-stamp)
  2.1357 -# time-stamp-start: "timestamp='"
  2.1358 -# time-stamp-format: "%:y-%02m-%02d"
  2.1359 -# time-stamp-end: "'"
  2.1360 -# End:
     3.1 --- a/test/install-sh	Sat Aug 20 17:46:33 2005 +0000
     3.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.3 @@ -1,251 +0,0 @@
     3.4 -#!/bin/sh
     3.5 -#
     3.6 -# install - install a program, script, or datafile
     3.7 -# This comes from X11R5 (mit/util/scripts/install.sh).
     3.8 -#
     3.9 -# Copyright 1991 by the Massachusetts Institute of Technology
    3.10 -#
    3.11 -# Permission to use, copy, modify, distribute, and sell this software and its
    3.12 -# documentation for any purpose is hereby granted without fee, provided that
    3.13 -# the above copyright notice appear in all copies and that both that
    3.14 -# copyright notice and this permission notice appear in supporting
    3.15 -# documentation, and that the name of M.I.T. not be used in advertising or
    3.16 -# publicity pertaining to distribution of the software without specific,
    3.17 -# written prior permission.  M.I.T. makes no representations about the
    3.18 -# suitability of this software for any purpose.  It is provided "as is"
    3.19 -# without express or implied warranty.
    3.20 -#
    3.21 -# Calling this script install-sh is preferred over install.sh, to prevent
    3.22 -# `make' implicit rules from creating a file called install from it
    3.23 -# when there is no Makefile.
    3.24 -#
    3.25 -# This script is compatible with the BSD install script, but was written
    3.26 -# from scratch.  It can only install one file at a time, a restriction
    3.27 -# shared with many OS's install programs.
    3.28 -
    3.29 -
    3.30 -# set DOITPROG to echo to test this script
    3.31 -
    3.32 -# Don't use :- since 4.3BSD and earlier shells don't like it.
    3.33 -doit="${DOITPROG-}"
    3.34 -
    3.35 -
    3.36 -# put in absolute paths if you don't have them in your path; or use env. vars.
    3.37 -
    3.38 -mvprog="${MVPROG-mv}"
    3.39 -cpprog="${CPPROG-cp}"
    3.40 -chmodprog="${CHMODPROG-chmod}"
    3.41 -chownprog="${CHOWNPROG-chown}"
    3.42 -chgrpprog="${CHGRPPROG-chgrp}"
    3.43 -stripprog="${STRIPPROG-strip}"
    3.44 -rmprog="${RMPROG-rm}"
    3.45 -mkdirprog="${MKDIRPROG-mkdir}"
    3.46 -
    3.47 -transformbasename=""
    3.48 -transform_arg=""
    3.49 -instcmd="$mvprog"
    3.50 -chmodcmd="$chmodprog 0755"
    3.51 -chowncmd=""
    3.52 -chgrpcmd=""
    3.53 -stripcmd=""
    3.54 -rmcmd="$rmprog -f"
    3.55 -mvcmd="$mvprog"
    3.56 -src=""
    3.57 -dst=""
    3.58 -dir_arg=""
    3.59 -
    3.60 -while [ x"$1" != x ]; do
    3.61 -    case $1 in
    3.62 -	-c) instcmd="$cpprog"
    3.63 -	    shift
    3.64 -	    continue;;
    3.65 -
    3.66 -	-d) dir_arg=true
    3.67 -	    shift
    3.68 -	    continue;;
    3.69 -
    3.70 -	-m) chmodcmd="$chmodprog $2"
    3.71 -	    shift
    3.72 -	    shift
    3.73 -	    continue;;
    3.74 -
    3.75 -	-o) chowncmd="$chownprog $2"
    3.76 -	    shift
    3.77 -	    shift
    3.78 -	    continue;;
    3.79 -
    3.80 -	-g) chgrpcmd="$chgrpprog $2"
    3.81 -	    shift
    3.82 -	    shift
    3.83 -	    continue;;
    3.84 -
    3.85 -	-s) stripcmd="$stripprog"
    3.86 -	    shift
    3.87 -	    continue;;
    3.88 -
    3.89 -	-t=*) transformarg=`echo $1 | sed 's/-t=//'`
    3.90 -	    shift
    3.91 -	    continue;;
    3.92 -
    3.93 -	-b=*) transformbasename=`echo $1 | sed 's/-b=//'`
    3.94 -	    shift
    3.95 -	    continue;;
    3.96 -
    3.97 -	*)  if [ x"$src" = x ]
    3.98 -	    then
    3.99 -		src=$1
   3.100 -	    else
   3.101 -		# this colon is to work around a 386BSD /bin/sh bug
   3.102 -		:
   3.103 -		dst=$1
   3.104 -	    fi
   3.105 -	    shift
   3.106 -	    continue;;
   3.107 -    esac
   3.108 -done
   3.109 -
   3.110 -if [ x"$src" = x ]
   3.111 -then
   3.112 -	echo "install:	no input file specified"
   3.113 -	exit 1
   3.114 -else
   3.115 -	true
   3.116 -fi
   3.117 -
   3.118 -if [ x"$dir_arg" != x ]; then
   3.119 -	dst=$src
   3.120 -	src=""
   3.121 -	
   3.122 -	if [ -d $dst ]; then
   3.123 -		instcmd=:
   3.124 -		chmodcmd=""
   3.125 -	else
   3.126 -		instcmd=mkdir
   3.127 -	fi
   3.128 -else
   3.129 -
   3.130 -# Waiting for this to be detected by the "$instcmd $src $dsttmp" command
   3.131 -# might cause directories to be created, which would be especially bad 
   3.132 -# if $src (and thus $dsttmp) contains '*'.
   3.133 -
   3.134 -	if [ -f $src -o -d $src ]
   3.135 -	then
   3.136 -		true
   3.137 -	else
   3.138 -		echo "install:  $src does not exist"
   3.139 -		exit 1
   3.140 -	fi
   3.141 -	
   3.142 -	if [ x"$dst" = x ]
   3.143 -	then
   3.144 -		echo "install:	no destination specified"
   3.145 -		exit 1
   3.146 -	else
   3.147 -		true
   3.148 -	fi
   3.149 -
   3.150 -# If destination is a directory, append the input filename; if your system
   3.151 -# does not like double slashes in filenames, you may need to add some logic
   3.152 -
   3.153 -	if [ -d $dst ]
   3.154 -	then
   3.155 -		dst="$dst"/`basename $src`
   3.156 -	else
   3.157 -		true
   3.158 -	fi
   3.159 -fi
   3.160 -
   3.161 -## this sed command emulates the dirname command
   3.162 -dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'`
   3.163 -
   3.164 -# Make sure that the destination directory exists.
   3.165 -#  this part is taken from Noah Friedman's mkinstalldirs script
   3.166 -
   3.167 -# Skip lots of stat calls in the usual case.
   3.168 -if [ ! -d "$dstdir" ]; then
   3.169 -defaultIFS='	
   3.170 -'
   3.171 -IFS="${IFS-${defaultIFS}}"
   3.172 -
   3.173 -oIFS="${IFS}"
   3.174 -# Some sh's can't handle IFS=/ for some reason.
   3.175 -IFS='%'
   3.176 -set - `echo ${dstdir} | sed -e 's@/@%@g' -e 's@^%@/@'`
   3.177 -IFS="${oIFS}"
   3.178 -
   3.179 -pathcomp=''
   3.180 -
   3.181 -while [ $# -ne 0 ] ; do
   3.182 -	pathcomp="${pathcomp}${1}"
   3.183 -	shift
   3.184 -
   3.185 -	if [ ! -d "${pathcomp}" ] ;
   3.186 -        then
   3.187 -		$mkdirprog "${pathcomp}"
   3.188 -	else
   3.189 -		true
   3.190 -	fi
   3.191 -
   3.192 -	pathcomp="${pathcomp}/"
   3.193 -done
   3.194 -fi
   3.195 -
   3.196 -if [ x"$dir_arg" != x ]
   3.197 -then
   3.198 -	$doit $instcmd $dst &&
   3.199 -
   3.200 -	if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi &&
   3.201 -	if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi &&
   3.202 -	if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true ; fi &&
   3.203 -	if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true ; fi
   3.204 -else
   3.205 -
   3.206 -# If we're going to rename the final executable, determine the name now.
   3.207 -
   3.208 -	if [ x"$transformarg" = x ] 
   3.209 -	then
   3.210 -		dstfile=`basename $dst`
   3.211 -	else
   3.212 -		dstfile=`basename $dst $transformbasename | 
   3.213 -			sed $transformarg`$transformbasename
   3.214 -	fi
   3.215 -
   3.216 -# don't allow the sed command to completely eliminate the filename
   3.217 -
   3.218 -	if [ x"$dstfile" = x ] 
   3.219 -	then
   3.220 -		dstfile=`basename $dst`
   3.221 -	else
   3.222 -		true
   3.223 -	fi
   3.224 -
   3.225 -# Make a temp file name in the proper directory.
   3.226 -
   3.227 -	dsttmp=$dstdir/#inst.$$#
   3.228 -
   3.229 -# Move or copy the file name to the temp name
   3.230 -
   3.231 -	$doit $instcmd $src $dsttmp &&
   3.232 -
   3.233 -	trap "rm -f ${dsttmp}" 0 &&
   3.234 -
   3.235 -# and set any options; do chmod last to preserve setuid bits
   3.236 -
   3.237 -# If any of these fail, we abort the whole thing.  If we want to
   3.238 -# ignore errors from any of these, just make sure not to ignore
   3.239 -# errors from the above "$doit $instcmd $src $dsttmp" command.
   3.240 -
   3.241 -	if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else true;fi &&
   3.242 -	if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else true;fi &&
   3.243 -	if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else true;fi &&
   3.244 -	if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else true;fi &&
   3.245 -
   3.246 -# Now rename the file to the real destination.
   3.247 -
   3.248 -	$doit $rmcmd -f $dstdir/$dstfile &&
   3.249 -	$doit $mvcmd $dsttmp $dstdir/$dstfile 
   3.250 -
   3.251 -fi &&
   3.252 -
   3.253 -
   3.254 -exit 0
     4.1 --- a/test/mkinstalldirs	Sat Aug 20 17:46:33 2005 +0000
     4.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.3 @@ -1,40 +0,0 @@
     4.4 -#! /bin/sh
     4.5 -# mkinstalldirs --- make directory hierarchy
     4.6 -# Author: Noah Friedman <friedman@prep.ai.mit.edu>
     4.7 -# Created: 1993-05-16
     4.8 -# Public domain
     4.9 -
    4.10 -# $Id$
    4.11 -
    4.12 -errstatus=0
    4.13 -
    4.14 -for file
    4.15 -do
    4.16 -   set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
    4.17 -   shift
    4.18 -
    4.19 -   pathcomp=
    4.20 -   for d
    4.21 -   do
    4.22 -     pathcomp="$pathcomp$d"
    4.23 -     case "$pathcomp" in
    4.24 -       -* ) pathcomp=./$pathcomp ;;
    4.25 -     esac
    4.26 -
    4.27 -     if test ! -d "$pathcomp"; then
    4.28 -        echo "mkdir $pathcomp"
    4.29 -
    4.30 -        mkdir "$pathcomp" || lasterr=$?
    4.31 -
    4.32 -        if test ! -d "$pathcomp"; then
    4.33 -  	  errstatus=$lasterr
    4.34 -        fi
    4.35 -     fi
    4.36 -
    4.37 -     pathcomp="$pathcomp/"
    4.38 -   done
    4.39 -done
    4.40 -
    4.41 -exit $errstatus
    4.42 -
    4.43 -# mkinstalldirs ends here