#
# 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
])

#
# 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([if we have bison],[llvm_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
])

Make the check print something, give the cache var an llvm specific name.
Make the check print something, give the cache var an llvm specific name.


git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@18224 91177308-0d34-0410-b5e6-96231b3b80d8
