From: Sebastian Harl Date: Wed, 4 Jun 2014 19:50:07 +0000 (+0200) Subject: autogen.sh: Report an error if yacc or lex are missing. X-Git-Tag: sysdb-0.2.0~61^2~2 X-Git-Url: https://git.tokkee.org/?p=sysdb.git;a=commitdiff_plain;h=b45d0f1e9f349f3a11adbbd7575ba3fb2138679a;hp=72a4156c91fd019b2e105c09708278fcdd321cce autogen.sh: Report an error if yacc or lex are missing. Thanks to Uli Martens for reporting this. --- diff --git a/autogen.sh b/autogen.sh index e4ffee0..87fd59f 100755 --- a/autogen.sh +++ b/autogen.sh @@ -1,7 +1,11 @@ #! /bin/sh -libtoolize=libtoolize +if ! which yacc > /dev/null 2>&1 || ! which lex > /dev/null 2>&1; then + echo "yacc and lex are required to build SysDB" >&2 + exit 1 +fi +libtoolize=libtoolize if which glibtoolize > /dev/null 2>&1; then libtoolize=glibtoolize fi