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