summaryrefslogtreecommitdiff
path: root/config.sub
diff options
context:
space:
mode:
authorKevin Ryde <user42@zip.com.au>2000-11-05 00:19:30 +0100
committerKevin Ryde <user42@zip.com.au>2000-11-05 00:19:30 +0100
commitdfa539063397764382df8391ec8635c011fe4c39 (patch)
treedf6e6ce34680ef29f28fe2bda8f5c6f26d492212 /config.sub
parent82ca27b7b2dc60260796a19ffc03a62cbc65db00 (diff)
downloadgmp-dfa539063397764382df8391ec8635c011fe4c39.tar.gz
When we don't want to run configfsf.sub on a special test cpu, just
pass it's output straight through. This preserves aliases known to configfsf.sub, for instance ./config.sub nexgen -> i586-pc-none.
Diffstat (limited to 'config.sub')
-rwxr-xr-xconfig.sub12
1 files changed, 10 insertions, 2 deletions
diff --git a/config.sub b/config.sub
index e52a9ba7d..171c5da08 100755
--- a/config.sub
+++ b/config.sub
@@ -95,12 +95,20 @@ sparcv8 | supersparc | microsparc | ultrasparc | ultrasparc[123])
test_cpu=sparc ;;
sh2)
test_cpu=sh ;;
+
*)
- test_cpu="$given_cpu" ;;
+ # Don't need or want to change what the given name, just run configfsf.sub
+ $SHELL $configfsf_sub "$given_full"
+ if test $? = 0; then
+ exit 0
+ else
+ echo "(GNU MP wrapped config.sub testing $given_full)"
+ exit 1
+ fi
esac
-test_full="$test_cpu$given_rest"
+test_full="$test_cpu$given_rest"
canonical_full=`$SHELL $configfsf_sub "$test_full"`
if test $? = 0; then
: