From: Sami Kerola Date: Sat, 1 Oct 2011 11:18:17 +0000 (+0200) Subject: build-sys: enhance error message for missing libtoolize X-Git-Tag: v2.21-rc1~352 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=13ba1df87ddd91bdd14c6df33bbdc39791f90fd7;p=thirdparty%2Futil-linux.git build-sys: enhance error message for missing libtoolize The commit will will use `You must have libtool version...' message when libtoolize is missing. Earlier the error message less helpful. ./autogen.sh: line 59: test: =: unary operator expected Signed-off-by: Sami Kerola --- diff --git a/autogen.sh b/autogen.sh index c07984bcf1..14a795ffdb 100755 --- a/autogen.sh +++ b/autogen.sh @@ -55,6 +55,7 @@ test -f mount/mount.c || { } ltver=$(libtoolize --version | awk '/^libtoolize/ { print $4 }') +ltver=${ltver:-"none"} test ${ltver##2.} = "$ltver" && { echo "You must have libtool version >= 2.x.x, but you have $ltver." DIE=1