diff options
author | Richard J. Moore <rich@kde.org> | 2016-05-31 17:10:07 +0100 |
---|---|---|
committer | Ralf Nolden <nolden@kde.org> | 2016-06-04 18:11:19 +0000 |
commit | 8c7d6b94d5e1e28c0352c5ae6ac52d4d1ea9b681 (patch) | |
tree | bcb694f47821e6ca415e7879a5e096f60a25de99 /config.tests | |
parent | 4fc797147821b4ef3372d4db9253d3cb1ed0704e (diff) | |
download | qtbase-8c7d6b94d5e1e28c0352c5ae6ac52d4d1ea9b681.tar.gz |
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 <nolden@kde.org>
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@theqtcompany.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Diffstat (limited to 'config.tests')
-rw-r--r-- | config.tests/unix/openssl/openssl.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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 <openssl/ssl.h> + +#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() { } |