From da7671171439f38e54d7d34d31853d34a84a188d Mon Sep 17 00:00:00 2001
From: Bruce Momjian <bruce@momjian.us>
Date: Fri, 1 Aug 1997 03:49:22 +0000
Subject: [PATCH] FIx solaris template finding.

---
 src/configure    | 2 +-
 src/configure.in | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/configure b/src/configure
index c450b00c766..3656ee4b0e1 100755
--- a/src/configure
+++ b/src/configure
@@ -641,7 +641,7 @@ starts 'checking host system type...'
 **************************************************************
 EOT
 	TEMPLATE=generic
-	GUESS=`grep $host_os template/.similar 2>/dev/null`
+	GUESS=`grep "$host_os=" template/.similar 2>/dev/null`
 	if test $GUESS
 	then
 		TEMPLATE=`echo $GUESS | sed 's/.*=//'`
diff --git a/src/configure.in b/src/configure.in
index 664c0f6a87b..eb2c8b184fd 100644
--- a/src/configure.in
+++ b/src/configure.in
@@ -79,7 +79,7 @@ starts 'checking host system type...'
 **************************************************************
 EOT
 	TEMPLATE=generic
-	GUESS=`grep $host_os template/.similar 2>/dev/null`
+	GUESS=`grep "$host_os=" template/.similar 2>/dev/null`
 	if test $GUESS
 	then
 		TEMPLATE=`echo $GUESS | sed 's/.*=//'`
-- 
GitLab