changeset 1314:cbbc5bc64c46

Handle linux SMP machines (suggested by Martin Aumueller)
author jkeil
date Fri, 13 Jul 2001 09:20:13 +0000
parents d797ecb9778f
children 1c214243caab
files configure
diffstat 1 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Fri Jul 13 08:54:24 2001 +0000
+++ b/configure	Fri Jul 13 09:20:13 2001 +0000
@@ -362,15 +362,15 @@
 	_cpuinfo="TOOLS/cpuinfo"
     fi
 
-    pname=`$_cpuinfo | grep 'model name' | cut -d ':' -f 2`
-    pparam=`$_cpuinfo | grep 'features' | cut -d ':' -f 2`
+    pname=`$_cpuinfo | grep 'model name' | cut -d ':' -f 2 | head -1`
+    pparam=`$_cpuinfo | grep 'features' | cut -d ':' -f 2 | head -1`
     if [ -z "$pparam" ]; then
-	pparam=`$_cpuinfo | grep 'flags' | cut -d ':' -f 2`
+	pparam=`$_cpuinfo | grep 'flags' | cut -d ':' -f 2 | head -1`
     fi
-    pvendor=`$_cpuinfo | grep 'vendor_id' | cut -d ':' -f 2  | cut -d ' ' -f 2`
-    pfamily=`$_cpuinfo | grep 'cpu family' | cut -d ':' -f 2 | cut -d ' ' -f 2`
-    pmodel=`$_cpuinfo | grep -v 'model name' | grep 'model' | cut -d ':' -f 2 | cut -d ' ' -f 2`
-    pstepping=`$_cpuinfo | grep 'stepping' | cut -d ':' -f 2 | cut -d ' ' -f 2`
+    pvendor=`$_cpuinfo | grep 'vendor_id' | cut -d ':' -f 2  | cut -d ' ' -f 2 | head -1`
+    pfamily=`$_cpuinfo | grep 'cpu family' | cut -d ':' -f 2 | cut -d ' ' -f 2 | head -1`
+    pmodel=`$_cpuinfo | grep -v 'model name' | grep 'model' | cut -d ':' -f 2 | cut -d ' ' -f 2 | head -1`
+    pstepping=`$_cpuinfo | grep 'stepping' | cut -d ':' -f 2 | cut -d ' ' -f 2 | head -1`
 else
     # not an x86 host, cpuinfo stuff is not relevant
     pname= pparam= pvendor= pfamily= pmodel= pstepping=