Skip to content

Commit a286fa3

Browse files
committed
Add the libraries we actually test and need for LDAP and OpenSSL, fixes bug #53339
Patch by Clint Byrum
1 parent f064435 commit a286fa3

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

acinclude.m4

+1-1
Original file line numberDiff line numberDiff line change
@@ -2412,7 +2412,7 @@ AC_DEFUN([PHP_SETUP_OPENSSL],[
24122412
-L$OPENSSL_LIBDIR
24132413
])
24142414
LIBS=$old_LIBS
2415-
PHP_ADD_LIBRARY(ssl,,$1)
2415+
PHP_ADD_LIBRARY(crypto,,$1)
24162416
24172417
PHP_ADD_LIBPATH($OPENSSL_LIBDIR, $1)
24182418
fi

ext/ldap/config.m4

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ AC_DEFUN([PHP_LDAP_SASL_CHECKS], [
5050
SASL_LIB="-L$LDAP_SASL_LIBDIR -lsasl2"
5151
fi
5252
53-
PHP_CHECK_LIBRARY(ldap, sasl_version,
53+
PHP_CHECK_LIBRARY(sasl2, sasl_version,
5454
[
5555
PHP_ADD_INCLUDE($LDAP_SASL_INCDIR)
5656
PHP_ADD_LIBRARY_WITH_PATH(sasl2, $LDAP_SASL_LIBDIR, LDAP_SHARED_LIBADD)

ext/openssl/config0.m4

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ if test "$PHP_OPENSSL" != "no"; then
1717
fi
1818

1919
AC_CHECK_LIB(ssl, DSA_get_default_method, AC_DEFINE(HAVE_DSA_DEFAULT_METHOD, 1, [OpenSSL 0.9.7 or later]))
20+
AC_CHECK_LIB(crypto, X509_free, AC_DEFINE(HAVE_DSA_DEFAULT_METHOD, 1, [OpenSSL 0.9.7 or later]))
2021

2122
PHP_SETUP_OPENSSL(OPENSSL_SHARED_LIBADD,
2223
[

0 commit comments

Comments
 (0)