Applying Anton's binmode fix to the other ofstream too.
[oota-llvm.git] / autoconf / m4 / bison.m4
1 #
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 #
8 AC_DEFUN([AC_PROG_BISON],
9 [AC_CACHE_CHECK([],[llvm_cv_has_bison],[AC_PROG_YACC()])
10 if test "$YACC" != "bison -y"; then
11   AC_SUBST(BISON,[])
12   AC_MSG_WARN([bison not found, can't rebuild grammars])
13 else
14   AC_SUBST(BISON,[bison])
15 fi])