diff options
| author | John Hurst <jhurst@cinecert.com> | 2023-04-25 07:32:13 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-25 07:32:13 -0700 |
| commit | 61bdfbcd7abbe359b64b0d01243f427e2904b1c0 (patch) | |
| tree | 35c4ef245dc216d5375d5c4926afddc230db008b | |
| parent | 6179b493f743627e29fd616bd0360f4c4d08176c (diff) | |
| parent | d382dbbe5da4e8c8ed4e632906644e1215277732 (diff) | |
Merge pull request #115 from msheby/fix/m4-openssl-detection
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 |
