X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=autogen.sh;h=3625b2da9125a105b0f5b6846dfb0075cbf93acc;hb=ad167a9023aa1fd04653c6aed0256132514827aa;hp=116885bc77144d322019a8ed47d1ba0299ecb024;hpb=45c9a3d27ffc22139bc9453a58cf786613acf0f9;p=thirdparty%2Futil-linux.git diff --git a/autogen.sh b/autogen.sh index 116885bc77..3625b2da91 100755 --- a/autogen.sh +++ b/autogen.sh @@ -67,6 +67,25 @@ test -f sys-utils/mount.c || { DIE=1 } +if ! (bison --version) < /dev/null > /dev/null 2>&1; then + echo + echo "You must have bison installed to build the util-linux." + echo + DIE=1 +else + lexver=$(bison --version | awk '/^bison \(GNU [Bb]ison\)/ { print $4 }') + case "$lexver" in + [2-9].*) + ;; + *) + echo + echo "You must have bison version >= 2.x, but you have $lexver." + echo + DIE=1 + ;; + esac +fi + LIBTOOLIZE=libtoolize case `uname` in Darwin*) LIBTOOLIZE=glibtoolize ;; esac if ! ($LIBTOOLIZE --version) < /dev/null > /dev/null 2>&1; then @@ -104,6 +123,7 @@ echo " autoconf: $(autoconf --version | head -1)" echo " autoheader: $(autoheader --version | head -1)" echo " automake: $(automake --version | head -1)" echo " libtoolize: $($LIBTOOLIZE --version | head -1)" +echo " bison: $(bison --version | head -1)" rm -rf autom4te.cache