From d382dbbe5da4e8c8ed4e632906644e1215277732 Mon Sep 17 00:00:00 2001 From: Matthew Sheby <44249925+msheby@users.noreply.github.com> Date: Thu, 9 Feb 2023 17:53:08 -0800 Subject: fix: improve autoconf handling of OpenSSL 1.x --- m4/ax_lib_openssl.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/m4/ax_lib_openssl.m4 b/m4/ax_lib_openssl.m4 index 074bdfb..75ca424 100644 --- a/m4/ax_lib_openssl.m4 +++ b/m4/ax_lib_openssl.m4 @@ -237,7 +237,7 @@ SSLeay(); if test -f "$openssl_include_dir/openssl/opensslv.h"; then OPENSSL_VERSION=`grep OPENSSL_VERSION_TEXT $openssl_include_dir/openssl/opensslv.h \ - | grep -v fips | grep -v PTEXT | sed -e 's/[ ][ ][ ]*/\t/g' | cut -f 2 | tr -d \"` + | grep -v fips | grep -v PTEXT | sed -e 's/^.*OPENSSL_VERSION_TEXT[ ]*\"[ ]*OpenSSL[ ]*//' -e 's/[ ].*//'` AC_SUBST([OPENSSL_VERSION]) dnl Decompose required version string and calculate numerical representation -- cgit v1.2.3