diff options
| author | Matthew Sheby <44249925+msheby@users.noreply.github.com> | 2023-02-09 17:53:08 -0800 |
|---|---|---|
| committer | Matthew Sheby <44249925+msheby@users.noreply.github.com> | 2023-02-09 17:53:08 -0800 |
| commit | d382dbbe5da4e8c8ed4e632906644e1215277732 (patch) | |
| tree | b34a78b85afafb43b2b0b77c1e2bd3ac1abd24dc | |
| parent | 3f9fd2c3c3fffcccd53016619475b32642ed6aa5 (diff) | |
fix: improve autoconf handling of OpenSSL 1.x
| -rw-r--r-- | m4/ax_lib_openssl.m4 | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
