1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-27 12:41:57 +03:00

Attempt to fix build with unusual OpenSSL versions

Since e3bdb2d926, libpq failed to build on
some platforms because they did not have SSL_clear_options().  Although
mainline OpenSSL introduced SSL_clear_options() after
SSL_OP_NO_COMPRESSION, so the code should have built fine, at least an
old NetBSD version (build farm "coypu" NetBSD 5.1 gcc 4.1.3 PR-20080704
powerpc) has SSL_OP_NO_COMPRESSION but no SSL_clear_options().

So add a configure check for SSL_clear_options().  If we don't find it,
skip the call.  That means on such a platform one cannot *enable* SSL
compression if the built-in default is off, but that seems an unlikely
combination anyway and not very interesting in practice.
This commit is contained in:
Peter Eisentraut
2018-03-20 16:44:52 -04:00
parent 3de04e4ed1
commit a364dfa4ac
4 changed files with 13 additions and 2 deletions

2
configure vendored
View File

@ -10203,7 +10203,7 @@ else
fi
fi
for ac_func in SSL_get_current_compression X509_get_signature_nid
for ac_func in SSL_clear_options SSL_get_current_compression X509_get_signature_nid
do :
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"