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

Another attempt at fixing build with various OpenSSL versions

It seems we can't easily work around the lack of
X509_get_signature_nid(), so revert the previous attempts and just
disable the tls-server-end-point feature if we don't have it.
This commit is contained in:
Peter Eisentraut
2018-01-04 19:09:27 -05:00
parent 1834c1e432
commit 054e8c6cdb
5 changed files with 24 additions and 9 deletions

9
configure vendored
View File

@ -10125,12 +10125,13 @@ else
fi
fi
for ac_func in SSL_get_current_compression
for ac_func in SSL_get_current_compression X509_get_signature_nid
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 :
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_SSL_GET_CURRENT_COMPRESSION 1
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
fi