From: Carlo Marcelo Arenas Belón Date: Tue, 29 Aug 2017 07:44:57 +0000 (-0700) Subject: autotools: confirm openssl is working before using X-Git-Tag: release-2.1.9-beta^2~161 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b39ccf8e0b864490b51c6b1ce37900ac8d703b20;p=libevent autotools: confirm openssl is working before using latest versions of macOS provide pkg-config and libraries for an ancient version of openssl as part of the system, but no headers (cherry picked from commit 506df426dbeb0187bbd3654bd286b4100628fb16) --- diff --git a/m4/libevent_openssl.m4 b/m4/libevent_openssl.m4 index c2040595..7b458134 100644 --- a/m4/libevent_openssl.m4 +++ b/m4/libevent_openssl.m4 @@ -39,6 +39,10 @@ case "$enable_openssl" in done ;; esac + CPPFLAGS_SAVE=$CPPFLAGS + CPPFLAGS+=$OPENSSL_INCS + AC_CHECK_HEADERS([openssl/ssl.h], [], [have_openssl=no]) + CPPFLAGS=$CPPFLAGS_SAVE AC_SUBST(OPENSSL_INCS) AC_SUBST(OPENSSL_LIBS) case "$have_openssl" in