summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--m4/ax_lib_openssl.m42
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