]> granicus.if.org Git - icinga2/commitdiff
Updated autogen.sh to detect lex/yacc.
authorGunnar Beutner <gunnar.beutner@netways.de>
Wed, 26 Sep 2012 07:51:40 +0000 (09:51 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Wed, 26 Sep 2012 07:51:40 +0000 (09:51 +0200)
autogen.sh

index 8f13541396565e0cfad030c200ce4b4cb1da7f1f..b915230de23be97af366bdd63ea7d8d3fdbb8f4f 100755 (executable)
@@ -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