Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions acinclude.m4
Original file line number Diff line number Diff line change
Expand Up @@ -2337,13 +2337,15 @@ AC_DEFUN([PHP_SETUP_OPENSSL],[

dnl If pkg-config is found try using it
if test "$PHP_OPENSSL_DIR" = "yes" && test -x "$PKG_CONFIG" && $PKG_CONFIG --exists openssl; then
if $PKG_CONFIG --atleast-version=0.9.8 openssl; then
if $PKG_CONFIG --atleast-version=1.1 openssl; then
AC_MSG_ERROR([OpenSSL version >= 1.1 is not supported.])
elif $PKG_CONFIG --atleast-version=0.9.8 openssl; then
found_openssl=yes
OPENSSL_LIBS=`$PKG_CONFIG --libs openssl`
OPENSSL_INCS=`$PKG_CONFIG --cflags-only-I openssl`
OPENSSL_INCDIR=`$PKG_CONFIG --variable=includedir openssl`
else
AC_MSG_ERROR([OpenSSL version 0.9.8 or greater required.])
AC_MSG_ERROR([OpenSSL version >= 0.9.8 and < 1.1 required.])
fi

if test -n "$OPENSSL_LIBS"; then
Expand Down