From 2f4c13b0f070689e10f965c3ecc386381e092866 Mon Sep 17 00:00:00 2001 From: matz Date: Wed, 3 Dec 2003 07:55:54 +0000 Subject: * configure.in (AC_PROG_YACC): AC_DEFINE(OLD_YACC) if Yacc is found instead of Bison or byacc. * parse.y: If OLD_YACC is defined, ensure that YYMAXDEPTH is at least 10000 (Bison's default) since some old versions of Yacc define it as low as 150 by default, which is too low for Ruby to parse some files, such as date/format.rb. Among other issues, the parse problem causes "make test" to fail. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5093 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- configure.in | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'configure.in') diff --git a/configure.in b/configure.in index a23831c5a5..23149915e4 100644 --- a/configure.in +++ b/configure.in @@ -157,6 +157,10 @@ AC_SUBST(OUTFLAG) RUBY_MINGW32 AC_PROG_YACC +if test "$YACC" = "yacc"; then + AC_DEFINE([OLD_YACC]) +fi + AC_CHECK_TOOL(RANLIB, ranlib, :) AC_CHECK_TOOL(AR, ar) if test -z "$AR"; then -- cgit v1.2.3