summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorMagnus Hagander2014-07-15 16:04:43 +0000
committerMagnus Hagander2014-07-15 16:07:03 +0000
commitc9e1ad7faf75aeda633e27ba6c042dabe4aa353d (patch)
tree1354e41aa8cc528de9411ba09b7654e0741662a6 /configure
parentf9ddcf75430467493aa6c2b07a45776e4ae8b416 (diff)
Detect presence of SSL_get_current_compression
Apparently we still build against OpenSSL so old that it doesn't have this function, so add an autoconf check for it to make the buildfarm happy. If the function doesn't exist, always return that compression is disabled, since presumably the actual compression functionality is always missing. For now, hardcode the function as present on MSVC, since we should hopefully be well beyond those old versions on that platform.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure11
1 files changed, 11 insertions, 0 deletions
diff --git a/configure b/configure
index 75979166efe..ac0d98e2a4d 100755
--- a/configure
+++ b/configure
@@ -8509,6 +8509,17 @@ else
as_fn_error $? "library 'ssl' is required for OpenSSL" "$LINENO" 5
fi
+ for ac_func in SSL_get_current_compression
+do :
+ ac_fn_c_check_func "$LINENO" "SSL_get_current_compression" "ac_cv_func_SSL_get_current_compression"
+if test "x$ac_cv_func_SSL_get_current_compression" = xyes; then :
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_SSL_GET_CURRENT_COMPRESSION 1
+_ACEOF
+
+fi
+done
+
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing CRYPTO_new_ex_data" >&5
$as_echo_n "checking for library containing CRYPTO_new_ex_data... " >&6; }