Index: contrib/findssl.sh
===================================================================
RCS file: /usr/local/src/security/openssh/cvs/openssh_cvs/contrib/findssl.sh,v
retrieving revision 1.3
diff -u -p -r1.3 findssl.sh
--- contrib/findssl.sh	13 Dec 2004 07:08:33 -0000	1.3
+++ contrib/findssl.sh	12 Jul 2005 08:48:34 -0000
@@ -109,14 +109,15 @@ echo
 
 #
 # Search for shared libraries.
-# Relies on shared libraries looking like "libcrypto.s*"
+# Relies on shared libraries looking like "libcrypto.s*" or "libcrypto.dylib"
 #
 echo Searching for OpenSSL shared library files.
 if [ -x "`which locate`" ]
 then
-	libraries=`locate libcrypto.s`
+	libraries=`locate libcrypto | egrep 'libcrypto\.s|libcrypto\.dylib'`
 else
-	libraries=`find / -name 'libcrypto.s*' -print 2>/dev/null`
+	libraries=`find / -name 'libcrypto.s*' -o -name 'libcrypto.dylib' \
+	    -print 2>/dev/null`
 fi
 
 for lib in $libraries
