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