blob: 60fcb6d78af21a65cf393b950ebf60c6a95d3b42 [file] [log] [blame]
Reid Spencer491f6812004-09-07 06:56:14 +00001#
2# Check for Bison.
3#
4# This macro verifies that Bison is installed. If successful, then
5# 1) YACC is set to bison -y (to emulate YACC calls)
6# 2) BISON is set to bison
7#
8AC_DEFUN([AC_PROG_BISON],
9[AC_CACHE_CHECK(,
10ac_cv_has_bison,
11[AC_PROG_YACC()
12])
13if test "$YACC" != "bison -y"; then
14 AC_MSG_ERROR([bison not found but required])
15else
16 AC_SUBST(BISON,[bison],[location of bison])
17fi
18])