* config.sub: Allow CPU to influence vendor defaulting too.

Signed-off-by: Ben Elliston <bje@gnu.org>
This commit is contained in:
John Ericson 2020-06-28 11:21:28 +10:00 committed by Ben Elliston
parent 60a43fe6f0
commit 2b81440a51
2 changed files with 28 additions and 24 deletions

View File

@ -1,3 +1,7 @@
2020-06-27 John Ericson <john.ericson@obsidian.systems>
* config.sub: Allow CPU to influence vendor defaulting too.
2020-06-26 John Ericson <john.ericson@obsidian.systems>
* config.sub: Move OS whitelist to the bottom of the case as

48
config.sub vendored
View File

@ -2,7 +2,7 @@
# Configuration validation subroutine script.
# Copyright 1992-2020 Free Software Foundation, Inc.
timestamp='2020-06-20'
timestamp='2020-06-28'
# 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
@ -1720,71 +1720,71 @@ fi
# manufacturer. We pick the logical manufacturer.
case $vendor in
unknown)
case $os in
riscix*)
case $cpu-$os in
*-riscix*)
vendor=acorn
;;
sunos*)
*-sunos*)
vendor=sun
;;
cnk*|-aix*)
*-cnk* | *-aix*)
vendor=ibm
;;
beos*)
*-beos*)
vendor=be
;;
hpux*)
*-hpux*)
vendor=hp
;;
mpeix*)
*-mpeix*)
vendor=hp
;;
hiux*)
*-hiux*)
vendor=hitachi
;;
unos*)
*-unos*)
vendor=crds
;;
dgux*)
*-dgux*)
vendor=dg
;;
luna*)
*-luna*)
vendor=omron
;;
genix*)
*-genix*)
vendor=ns
;;
clix*)
*-clix*)
vendor=intergraph
;;
mvs* | opened*)
*-mvs* | *-opened*)
vendor=ibm
;;
os400*)
*-os400*)
vendor=ibm
;;
ptx*)
*-ptx*)
vendor=sequent
;;
tpf*)
*-tpf*)
vendor=ibm
;;
vxsim* | vxworks* | windiss*)
*-vxsim* | *-vxworks* | *-windiss*)
vendor=wrs
;;
aux*)
*-aux*)
vendor=apple
;;
hms*)
*-hms*)
vendor=hitachi
;;
mpw* | macos*)
*-mpw* | *-macos*)
vendor=apple
;;
*mint | mint[0-9]* | *MiNT | MiNT[0-9]*)
*-*mint | *-mint[0-9]* | *-*MiNT | *-MiNT[0-9]*)
vendor=atari
;;
vos*)
*-vos*)
vendor=stratus
;;
esac