Recognize CPU on BSD/OS.
authorUlf Möller <ulf@openssl.org>
Wed, 16 Jun 1999 20:26:46 +0000 (20:26 +0000)
committerUlf Möller <ulf@openssl.org>
Wed, 16 Jun 1999 20:26:46 +0000 (20:26 +0000)
config

diff --git a/config b/config
index b2f1584cb8cfc86275975941f1ab71adff10363d..06c59f4bff0d228b4f41a52c11515b6c2008e356 100755 (executable)
--- a/config
+++ b/config
@@ -119,7 +119,14 @@ case "${SYSTEM}:${RELEASE}:${VERSION}:${MACHINE}" in
        ;;
 
     BSD/386:*:*:*486*|BSD/OS:*:*:*:*486*)
-       echo "i486-whatever-bsdi"; exit 0
+        case `/sbin/sysctl -n hw.model` in
+           Pentium*)
+                echo "i586-whatever-bsd"; exit 0
+                ;;
+            *)
+                echo "i386-whatever-bsd"; exit 0
+                ;;
+            esac;
        ;;
 
     BSD/386:*|BSD/OS:*)