Skip to content

Commit 49a050d

Browse files
committed
Fix Go 1.4 detection for minor versions
1 parent 66b2d66 commit 49a050d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

configure.ac

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ AM_CONDITIONAL([DEFAULT_VENDOR_GOPATH], [test x"${VENDOR_GOPATH}" == x""])
9595
AM_CONDITIONAL([READONLY_VENDOR_GOPATH], [test -n "${VENDOR_GOPATH}" -a ! -w "${VENDOR_GOPATH}"])
9696
AM_COND_IF(DEFAULT_VENDOR_GOPATH, [AC_SUBST(VENDOR_GOPATH, $PWD/vendor)])
9797
AC_MSG_RESULT([$VENDOR_GOPATH])
98-
AM_CONDITIONAL([GO_14], [test x"${GO_VERSION}" == x"1.4"])
98+
AX_COMPARE_VERSION([$GO_VERSION], [lt], [1.5], [GO_14="1"], [GO_14="0"])
99+
AM_CONDITIONAL([GO_14], [test x"${GO_14}" = x"1"])
99100

100101
AC_PATH_PROGS([NODEJS],[nodejs node])
101102
if test x"${NODEJS}" == x"" ; then

0 commit comments

Comments
 (0)