Просмотр исходного кода

Only consider ssl installations with shared libs to be valid

Bryan Drewery 12 лет назад
Родитель
Сommit
94cce67cf2
3 измененных файлов с 5 добавлено и 4 удалено
  1. 2 2
      build/autotools/includes/acinclude.m4
  2. 2 2
      configure
  3. 1 0
      doc/UPDATES

+ 2 - 2
build/autotools/includes/acinclude.m4

@@ -542,7 +542,7 @@ if test "$with_openssl_path" != "auto"; then
 else
 else
   dnl Do the auto-probe here.  Check some common directory paths.
   dnl Do the auto-probe here.  Check some common directory paths.
   for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/local/openssl; do
   for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/local/openssl; do
-    if test -f "${dirs}/include/openssl/opensslv.h" ; then
+    if test -f "${dirs}/include/openssl/opensslv.h" && test -f "${dirs}/lib/libssl.so"; then
       cf_openssl_basedir="${dirs}"
       cf_openssl_basedir="${dirs}"
       break
       break
     fi
     fi
@@ -551,7 +551,7 @@ else
 fi
 fi
 dnl Now check cf_openssl_found to see if we found anything.
 dnl Now check cf_openssl_found to see if we found anything.
 if test ! -z "$cf_openssl_basedir"; then
 if test ! -z "$cf_openssl_basedir"; then
-  if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then
+  if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" && test -f "${cf_openssl_basedir}/lib/libssl.so"; then
     SSL_INCLUDES="-I${cf_openssl_basedir}/include"
     SSL_INCLUDES="-I${cf_openssl_basedir}/include"
     SSL_LIBS="-L${cf_openssl_basedir}/lib"
     SSL_LIBS="-L${cf_openssl_basedir}/lib"
   else
   else

+ 2 - 2
configure

@@ -5479,7 +5479,7 @@ if test "$with_openssl_path" != "auto"; then
     cf_openssl_basedir="`echo ${with_openssl_path} | sed 's/\/$//'`"
     cf_openssl_basedir="`echo ${with_openssl_path} | sed 's/\/$//'`"
 else
 else
     for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/local/openssl; do
     for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/local/openssl; do
-    if test -f "${dirs}/include/openssl/opensslv.h" ; then
+    if test -f "${dirs}/include/openssl/opensslv.h" && test -f "${dirs}/lib/libssl.so"; then
       cf_openssl_basedir="${dirs}"
       cf_openssl_basedir="${dirs}"
       break
       break
     fi
     fi
@@ -5487,7 +5487,7 @@ else
   unset dirs
   unset dirs
 fi
 fi
 if test ! -z "$cf_openssl_basedir"; then
 if test ! -z "$cf_openssl_basedir"; then
-  if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then
+  if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" && test -f "${cf_openssl_basedir}/lib/libssl.so"; then
     SSL_INCLUDES="-I${cf_openssl_basedir}/include"
     SSL_INCLUDES="-I${cf_openssl_basedir}/include"
     SSL_LIBS="-L${cf_openssl_basedir}/lib"
     SSL_LIBS="-L${cf_openssl_basedir}/lib"
   else
   else

+ 1 - 0
doc/UPDATES

@@ -7,6 +7,7 @@ maint
   * Fix build with clang (FreeBSD 10)
   * Fix build with clang (FreeBSD 10)
   * Fix startup crash when some shared library symbols were missing
   * Fix startup crash when some shared library symbols were missing
   * Fix build on systems without working libssp
   * Fix build on systems without working libssp
+  * Fix build detecting invalid openssl installations (ones with only static libs)
 
 
 1.4.3
 1.4.3
   * Default 'set promisc' to ignore since it's usually a false positive
   * Default 'set promisc' to ignore since it's usually a false positive