openssl version testing...
@@ -38,9 +38,9 @@ unless ENV['NO_SSL']
else
if have_library('crypto') && have_library('ssl')
puts "Detected OpenSSL library, testing for version."
- if try_compile("\#include <openssl/ssl.h>\r\#if OPENSSL_VERSION_AT_LEAST(1, 0)\r\#error \"OpenSSL version too small\"\r\#endif\rint main(void) { SSL_library_init(); }")
+ if ((OpenSSL::OPENSSL_VERSION_NUMBER >> 24) >= 16) # try_compile("\#include <openssl/ssl.h>\r\#if !OPENSSL_VERSION_AT_LEAST(1, 0)\r\#error \"OpenSSL version too small\"\r\#endif\rint main(void) { SSL_library_init(); }")
$defs << "-DHAVE_OPENSSL"
- puts "Confirmed OpenSSL to be version 1.0.0 or above, compiling with HAVE_OPENSSL."
+ puts "Confirmed OpenSSL to be version 1.0.0 or above (#{OpenSSL::OPENSSL_LIBRARY_VERSION})...\n* Compiling with HAVE_OPENSSL."
else
puts "FAILED: OpenSSL version not supported."
end
