if test X"$OPENSSL_ENABLED" = X"1"; then
dnl If the ENGINE library seems to be around, check for the OpenSSL engine
- dnl header, it is kind of "separated" from the main SSL check
- AC_CHECK_FUNC(ENGINE_init, [ AC_CHECK_HEADERS(openssl/engine.h) ])
+ dnl stuff, it is kind of "separated" from the main SSL check
+ AC_CHECK_FUNC(ENGINE_init,
+ [
+ AC_CHECK_HEADERS(openssl/engine.h)
+ AC_CHECK_FUNCS( ENGINE_load_builtin_engines )
+ ])
AC_MSG_CHECKING([CA cert bundle install path])