mirror of
git://git.savannah.gnu.org/config.git
synced 2025-05-30 02:56:35 +12:00
2000-05-02 Akim Demaille <akim@epita.fr>
* config.guess: Add --help and --version options. Add Emacs hooks. * config.sub: Likewise.
This commit is contained in:
parent
f4288cb893
commit
04473e24fe
11
ChangeLog
11
ChangeLog
@ -1,3 +1,8 @@
|
|||||||
|
2000-05-02 Akim Demaille <akim@epita.fr>
|
||||||
|
|
||||||
|
* config.guess: Add --help and --version options. Add Emacs hooks.
|
||||||
|
* config.sub: Likewise.
|
||||||
|
|
||||||
2000-05-27 Ben Elliston <bje@redhat.com>
|
2000-05-27 Ben Elliston <bje@redhat.com>
|
||||||
|
|
||||||
* config.guess: Handle GNU/Linux on Hitachi SuperH. From Niibe
|
* config.guess: Handle GNU/Linux on Hitachi SuperH. From Niibe
|
||||||
@ -51,7 +56,7 @@
|
|||||||
|
|
||||||
* config.guess: Detect Apple's Darwin operating system.
|
* config.guess: Detect Apple's Darwin operating system.
|
||||||
* config.sub: Handle an appropriate alias. From Assar Westerlund.
|
* config.sub: Handle an appropriate alias. From Assar Westerlund.
|
||||||
|
|
||||||
2000-03-27 Ben Elliston <bje@redhat.com>
|
2000-03-27 Ben Elliston <bje@redhat.com>
|
||||||
|
|
||||||
* config.guess: Detect Ascend Embedded/OS, which is really BSDI.
|
* config.guess: Detect Ascend Embedded/OS, which is really BSDI.
|
||||||
@ -111,7 +116,7 @@
|
|||||||
|
|
||||||
* config.guess: Replace sub-minor system version number with an
|
* config.guess: Replace sub-minor system version number with an
|
||||||
`X' on certain Cray platforms. From Keith Thompson <kst@sdsc.edu>.
|
`X' on certain Cray platforms. From Keith Thompson <kst@sdsc.edu>.
|
||||||
|
|
||||||
* config.sub: Add support for mmix and mmixware. From Hans-Peter
|
* config.sub: Add support for mmix and mmixware. From Hans-Peter
|
||||||
Nilsson <hp@bitrange.com>.
|
Nilsson <hp@bitrange.com>.
|
||||||
|
|
||||||
@ -131,4 +136,4 @@
|
|||||||
Biveinis <lauras@softhome.net>.
|
Biveinis <lauras@softhome.net>.
|
||||||
|
|
||||||
* config.guess: Import from autoconf source tree.
|
* config.guess: Import from autoconf source tree.
|
||||||
* config.sub: Likewise.
|
* config.sub: Likewise.
|
||||||
|
93
config.guess
vendored
93
config.guess
vendored
@ -2,7 +2,9 @@
|
|||||||
# Attempt to guess a canonical system name.
|
# Attempt to guess a canonical system name.
|
||||||
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000
|
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000
|
||||||
# Free Software Foundation, Inc.
|
# Free Software Foundation, Inc.
|
||||||
#
|
|
||||||
|
version='2000-05-29'
|
||||||
|
|
||||||
# This file is free software; you can redistribute it and/or modify it
|
# 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
|
# under the terms of the GNU General Public License as published by
|
||||||
# the Free Software Foundation; either version 2 of the License, or
|
# the Free Software Foundation; either version 2 of the License, or
|
||||||
@ -36,6 +38,46 @@
|
|||||||
# (but try to keep the structure clean).
|
# (but try to keep the structure clean).
|
||||||
#
|
#
|
||||||
|
|
||||||
|
me=`echo "$0" | sed -e 's,.*/,,'`
|
||||||
|
|
||||||
|
usage="\
|
||||||
|
Usage: $0 [OPTION]
|
||||||
|
|
||||||
|
Output the configuration name of this system.
|
||||||
|
|
||||||
|
Operation modes:
|
||||||
|
-h, --help print this help, then exit
|
||||||
|
-V, --version print version number, then exit"
|
||||||
|
|
||||||
|
help="
|
||||||
|
Try \`$me --help' for more information."
|
||||||
|
|
||||||
|
# Parse command line
|
||||||
|
while test $# -gt 0 ; do
|
||||||
|
case "$1" in
|
||||||
|
--version | --vers* | -V )
|
||||||
|
echo "$version" ; exit 0 ;;
|
||||||
|
--help | --h* | -h )
|
||||||
|
echo "$usage"; exit 0 ;;
|
||||||
|
-- ) # Stop option processing
|
||||||
|
shift; break ;;
|
||||||
|
- ) # Use stdin as input.
|
||||||
|
break ;;
|
||||||
|
-* )
|
||||||
|
exec >&2
|
||||||
|
echo "$me: invalid option $1"
|
||||||
|
echo "$help"
|
||||||
|
exit 1 ;;
|
||||||
|
* )
|
||||||
|
break ;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
|
if test $# != 0; then
|
||||||
|
echo "$me: too many arguments$help" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
# Use $HOST_CC if defined. $CC may point to a cross-compiler
|
# Use $HOST_CC if defined. $CC may point to a cross-compiler
|
||||||
if test x"$CC_FOR_BUILD" = x; then
|
if test x"$CC_FOR_BUILD" = x; then
|
||||||
if test x"$HOST_CC" != x; then
|
if test x"$HOST_CC" != x; then
|
||||||
@ -61,6 +103,8 @@ UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
|
|||||||
UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
|
UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
|
||||||
UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
|
UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
|
||||||
|
|
||||||
|
UNAME_SYSTEM=foo
|
||||||
|
|
||||||
dummy=dummy-$$
|
dummy=dummy-$$
|
||||||
trap 'rm -f $dummy.c $dummy.o $dummy; exit 1' 1 2 15
|
trap 'rm -f $dummy.c $dummy.o $dummy; exit 1' 1 2 15
|
||||||
|
|
||||||
@ -1182,6 +1226,51 @@ then
|
|||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#echo '(Unable to guess system type)' 1>&2
|
cat >&2 <<EOF
|
||||||
|
$0: unable to guess system type
|
||||||
|
|
||||||
|
The $version version of this script cannot recognize your system type.
|
||||||
|
Please download the most up to date version of the config scripts:
|
||||||
|
|
||||||
|
ftp://ftp.gnu.org/pub/gnu/config/
|
||||||
|
|
||||||
|
If the version you run
|
||||||
|
|
||||||
|
$0
|
||||||
|
|
||||||
|
is already up to date, could you please send the following data and
|
||||||
|
any information you think might be pertinent to
|
||||||
|
<config-patches@gnu.org> in order to provide the needed information to
|
||||||
|
handle your system.
|
||||||
|
|
||||||
|
config.guess version = $version
|
||||||
|
|
||||||
|
uname -m = `(uname -m) 2>/dev/null || echo unknown`
|
||||||
|
uname -r = `(uname -r) 2>/dev/null || echo unknown`
|
||||||
|
uname -s = `(uname -s) 2>/dev/null || echo unknown`
|
||||||
|
uname -v = `(uname -v) 2>/dev/null || echo unknown`
|
||||||
|
|
||||||
|
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
|
||||||
|
/bin/uname -X = `(/bin/uname -X) 2>/dev/null`
|
||||||
|
|
||||||
|
hostinfo = `(hostinfo) 2>/dev/null`
|
||||||
|
/bin/universe = `(/bin/universe) 2>/dev/null`
|
||||||
|
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`
|
||||||
|
/bin/arch = `(/bin/arch) 2>/dev/null`
|
||||||
|
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
|
||||||
|
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
|
||||||
|
|
||||||
|
UNAME_MACHINE = ${UNAME_MACHINE}
|
||||||
|
UNAME_RELEASE = ${UNAME_RELEASE}
|
||||||
|
UNAME_SYSTEM = ${UNAME_SYSTEM}
|
||||||
|
UNAME_VERSION = ${UNAME_VERSION}
|
||||||
|
EOF
|
||||||
|
|
||||||
exit 1
|
exit 1
|
||||||
|
|
||||||
|
# Local variables:
|
||||||
|
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
||||||
|
# time-stamp-start: "version='"
|
||||||
|
# time-stamp-format: "%:y-%02m-%02d"
|
||||||
|
# time-stamp-end: "'"
|
||||||
|
# End:
|
||||||
|
75
config.sub
vendored
75
config.sub
vendored
@ -2,7 +2,9 @@
|
|||||||
# Configuration validation subroutine script, version 1.1.
|
# Configuration validation subroutine script, version 1.1.
|
||||||
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000
|
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000
|
||||||
# Free Software Foundation, Inc.
|
# Free Software Foundation, Inc.
|
||||||
#
|
|
||||||
|
version='2000-05-29'
|
||||||
|
|
||||||
# This file is (in principle) common to ALL GNU software.
|
# This file is (in principle) common to ALL GNU software.
|
||||||
# The presence of a machine in this file suggests that SOME 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.
|
# can handle that machine. It does not imply ALL GNU software can.
|
||||||
@ -50,23 +52,54 @@
|
|||||||
# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
|
# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
|
||||||
# It is wrong to echo any other type of specification.
|
# It is wrong to echo any other type of specification.
|
||||||
|
|
||||||
if [ x$1 = x ]
|
me=`echo "$0" | sed -e 's,.*/,,'`
|
||||||
then
|
|
||||||
echo Configuration name missing. 1>&2
|
|
||||||
echo "Usage: $0 CPU-MFR-OPSYS" 1>&2
|
|
||||||
echo "or $0 ALIAS" 1>&2
|
|
||||||
echo where ALIAS is a recognized configuration type. 1>&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# First pass through any local machine types.
|
usage="\
|
||||||
case $1 in
|
Usage: $0 [OPTION] CPU-MFR-OPSYS
|
||||||
*local*)
|
$0 [OPTION] ALIAS
|
||||||
echo $1
|
|
||||||
exit 0
|
Canocalize a configuration name.
|
||||||
;;
|
|
||||||
*)
|
Operation modes:
|
||||||
;;
|
-h, --help print this help, then exit
|
||||||
|
-V, --version print version number, then exit"
|
||||||
|
|
||||||
|
help="
|
||||||
|
Try \`$me --help' for more information."
|
||||||
|
|
||||||
|
# Parse command line
|
||||||
|
while test $# -gt 0 ; do
|
||||||
|
case "$1" in
|
||||||
|
--version | --vers* | -V )
|
||||||
|
echo "$version" ; exit 0 ;;
|
||||||
|
--help | --h* | -h )
|
||||||
|
echo "$usage"; exit 0 ;;
|
||||||
|
-- ) # Stop option processing
|
||||||
|
shift; break ;;
|
||||||
|
- ) # Use stdin as input.
|
||||||
|
break ;;
|
||||||
|
-* )
|
||||||
|
exec >&2
|
||||||
|
echo "$me: invalid option $1"
|
||||||
|
echo "$help"
|
||||||
|
exit 1 ;;
|
||||||
|
|
||||||
|
*local*)
|
||||||
|
# First pass through any local machine types.
|
||||||
|
echo $1
|
||||||
|
exit 0;;
|
||||||
|
|
||||||
|
* )
|
||||||
|
break ;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
|
case $# in
|
||||||
|
0) echo "$me: missing argument$help" >&2
|
||||||
|
exit 1;
|
||||||
|
1) ;;
|
||||||
|
*) echo "$me: too many arguments$help" >&2
|
||||||
|
exit 1;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
|
# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
|
||||||
@ -1266,3 +1299,11 @@ case $basic_machine in
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
echo $basic_machine$os
|
echo $basic_machine$os
|
||||||
|
exit 0
|
||||||
|
|
||||||
|
# Local variables:
|
||||||
|
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
||||||
|
# time-stamp-start: "version='"
|
||||||
|
# time-stamp-format: "%:y-%02m-%02d"
|
||||||
|
# time-stamp-end: "'"
|
||||||
|
# End:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user