]> skyeroc.xyz Git - dgamelaunch/commitdiff
Abort configure if we cannot find bison/byacc/yacc.
authorPasi Kallinen <paxed@alt.org>
Wed, 21 Oct 2009 14:59:37 +0000 (14:59 +0000)
committerPasi Kallinen <paxed@alt.org>
Wed, 21 Oct 2009 14:59:37 +0000 (14:59 +0000)
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@512 db0b04b0-f4d1-0310-9a6d-de3e77497b0e

configure.ac

index 034f3b92e76e442748e8c7b33e3faab750ae1e25..b69abe151f3373092b489cf058810a861a0e86f0 100644 (file)
@@ -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)