blob: b077d1feed1d28863e17bb76e9b4037cb78af376 [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],
Reid Spencer898ae192004-11-25 04:42:25 +00009[AC_CACHE_CHECK([],[llvm_cv_has_bison],
Reid Spencer491f6812004-09-07 06:56:14 +000010[AC_PROG_YACC()
11])
12if test "$YACC" != "bison -y"; then
13 AC_MSG_ERROR([bison not found but required])
14else
15 AC_SUBST(BISON,[bison],[location of bison])
16fi
17])