* config.guess (*:FreeBSD:*:*): Refactor CPU handling.

Canonicalize i386-*-freebsd* to i586-*-freebsd*.

Signed-off-by: Ben Elliston <bje@gnu.org>
This commit is contained in:
Gerald Pfeifer 2017-03-05 08:29:01 +11:00 committed by Ben Elliston
parent 2fbde7c1b5
commit 00666e7b39
2 changed files with 10 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2017-03-05 Gerald Pfeifer <gerald@pfeifer.com>
* config.guess (*:FreeBSD:*:*): Refactor CPU handling.
Canonicalize i386-*-freebsd* to i586-*-freebsd*.
2017-02-07 Ben Elliston <bje@gnu.org>
Reported by Hugues Lefebvre <hugues.lefebvre@lusis.fr>.

9
config.guess vendored
View File

@ -2,7 +2,7 @@
# Attempt to guess a canonical system name.
# Copyright 1992-2017 Free Software Foundation, Inc.
timestamp='2017-02-07'
timestamp='2017-03-05'
# 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
@ -837,10 +837,11 @@ EOF
UNAME_PROCESSOR=`/usr/bin/uname -p`
case ${UNAME_PROCESSOR} in
amd64)
echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
*)
echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
UNAME_PROCESSOR=x86_64 ;;
i386)
UNAME_PROCESSOR=i586 ;;
esac
echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
exit ;;
i*:CYGWIN*:*)
echo ${UNAME_MACHINE}-pc-cygwin