mirror of
https://github.com/libevent/libevent.git
synced 2025-01-09 00:56:20 +08:00
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
This commit is contained in:
parent
63c4bf78d6
commit
506df426db
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user