From 03d3cfd1328922a92d2a36deb42fa1bce4b76893 Mon Sep 17 00:00:00 2001 From: Rene Rivera Date: Sun, 13 Jul 2003 17:11:55 +0000 Subject: [PATCH] Prevent use of yacc in Solaris/SunOS as it causes parse overflow errors in the grammar. [SVN r19098] --- src/engine/build.jam | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/engine/build.jam b/src/engine/build.jam index 6aa84c7c5..3045b5e3a 100644 --- a/src/engine/build.jam +++ b/src/engine/build.jam @@ -440,7 +440,11 @@ if $(NT) } SUFEXE ?= "" ; -yacc ?= [ GLOB $(PATH) : yacc$(SUFEXE) ] ; +# On some systems yacc is insufficient to build the grammar. +if ! ( $(OS) in SOLARIS SUNOS ) +{ + yacc ?= [ GLOB $(PATH) : yacc$(SUFEXE) ] ; +} yacc ?= [ GLOB $(PATH) : bison$(SUFEXE) ] ; yacc ?= [ GLOB "C:\\Program Files\\GnuWin32\\bin" : bison$(SUFEXE) ] ; yacc = $(yacc[1]) ;