From: Pasi Kallinen Date: Wed, 21 Oct 2009 14:59:37 +0000 (+0000) Subject: Abort configure if we cannot find bison/byacc/yacc. X-Git-Tag: v1.6.1-roc-dev~197 X-Git-Url: https://skyeroc.xyz/gitweb/?a=commitdiff_plain;h=0d2f412ae67c2737820268afff7b6b9ef6f53696;p=dgamelaunch Abort configure if we cannot find bison/byacc/yacc. git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@512 db0b04b0-f4d1-0310-9a6d-de3e77497b0e --- diff --git a/configure.ac b/configure.ac index 034f3b9..b69abe1 100644 --- a/configure.ac +++ b/configure.ac @@ -13,7 +13,11 @@ AC_PROG_LEX LIBS="$LIBS $LEXLIB" -AC_PROG_YACC + +AC_CHECK_PROGS(YACC, 'bison -y' byacc yacc) +if test -z "$YACC"; then + AC_MSG_ERROR([bison or yacc not found.]) +fi case "$(uname -s)" in Linux | *BSD)