/proc/cpuinfo can have several lines containing the word "type". We want the one...
authorRichard Levitte <levitte@openssl.org>
Thu, 16 Nov 2000 18:59:02 +0000 (18:59 +0000)
committerRichard Levitte <levitte@openssl.org>
Thu, 16 Nov 2000 18:59:02 +0000 (18:59 +0000)
config

diff --git a/config b/config
index 8e7e39afcab52025fc6d926532f43f01ca4f588e..8eec5c1e11c530f7a934bab25673f5520268d8d5 100755 (executable)
--- a/config
+++ b/config
@@ -442,7 +442,7 @@ EOF
        #read waste < /dev/tty
        OUT="linux-sparcv9" ;;
   sparc-*-linux2)
-       KARCH=`awk '/type/{print$3}' /proc/cpuinfo`
+       KARCH=`awk '/^type/{print$3}' /proc/cpuinfo`
        case ${KARCH:-sun4} in
        sun4u*) OUT="linux-sparcv9" ;;
        sun4m)  OUT="linux-sparcv8" ;;