Skip to content

Commit f76f1ef

Browse files
committed
Log OpenSSL version in ./configure output
This information is useful to know when scanning buildfarm results, and it is already displayed in Meson. The output of `openssl version` is logged, with the command retrieved from PATH. This depends on c8e4030, so backpatch down to 16. Reviewed-by: Peter Eisentraut, Daniel Gustafsson, Tom Lane Discussion: https://postgr.es/m/ZTW9yOlZaSVoFhTz@paquier.xyz Backpatch-through: 16
1 parent b1444a0 commit f76f1ef

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

configure

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14179,6 +14179,9 @@ $as_echo_n "checking for OPENSSL... " >&6; }
1417914179
$as_echo "$OPENSSL" >&6; }
1418014180
fi
1418114181

14182+
pgac_openssl_version="$($OPENSSL version 2> /dev/null || echo openssl not found)"
14183+
{ $as_echo "$as_me:${as_lineno-$LINENO}: using openssl: $pgac_openssl_version" >&5
14184+
$as_echo "$as_me: using openssl: $pgac_openssl_version" >&6;}
1418214185
if test "$with_ssl" = openssl ; then
1418314186
ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
1418414187
if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :

configure.ac

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1571,6 +1571,8 @@ if test "$with_gssapi" = yes ; then
15711571
fi
15721572

15731573
PGAC_PATH_PROGS(OPENSSL, openssl)
1574+
pgac_openssl_version="$($OPENSSL version 2> /dev/null || echo openssl not found)"
1575+
AC_MSG_NOTICE([using openssl: $pgac_openssl_version])
15741576
if test "$with_ssl" = openssl ; then
15751577
AC_CHECK_HEADER(openssl/ssl.h, [], [AC_MSG_ERROR([header file <openssl/ssl.h> is required for OpenSSL])])
15761578
AC_CHECK_HEADER(openssl/err.h, [], [AC_MSG_ERROR([header file <openssl/err.h> is required for OpenSSL])])

0 commit comments

Comments
 (0)