From df57a9f221e22dde28167ffaca8a8d9174e5b104 Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Tue, 16 Sep 2003 14:23:21 +0000 Subject: [w3m-dev 03960] * acinclude.m4 (AC_W3M_CHECK_VER): fix version check logic From: Hiroyuki Ito --- acinclude.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'acinclude.m4') diff --git a/acinclude.m4 b/acinclude.m4 index 5e2e873..ee70e85 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -467,7 +467,7 @@ AC_DEFUN([AC_W3M_CHECK_VER], AC_MSG_CHECKING($1 version) AC_MSG_RESULT($version) set -- `echo "$version" | sed 's/[[^0-9]]/ /g'` - if test "$[1]" -ne "$3" -o "$[2]" -lt "$4" -o "$[3]" -lt "$5"; then + if test "$[1]" -ne "$3" -o "$[2]" -lt "$4" || test "$[2]" -eq "$4" -a "$[3]" -lt "$5"; then AC_MSG_WARN([$1 is too old. Install $1 (version >= $3.$4.$5)]) $7 else -- cgit v1.2.3