[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
lynx-dev curses in Caldera
From: |
A. R. Vener |
Subject: |
lynx-dev curses in Caldera |
Date: |
Fri, 21 Jul 2000 19:30:35 -0400 (EDT) |
I'm trying to build a copy of lynx with SSL. I've
installed openssl and retrieved the latest (lynx-cur.tgz)
distribution and ssl patch file. Applying the patches went
successfuly.
Next I tried running ./configure from the lynx root directory.
Configure failed due to a missing curses.h file. I looked in my
system for libcurses (e.g. locate libcurses) and didn't find any.
Then I looked for curses and found several versions of libncurses.
Finally I searched for a curses.h file but was unsuccessful.
Can I simply grab this file off another system somewhere with the hope
it will work with my libncurses library?
I've enclosed the various config.* files in a shar archive below if anyone
cares to examine them (as per README directions).
Thanks for your help.
Rudy
#!/bin/sh
# This is a shell archive (produced by GNU sharutils 4.2.1).
# To extract the files from this archive, save it to some FILE, remove
# everything before the `!/bin/sh' line above, then type `sh FILE'.
#
# Made on 2000-07-21 17:59 EDT by <address@hidden>.
# Source directory was `/install/lynx2-8-3'.
#
# Existing files will *not* be overwritten unless `-c' is specified.
#
# This shar contains:
# length mode name
# ------ ---------- ------------------------------------------
# 0 -rw-r--r-- config.cache
# 35620 -rwxr-xr-x config.guess
# 10647 -rw-r--r-- config.hin
# 15896 -rw-r--r-- config.log
# 26496 -rwxr-xr-x config.sub
#
save_IFS="${IFS}"
IFS="${IFS}:"
gettext_dir=FAILED
locale_dir=FAILED
first_param="$1"
for dir in $PATH
do
if test "$gettext_dir" = FAILED && test -f $dir/gettext \
&& ($dir/gettext --version >/dev/null 2>&1)
then
set `$dir/gettext --version 2>&1`
if test "$3" = GNU
then
gettext_dir=$dir
fi
fi
if test "$locale_dir" = FAILED && test -f $dir/shar \
&& ($dir/shar --print-text-domain-dir >/dev/null 2>&1)
then
locale_dir=`$dir/shar --print-text-domain-dir`
fi
done
IFS="$save_IFS"
if test "$locale_dir" = FAILED || test "$gettext_dir" = FAILED
then
echo=echo
else
TEXTDOMAINDIR=$locale_dir
export TEXTDOMAINDIR
TEXTDOMAIN=sharutils
export TEXTDOMAIN
echo="$gettext_dir/gettext -s"
fi
if touch -am -t 200112312359.59 $$.touch >/dev/null 2>&1 && test ! -f
200112312359.59 -a -f $$.touch; then
shar_touch='touch -am -t $1$2$3$4$5$6.$7 "$8"'
elif touch -am 123123592001.59 $$.touch >/dev/null 2>&1 && test ! -f
123123592001.59 -a ! -f 123123592001.5 -a -f $$.touch; then
shar_touch='touch -am $3$4$5$6$1$2.$7 "$8"'
elif touch -am 1231235901 $$.touch >/dev/null 2>&1 && test ! -f 1231235901 -a
-f $$.touch; then
shar_touch='touch -am $3$4$5$6$2 "$8"'
else
shar_touch=:
echo
$echo 'WARNING: not restoring timestamps. Consider getting and'
$echo "installing GNU \`touch', distributed in GNU File Utilities..."
echo
fi
rm -f 200112312359.59 123123592001.59 123123592001.5 1231235901 $$.touch
#
if mkdir _sh08041; then
$echo 'x -' 'creating lock directory'
else
$echo 'failed to create lock directory'
exit 1
fi
# ============= config.cache ==============
if test -f 'config.cache' && test "$first_param" != -c; then
$echo 'x -' SKIPPING 'config.cache' '(file already exists)'
else
$echo 'x -' extracting 'config.cache' '(empty)'
> 'config.cache' &&
(set 20 00 07 21 17 16 38 'config.cache'; eval "$shar_touch") &&
chmod 0644 'config.cache' ||
$echo 'restore of' 'config.cache' 'failed'
if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \
&& ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then
md5sum -c << SHAR_EOF >/dev/null 2>&1 \
|| $echo 'config.cache:' 'MD5 check failed'
d41d8cd98f00b204e9800998ecf8427e config.cache
SHAR_EOF
else
shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'config.cache'`"
test 0 -eq "$shar_count" ||
$echo 'config.cache:' 'original size' '0,' 'current size' "$shar_count!"
fi
fi
# ============= config.guess ==============
if test -f 'config.guess' && test "$first_param" != -c; then
$echo 'x -' SKIPPING 'config.guess' '(file already exists)'
else
$echo 'x -' extracting 'config.guess' '(text)'
sed 's/^X//' << 'SHAR_EOF' > 'config.guess' &&
#! /bin/sh
# Attempt to guess a canonical system name.
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000
# Free Software Foundation, Inc.
X
version='2000-06-13'
X
# This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a
# configuration script generated by Autoconf, you may include it under
# the same distribution terms that you use for the rest of that program.
X
# Written by Per Bothner <address@hidden>.
# Please send patches to <address@hidden>.
#
# This script attempts to guess a canonical system name similar to
# config.sub. If it succeeds, it prints the system name on stdout, and
# exits with 0. Otherwise, it exits with 1.
#
# The plan is that this can be called by configure scripts if you
# don't specify an explicit system type (host/target name).
#
# Only a few systems have been added to this list; please add others
# (but try to keep the structure clean).
#
X
me=`echo "$0" | sed -e 's,.*/,,'`
X
usage="\
Usage: $0 [OPTION]
X
Output the configuration name of this system.
X
Operation modes:
X -h, --help print this help, then exit
X -V, --version print version number, then exit"
X
help="
Try \`$me --help' for more information."
X
# Parse command line
while test $# -gt 0 ; do
X case "$1" in
X --version | --vers* | -V )
X echo "$version" ; exit 0 ;;
X --help | --h* | -h )
X echo "$usage"; exit 0 ;;
X -- ) # Stop option processing
X shift; break ;;
X - ) # Use stdin as input.
X break ;;
X -* )
X exec >&2
X echo "$me: invalid option $1"
X echo "$help"
X exit 1 ;;
X * )
X break ;;
X esac
done
X
if test $# != 0; then
X echo "$me: too many arguments$help" >&2
X exit 1
fi
X
# Use $HOST_CC if defined. $CC may point to a cross-compiler
if test x"$CC_FOR_BUILD" = x; then
X if test x"$HOST_CC" != x; then
X CC_FOR_BUILD="$HOST_CC"
X else
X if test x"$CC" != x; then
X CC_FOR_BUILD="$CC"
X else
X CC_FOR_BUILD=cc
X fi
X fi
fi
X
X
# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
# (address@hidden 8/24/94.)
if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
X PATH=$PATH:/.attbin ; export PATH
fi
X
UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
X
dummy=dummy-$$
trap 'rm -f $dummy.c $dummy.o $dummy; exit 1' 1 2 15
X
# Note: order is significant - the case branches are not exclusive.
X
case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
X *:NetBSD:*:*)
X # Netbsd (nbsd) targets should (where applicable) match one or
X # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
X # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
X # switched to ELF, *-*-netbsd* would select the old
X # object file format. This provides both forward
X # compatibility and a consistent mechanism for selecting the
X # object file format.
X # Determine the machine/vendor (is the vendor relevant).
X case "${UNAME_MACHINE}" in
X amiga) machine=m68k-cbm ;;
X arm32) machine=arm-unknown ;;
X atari*) machine=m68k-atari ;;
X sun3*) machine=m68k-sun ;;
X mac68k) machine=m68k-apple ;;
X macppc) machine=powerpc-apple ;;
X hp3[0-9][05]) machine=m68k-hp ;;
X ibmrt|romp-ibm) machine=romp-ibm ;;
X *) machine=${UNAME_MACHINE}-unknown ;;
X esac
X # The Operating System including object format.
X if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
X | grep __ELF__ >/dev/null
X then
X # Once all utilities can be ECOFF (netbsdecoff) or a.out
(netbsdaout).
X # Return netbsd for either. FIX?
X os=netbsd
X else
X os=netbsdelf
X fi
X # The OS release
X release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
X # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
X # contains redundant information, the shorter form:
X # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
X echo "${machine}-${os}${release}"
X exit 0 ;;
X alpha:OSF1:*:*)
X if test $UNAME_RELEASE = "V4.0"; then
X UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
X fi
X # A Vn.n version is a released version.
X # A Tn.n version is a released field test version.
X # A Xn.n version is an unreleased experimental baselevel.
X # 1.2 uses "1.2" for uname -r.
X cat <<EOF >$dummy.s
X .data
\$Lformat:
X .byte 37,100,45,37,120,10,0 # "%d-%x\n"
X
X .text
X .globl main
X .align 4
X .ent main
main:
X .frame \$30,16,\$26,0
X ldgp \$29,0(\$27)
X .prologue 1
X .long 0x47e03d80 # implver \$0
X lda \$2,-1
X .long 0x47e20c21 # amask \$2,\$1
X lda \$16,\$Lformat
X mov \$0,\$17
X not \$1,\$18
X jsr \$26,printf
X ldgp \$29,0(\$26)
X mov 0,\$16
X jsr \$26,exit
X .end main
EOF
X $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null
X if test "$?" = 0 ; then
X case `./$dummy` in
X 0-0)
X UNAME_MACHINE="alpha"
X ;;
X 1-0)
X UNAME_MACHINE="alphaev5"
X ;;
X 1-1)
X UNAME_MACHINE="alphaev56"
X ;;
X 1-101)
X UNAME_MACHINE="alphapca56"
X ;;
X 2-303)
X UNAME_MACHINE="alphaev6"
X ;;
X 2-307)
X UNAME_MACHINE="alphaev67"
X ;;
X esac
X fi
X rm -f $dummy.s $dummy
X echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e
's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
X exit 0 ;;
X Alpha\ *:Windows_NT*:*)
X # How do we know it's Interix rather than the generic POSIX subsystem?
X # Should we change UNAME_MACHINE based on the output of uname instead
X # of the specific Alpha model?
X echo alpha-pc-interix
X exit 0 ;;
X 21064:Windows_NT:50:3)
X echo alpha-dec-winnt3.5
X exit 0 ;;
X Amiga*:UNIX_System_V:4.0:*)
X echo m68k-cbm-sysv4
X exit 0;;
X amiga:OpenBSD:*:*)
X echo m68k-unknown-openbsd${UNAME_RELEASE}
X exit 0 ;;
X *:[Aa]miga[Oo][Ss]:*:*)
X echo ${UNAME_MACHINE}-unknown-amigaos
X exit 0 ;;
X arc64:OpenBSD:*:*)
X echo mips64el-unknown-openbsd${UNAME_RELEASE}
X exit 0 ;;
X arc:OpenBSD:*:*)
X echo mipsel-unknown-openbsd${UNAME_RELEASE}
X exit 0 ;;
X hkmips:OpenBSD:*:*)
X echo mips-unknown-openbsd${UNAME_RELEASE}
X exit 0 ;;
X pmax:OpenBSD:*:*)
X echo mipsel-unknown-openbsd${UNAME_RELEASE}
X exit 0 ;;
X sgi:OpenBSD:*:*)
X echo mips-unknown-openbsd${UNAME_RELEASE}
X exit 0 ;;
X wgrisc:OpenBSD:*:*)
X echo mipsel-unknown-openbsd${UNAME_RELEASE}
X exit 0 ;;
X arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
X echo arm-acorn-riscix${UNAME_RELEASE}
X exit 0;;
X SR2?01:HI-UX/MPP:*:*)
X echo hppa1.1-hitachi-hiuxmpp
X exit 0;;
X Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
X # address@hidden (Earle F. Ake) contributed MIS and NILE.
X if test "`(/bin/universe) 2>/dev/null`" = att ; then
X echo pyramid-pyramid-sysv3
X else
X echo pyramid-pyramid-bsd
X fi
X exit 0 ;;
X NILE*:*:*:dcosx)
X echo pyramid-pyramid-svr4
X exit 0 ;;
X sun4H:SunOS:5.*:*)
X echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
X exit 0 ;;
X sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
X echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
X exit 0 ;;
X i86pc:SunOS:5.*:*)
X echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
X exit 0 ;;
X sun4*:SunOS:6*:*)
X # According to config.sub, this is the proper way to canonicalize
X # SunOS6. Hard to guess exactly what SunOS6 will be like, but
X # it's likely to be more like Solaris than SunOS4.
X echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
X exit 0 ;;
X sun4*:SunOS:*:*)
X case "`/usr/bin/arch -k`" in
X Series*|S4*)
X UNAME_RELEASE=`uname -v`
X ;;
X esac
X # Japanese Language versions have a version number like `4.1.3-JL'.
X echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
X exit 0 ;;
X sun3*:SunOS:*:*)
X echo m68k-sun-sunos${UNAME_RELEASE}
X exit 0 ;;
X sun*:*:4.2BSD:*)
X UNAME_RELEASE=`(head -1 /etc/motd | awk '{print substr($5,1,3)}')
2>/dev/null`
X test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
X case "`/bin/arch`" in
X sun3)
X echo m68k-sun-sunos${UNAME_RELEASE}
X ;;
X sun4)
X echo sparc-sun-sunos${UNAME_RELEASE}
X ;;
X esac
X exit 0 ;;
X aushp:SunOS:*:*)
X echo sparc-auspex-sunos${UNAME_RELEASE}
X exit 0 ;;
X atari*:OpenBSD:*:*)
X echo m68k-unknown-openbsd${UNAME_RELEASE}
X exit 0 ;;
X # The situation for MiNT is a little confusing. The machine name
X # can be virtually everything (everything which is not
X # "atarist" or "atariste" at least should have a processor
X # > m68000). The system name ranges from "MiNT" over "FreeMiNT"
X # to the lowercase version "mint" (or "freemint"). Finally
X # the system name "TOS" denotes a system which is actually not
X # MiNT. But MiNT is downward compatible to TOS, so this should
X # be no problem.
X atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
X echo m68k-atari-mint${UNAME_RELEASE}
X exit 0 ;;
X atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
X echo m68k-atari-mint${UNAME_RELEASE}
X exit 0 ;;
X *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
X echo m68k-atari-mint${UNAME_RELEASE}
X exit 0 ;;
X milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
X echo m68k-milan-mint${UNAME_RELEASE}
X exit 0 ;;
X hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
X echo m68k-hades-mint${UNAME_RELEASE}
X exit 0 ;;
X *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
X echo m68k-unknown-mint${UNAME_RELEASE}
X exit 0 ;;
X sun3*:OpenBSD:*:*)
X echo m68k-unknown-openbsd${UNAME_RELEASE}
X exit 0 ;;
X mac68k:OpenBSD:*:*)
X echo m68k-unknown-openbsd${UNAME_RELEASE}
X exit 0 ;;
X mvme68k:OpenBSD:*:*)
X echo m68k-unknown-openbsd${UNAME_RELEASE}
X exit 0 ;;
X mvme88k:OpenBSD:*:*)
X echo m88k-unknown-openbsd${UNAME_RELEASE}
X exit 0 ;;
X powerpc:machten:*:*)
X echo powerpc-apple-machten${UNAME_RELEASE}
X exit 0 ;;
X RISC*:Mach:*:*)
X echo mips-dec-mach_bsd4.3
X exit 0 ;;
X RISC*:ULTRIX:*:*)
X echo mips-dec-ultrix${UNAME_RELEASE}
X exit 0 ;;
X VAX*:ULTRIX*:*:*)
X echo vax-dec-ultrix${UNAME_RELEASE}
X exit 0 ;;
X 2020:CLIX:*:* | 2430:CLIX:*:*)
X echo clipper-intergraph-clix${UNAME_RELEASE}
X exit 0 ;;
X mips:*:*:UMIPS | mips:*:*:RISCos)
X sed 's/^ //' << EOF >$dummy.c
#ifdef __cplusplus
#include <stdio.h> /* for printf() prototype */
X int main (int argc, char *argv[]) {
#else
X int main (argc, argv) int argc; char *argv[]; {
#endif
X #if defined (host_mips) && defined (MIPSEB)
X #if defined (SYSTYPE_SYSV)
X printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
X #endif
X #if defined (SYSTYPE_SVR4)
X printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
X #endif
X #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
X printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
X #endif
X #endif
X exit (-1);
X }
EOF
X $CC_FOR_BUILD $dummy.c -o $dummy \
X && ./$dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
X && rm $dummy.c $dummy && exit 0
X rm -f $dummy.c $dummy
X echo mips-mips-riscos${UNAME_RELEASE}
X exit 0 ;;
X Night_Hawk:Power_UNIX:*:*)
X echo powerpc-harris-powerunix
X exit 0 ;;
X m88k:CX/UX:7*:*)
X echo m88k-harris-cxux7
X exit 0 ;;
X m88k:*:4*:R4*)
X echo m88k-motorola-sysv4
X exit 0 ;;
X m88k:*:3*:R3*)
X echo m88k-motorola-sysv3
X exit 0 ;;
X AViiON:dgux:*:*)
X # DG/UX returns AViiON for all architectures
X UNAME_PROCESSOR=`/usr/bin/uname -p`
X if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
X then
X if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
X [ ${TARGET_BINARY_INTERFACE}x = x ]
X then
X echo m88k-dg-dgux${UNAME_RELEASE}
X else
X echo m88k-dg-dguxbcs${UNAME_RELEASE}
X fi
X else
X echo i586-dg-dgux${UNAME_RELEASE}
X fi
X exit 0 ;;
X M88*:DolphinOS:*:*) # DolphinOS (SVR3)
X echo m88k-dolphin-sysv3
X exit 0 ;;
X M88*:*:R3*:*)
X # Delta 88k system running SVR3
X echo m88k-motorola-sysv3
X exit 0 ;;
X XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
X echo m88k-tektronix-sysv3
X exit 0 ;;
X Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
X echo m68k-tektronix-bsd
X exit 0 ;;
X *:IRIX*:*:*)
X echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
X exit 0 ;;
X *:MVS:*:* | *:OS390:*:*|*:OS/390:*:*)
X # uname -m gives a processor model number /*
S/390 -- gil -- 1389 */
X echo s390-ibm-os390 # on R1 and R2, uname -s reports OS390
X exit 0 ;; # on R3, uname -s reports OS/390
X ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
X echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
X exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX '
X i?86:AIX:*:*)
X echo i386-ibm-aix
X exit 0 ;;
X *:AIX:2:3)
X if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
X sed 's/^ //' << EOF >$dummy.c
X #include <sys/systemcfg.h>
X
X main()
X {
X if (!__power_pc())
X exit(1);
X puts("powerpc-ibm-aix3.2.5");
X exit(0);
X }
EOF
X $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm $dummy.c
$dummy && exit 0
X rm -f $dummy.c $dummy
X echo rs6000-ibm-aix3.2.5
X elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
X echo rs6000-ibm-aix3.2.4
X else
X echo rs6000-ibm-aix3.2
X fi
X exit 0 ;;
X *:AIX:*:4)
X IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | head -1 |
awk '{ print $1 }'`
X if /usr/sbin/lsattr -EHl ${IBM_CPU_ID} | grep POWER >/dev/null 2>&1;
then
X IBM_ARCH=rs6000
X else
X IBM_ARCH=powerpc
X fi
X if [ -x /usr/bin/oslevel ] ; then
X IBM_REV=`/usr/bin/oslevel`
X else
X IBM_REV=4.${UNAME_RELEASE}
X fi
X echo ${IBM_ARCH}-ibm-aix${IBM_REV}
X exit 0 ;;
X *:AIX:*:*)
X echo rs6000-ibm-aix
X exit 0 ;;
X ibmrt:4.4BSD:*|romp-ibm:BSD:*)
X echo romp-ibm-bsd4.4
X exit 0 ;;
X ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
X echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
X exit 0 ;; # report: romp-ibm BSD 4.3
X *:BOSX:*:*)
X echo rs6000-bull-bosx
X exit 0 ;;
X DPX/2?00:B.O.S.:*:*)
X echo m68k-bull-sysv3
X exit 0 ;;
X 9000/[34]??:4.3bsd:1.*:*)
X echo m68k-hp-bsd
X exit 0 ;;
X hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
X echo m68k-hp-bsd4.4
X exit 0 ;;
X 9000/[34678]??:HP-UX:*:*)
X case "${UNAME_MACHINE}" in
X 9000/31? ) HP_ARCH=m68000 ;;
X 9000/[34]?? ) HP_ARCH=m68k ;;
X 9000/[678][0-9][0-9])
X sed 's/^ //' << EOF >$dummy.c
X
X #define _HPUX_SOURCE
X #include <stdlib.h>
X #include <unistd.h>
X
X int main ()
X {
X #if defined(_SC_KERNEL_BITS)
X long bits = sysconf(_SC_KERNEL_BITS);
X #endif
X long cpu = sysconf (_SC_CPU_VERSION);
X
X switch (cpu)
X {
X case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
X case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
X case CPU_PA_RISC2_0:
X #if defined(_SC_KERNEL_BITS)
X switch (bits)
X {
X case 64: puts ("hppa2.0w"); break;
X case 32: puts ("hppa2.0n"); break;
X default: puts ("hppa2.0"); break;
X } break;
X #else /* !defined(_SC_KERNEL_BITS) */
X puts ("hppa2.0"); break;
X #endif
X default: puts ("hppa1.0"); break;
X }
X exit (0);
X }
EOF
X (CCOPTS= $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null ) &&
HP_ARCH=`./$dummy`
X rm -f $dummy.c $dummy
X esac
X HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
X echo ${HP_ARCH}-hp-hpux${HPUX_REV}
X exit 0 ;;
X 3050*:HI-UX:*:*)
X sed 's/^ //' << EOF >$dummy.c
X #include <unistd.h>
X int
X main ()
X {
X long cpu = sysconf (_SC_CPU_VERSION);
X /* The order matters, because CPU_IS_HP_MC68K erroneously returns
X true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct
X results, however. */
X if (CPU_IS_PA_RISC (cpu))
X {
X switch (cpu)
X {
X case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
X case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
X case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
X default: puts ("hppa-hitachi-hiuxwe2"); break;
X }
X }
X else if (CPU_IS_HP_MC68K (cpu))
X puts ("m68k-hitachi-hiuxwe2");
X else puts ("unknown-hitachi-hiuxwe2");
X exit (0);
X }
EOF
X $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm $dummy.c $dummy &&
exit 0
X rm -f $dummy.c $dummy
X echo unknown-hitachi-hiuxwe2
X exit 0 ;;
X 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
X echo hppa1.1-hp-bsd
X exit 0 ;;
X 9000/8??:4.3bsd:*:*)
X echo hppa1.0-hp-bsd
X exit 0 ;;
X *9??*:MPE/iX:*:*)
X echo hppa1.0-hp-mpeix
X exit 0 ;;
X hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
X echo hppa1.1-hp-osf
X exit 0 ;;
X hp8??:OSF1:*:*)
X echo hppa1.0-hp-osf
X exit 0 ;;
X i?86:OSF1:*:*)
X if [ -x /usr/sbin/sysversion ] ; then
X echo ${UNAME_MACHINE}-unknown-osf1mk
X else
X echo ${UNAME_MACHINE}-unknown-osf1
X fi
X exit 0 ;;
X parisc*:Lites*:*:*)
X echo hppa1.1-hp-lites
X exit 0 ;;
X hppa*:OpenBSD:*:*)
X echo hppa-unknown-openbsd
X exit 0 ;;
X C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
X echo c1-convex-bsd
X exit 0 ;;
X C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
X if getsysinfo -f scalar_acc
X then echo c32-convex-bsd
X else echo c2-convex-bsd
X fi
X exit 0 ;;
X C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
X echo c34-convex-bsd
X exit 0 ;;
X C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
X echo c38-convex-bsd
X exit 0 ;;
X C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
X echo c4-convex-bsd
X exit 0 ;;
X CRAY*X-MP:*:*:*)
X echo xmp-cray-unicos
X exit 0 ;;
X CRAY*Y-MP:*:*:*)
X echo ymp-cray-unicos${UNAME_RELEASE}
X exit 0 ;;
X CRAY*[A-Z]90:*:*:*)
X echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
X | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
X -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/
X exit 0 ;;
X CRAY*TS:*:*:*)
X echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
X exit 0 ;;
X CRAY*T3E:*:*:*)
X echo alpha-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
X exit 0 ;;
X CRAY*SV1:*:*:*)
X echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
X exit 0 ;;
X CRAY-2:*:*:*)
X echo cray2-cray-unicos
X exit 0 ;;
X F300:UNIX_System_V:*:*)
X FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
X FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
X echo "f300-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
X exit 0 ;;
X F301:UNIX_System_V:*:*)
X echo f301-fujitsu-uxpv`echo $UNAME_RELEASE | sed 's/ .*//'`
X exit 0 ;;
X hp300:OpenBSD:*:*)
X echo m68k-unknown-openbsd${UNAME_RELEASE}
X exit 0 ;;
X i?86:BSD/386:*:* | i?86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
X echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
X exit 0 ;;
X sparc*:BSD/OS:*:*)
X echo sparc-unknown-bsdi${UNAME_RELEASE}
X exit 0 ;;
X *:BSD/OS:*:*)
X echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
X exit 0 ;;
X *:FreeBSD:*:*)
X echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e
's/[-(].*//'`
X exit 0 ;;
X *:OpenBSD:*:*)
X echo ${UNAME_MACHINE}-unknown-openbsd`echo ${UNAME_RELEASE}|sed -e
's/[-_].*/\./'`
X exit 0 ;;
X i*:CYGWIN*:*)
X echo ${UNAME_MACHINE}-pc-cygwin
X exit 0 ;;
X i*:MINGW*:*)
X echo ${UNAME_MACHINE}-pc-mingw32
X exit 0 ;;
X i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
X # How do we know it's Interix rather than the generic POSIX subsystem?
X # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
X # UNAME_MACHINE based on the output of uname instead of i386?
X echo i386-pc-interix
X exit 0 ;;
X i*:UWIN*:*)
X echo ${UNAME_MACHINE}-pc-uwin
X exit 0 ;;
X p*:CYGWIN*:*)
X echo powerpcle-unknown-cygwin
X exit 0 ;;
X prep*:SunOS:5.*:*)
X echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e
's/[^.]*//'`
X exit 0 ;;
X *:GNU:*:*)
X echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo
${UNAME_RELEASE}|sed -e 's,/.*$,,'`
X exit 0 ;;
X i*86:Minix:*:*)
X echo ${UNAME_MACHINE}-pc-minix
X exit 0 ;;
X *:Linux:*:*)
X
X # The BFD linker knows what the default object file format is, so
X # first see if it will tell us. cd to the root directory to prevent
X # problems with other programs or directories called `ld' in the path.
X ld_help_string=`cd /; ld --help 2>&1`
X ld_supported_emulations=`echo $ld_help_string \
X | sed -ne '/supported emulations:/!d
X s/[ ][ ]*/ /g
X s/.*supported emulations: *//
X s/ .*//
X p'`
X case "$ld_supported_emulations" in
X *ia64)
X echo "${UNAME_MACHINE}-unknown-linux"
X exit 0
X ;;
X i?86linux)
X echo "${UNAME_MACHINE}-pc-linux-gnuaout"
X exit 0
X ;;
X elf_i?86)
X echo "${UNAME_MACHINE}-pc-linux"
X exit 0
X ;;
X i?86coff)
X echo "${UNAME_MACHINE}-pc-linux-gnucoff"
X exit 0
X ;;
X sparclinux)
X echo "${UNAME_MACHINE}-unknown-linux-gnuaout"
X exit 0
X ;;
X armlinux)
X echo "${UNAME_MACHINE}-unknown-linux-gnuaout"
X exit 0
X ;;
X elf32arm*)
X echo "${UNAME_MACHINE}-unknown-linux-gnuoldld"
X exit 0
X ;;
X armelf_linux*)
X echo "${UNAME_MACHINE}-unknown-linux-gnu"
X exit 0
X ;;
X m68klinux)
X echo "${UNAME_MACHINE}-unknown-linux-gnuaout"
X exit 0
X ;;
X elf32ppc | elf32ppclinux)
X # Determine Lib Version
X cat >$dummy.c <<EOF
#include <features.h>
#if defined(__GLIBC__)
extern char __libc_version[];
extern char __libc_release[];
#endif
main(argc, argv)
X int argc;
X char *argv[];
{
#if defined(__GLIBC__)
X printf("%s %s\n", __libc_version, __libc_release);
#else
X printf("unkown\n");
#endif
X return 0;
}
EOF
X LIBC=""
X $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null
X if test "$?" = 0 ; then
X ./$dummy | grep 1\.99 > /dev/null
X if test "$?" = 0 ; then
X LIBC="libc1"
X fi
X fi
X rm -f $dummy.c $dummy
X echo powerpc-unknown-linux-gnu${LIBC}
X exit 0
X ;;
X shelf_linux)
X echo "${UNAME_MACHINE}-unknown-linux-gnu"
X exit 0
X ;;
X esac
X
X if test "${UNAME_MACHINE}" = "alpha" ; then
X cat <<EOF >$dummy.s
X .data
X \$Lformat:
X .byte 37,100,45,37,120,10,0 # "%d-%x\n"
X
X .text
X .globl main
X .align 4
X .ent main
X main:
X .frame \$30,16,\$26,0
X ldgp \$29,0(\$27)
X .prologue 1
X .long 0x47e03d80 # implver \$0
X lda \$2,-1
X .long 0x47e20c21 # amask \$2,\$1
X lda \$16,\$Lformat
X mov \$0,\$17
X not \$1,\$18
X jsr \$26,printf
X ldgp \$29,0(\$26)
X mov 0,\$16
X jsr \$26,exit
X .end main
EOF
X LIBC=""
X $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null
X if test "$?" = 0 ; then
X case `./$dummy` in
X 0-0)
X UNAME_MACHINE="alpha"
X ;;
X 1-0)
X UNAME_MACHINE="alphaev5"
X ;;
X 1-1)
X UNAME_MACHINE="alphaev56"
X ;;
X 1-101)
X UNAME_MACHINE="alphapca56"
X ;;
X 2-303)
X UNAME_MACHINE="alphaev6"
X ;;
X 2-307)
X UNAME_MACHINE="alphaev67"
X ;;
X esac
X
X objdump --private-headers $dummy | \
X grep ld.so.1 > /dev/null
X if test "$?" = 0 ; then
X LIBC="libc1"
X fi
X fi
X rm -f $dummy.s $dummy
X echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} ; exit 0
X elif test "${UNAME_MACHINE}" = "mips" ; then
X cat >$dummy.c <<EOF
#ifdef __cplusplus
#include <stdio.h> /* for printf() prototype */
X int main (int argc, char *argv[]) {
#else
X int main (argc, argv) int argc; char *argv[]; {
#endif
#ifdef __MIPSEB__
X printf ("%s-unknown-linux-gnu\n", argv[1]);
#endif
#ifdef __MIPSEL__
X printf ("%sel-unknown-linux-gnu\n", argv[1]);
#endif
X return 0;
}
EOF
X $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy
"${UNAME_MACHINE}" && rm $dummy.c $dummy && exit 0
X rm -f $dummy.c $dummy
X elif test "${UNAME_MACHINE}" = "s390"; then
X echo s390-ibm-linux && exit 0
X else
X # Either a pre-BFD a.out linker (linux-gnuoldld)
X # or one that does not give us useful --help.
X # GCC wants to distinguish between linux-gnuoldld and linux-gnuaout.
X # If ld does not provide *any* "supported emulations:"
X # that means it is gnuoldld.
X echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations:"
X test $? != 0 && echo "${UNAME_MACHINE}-pc-linux-gnuoldld" && exit 0
X
X case "${UNAME_MACHINE}" in
X i?86)
X VENDOR=pc;
X ;;
X *)
X VENDOR=unknown;
X ;;
X esac
X # Determine whether the default compiler is a.out or elf
X cat >$dummy.c <<EOF
#include <features.h>
#ifdef __cplusplus
#include <stdio.h> /* for printf() prototype */
X int main (int argc, char *argv[]) {
#else
X int main (argc, argv) int argc; char *argv[]; {
#endif
#ifdef __ELF__
# ifdef __GLIBC__
# if __GLIBC__ >= 2
X printf ("%s-${VENDOR}-linux-gnu\n", argv[1]);
# else
X printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]);
# endif
# else
X printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]);
# endif
#else
X printf ("%s-${VENDOR}-linux-gnuaout\n", argv[1]);
#endif
X return 0;
}
EOF
X $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy
"${UNAME_MACHINE}" && rm $dummy.c $dummy && exit 0
X rm -f $dummy.c $dummy
X fi ;;
# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. earlier versions
# are messed up and put the nodename in both sysname and nodename.
X i?86:DYNIX/ptx:4*:*)
X echo i386-sequent-sysv4
X exit 0 ;;
X i?86:UNIX_SV:4.2MP:2.*)
X # Unixware is an offshoot of SVR4, but it has its own version
X # number series starting with 2...
X # I am not positive that other SVR4 systems won't match this,
X # I just have to hope. -- rms.
X # Use sysv4.2uw... so that sysv4* matches it.
X echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
X exit 0 ;;
X i?86:*:4.*:* | i?86:SYSTEM_V:4.*:*)
X UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
X if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
X echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
X else
X echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
X fi
X exit 0 ;;
X i?86:*:5:7*)
X # Fixed at (any) Pentium or better
X UNAME_MACHINE=i586
X if [ ${UNAME_SYSTEM} = "UnixWare" ] ; then
X echo ${UNAME_MACHINE}-sco-sysv${UNAME_RELEASE}uw${UNAME_VERSION}
X else
X echo ${UNAME_MACHINE}-pc-sysv${UNAME_RELEASE}
X fi
X exit 0 ;;
X i?86:*:3.2:*)
X if test -f /usr/options/cb.name; then
X UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
X echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
X elif /bin/uname -X 2>/dev/null >/dev/null ; then
X UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')`
X (/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486
X (/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \
X && UNAME_MACHINE=i586
X (/bin/uname -X|egrep '^Machine.*Pent ?II' >/dev/null) \
X && UNAME_MACHINE=i686
X (/bin/uname -X|egrep '^Machine.*Pentium Pro' >/dev/null) \
X && UNAME_MACHINE=i686
X echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
X else
X echo ${UNAME_MACHINE}-pc-sysv32
X fi
X exit 0 ;;
X i?86:*DOS:*:*)
X echo ${UNAME_MACHINE}-pc-msdosdjgpp
X exit 0 ;;
X pc:*:*:*)
X # Left here for compatibility:
X # uname -m prints for DJGPP always 'pc', but it prints nothing about
X # the processor, so we play safe by assuming i386.
X echo i386-pc-msdosdjgpp
X exit 0 ;;
X Intel:Mach:3*:*)
X echo i386-pc-mach3
X exit 0 ;;
X paragon:*:*:*)
X echo i860-intel-osf1
X exit 0 ;;
X i860:*:4.*:*) # i860-SVR4
X if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
X echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
X else # Add other i860-SVR4 vendors below as they are discovered.
X echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
X fi
X exit 0 ;;
X mini*:CTIX:SYS*5:*)
X # "miniframe"
X echo m68010-convergent-sysv
X exit 0 ;;
X M68*:*:R3V[567]*:*)
X test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
X 3[34]??:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 4850:*:4.0:3.0)
X OS_REL=''
X test -r /etc/.relid \
X && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
X /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
X && echo i486-ncr-sysv4.3${OS_REL} && exit 0
X /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
X && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;;
X 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
X /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
X && echo i486-ncr-sysv4 && exit 0 ;;
X m68*:LynxOS:2.*:*)
X echo m68k-unknown-lynxos${UNAME_RELEASE}
X exit 0 ;;
X mc68030:UNIX_System_V:4.*:*)
X echo m68k-atari-sysv4
X exit 0 ;;
X i?86:LynxOS:2.*:* | i?86:LynxOS:3.[01]*:*)
X echo i386-unknown-lynxos${UNAME_RELEASE}
X exit 0 ;;
X TSUNAMI:LynxOS:2.*:*)
X echo sparc-unknown-lynxos${UNAME_RELEASE}
X exit 0 ;;
X rs6000:LynxOS:2.*:* | PowerPC:LynxOS:2.*:*)
X echo rs6000-unknown-lynxos${UNAME_RELEASE}
X exit 0 ;;
X SM[BE]S:UNIX_SV:*:*)
X echo mips-dde-sysv${UNAME_RELEASE}
X exit 0 ;;
X RM*:ReliantUNIX-*:*:*)
X echo mips-sni-sysv4
X exit 0 ;;
X RM*:SINIX-*:*:*)
X echo mips-sni-sysv4
X exit 0 ;;
X *:SINIX-*:*:*)
X if uname -p 2>/dev/null >/dev/null ; then
X UNAME_MACHINE=`(uname -p) 2>/dev/null`
X echo ${UNAME_MACHINE}-sni-sysv4
X else
X echo ns32k-sni-sysv
X fi
X exit 0 ;;
X PENTIUM:CPunix:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
X # says <address@hidden>
X echo i586-unisys-sysv4
X exit 0 ;;
X *:UNIX_System_V:4*:FTX*)
X # From Gerald Hewes <address@hidden>.
X # How about differentiating between stratus architectures? -djm
X echo hppa1.1-stratus-sysv4
X exit 0 ;;
X *:*:*:FTX*)
X # From address@hidden
X echo i860-stratus-sysv4
X exit 0 ;;
X mc68*:A/UX:*:*)
X echo m68k-apple-aux${UNAME_RELEASE}
X exit 0 ;;
X news*:NEWS-OS:*:6*)
X echo mips-sony-newsos6
X exit 0 ;;
X R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
X if [ -d /usr/nec ]; then
X echo mips-nec-sysv${UNAME_RELEASE}
X else
X echo mips-unknown-sysv${UNAME_RELEASE}
X fi
X exit 0 ;;
X BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
X echo powerpc-be-beos
X exit 0 ;;
X BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
X echo powerpc-apple-beos
X exit 0 ;;
X BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
X echo i586-pc-beos
X exit 0 ;;
X SX-4:SUPER-UX:*:*)
X echo sx4-nec-superux${UNAME_RELEASE}
X exit 0 ;;
X SX-5:SUPER-UX:*:*)
X echo sx5-nec-superux${UNAME_RELEASE}
X exit 0 ;;
X Power*:Rhapsody:*:*)
X echo powerpc-apple-rhapsody${UNAME_RELEASE}
X exit 0 ;;
X *:Rhapsody:*:*)
X echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
X exit 0 ;;
X *:Darwin:*:*)
X echo `uname -p`-apple-darwin${UNAME_RELEASE}
X exit 0 ;;
X *:procnto*:*:* | *:QNX:[0123456789]*:*)
X if test "${UNAME_MACHINE}" = "x86pc"; then
X UNAME_MACHINE=pc
X fi
X echo `uname -p`-${UNAME_MACHINE}-nto-qnx
X exit 0 ;;
X *:QNX:*:4*)
X echo i386-pc-qnx
X exit 0 ;;
X NSR-W:NONSTOP_KERNEL:*:*)
X echo nsr-tandem-nsk${UNAME_RELEASE}
X exit 0 ;;
X BS2000:POSIX*:*:*)
X echo bs2000-siemens-sysv
X exit 0 ;;
X DS/*:UNIX_System_V:*:*)
X echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
X exit 0 ;;
esac
X
#echo '(No uname command or uname output not recognized.)' 1>&2
#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
X
cat >$dummy.c <<EOF
#ifdef _SEQUENT_
# include <sys/types.h>
# include <sys/utsname.h>
#endif
main ()
{
#if defined (sony)
#if defined (MIPSEB)
X /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
X I don't know.... */
X printf ("mips-sony-bsd\n"); exit (0);
#else
#include <sys/param.h>
X printf ("m68k-sony-newsos%s\n",
#ifdef NEWSOS4
X "4"
#else
X ""
#endif
X ); exit (0);
#endif
#endif
X
#if defined (__arm) && defined (__acorn) && defined (__unix)
X printf ("arm-acorn-riscix"); exit (0);
#endif
X
#if defined (hp300) && !defined (hpux)
X printf ("m68k-hp-bsd\n"); exit (0);
#endif
X
#if defined (NeXT)
#if !defined (__ARCHITECTURE__)
#define __ARCHITECTURE__ "m68k"
#endif
X int version;
X version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
X if (version < 4)
X printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
X else
X printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
X exit (0);
#endif
X
#if defined (MULTIMAX) || defined (n16)
#if defined (UMAXV)
X printf ("ns32k-encore-sysv\n"); exit (0);
#else
#if defined (CMU)
X printf ("ns32k-encore-mach\n"); exit (0);
#else
X printf ("ns32k-encore-bsd\n"); exit (0);
#endif
#endif
#endif
X
#if defined (__386BSD__)
X printf ("i386-pc-bsd\n"); exit (0);
#endif
X
#if defined (sequent)
#if defined (i386)
X printf ("i386-sequent-dynix\n"); exit (0);
#endif
#if defined (ns32000)
X printf ("ns32k-sequent-dynix\n"); exit (0);
#endif
#endif
X
#if defined (_SEQUENT_)
X struct utsname un;
X
X uname(&un);
X
X if (strncmp(un.version, "V2", 2) == 0) {
X printf ("i386-sequent-ptx2\n"); exit (0);
X }
X if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
X printf ("i386-sequent-ptx1\n"); exit (0);
X }
X printf ("i386-sequent-ptx\n"); exit (0);
X
#endif
X
#if defined (vax)
#if !defined (ultrix)
X printf ("vax-dec-bsd\n"); exit (0);
#else
X printf ("vax-dec-ultrix\n"); exit (0);
#endif
#endif
X
#if defined (alliant) && defined (i860)
X printf ("i860-alliant-bsd\n"); exit (0);
#endif
X
X exit (1);
}
EOF
X
$CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy && rm $dummy.c $dummy
&& exit 0
rm -f $dummy.c $dummy
X
# Apollos put the system type in the environment.
X
test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; }
X
# Convex versions that predate uname can use getsysinfo(1)
X
if [ -x /usr/convex/getsysinfo ]
then
X case `getsysinfo -f cpu_type` in
X c1*)
X echo c1-convex-bsd
X exit 0 ;;
X c2*)
X if getsysinfo -f scalar_acc
X then echo c32-convex-bsd
X else echo c2-convex-bsd
X fi
X exit 0 ;;
X c34*)
X echo c34-convex-bsd
X exit 0 ;;
X c38*)
X echo c38-convex-bsd
X exit 0 ;;
X c4*)
X echo c4-convex-bsd
X exit 0 ;;
X esac
fi
X
cat >&2 <<EOF
$0: unable to guess system type
X
The $version version of this script cannot recognize your system type.
Please download the most up to date version of the config scripts:
X
X ftp://ftp.gnu.org/pub/gnu/config/
X
If the version you run ($0) is already up to date, please
send the following data and any information you think might be
pertinent to <address@hidden> in order to provide the needed
information to handle your system.
X
config.guess version = $version
X
uname -m = `(uname -m) 2>/dev/null || echo unknown`
uname -r = `(uname -r) 2>/dev/null || echo unknown`
uname -s = `(uname -s) 2>/dev/null || echo unknown`
uname -v = `(uname -v) 2>/dev/null || echo unknown`
X
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
/bin/uname -X = `(/bin/uname -X) 2>/dev/null`
X
hostinfo = `(hostinfo) 2>/dev/null`
/bin/universe = `(/bin/universe) 2>/dev/null`
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`
/bin/arch = `(/bin/arch) 2>/dev/null`
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
X
UNAME_MACHINE = ${UNAME_MACHINE}
UNAME_RELEASE = ${UNAME_RELEASE}
UNAME_SYSTEM = ${UNAME_SYSTEM}
UNAME_VERSION = ${UNAME_VERSION}
EOF
X
exit 1
X
# Local variables:
# eval: (add-hook 'write-file-hooks 'time-stamp)
# time-stamp-start: "version='"
# time-stamp-format: "%:y-%02m-%02d"
# time-stamp-end: "'"
# End:
SHAR_EOF
(set 20 00 07 16 23 16 13 'config.guess'; eval "$shar_touch") &&
chmod 0755 'config.guess' ||
$echo 'restore of' 'config.guess' 'failed'
if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \
&& ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then
md5sum -c << SHAR_EOF >/dev/null 2>&1 \
|| $echo 'config.guess:' 'MD5 check failed'
c3d7a72c011f7bdbe86c8a616190f1e1 config.guess
SHAR_EOF
else
shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'config.guess'`"
test 35620 -eq "$shar_count" ||
$echo 'config.guess:' 'original size' '35620,' 'current size' "$shar_count!"
fi
fi
# ============= config.hin ==============
if test -f 'config.hin' && test "$first_param" != -c; then
$echo 'x -' SKIPPING 'config.hin' '(file already exists)'
else
$echo 'x -' extracting 'config.hin' '(text)'
sed 's/^X//' << 'SHAR_EOF' > 'config.hin' &&
/* The configure script translates "config.hin" into "lynx_cfg.h" */
#ifndef LYNX_CFG_H
#define LYNX_CFG_H 1
X
#undef ALL_CHARSETS /* AC_ARG_WITH(charsets) */
#undef ALT_CHAR_SET /* CF_ALT_CHAR_SET */
#undef ANSI_VARARGS /* CF_VARARGS */
#undef ARCHIVE_ONLY /* CF_ARG_DISABLE(dired-archive) */
#undef BZIP2_PATH /* CF_PATH_PROG(bzip2) */
#undef CAN_SET_ERRNO /* CF_SET_ERRNO */
#undef CHMOD_PATH /* CF_PATH_PROG(chmod) */
#undef CJK_EX /* CF_ARG_ENABLE(cjk) */
#undef COLOR_CURSES /* defined by CF_COLOR_CURSES */
#undef COMPRESS_PATH /* CF_PATH_PROG(compress) */
#undef COPY_PATH /* CF_PATH_PROG(cp) */
#undef CURS_PERFORMANCE /* CF_CURS_PERFORMANCE */
#undef DEBUG /* configure --enable-debug */
#undef DECL_ERRNO
#undef DECL_GETGRGID
#undef DECL_GETGRNAM
#undef DECL_STRSTR
#undef DECL_SYS_ERRLIST
#undef DIRED_SUPPORT /* AC_ARG_WITH(dired) */
#undef DISABLE_FINGER /* CF_ARG_DISABLE(finger) */
#undef DISABLE_FTP /* CF_ARG_DISABLE(ftp) */
#undef DISABLE_GOPHER /* CF_ARG_DISABLE(gopher) */
#undef DISABLE_NEWS /* CF_ARG_DISABLE(news) */
#undef DISP_PARTIAL /* CF_ARG_ENABLE(partial) */
#undef DONT_TRACK_INTERNAL_LINKS /* CF_ARG_DISABLE(internal-links) */
#undef EBCDIC /* CF_EBCDIC */
#undef ENABLE_NLS /* defined if NLS is requested */
#undef ENABLE_OPTS_CHANGE_EXEC /* CF_ARG_ENABLE(change-exec) */
#undef EXEC_LINKS /* CF_ARG_ENABLE(exec-links) */
#undef EXEC_SCRIPTS /* CF_ARG_ENABLE(exec-scripts) */
#undef EXP_ADDRLIST_PAGE /* CF_ARG_ENABLE(addrlist-page) */
#undef EXP_ALT_BINDINGS /* CF_ARG_ENABLE(alt-bindings) */
#undef EXP_CHARSET_CHOICE /* CF_ARG_ENABLE(charset-choice) */
#undef EXP_CHARTRANS_AUTOSWITCH /* CF_ARG_ENABLE(font-switch) */
#undef EXP_FILE_UPLOAD /* CF_ARG_ENABLE(file-upload) */
#undef EXP_JUSTIFY_ELTS /* CF_ARG_ENABLE(justify-elts) */
#undef EXP_KEYBOARD_LAYOUT /* CF_ARG_ENABLE(kbd-layout) */
#undef EXP_LIBJS /* CF_ARG_ENABLE(libjs) */
#undef EXP_PERSISTENT_COOKIES /* CF_ARG_ENABLE(persistent-cookies) */
#undef EXP_READPROGRESS /* CF_ARG_ENABLE(read-eta) */
#undef FANCY_CURSES /* defined by CF_FANCY_CURSES */
#undef GCC_NORETURN /* CF_GCC_ATTRIBUTES */
#undef GCC_PRINTF /* CF_GCC_ATTRIBUTES */
#undef GCC_UNUSED /* CF_GCC_ATTRIBUTES */
#undef GETGROUPS_T /* AC_TYPE_GETGROUPS */
#undef GZIP_PATH /* CF_PATH_PROG(gzip) */
#undef HAVE_ALLOCA /* defined by AM_GNU_GETTEXT */
#undef HAVE_ALLOCA_H /* defined by AM_GNU_GETTEXT */
#undef HAVE_ARGZ_H /* defined by AM_GNU_GETTEXT */
#undef HAVE_ARPA_INET_H
#undef HAVE_ASSUME_DEFAULT_COLORS /* ncurses extension */
#undef HAVE_CATGETS /* defined if you want to use non-GNU catgets */
#undef HAVE_CBREAK
#undef HAVE_CURSESX_H
#undef HAVE_CUSERID
#undef HAVE_DCGETTEXT /* defined by AM_GNU_GETTEXT */
#undef HAVE_DEFINE_KEY
#undef HAVE_DIRENT_H /* defined by AC_HEADER_DIRENT */
#undef HAVE_FCNTL_H /* have <fcntl.h> */
#undef HAVE_GETATTRS
#undef HAVE_GETBEGX
#undef HAVE_GETBEGY
#undef HAVE_GETBKGD /* defined by CF_COLOR_CURSES */
#undef HAVE_GETCWD
#undef HAVE_GETGROUPS
#undef HAVE_GETTEXT /* defined if you want to use non-GNU gettext */
#undef HAVE_GETTIMEOFDAY
#undef HAVE_GETUID
#undef HAVE_H_ERRNO
#undef HAVE_INET_ATON /* CF_INET_ADDR */
#undef HAVE_JCURSES_H
#undef HAVE_KEYPAD
#undef HAVE_LC_MESSAGES /* locale messages */
#undef HAVE_LIBINTL_H /* AM_GNU_GETTEXT, or cleanup from that */
#undef HAVE_LIMITS_H
#undef HAVE_LOCALE_H
#undef HAVE_LSTAT /* defined by CF_FUNC_LSTAT */
#undef HAVE_MALLOC_H /* defined by AM_GNU_GETTEXT */
#undef HAVE_MKSTEMP
#undef HAVE_MKTEMP
#undef HAVE_MMAP /* defined by AM_GNU_GETTEXT */
#undef HAVE_MUNMAP /* defined by AM_GNU_GETTEXT */
#undef HAVE_NCURSES_H /* defined if we include <ncurses.h> */
#undef HAVE_NL_TYPES_H /* defined by AM_GNU_GETTEXT */
#undef HAVE_POPEN
#undef HAVE_PUTENV
#undef HAVE_RAND
#undef HAVE_READDIR
#undef HAVE_RESIZETERM
#undef HAVE_RESOLV_H
#undef HAVE_SETENV /* defined by AM_GNU_GETTEXT */
#undef HAVE_SETLOCALE
#undef HAVE_SETUID
#undef HAVE_SIGACTION /* CF_FUNC_SIGACTION */
#undef HAVE_SIZECHANGE /* defined by CF_SIZECHANGE */
#undef HAVE_SRAND
#undef HAVE_STDARG_H /* CF_VARARGS */
#undef HAVE_STDLIB_H
#undef HAVE_STPCPY /* defined by AM_GNU_GETTEXT */
#undef HAVE_STRCASECMP /* defined by AM_GNU_GETTEXT */
#undef HAVE_STRCHR /* defined by AM_GNU_GETTEXT */
#undef HAVE_STRERROR
#undef HAVE_STRING_H
#undef HAVE_SYSLOG_H
#undef HAVE_SYS_DIR_H /* defined by AC_HEADER_DIRENT */
#undef HAVE_SYS_FCNTL_H /* have <sys/fcntl.h> */
#undef HAVE_SYS_FILIO_H /* have <sys/filio.h> */
#undef HAVE_SYS_IOCTL_H /* have <sys/ioctl.h> */
#undef HAVE_SYS_NDIR_H /* defined by AC_HEADER_DIRENT */
#undef HAVE_SYS_PARAM_H /* defined by AM_GNU_GETTEXT */
#undef HAVE_SYS_WAIT_H /* have <sys/wait.h> */
#undef HAVE_TERMIOS_H /* have <termios.h> */
#undef HAVE_TERMIO_H /* have <termio.h> */
#undef HAVE_TRUNCATE
#undef HAVE_TTYNAME
#undef HAVE_TTYTYPE
#undef HAVE_TYPE_UNIONWAIT /* CF_UNION_WAIT */
#undef HAVE_UNISTD_H /* have <unistd.h> */
#undef HAVE_UNSETENV
#undef HAVE_USE_DEFAULT_COLORS /* ncurses extension */
#undef HAVE_UTMP /* CF_UTMP */
#undef HAVE_UTMP_UT_HOST /* CF_UTMP_UT_HOST */
#undef HAVE_UTMP_UT_SESSION /* CF_UTMP_UT_SESSION */
#undef HAVE_UTMP_UT_XSTATUS /* CF_UTMP_UT_XSTATUS */
#undef HAVE_UTMP_UT_XTIME /* CF_UTMP_UT_XTIME */
#undef HAVE_VALUES_H /* defined by AM_GNU_GETTEXT */
#undef HAVE_VARARGS_H /* CF_VARARGS */
#undef HAVE_VASPRINTF
#undef HAVE_WAITPID
#undef HAVE_WBORDER
#undef HAVE_WREDRAWLN
#undef HAVE_XCURSES /* CF_PDCURSES_X11 */
#undef HAVE___ARGZ_COUNT /* defined by AM_GNU_GETTEXT */
#undef HAVE___ARGZ_NEXT /* defined by AM_GNU_GETTEXT */
#undef HAVE___ARGZ_STRINGIFY /* defined by AM_GNU_GETTEXT */
#undef IGNORE_CTRL_C /* FIXME: make tests? */
#undef INSTALL_ARGS /* CF_PATH_PROG(install) */
#undef INSTALL_PATH /* CF_PATH_PROG(install) */
#undef LINKEDSTYLES /* see USE_COLOR_STYLE */
#undef LINUX /* FIXME: make tests? */
#undef LOCALE /* for locale support */
#undef LONG_LIST /* CF_ARG_DISABLE(long-list) */
#undef LYNXCGI_LINKS /* CF_ARG_ENABLE(cgi-links) */
#undef LYNX_CFG_FILE /* $libdir/lynx.cfg */
#undef LYNX_LSS_FILE /* $libdir/lynx.lss */
#undef LY_FIND_LEAKS /* configure --disable-leaks */
#undef MKDIR_PATH /* CF_PATH_PROG(mkdir) */
#undef MV_PATH /* CF_PATH_PROG(mv) */
#undef NCURSES /* defined for ncurses support */
#undef NCURSES_BROKEN /* defined for ncurses color support */
#undef NEED_PTEM_H /* defined by CF_SIZECHANGE */
#undef NEED_REMOVE /* defined by CF_REMOVE_BROKEN */
#undef NGROUPS /* defined by CF_NGROUPS */
#undef NOT_ASCII /* CF_NOT_ASCII */
#undef NO_CHANGE_EXECUTE_PERMS /* CF_ARG_DISABLE(dired-xpermit) */
#undef NO_CONFIG_INFO /* CF_ARG_DISABLE(config-info) */
#undef NO_EXTENDED_HTMLDTD /* CF_ARG_DISABLE(extended-dtd) */
#undef NO_LYNX_TRACE /* CF_ARG_DISABLE(trace) */
#undef NO_OPTION_FORMS /* CF_ARG_DISABLE(forms-options) */
#undef NO_OPTION_MENU /* CF_ARG_DISABLE(option-menu) */
#undef NO_PARENT_DIR_REFERENCE /* configure --disable-parent-dir */
#undef NSL_FORK /* CF_ARG_ENABLE(nsl-fork) */
#undef OK_GZIP /* CF_ARG_DISABLE(dired-gzip) */
#undef OK_INSTALL
#undef OK_OVERRIDE /* CF_ARG_DISABLE(dired-override) */
#undef OK_PERMIT /* CF_ARG_DISABLE(dired-permit) */
#undef OK_TAR /* CF_ARG_DISABLE(dired-tar) */
#undef OK_UUDECODE /* CF_ARG_DISABLE(dired-uudecode) */
#undef OK_ZIP /* CF_ARG_DISABLE(dired-zip) */
#undef REAL_UNIX_SYSTEM /* CF_SLANG_UNIX_DEFS */
#undef RLOGIN_PATH /* CF_PATH_PROG(rlogin) */
#undef RM_PATH /* CF_PATH_PROG(rm) */
#undef SOCKS /* CF_SOCKS, CF_SOCKS5 */
#undef SOURCE_CACHE /* CF_ARG_ENABLE(source-cache) */
#undef STDC_HEADERS
#undef SYSTEM_MAIL /* CF_DEFINE_PROG */
#undef SYSTEM_MAIL_FLAGS /* defined by CF_SYSTEM_MAIL_FLAGS */
#undef SYSTEM_NAME /* CF_CHECK_CACHE */
#undef TAR_PATH /* CF_PATH_PROG(tar) */
#undef TELNET_PATH /* CF_PATH_PROG(telnet) */
#undef TERMIO_AND_CURSES /* CF_TERMIO_AND_CURSES workaround */
#undef TERMIO_AND_TERMIOS /* CF_TERMIO_AND_TERMIOS workaround */
#undef TN3270_PATH /* CF_PATH_PROG(tn3270) */
#undef TOUCH_PATH /* CF_PATH_PROG(touch) */
#undef ULTRIX /* config.sub */
#undef UNCOMPRESS_PATH /* CF_PATH_PROG(gunzip) */
#undef UNDERLINE_LINKS /* CF_ARG_ENABLE(underlines) */
#undef UNIX
#undef UNZIP_PATH /* CF_PATH_PROG(unzip) */
#undef USE_COLOR_STYLE /* CF_ARG_ENABLE(color-style) */
#undef USE_DEFAULT_COLORS /* CF_ARG_ENABLE(default-colors) */
#undef USE_EXECVP /* CF_ARG_DISABLE(full-paths) */
#undef USE_EXTERNALS /* CF_ARG_ENABLE(externs) */
#undef USE_FCNTL /* CF_FIONBIO */
#undef USE_HASH /* see USE_COLOR_STYLE */
#undef USE_PRETTYSRC /* CF_ARG_ENABLE(prettysrc) */
#undef USE_SCROLLBAR /* CF_ARG_ENABLE(scrollbar) */
#undef USE_SIZECHANGEHACK /* FIXME: find a case where this works! */
#undef USE_SLANG /* AC_ARG_WITH(screen=slang) */
#undef USE_SOCKS4_PREFIX /* CF_SOCKS5 */
#undef USE_SOCKS5 /* CF_SOCKS5 */
#undef USE_SYSV_UTMP /* CF_UTMP */
#undef USE_ZLIB /* AC_ARG_WITH(zlib) */
#undef UTMPX_FOR_UTMP /* use <utmpx.h> since <utmp.h> not found */
#undef UUDECODE_PATH /* CF_PATH_PROG(uudecode) */
#undef WAITPID_USES_UNION /* CF_FUNC_WAIT */
#undef WAIT_USES_UNION /* CF_FUNC_WAIT */
#undef XCURSES /* CF_PDCURSES_X11 */
#undef ZCAT_PATH /* CF_PATH_PROG(zcat) */
#undef ZIP_PATH /* CF_PATH_PROG(zip) */
#undef _ALL_SOURCE /* AC_AIX */
#undef inline /* defined by AC_C_INLINE */
#undef mode_t /* defined by AC_TYPE_MODE_T */
#undef off_t /* defined by AC_TYPE_OFF_T */
#undef pid_t /* defined by AC_TYPE_PID_T */
#undef uid_t /* defined by AC_TYPE_UID_T */
#undef ut_name /* CF_UTMP */
#undef ut_xstatus /* CF_UTMP_UT_XSTATUS */
#undef ut_xtime /* CF_UTMP_UT_XTIME */
#undef vfork /* defined by AC_FUNC_FORK */
X
/* 'const' may be defined externally by the compiler-wrapper, as in 'unproto'
X * or by AC_C_CONST
X */
#ifndef const
#undef const
#endif
X
/* FIXME:DECLARE_WAIS_LOGFILES */
/* FIXME:DGUX */
/* FIXME:DGUX_OLD */
/* FIXME:HP_TERMINAL */
/* FIXME:REVERSE_CLEAR_SCREEN_PROBLEM */
/* FIXME:SHORTENED_RBIND */
/* FIXME:SNAKE */
/* FIXME:SVR4_BSDSELECT */
X
/* Some older socks libraries, especially AIX need special definitions */
#if defined(_AIX) && !defined(USE_SOCKS5)
#undef accept
#undef bind
#undef connect
#undef getpeername
#undef getsockname
#undef listen
#undef recvfrom
#undef select
#endif
X
#ifdef HAVE_SYSLOG_H
#undef SYSLOG_REQUESTED_URLS /* CF_ARG_ENABLE(syslog) */
#endif
X
#ifndef HAVE_LSTAT
#define lstat stat
#endif
X
#ifdef DECL_GETGRGID
extern struct group * getgrgid ();
#endif
X
#ifdef DECL_GETGRNAM
extern struct group * getgrnam ();
#endif
X
#ifdef DECL_STRSTR
extern char * strstr ();
#endif
X
#endif /* LYNX_CFG_H */
SHAR_EOF
(set 20 00 06 02 21 01 05 'config.hin'; eval "$shar_touch") &&
chmod 0644 'config.hin' ||
$echo 'restore of' 'config.hin' 'failed'
if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \
&& ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then
md5sum -c << SHAR_EOF >/dev/null 2>&1 \
|| $echo 'config.hin:' 'MD5 check failed'
ccb0a1faf88fa41a62593882b64e4239 config.hin
SHAR_EOF
else
shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'config.hin'`"
test 10647 -eq "$shar_count" ||
$echo 'config.hin:' 'original size' '10647,' 'current size' "$shar_count!"
fi
fi
# ============= config.log ==============
if test -f 'config.log' && test "$first_param" != -c; then
$echo 'x -' SKIPPING 'config.log' '(file already exists)'
else
$echo 'x -' extracting 'config.log' '(text)'
sed 's/^X//' << 'SHAR_EOF' > 'config.log' &&
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
X
configure:641: checking host system type
configure:710: checking for gcc
configure:823: checking whether the C compiler (gcc ) works
configure:839: gcc -o conftest conftest.c 1>&5
configure:865: checking whether the C compiler (gcc ) is a cross-compiler
configure:870: checking whether we are using GNU C
configure:879: gcc -E conftest.c
configure:898: checking whether gcc accepts -g
configure:930: checking how to run the C preprocessor
configure:951: gcc -E conftest.c >/dev/null 2>conftest.out
configure:1010: checking whether ln -s works
configure:1033: checking for ranlib
configure:1061: checking whether make sets ${MAKE}
configure:1099: checking for a BSD compatible install
configure:1156: checking for lint
configure:1156: checking for alint
configure:1156: checking for lclint
configure:1156: checking for tdlint
configure:1187: checking for AIX
configure:1211: checking for POSIXized ISC
configure:1237: checking if you want to see long compiling messages
configure:1285: checking if you want to check memory-leaks
configure:1309: checking if you want to enable debug-code
configure:1351: checking if you want to enable lynx trace code *recommended*
configure:1377: checking if you want to turn on gcc warnings
configure:1517: checking for working const
configure:1571: gcc -c -O2 conftest.c 1>&5
configure:1944: checking for ANSI C header files
configure:1957: gcc -E conftest.c >/dev/null 2>conftest.out
configure:2024: gcc -o conftest -O2 -DLINUX conftest.c 1>&5
configure:2048: checking for inline
configure:2062: gcc -c -O2 -DLINUX conftest.c 1>&5
configure:2088: checking for off_t
configure:2121: checking for size_t
configure:2156: checking for working alloca.h
configure:2168: gcc -o conftest -O2 -DLINUX conftest.c 1>&5
configure:2189: checking for alloca
configure:2222: gcc -o conftest -O2 -DLINUX conftest.c 1>&5
configure:2391: checking for unistd.h
configure:2401: gcc -E conftest.c >/dev/null 2>conftest.out
configure:2430: checking for getpagesize
configure:2458: gcc -o conftest -O2 -DLINUX conftest.c 1>&5
configure:2483: checking for working mmap
configure:2631: gcc -o conftest -O2 -DLINUX conftest.c 1>&5
configure:2664: checking for argz.h
configure:2674: gcc -E conftest.c >/dev/null 2>conftest.out
configure:2664: checking for limits.h
configure:2674: gcc -E conftest.c >/dev/null 2>conftest.out
configure:2664: checking for locale.h
configure:2674: gcc -E conftest.c >/dev/null 2>conftest.out
configure:2664: checking for nl_types.h
configure:2674: gcc -E conftest.c >/dev/null 2>conftest.out
configure:2664: checking for malloc.h
configure:2674: gcc -E conftest.c >/dev/null 2>conftest.out
configure:2664: checking for string.h
configure:2674: gcc -E conftest.c >/dev/null 2>conftest.out
configure:2664: checking for unistd.h
configure:2664: checking for sys/param.h
configure:2674: gcc -E conftest.c >/dev/null 2>conftest.out
configure:2704: checking for getcwd
configure:2732: gcc -o conftest -O2 -DLINUX conftest.c 1>&5
configure:2704: checking for munmap
configure:2732: gcc -o conftest -O2 -DLINUX conftest.c 1>&5
configure:2704: checking for putenv
configure:2732: gcc -o conftest -O2 -DLINUX conftest.c 1>&5
configure:2704: checking for setenv
configure:2732: gcc -o conftest -O2 -DLINUX conftest.c 1>&5
configure:2704: checking for setlocale
configure:2732: gcc -o conftest -O2 -DLINUX conftest.c 1>&5
configure:2704: checking for strchr
configure:2732: gcc -o conftest -O2 -DLINUX conftest.c 1>&5
configure:2704: checking for strcasecmp
configure:2732: gcc -o conftest -O2 -DLINUX conftest.c 1>&5
configure:2704: checking for strdup
configure:2732: gcc -o conftest -O2 -DLINUX conftest.c 1>&5
configure:2704: checking for __argz_count
configure:2732: gcc -o conftest -O2 -DLINUX conftest.c 1>&5
configure:2704: checking for __argz_stringify
configure:2732: gcc -o conftest -O2 -DLINUX conftest.c 1>&5
configure:2704: checking for __argz_next
configure:2732: gcc -o conftest -O2 -DLINUX conftest.c 1>&5
configure:2761: checking for stpcpy
configure:2789: gcc -o conftest -O2 -DLINUX conftest.c 1>&5
configure:2823: checking for LC_MESSAGES
configure:2835: gcc -o conftest -O2 -DLINUX conftest.c 1>&5
configure:2856: checking whether NLS is requested
configure:3941: checking if you want full utility pathnames
configure:3966: checking for system mailer
configure:3993: checking system mail flags
configure:4021: checking for chmod
configure:4098: checking for compress
configure:4175: checking for cp
configure:4252: checking for gzip
configure:4329: checking for mkdir
configure:4406: checking for mv
configure:4483: checking for rm
configure:4560: checking for tar
configure:4637: checking for touch
configure:4714: checking for gunzip
configure:4791: checking for unzip
configure:4868: checking for bzip2
configure:4945: checking for uudecode
configure:5022: checking for zcat
configure:5099: checking for zip
configure:5176: checking for telnet
configure:5253: checking for tn3270
configure:5330: checking for rlogin
configure:5417: checking for install
configure:5494: checking if we must define _GNU_SOURCE
configure:5510: gcc -c -O2 -DLINUX conftest.c 1>&5
configure: In function `main':
configure:5505: `make' undeclared (first use in this function)
configure:5505: (Each undeclared identifier is reported only once
configure:5505: for each function it appears in.)
configure:5505: parse error before `an'
configure: failed program was:
#line 5500 "configure"
#include "confdefs.h"
#include <sys/types.h>
int main() {
X
#ifndef _XOPEN_SOURCE
make an error
#endif
; return 0; }
configure:5530: gcc -c -O2 -DLINUX -D_GNU_SOURCE conftest.c 1>&5
configure: In function `main':
configure:5525: `make' undeclared (first use in this function)
configure:5525: (Each undeclared identifier is reported only once
configure:5525: for each function it appears in.)
configure:5525: parse error before `an'
configure: failed program was:
#line 5520 "configure"
#include "confdefs.h"
#include <sys/types.h>
int main() {
X
#ifdef _XOPEN_SOURCE
make an error
#endif
; return 0; }
configure:5582: checking if you want socks library
configure:5602: checking if you want socks5 library
configure:5806: checking for network libraries
configure:5817: checking for gethostname
configure:5845: gcc -o conftest -O2 -DLINUX -D_GNU_SOURCE conftest.c 1>&5
configure:5984: checking for main in -linet
configure:5999: gcc -o conftest -O2 -DLINUX -D_GNU_SOURCE conftest.c -linet
1>&5
/usr/i386-linux/bin/ld: cannot find -linet
configure: failed program was:
#line 5992 "configure"
#include "confdefs.h"
X
int main() {
main()
; return 0; }
configure:6024: checking for socket
configure:6052: gcc -o conftest -O2 -DLINUX -D_GNU_SOURCE conftest.c 1>&5
configure:6191: checking for gethostbyname
configure:6219: gcc -o conftest -O2 -DLINUX -D_GNU_SOURCE conftest.c 1>&5
configure:6302: checking for strcasecmp
configure:6418: checking for inet_aton function
configure:6435: gcc -o conftest -O2 -DLINUX -D_GNU_SOURCE conftest.c 1>&5
configure:6535: checking for screen type
configure:6576: checking for ncurses version
configure:6633: gcc -o conftest -O2 -DLINUX -D_GNU_SOURCE conftest.c 1>&5
configure:6612: curses.h: No such file or directory
configure: failed program was:
#line 6610 "configure"
#include "confdefs.h"
X
#include <curses.h>
int main()
{
X FILE *fp = fopen("out6935", "w");
#ifdef NCURSES_VERSION
# ifdef NCURSES_VERSION_PATCH
X fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
# else
X fprintf(fp, "%s\n", NCURSES_VERSION);
# endif
#else
# ifdef __NCURSES_H
X fprintf(fp, "old\n");
# else
X make an error
# endif
#endif
X exit(0);
}
configure:6651: checking for initscr
configure:6679: gcc -o conftest -O2 -DLINUX -D_GNU_SOURCE conftest.c 1>&5
/tmp/cc8PTla5.o: In function `main':
/tmp/cc8PTla5.o(.text+0x4): undefined reference to `initscr'
configure: failed program was:
#line 6656 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
X which can conflict with char initscr(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
X builtin and then its argument prototype would still apply. */
char initscr();
X
int main() {
X
/* The GNU C library defines this for functions which it implements
X to always fail with ENOSYS. Some functions are actually named
X something starting with __ and the normal name is an alias. */
#if defined (__stub_initscr) || defined (__stub___initscr)
choke me
#else
initscr();
#endif
X
; return 0; }
configure:6860: checking for tgoto
configure:6888: gcc -o conftest -O2 -DLINUX -D_GNU_SOURCE conftest.c -L/lib
1>&5
/tmp/ccaJcnqC.o: In function `main':
/tmp/ccaJcnqC.o(.text+0x4): undefined reference to `tgoto'
configure: failed program was:
#line 6865 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
X which can conflict with char tgoto(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
X builtin and then its argument prototype would still apply. */
char tgoto();
X
int main() {
X
/* The GNU C library defines this for functions which it implements
X to always fail with ENOSYS. Some functions are actually named
X something starting with __ and the normal name is an alias. */
#if defined (__stub_tgoto) || defined (__stub___tgoto)
choke me
#else
tgoto();
#endif
X
; return 0; }
configure:6909: checking for tgoto in -lcursesX
configure:6928: gcc -o conftest -O2 -DLINUX -D_GNU_SOURCE conftest.c
-lcursesX -L/lib 1>&5
/usr/i386-linux/bin/ld: cannot find -lcursesX
configure: failed program was:
#line 6917 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
X builtin and then its argument prototype would still apply. */
char tgoto();
X
int main() {
tgoto()
; return 0; }
configure:6909: checking for tgoto in -lcurses
configure:6928: gcc -o conftest -O2 -DLINUX -D_GNU_SOURCE conftest.c -lcurses
-L/lib 1>&5
/usr/i386-linux/bin/ld: cannot find -lcurses
configure: failed program was:
#line 6917 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
X builtin and then its argument prototype would still apply. */
char tgoto();
X
int main() {
tgoto()
; return 0; }
configure:6909: checking for tgoto in -lncurses
configure:6928: gcc -o conftest -O2 -DLINUX -D_GNU_SOURCE conftest.c
-lncurses -L/lib 1>&5
/usr/i386-linux/bin/ld: cannot find -lncurses
configure: failed program was:
#line 6917 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
X builtin and then its argument prototype would still apply. */
char tgoto();
X
int main() {
tgoto()
; return 0; }
configure:6909: checking for tgoto in -ltermcap
configure:6928: gcc -o conftest -O2 -DLINUX -D_GNU_SOURCE conftest.c
-ltermcap -L/lib 1>&5
/usr/i386-linux/bin/ld: cannot find -ltermcap
configure: failed program was:
#line 6917 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
X builtin and then its argument prototype would still apply. */
char tgoto();
X
int main() {
tgoto()
; return 0; }
configure:6909: checking for tgoto in -ltermlib
configure:6928: gcc -o conftest -O2 -DLINUX -D_GNU_SOURCE conftest.c
-ltermlib -L/lib 1>&5
/usr/i386-linux/bin/ld: cannot find -ltermlib
configure: failed program was:
#line 6917 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
X builtin and then its argument prototype would still apply. */
char tgoto();
X
int main() {
tgoto()
; return 0; }
configure:6909: checking for tgoto in -lunknown
configure:6928: gcc -o conftest -O2 -DLINUX -D_GNU_SOURCE conftest.c
-lunknown -L/lib 1>&5
/usr/i386-linux/bin/ld: cannot find -lunknown
configure: failed program was:
#line 6917 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
X builtin and then its argument prototype would still apply. */
char tgoto();
X
int main() {
tgoto()
; return 0; }
configure:6958: checking for initscr in -lcursesX
configure:6977: gcc -o conftest -O2 -DLINUX -D_GNU_SOURCE conftest.c
-lcursesX -L/lib 1>&5
/usr/i386-linux/bin/ld: cannot find -lcursesX
configure: failed program was:
#line 6966 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
X builtin and then its argument prototype would still apply. */
char initscr();
X
int main() {
initscr()
; return 0; }
configure:6958: checking for initscr in -lcurses
configure:6977: gcc -o conftest -O2 -DLINUX -D_GNU_SOURCE conftest.c -lcurses
-L/lib 1>&5
/usr/i386-linux/bin/ld: cannot find -lcurses
configure: failed program was:
#line 6966 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
X builtin and then its argument prototype would still apply. */
char initscr();
X
int main() {
initscr()
; return 0; }
configure:6958: checking for initscr in -lncurses
configure:6977: gcc -o conftest -O2 -DLINUX -D_GNU_SOURCE conftest.c
-lncurses -L/lib 1>&5
/usr/i386-linux/bin/ld: cannot find -lncurses
configure: failed program was:
#line 6966 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
X builtin and then its argument prototype would still apply. */
char initscr();
X
int main() {
initscr()
; return 0; }
configure:6958: checking for initscr in -lxcurses
configure:6977: gcc -o conftest -O2 -DLINUX -D_GNU_SOURCE conftest.c
-lxcurses -L/lib 1>&5
/usr/i386-linux/bin/ld: cannot find -lxcurses
configure: failed program was:
#line 6966 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
X builtin and then its argument prototype would still apply. */
char initscr();
X
int main() {
initscr()
; return 0; }
configure:6958: checking for initscr in -ljcurses
configure:6977: gcc -o conftest -O2 -DLINUX -D_GNU_SOURCE conftest.c
-ljcurses -L/lib 1>&5
/usr/i386-linux/bin/ld: cannot find -ljcurses
configure: failed program was:
#line 6966 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
X builtin and then its argument prototype would still apply. */
char initscr();
X
int main() {
initscr()
; return 0; }
configure:6958: checking for initscr in -lunknown
configure:6977: gcc -o conftest -O2 -DLINUX -D_GNU_SOURCE conftest.c
-lunknown -L/lib 1>&5
/usr/i386-linux/bin/ld: cannot find -lunknown
configure: failed program was:
#line 6966 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
X builtin and then its argument prototype would still apply. */
char initscr();
X
int main() {
initscr()
; return 0; }
SHAR_EOF
(set 20 00 07 21 17 17 22 'config.log'; eval "$shar_touch") &&
chmod 0644 'config.log' ||
$echo 'restore of' 'config.log' 'failed'
if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \
&& ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then
md5sum -c << SHAR_EOF >/dev/null 2>&1 \
|| $echo 'config.log:' 'MD5 check failed'
2862f830b05020884d4fa8cd431c9dc9 config.log
SHAR_EOF
else
shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'config.log'`"
test 15896 -eq "$shar_count" ||
$echo 'config.log:' 'original size' '15896,' 'current size' "$shar_count!"
fi
fi
# ============= config.sub ==============
if test -f 'config.sub' && test "$first_param" != -c; then
$echo 'x -' SKIPPING 'config.sub' '(file already exists)'
else
$echo 'x -' extracting 'config.sub' '(text)'
sed 's/^X//' << 'SHAR_EOF' > 'config.sub' &&
#! /bin/sh
# Configuration validation subroutine script, version 1.1.
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000
# Free Software Foundation, Inc.
X
version='2000-06-13'
X
# This file is (in principle) common to ALL GNU software.
# The presence of a machine in this file suggests that SOME GNU software
# can handle that machine. It does not imply ALL GNU software can.
#
# This file is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
X
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a
# configuration script generated by Autoconf, you may include it under
# the same distribution terms that you use for the rest of that program.
X
# Please send patches to <address@hidden>.
#
# Configuration subroutine to validate and canonicalize a configuration type.
# Supply the specified configuration type as an argument.
# If it is invalid, we print an error message on stderr and exit with code 1.
# Otherwise, we print the canonical config type on stdout and succeed.
X
# This file is supposed to be the same for all GNU packages
# and recognize all the CPU types, system types and aliases
# that are meaningful with *any* GNU software.
# Each package is responsible for reporting which valid configurations
# it does not support. The user should be able to distinguish
# a failure to support a valid configuration from a meaningless
# configuration.
X
# The goal of this file is to map all the various variations of a given
# machine specification into a single specification in the form:
# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
# or in some cases, the newer four-part form:
# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
# It is wrong to echo any other type of specification.
X
me=`echo "$0" | sed -e 's,.*/,,'`
X
usage="\
Usage: $0 [OPTION] CPU-MFR-OPSYS
X $0 [OPTION] ALIAS
X
Canonicalize a configuration name.
X
Operation modes:
X -h, --help print this help, then exit
X -V, --version print version number, then exit"
X
help="
Try \`$me --help' for more information."
X
# Parse command line
while test $# -gt 0 ; do
X case "$1" in
X --version | --vers* | -V )
X echo "$version" ; exit 0 ;;
X --help | --h* | -h )
X echo "$usage"; exit 0 ;;
X -- ) # Stop option processing
X shift; break ;;
X - ) # Use stdin as input.
X break ;;
X -* )
X exec >&2
X echo "$me: invalid option $1"
X echo "$help"
X exit 1 ;;
X
X *local*)
X # First pass through any local machine types.
X echo $1
X exit 0;;
X
X * )
X break ;;
X esac
done
X
case $# in
X 0) echo "$me: missing argument$help" >&2
X exit 1;;
X 1) ;;
X *) echo "$me: too many arguments$help" >&2
X exit 1;;
esac
X
# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
# Here we must recognize all the valid KERNEL-OS combinations.
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
case $maybe_os in
X nto-qnx* | linux-gnu*)
X os=-$maybe_os
X basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
X ;;
X *)
X basic_machine=`echo $1 | sed 's/-[^-]*$//'`
X if [ $basic_machine != $1 ]
X then os=`echo $1 | sed 's/.*-/-/'`
X else os=; fi
X ;;
esac
X
### Let's recognize common machines as not being operating systems so
### that things like config.sub decstation-3100 work. We also
### recognize some manufacturers as not being operating systems, so we
### can provide default operating systems below.
case $os in
X -sun*os*)
X # Prevent following clause from handling this invalid input.
X ;;
X -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
X -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
X -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
X -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
X -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
X -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
X -apple | -axis)
X os=
X basic_machine=$1
X ;;
X -sim | -cisco | -oki | -wec | -winbond)
X os=
X basic_machine=$1
X ;;
X -scout)
X ;;
X -wrs)
X os=-vxworks
X basic_machine=$1
X ;;
X -hiux*)
X os=-hiuxwe2
X ;;
X -sco5)
X os=-sco3.2v5
X basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
X ;;
X -sco4)
X os=-sco3.2v4
X basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
X ;;
X -sco3.2.[4-9]*)
X os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
X basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
X ;;
X -sco3.2v[4-9]*)
X # Don't forget version if it is 3.2v4 or newer.
X basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
X ;;
X -sco*)
X os=-sco3.2v2
X basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
X ;;
X -udk*)
X basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
X ;;
X -isc)
X os=-isc2.2
X basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
X ;;
X -clix*)
X basic_machine=clipper-intergraph
X ;;
X -isc*)
X basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
X ;;
X -lynx*)
X os=-lynxos
X ;;
X -ptx*)
X basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
X ;;
X -windowsnt*)
X os=`echo $os | sed -e 's/windowsnt/winnt/'`
X ;;
X -psos*)
X os=-psos
X ;;
X -mint | -mint[0-9]*)
X basic_machine=m68k-atari
X os=-mint
X ;;
esac
X
# Decode aliases for certain CPU-COMPANY combinations.
case $basic_machine in
X # Recognize the basic CPU types without company name.
X # Some are omitted here because they have special meanings below.
X tahoe | i860 | ia64 | m32r | m68k | m68000 | m88k | ns32k | arc | arm \
X | arme[lb] | pyramid | mn10200 | mn10300 | tron | a29k \
X | 580 | i960 | h8300 \
X | x86 | ppcbe | mipsbe | mipsle | shbe | shle | armbe | armle \
X | hppa | hppa1.0 | hppa1.1 | hppa2.0 | hppa2.0w | hppa2.0n \
X | hppa64 \
X | alpha | alphaev[4-8] | alphaev56 | alphapca5[67] \
X | alphaev6[78] \
X | we32k | ns16k | clipper | i370 | sh | sh[34] \
X | powerpc | powerpcle \
X | 1750a | dsp16xx | pdp11 | mips16 | mips64 | mipsel | mips64el
\
X | mips64orion | mips64orionel | mipstx39 | mipstx39el \
X | mips64vr4300 | mips64vr4300el | mips64vr4100 | mips64vr4100el
\
X | mips64vr5000 | miprs64vr5000el | mcore \
X | sparc | sparclet | sparclite | sparc64 | sparcv9 | v850 | c4x
\
X | thumb | d10v | fr30 | avr)
X basic_machine=$basic_machine-unknown
X ;;
X m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | z8k | v70 | h8500 |
w65 | pj | pjl)
X ;;
X
X # We use `pc' rather than `unknown'
X # because (1) that's what they normally are, and
X # (2) the word "unknown" tends to confuse beginning users.
X i[234567]86)
X basic_machine=$basic_machine-pc
X ;;
X # Object if more than one company name word.
X *-*-*)
X echo Invalid configuration \`$1\': machine \`$basic_machine\'
not recognized 1>&2
X exit 1
X ;;
X # Recognize the basic CPU types with company name.
X # FIXME: clean up the formatting here.
X vax-* | tahoe-* | i[234567]86-* | i860-* | ia64-* | m32r-* | m68k-* |
m68000-* \
X | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | arm-* | c[123]* \
X | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \
X | power-* | none-* | 580-* | cray2-* | h8300-* | h8500-* | i960-*
\
X | xmp-* | ymp-* \
X | x86-* | ppcbe-* | mipsbe-* | mipsle-* | shbe-* | shle-* |
armbe-* | armle-* \
X | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* | hppa2.0w-* \
X | hppa2.0n-* | hppa64-* \
X | alpha-* | alphaev[4-8]-* | alphaev56-* | alphapca5[67]-* \
X | alphaev6[78]-* \
X | we32k-* | cydra-* | ns16k-* | pn-* | np1-* | xps100-* \
X | clipper-* | orion-* \
X | sparclite-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \
X | sparc64-* | sparcv9-* | sparc86x-* | mips16-* | mips64-* |
mipsel-* \
X | mips64el-* | mips64orion-* | mips64orionel-* \
X | mips64vr4100-* | mips64vr4100el-* | mips64vr4300-* |
mips64vr4300el-* \
X | mipstx39-* | mipstx39el-* | mcore-* \
X | f301-* | armv*-* | s390-* | sv1-* | t3e-* \
X | m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* |
d10v-* \
X | thumb-* | v850-* | d30v-* | tic30-* | c30-* | fr30-* \
X | bs2000-*)
X ;;
X # Recognize the various machine names and aliases which stand
X # for a CPU type and a company and sometimes even an OS.
X 386bsd)
X basic_machine=i386-unknown
X os=-bsd
X ;;
X 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
X basic_machine=m68000-att
X ;;
X 3b*)
X basic_machine=we32k-att
X ;;
X a29khif)
X basic_machine=a29k-amd
X os=-udi
X ;;
X adobe68k)
X basic_machine=m68010-adobe
X os=-scout
X ;;
X alliant | fx80)
X basic_machine=fx80-alliant
X ;;
X altos | altos3068)
X basic_machine=m68k-altos
X ;;
X am29k)
X basic_machine=a29k-none
X os=-bsd
X ;;
X amdahl)
X basic_machine=580-amdahl
X os=-sysv
X ;;
X amiga | amiga-*)
X basic_machine=m68k-cbm
X ;;
X amigaos | amigados)
X basic_machine=m68k-cbm
X os=-amigaos
X ;;
X amigaunix | amix)
X basic_machine=m68k-cbm
X os=-sysv4
X ;;
X apollo68)
X basic_machine=m68k-apollo
X os=-sysv
X ;;
X apollo68bsd)
X basic_machine=m68k-apollo
X os=-bsd
X ;;
X aux)
X basic_machine=m68k-apple
X os=-aux
X ;;
X balance)
X basic_machine=ns32k-sequent
X os=-dynix
X ;;
X convex-c1)
X basic_machine=c1-convex
X os=-bsd
X ;;
X convex-c2)
X basic_machine=c2-convex
X os=-bsd
X ;;
X convex-c32)
X basic_machine=c32-convex
X os=-bsd
X ;;
X convex-c34)
X basic_machine=c34-convex
X os=-bsd
X ;;
X convex-c38)
X basic_machine=c38-convex
X os=-bsd
X ;;
X cray | ymp)
X basic_machine=ymp-cray
X os=-unicos
X ;;
X cray2)
X basic_machine=cray2-cray
X os=-unicos
X ;;
X [ctj]90-cray)
X basic_machine=c90-cray
X os=-unicos
X ;;
X crds | unos)
X basic_machine=m68k-crds
X ;;
X cris | cris-* | etrax*)
X basic_machine=cris-axis
X ;;
X da30 | da30-*)
X basic_machine=m68k-da30
X ;;
X decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 |
decstatn)
X basic_machine=mips-dec
X ;;
X delta | 3300 | motorola-3300 | motorola-delta \
X | 3300-motorola | delta-motorola)
X basic_machine=m68k-motorola
X ;;
X delta88)
X basic_machine=m88k-motorola
X os=-sysv3
X ;;
X dpx20 | dpx20-*)
X basic_machine=rs6000-bull
X os=-bosx
X ;;
X dpx2* | dpx2*-bull)
X basic_machine=m68k-bull
X os=-sysv3
X ;;
X ebmon29k)
X basic_machine=a29k-amd
X os=-ebmon
X ;;
X elxsi)
X basic_machine=elxsi-elxsi
X os=-bsd
X ;;
X encore | umax | mmax)
X basic_machine=ns32k-encore
X ;;
X es1800 | OSE68k | ose68k | ose | OSE)
X basic_machine=m68k-ericsson
X os=-ose
X ;;
X fx2800)
X basic_machine=i860-alliant
X ;;
X genix)
X basic_machine=ns32k-ns
X ;;
X gmicro)
X basic_machine=tron-gmicro
X os=-sysv
X ;;
X h3050r* | hiux*)
X basic_machine=hppa1.1-hitachi
X os=-hiuxwe2
X ;;
X h8300hms)
X basic_machine=h8300-hitachi
X os=-hms
X ;;
X h8300xray)
X basic_machine=h8300-hitachi
X os=-xray
X ;;
X h8500hms)
X basic_machine=h8500-hitachi
X os=-hms
X ;;
X harris)
X basic_machine=m88k-harris
X os=-sysv3
X ;;
X hp300-*)
X basic_machine=m68k-hp
X ;;
X hp300bsd)
X basic_machine=m68k-hp
X os=-bsd
X ;;
X hp300hpux)
X basic_machine=m68k-hp
X os=-hpux
X ;;
X hp3k9[0-9][0-9] | hp9[0-9][0-9])
X basic_machine=hppa1.0-hp
X ;;
X hp9k2[0-9][0-9] | hp9k31[0-9])
X basic_machine=m68000-hp
X ;;
X hp9k3[2-9][0-9])
X basic_machine=m68k-hp
X ;;
X hp9k6[0-9][0-9] | hp6[0-9][0-9])
X basic_machine=hppa1.0-hp
X ;;
X hp9k7[0-79][0-9] | hp7[0-79][0-9])
X basic_machine=hppa1.1-hp
X ;;
X hp9k78[0-9] | hp78[0-9])
X # FIXME: really hppa2.0-hp
X basic_machine=hppa1.1-hp
X ;;
X hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 |
hp9k893 | hp893)
X # FIXME: really hppa2.0-hp
X basic_machine=hppa1.1-hp
X ;;
X hp9k8[0-9][13679] | hp8[0-9][13679])
X basic_machine=hppa1.1-hp
X ;;
X hp9k8[0-9][0-9] | hp8[0-9][0-9])
X basic_machine=hppa1.0-hp
X ;;
X hppa-next)
X os=-nextstep3
X ;;
X hppaosf)
X basic_machine=hppa1.1-hp
X os=-osf
X ;;
X hppro)
X basic_machine=hppa1.1-hp
X os=-proelf
X ;;
X i370-ibm* | ibm*)
X basic_machine=i370-ibm
X ;;
X s390 | s390-ibm*)
# OS/390 support after:
# Linkname: Mortice Kern Systems (MKS) Inc. - OS/390 OpenEdition -- GNU
Utilities Downloads
# URL: http://www.mks.com/s390/gnu/download.htm#autoconf
X basic_machine=s390-ibm # /* S/390 -- gil -- 1419 */
X os=-os390
X ;;
# I'm not sure what "Sysv32" means. Should this be sysv3.2?
X i[34567]86v32)
X basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
X os=-sysv32
X ;;
X i[34567]86v4*)
X basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
X os=-sysv4
X ;;
X i[34567]86v)
X basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
X os=-sysv
X ;;
X i[34567]86sol2)
X basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
X os=-solaris2
X ;;
X i386mach)
X basic_machine=i386-mach
X os=-mach
X ;;
X i386-vsta | vsta)
X basic_machine=i386-unknown
X os=-vsta
X ;;
X i386-go32 | go32)
X basic_machine=i386-unknown
X os=-go32
X ;;
X i386-mingw32 | mingw32)
X basic_machine=i386-unknown
X os=-mingw32
X ;;
X iris | iris4d)
X basic_machine=mips-sgi
X case $os in
X -irix*)
X ;;
X *)
X os=-irix4
X ;;
X esac
X ;;
X isi68 | isi)
X basic_machine=m68k-isi
X os=-sysv
X ;;
X m88k-omron*)
X basic_machine=m88k-omron
X ;;
X magnum | m3230)
X basic_machine=mips-mips
X os=-sysv
X ;;
X merlin)
X basic_machine=ns32k-utek
X os=-sysv
X ;;
X miniframe)
X basic_machine=m68000-convergent
X ;;
X *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
X basic_machine=m68k-atari
X os=-mint
X ;;
X mipsel*-linux*)
X basic_machine=mipsel-unknown
X os=-linux-gnu
X ;;
X mips*-linux*)
X basic_machine=mips-unknown
X os=-linux-gnu
X ;;
X mips3*-*)
X basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
X ;;
X mips3*)
X basic_machine=`echo $basic_machine | sed -e
's/mips3/mips64/'`-unknown
X ;;
X mmix*)
X basic_machine=mmix-knuth
X os=-mmixware
X ;;
X monitor)
X basic_machine=m68k-rom68k
X os=-coff
X ;;
X msdos)
X basic_machine=i386-unknown
X os=-msdos
X ;;
X mvs)
X basic_machine=i370-ibm
X os=-mvs
X ;;
X ncr3000)
X basic_machine=i486-ncr
X os=-sysv4
X ;;
X netbsd386)
X basic_machine=i386-unknown
X os=-netbsd
X ;;
X netwinder)
X basic_machine=armv4l-rebel
X os=-linux
X ;;
X news | news700 | news800 | news900)
X basic_machine=m68k-sony
X os=-newsos
X ;;
X news1000)
X basic_machine=m68030-sony
X os=-newsos
X ;;
X news-3600 | risc-news)
X basic_machine=mips-sony
X os=-newsos
X ;;
X necv70)
X basic_machine=v70-nec
X os=-sysv
X ;;
X next | m*-next )
X basic_machine=m68k-next
X case $os in
X -nextstep* )
X ;;
X -ns2*)
X os=-nextstep2
X ;;
X *)
X os=-nextstep3
X ;;
X esac
X ;;
X nh3000)
X basic_machine=m68k-harris
X os=-cxux
X ;;
X nh[45]000)
X basic_machine=m88k-harris
X os=-cxux
X ;;
X nindy960)
X basic_machine=i960-intel
X os=-nindy
X ;;
X mon960)
X basic_machine=i960-intel
X os=-mon960
X ;;
X np1)
X basic_machine=np1-gould
X ;;
X nsr-tandem)
X basic_machine=nsr-tandem
X ;;
X op50n-* | op60c-*)
X basic_machine=hppa1.1-oki
X os=-proelf
X ;;
X OSE68000 | ose68000)
X basic_machine=m68000-ericsson
X os=-ose
X ;;
X os68k)
X basic_machine=m68k-none
X os=-os68k
X ;;
X pa-hitachi)
X basic_machine=hppa1.1-hitachi
X os=-hiuxwe2
X ;;
X paragon)
X basic_machine=i860-intel
X os=-osf
X ;;
X pbd)
X basic_machine=sparc-tti
X ;;
X pbb)
X basic_machine=m68k-tti
X ;;
X pc532 | pc532-*)
X basic_machine=ns32k-pc532
X ;;
X pentium | p5 | k5 | k6 | nexen)
X basic_machine=i586-pc
X ;;
X pentiumpro | p6 | 6x86 | athlon)
X basic_machine=i686-pc
X ;;
X pentiumii | pentium2)
X basic_machine=i786-pc
X ;;
X pentium-* | p5-* | k5-* | k6-* | nexen-*)
X basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
X ;;
X pentiumpro-* | p6-* | 6x86-* | athlon-*)
X basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
X ;;
X pentiumii-* | pentium2-*)
X basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
X ;;
X pn)
X basic_machine=pn-gould
X ;;
X power) basic_machine=rs6000-ibm
X ;;
X ppc) basic_machine=powerpc-unknown
X ;;
X ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
X ;;
X ppcle | powerpclittle | ppc-le | powerpc-little)
X basic_machine=powerpcle-unknown
X ;;
X ppcle-* | powerpclittle-*)
X basic_machine=powerpcle-`echo $basic_machine | sed
's/^[^-]*-//'`
X ;;
X ps2)
X basic_machine=i386-ibm
X ;;
X rom68k)
X basic_machine=m68k-rom68k
X os=-coff
X ;;
X rm[46]00)
X basic_machine=mips-siemens
X ;;
X rtpc | rtpc-*)
X basic_machine=romp-ibm
X ;;
X sa29200)
X basic_machine=a29k-amd
X os=-udi
X ;;
X sequent)
X basic_machine=i386-sequent
X ;;
X sh)
X basic_machine=sh-hitachi
X os=-hms
X ;;
X sparclite-wrs)
X basic_machine=sparclite-wrs
X os=-vxworks
X ;;
X sps7)
X basic_machine=m68k-bull
X os=-sysv2
X ;;
X spur)
X basic_machine=spur-unknown
X ;;
X st2000)
X basic_machine=m68k-tandem
X ;;
X stratus)
X basic_machine=i860-stratus
X os=-sysv4
X ;;
X sun2)
X basic_machine=m68000-sun
X ;;
X sun2os3)
X basic_machine=m68000-sun
X os=-sunos3
X ;;
X sun2os4)
X basic_machine=m68000-sun
X os=-sunos4
X ;;
X sun3os3)
X basic_machine=m68k-sun
X os=-sunos3
X ;;
X sun3os4)
X basic_machine=m68k-sun
X os=-sunos4
X ;;
X sun4os3)
X basic_machine=sparc-sun
X os=-sunos3
X ;;
X sun4os4)
X basic_machine=sparc-sun
X os=-sunos4
X ;;
X sun4sol2)
X basic_machine=sparc-sun
X os=-solaris2
X ;;
X sun3 | sun3-*)
X basic_machine=m68k-sun
X ;;
X sun4)
X basic_machine=sparc-sun
X ;;
X sun386 | sun386i | roadrunner)
X basic_machine=i386-sun
X ;;
X sv1)
X basic_machine=sv1-cray
X os=-unicos
X ;;
X symmetry)
X basic_machine=i386-sequent
X os=-dynix
X ;;
X t3e)
X basic_machine=t3e-cray
X os=-unicos
X ;;
X tx39)
X basic_machine=mipstx39-unknown
X ;;
X tx39el)
X basic_machine=mipstx39el-unknown
X ;;
X tower | tower-32)
X basic_machine=m68k-ncr
X ;;
X udi29k)
X basic_machine=a29k-amd
X os=-udi
X ;;
X ultra3)
X basic_machine=a29k-nyu
X os=-sym1
X ;;
X v810 | necv810)
X basic_machine=v810-nec
X os=-none
X ;;
X vaxv)
X basic_machine=vax-dec
X os=-sysv
X ;;
X vms)
X basic_machine=vax-dec
X os=-vms
X ;;
X vpp*|vx|vx-*)
X basic_machine=f301-fujitsu
X ;;
X vxworks960)
X basic_machine=i960-wrs
X os=-vxworks
X ;;
X vxworks68)
X basic_machine=m68k-wrs
X os=-vxworks
X ;;
X vxworks29k)
X basic_machine=a29k-wrs
X os=-vxworks
X ;;
X w65*)
X basic_machine=w65-wdc
X os=-none
X ;;
X w89k-*)
X basic_machine=hppa1.1-winbond
X os=-proelf
X ;;
X xmp)
X basic_machine=xmp-cray
X os=-unicos
X ;;
X xps | xps100)
X basic_machine=xps100-honeywell
X ;;
X z8k-*-coff)
X basic_machine=z8k-unknown
X os=-sim
X ;;
X none)
X basic_machine=none-none
X os=-none
X ;;
X
# Here we handle the default manufacturer of certain CPU types. It is in
# some cases the only manufacturer, in others, it is the most popular.
X w89k)
X basic_machine=hppa1.1-winbond
X ;;
X op50n)
X basic_machine=hppa1.1-oki
X ;;
X op60c)
X basic_machine=hppa1.1-oki
X ;;
X mips)
X if [ x$os = x-linux-gnu ]; then
X basic_machine=mips-unknown
X else
X basic_machine=mips-mips
X fi
X ;;
X romp)
X basic_machine=romp-ibm
X ;;
X rs6000)
X basic_machine=rs6000-ibm
X ;;
X vax)
X basic_machine=vax-dec
X ;;
X pdp11)
X basic_machine=pdp11-dec
X ;;
X we32k)
X basic_machine=we32k-att
X ;;
X sh3 | sh4)
X base_machine=sh-unknown
X ;;
X sparc | sparcv9)
X basic_machine=sparc-sun
X ;;
X cydra)
X basic_machine=cydra-cydrome
X ;;
X orion)
X basic_machine=orion-highlevel
X ;;
X orion105)
X basic_machine=clipper-highlevel
X ;;
X mac | mpw | mac-mpw)
X basic_machine=m68k-apple
X ;;
X pmac | pmac-mpw)
X basic_machine=powerpc-apple
X ;;
X c4x*)
X basic_machine=c4x-none
X os=-coff
X ;;
X *)
X echo Invalid configuration \`$1\': machine \`$basic_machine\'
not recognized 1>&2
X exit 1
X ;;
esac
X
# Here we canonicalize certain aliases for manufacturers.
case $basic_machine in
X *-digital*)
X basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
X ;;
X *-commodore*)
X basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
X ;;
X *)
X ;;
esac
X
# Decode manufacturer-specific aliases for certain operating systems.
X
if [ x"$os" != x"" ]
then
case $os in
X # First match some system type aliases
X # that might get confused with valid system types.
X # -solaris* is a basic system type, with this one exception.
X -solaris1 | -solaris1.*)
X os=`echo $os | sed -e 's|solaris1|sunos4|'`
X ;;
X -solaris)
X os=-solaris2
X ;;
X -svr4*)
X os=-sysv4
X ;;
X -unixware*)
X os=-sysv4.2uw
X ;;
X -gnu/linux*)
X os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
X ;;
X # First accept the basic system types.
X # The portable systems comes first.
X # Each alternative MUST END IN A *, to match a version number.
X # -sysv* is not here because it comes later, after sysvr4.
X -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
X | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
X | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
X | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
X | -aos* \
X | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* |
-os390* \
X | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
X | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix*
\
X | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* |
-oabi* \
X | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
X | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
X | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
X | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
X | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \
X | -openstep* | -oskit*)
X # Remember, each alternative MUST END IN *, to match a version number.
X ;;
X -qnx*)
X case $basic_machine in
X x86-* | i[34567]86-*)
X ;;
X *)
X os=-nto$os
X ;;
X esac
X ;;
X -nto*)
X os=-nto-qnx
X ;;
X -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
X | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
X | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
X ;;
X -mac*)
X os=`echo $os | sed -e 's|mac|macos|'`
X ;;
X -linux*)
X os=`echo $os | sed -e 's|linux|linux-gnu|'`
X ;;
X -sunos5*)
X os=`echo $os | sed -e 's|sunos5|solaris2|'`
X ;;
X -sunos6*)
X os=`echo $os | sed -e 's|sunos6|solaris3|'`
X ;;
X -opened*)
X os=-openedition
X ;;
X -wince*)
X os=-wince
X ;;
X -osfrose*)
X os=-osfrose
X ;;
X -osf*)
X os=-osf
X ;;
X -utek*)
X os=-bsd
X ;;
X -dynix*)
X os=-bsd
X ;;
X -acis*)
X os=-aos
X ;;
X -386bsd)
X os=-bsd
X ;;
X -ctix* | -uts*)
X os=-sysv
X ;;
X -ns2 )
X os=-nextstep2
X ;;
X -nsk)
X os=-nsk
X ;;
X # Preserve the version number of sinix5.
X -sinix5.*)
X os=`echo $os | sed -e 's|sinix|sysv|'`
X ;;
X -sinix*)
X os=-sysv4
X ;;
X -triton*)
X os=-sysv3
X ;;
X -oss*)
X os=-sysv3
X ;;
X -svr4)
X os=-sysv4
X ;;
X -svr3)
X os=-sysv3
X ;;
X -sysvr4)
X os=-sysv4
X ;;
X # This must come after -sysvr4.
X -sysv*)
X ;;
X -ose*)
X os=-ose
X ;;
X -es1800*)
X os=-ose
X ;;
X -xenix)
X os=-xenix
X ;;
X -*mint | -*MiNT)
X os=-mint
X ;;
X -none)
X ;;
X *)
X # Get rid of the `-' at the beginning of $os.
X os=`echo $os | sed 's/[^-]*-//'`
X echo Invalid configuration \`$1\': system \`$os\' not
recognized 1>&2
X exit 1
X ;;
esac
else
X
# Here we handle the default operating systems that come with various machines.
# The value should be what the vendor currently ships out the door with their
# machine or put another way, the most popular os provided with the machine.
X
# Note that if you're going to try to match "-MANUFACTURER" here (say,
# "-sun"), then you have to tell the case statement up towards the top
# that MANUFACTURER isn't an operating system. Otherwise, code above
# will signal an error saying that MANUFACTURER isn't an operating
# system, and we'll never get to this point.
X
case $basic_machine in
X *-acorn)
X os=-riscix1.2
X ;;
X arm*-rebel)
X os=-linux
X ;;
X arm*-semi)
X os=-aout
X ;;
X pdp11-*)
X os=-none
X ;;
X *-dec | vax-*)
X os=-ultrix4.2
X ;;
X m68*-apollo)
X os=-domain
X ;;
X i386-sun)
X os=-sunos4.0.2
X ;;
X m68000-sun)
X os=-sunos3
X # This also exists in the configure program, but was not the
X # default.
X # os=-sunos4
X ;;
X m68*-cisco)
X os=-aout
X ;;
X mips*-cisco)
X os=-elf
X ;;
X mips*-*)
X os=-elf
X ;;
X *-tti) # must be before sparc entry or we get the wrong os.
X os=-sysv3
X ;;
X sparc-* | *-sun)
X os=-sunos4.1.1
X ;;
X *-be)
X os=-beos
X ;;
X *-ibm)
X os=-aix
X ;;
X *-wec)
X os=-proelf
X ;;
X *-winbond)
X os=-proelf
X ;;
X *-oki)
X os=-proelf
X ;;
X *-hp)
X os=-hpux
X ;;
X *-hitachi)
X os=-hiux
X ;;
X i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
X os=-sysv
X ;;
X *-cbm)
X os=-amigaos
X ;;
X *-dg)
X os=-dgux
X ;;
X *-dolphin)
X os=-sysv3
X ;;
X m68k-ccur)
X os=-rtu
X ;;
X m88k-omron*)
X os=-luna
X ;;
X *-next )
X os=-nextstep
X ;;
X *-sequent)
X os=-ptx
X ;;
X *-crds)
X os=-unos
X ;;
X *-ns)
X os=-genix
X ;;
X i370-*)
X os=-mvs
X ;;
X *-next)
X os=-nextstep3
X ;;
X *-gould)
X os=-sysv
X ;;
X *-highlevel)
X os=-bsd
X ;;
X *-encore)
X os=-bsd
X ;;
X *-sgi)
X os=-irix
X ;;
X *-siemens)
X os=-sysv4
X ;;
X *-masscomp)
X os=-rtu
X ;;
X f301-fujitsu)
X os=-uxpv
X ;;
X *-rom68k)
X os=-coff
X ;;
X *-*bug)
X os=-coff
X ;;
X *-apple)
X os=-macos
X ;;
X *-atari*)
X os=-mint
X ;;
X *)
X os=-none
X ;;
esac
fi
X
# Here we handle the case where we know the os, and the CPU type, but not the
# manufacturer. We pick the logical manufacturer.
vendor=unknown
case $basic_machine in
X *-unknown)
X case $os in
X -riscix*)
X vendor=acorn
X ;;
X -sunos*)
X vendor=sun
X ;;
X -aix*)
X vendor=ibm
X ;;
X -beos*)
X vendor=be
X ;;
X -hpux*)
X vendor=hp
X ;;
X -mpeix*)
X vendor=hp
X ;;
X -hiux*)
X vendor=hitachi
X ;;
X -unos*)
X vendor=crds
X ;;
X -dgux*)
X vendor=dg
X ;;
X -luna*)
X vendor=omron
X ;;
X -genix*)
X vendor=ns
X ;;
X -mvs* | -opened*)
X vendor=ibm
X ;;
X -ptx*)
X vendor=sequent
X ;;
X -vxsim* | -vxworks*)
X vendor=wrs
X ;;
X -aux*)
X vendor=apple
X ;;
X -hms*)
X vendor=hitachi
X ;;
X -mpw* | -macos*)
X vendor=apple
X ;;
X -*mint | -*MiNT)
X vendor=atari
X ;;
X esac
X basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
X ;;
esac
X
echo $basic_machine$os
Xexit 0
X
# Local variables:
# eval: (add-hook 'write-file-hooks 'time-stamp)
# time-stamp-start: "version='"
# time-stamp-format: "%:y-%02m-%02d"
# time-stamp-end: "'"
# End:
SHAR_EOF
(set 20 00 07 17 22 49 54 'config.sub'; eval "$shar_touch") &&
chmod 0755 'config.sub' ||
$echo 'restore of' 'config.sub' 'failed'
if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \
&& ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then
md5sum -c << SHAR_EOF >/dev/null 2>&1 \
|| $echo 'config.sub:' 'MD5 check failed'
62a31a13dc8092e88d89bec3b6b95b59 config.sub
SHAR_EOF
else
shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'config.sub'`"
test 26496 -eq "$shar_count" ||
$echo 'config.sub:' 'original size' '26496,' 'current size' "$shar_count!"
fi
fi
rm -fr _sh08041
exit 0
; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to address@hidden
- lynx-dev curses in Caldera,
A. R. Vener <=