From: Gunnar Beutner Date: Wed, 26 Sep 2012 07:51:40 +0000 (+0200) Subject: Updated autogen.sh to detect lex/yacc. X-Git-Tag: v0.0.1~68^2~11 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e8fb5c735e970e8340e248624fddf1ceb5aef7ab;p=icinga2 Updated autogen.sh to detect lex/yacc. --- diff --git a/autogen.sh b/autogen.sh index 8f1354139..b915230de 100755 --- a/autogen.sh +++ b/autogen.sh @@ -30,6 +30,26 @@ fi DIE=1 } +(grep "^AM_PROG_LEX" $srcdir/configure.ac >/dev/null) && { + (lex --version) < /dev/null > /dev/null 2>&1 || { + echo + echo "**Error**: You must have \`lex' installed." + echo "Download the appropriate package for your distribution," + echo "or get the source tarball for flex at http://flex.sourceforge.net/" + DIE=1 + } +} + +(grep "^AM_PROG_YACC" $srcdir/configure.ac >/dev/null) && { + (yacc --version) < /dev/null > /dev/null 2>&1 || { + echo + echo "**Error**: You must have \`yacc' installed." + echo "Download the appropriate package for your distribution," + echo "or get the source tarball for bison at http://ftp.gnu.org/gnu/bison/" + DIE=1 + } +} + (grep "^IT_PROG_INTLTOOL" $srcdir/configure.ac >/dev/null) && { (intltoolize --version) < /dev/null > /dev/null 2>&1 || { echo