build: Verify yasm version and complain - fixes #1154

This commit is contained in:
Harshavardhana 2016-02-22 03:17:07 -08:00
parent 8824b18c29
commit 18fd0a0f81

View File

@ -21,6 +21,7 @@ _init() {
## Minimum required versions for build dependencies
GIT_VERSION="1.0"
YASM_VERSION="1.2.0"
CURL_VERSION="7.12.0"
GPG_VERSION="1.3"
GO_VERSION="1.5.1"
@ -192,6 +193,11 @@ check_deps() {
if [ $? -ge 2 ]; then
MISSING="${MISSING} curl"
fi
check_version "$(env yasm --version 2>/dev/null | sed 's/^.* \([0-9.]*\).*$/\1/' | head -1)" "${YASM_VERSION}"
if [ $? -ge 2 ]; then
MISSING="${MISSING} yasm(${YASM_VERSION})"
fi
}
main() {