summaryrefslogtreecommitdiffstats
path: root/config.sub
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1997-11-18 22:28:45 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1997-11-18 22:28:45 +0000
commit83bb7781d70717406574590466d7812358a2c0e0 (patch)
treebcf71b3173070f0d6dcdde069b7f6ea786a8e7ba /config.sub
parentb5ddb7486e479c57adad5adffab06241eec1ed1c (diff)
downloadrtems-83bb7781d70717406574590466d7812358a2c0e0.tar.bz2
Modified to rezongize CPU-rtemsXYZ rather than just CPU-rtems.
Diffstat (limited to 'config.sub')
-rwxr-xr-xconfig.sub24
1 files changed, 15 insertions, 9 deletions
diff --git a/config.sub b/config.sub
index f2685b4d4d..61a2b51067 100755
--- a/config.sub
+++ b/config.sub
@@ -156,20 +156,26 @@ case $basic_machine in
| powerpc | powerpcle | 1750a | dsp16xx | mips64 | mipsel \
| pdp11 | mips64el | mips64orion | mips64orionel \
| sparc | sparclet | sparclite | sparc64 | no_cpu)
- if [ $os != -rtems ]
- then
- basic_machine=$basic_machine-unknown
- fi
+ case $os in
+ -rtems*)
+ ;;
+ *)
+ basic_machine=$basic_machine-unknown
+ ;;
+ esac
;;
# We use `pc' rather than `unknown'
# because (1) that's what they normally are, and
# (2) the word "unknown" tends to confuse beginning users.
i[3456]86)
- if [ $os != -rtems ]
- then
- basic_machine=$basic_machine-pc
- fi
- ;;
+ case $os in
+ -rtems*)
+ ;;
+ *)
+ basic_machine=$basic_machine-pc
+ ;;
+ esac
+ ;;
# Object if more than one company name word.
*-*-*)
echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2