* config.sub: No more OS-driven substitution of -pc with sed.

I'm not sure why this was originally added. It's certainly not needed
anymore because the OS will never be duplicated onto the send of the
`basic_machine`.  If the user passed `unknown` or no vendor, this will
already be filled in. If they passed something more specific, it's
customary to respect that.

Signed-off-by: Ben Elliston <bje@gnu.org>
This commit is contained in:
John Ericson 2018-05-23 12:59:07 +10:00 committed by Ben Elliston
parent 63fe500bb8
commit 437b9abd44
2 changed files with 4 additions and 14 deletions

View File

@ -1,3 +1,7 @@
2018-05-23 John Ericson <john.ericson@obsidian.systems>
* config.sub: No more OS-driven substitution of -pc with sed.
2018-05-23 John Ericson <john.ericson@obsidian.systems> 2018-05-23 John Ericson <john.ericson@obsidian.systems>
* config.sub: Simplify *-wrs handling. * config.sub: Simplify *-wrs handling.

14
config.sub vendored
View File

@ -585,45 +585,31 @@ case $os in
;; ;;
sco6) sco6)
os=sco5v6 os=sco5v6
basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
;; ;;
sco5) sco5)
os=sco3.2v5 os=sco3.2v5
basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
;; ;;
sco4) sco4)
os=sco3.2v4 os=sco3.2v4
basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
;; ;;
sco3.2.[4-9]*) sco3.2.[4-9]*)
os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
;; ;;
sco3.2v[4-9]*) sco3.2v[4-9]*)
# Don't forget version if it is 3.2v4 or newer. # Don't forget version if it is 3.2v4 or newer.
basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
;; ;;
sco5v6*) sco5v6*)
# Don't forget version if it is 3.2v4 or newer. # Don't forget version if it is 3.2v4 or newer.
basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
;; ;;
sco*) sco*)
os=sco3.2v2 os=sco3.2v2
basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
;;
udk*)
basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
;; ;;
isc) isc)
os=isc2.2 os=isc2.2
basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
;; ;;
clix*) clix*)
basic_machine=clipper-intergraph basic_machine=clipper-intergraph
;; ;;
isc*)
basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
;;
lynx*178) lynx*178)
os=lynxos178 os=lynxos178
;; ;;