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)
This commit is contained in:
Carlo Marcelo Arenas Belón 2017-08-29 00:44:57 -07:00 committed by Azat Khuzhin
parent 8983e5117b
commit b39ccf8e0b
No known key found for this signature in database
GPG Key ID: B86086848EF8686D

View File

@ -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