From 8c7d6b94d5e1e28c0352c5ae6ac52d4d1ea9b681 Mon Sep 17 00:00:00 2001 From: "Richard J. Moore" Date: Tue, 31 May 2016 17:10:07 +0100 Subject: Detect if the 'openssl' is really libressl at configure time. Qt does not support libressl which reports itself as openssl but uses a high version number. This means that we expect it to have features that it doesn't and will fail to build. Instead detect this situation at configure time and disable the ssl support. Change-Id: I73cca4d1544df2aaca0723c38ba63758c287ec41 Reviewed-by: Ralf Nolden Reviewed-by: Timur Pocheptsov Reviewed-by: Oswald Buddenhagen --- config.tests/unix/openssl/openssl.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'config.tests/unix/openssl/openssl.cpp') diff --git a/config.tests/unix/openssl/openssl.cpp b/config.tests/unix/openssl/openssl.cpp index 6282bfa328..d0b6cca562 100644 --- a/config.tests/unix/openssl/openssl.cpp +++ b/config.tests/unix/openssl/openssl.cpp @@ -37,6 +37,12 @@ # error "OpenSSL >= 0.9.7 is required" #endif +#include + +#if OPENSSL_VERSION_NUMBER-0 >= 0x10002000L && !defined(OPENSSL_NO_EC) && !defined(SSL_CTRL_SET_CURVES) +# error "OpenSSL was reported as >= 1.0.2 but is missing required features, possibly it's libressl which is unsupported" +#endif + int main() { } -- cgit v1.2.3