From: Michael Wallner Date: Tue, 27 Feb 2018 10:03:59 +0000 (+0100) Subject: configure: fix version check with empty version X-Git-Tag: RELEASE_3_2_0_RC1~23 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=33e81e32a2bd234c6dd3dbc0a982dfc21be15824;p=m6w6%2Fext-http configure: fix version check with empty version --- diff --git a/autoconf/pecl/pecl.m4 b/autoconf/pecl/pecl.m4 index a1df4f0..1763d5d 100644 --- a/autoconf/pecl/pecl.m4 +++ b/autoconf/pecl/pecl.m4 @@ -221,7 +221,7 @@ AC_DEFUN([PECL_HAVE_VERSION], [ aversion=_PECL_TR_VERSION([$PECL_CHECKED_VERSION([$1])]) mversion=_PECL_TR_VERSION([$2]) AC_MSG_CHECKING([whether $1 version $PECL_CHECKED_VERSION([$1]) >= $2]) - if test "$aversion" -lt "$mversion"; then + if test -z "$aversion" || test "$aversion" -lt "$mversion"; then ifelse($4,,AC_MSG_ERROR([no]), [ AC_MSG_RESULT([no]) $4