-y stands for yacc compatibility, we don't need it since we no longer
accept yacc instead of bison.
-d stands for defines file, we already specify that in makefile rule
for parser.
--no-lines is generally useless and didn't have any effect for some
reason (#line directives are present).
# flags
# do *not* add CXXFLAGS here, add them in configure.ac
AM_CXXFLAGS = $(CXXFLAGSDEFAULT)
-BISONFLAGS = -y -d --no-lines
RE2CFLAGS = -b
# binary
$(AUTOGEN_PARSER): $(CUSTOM_PARSER)
@if test $(BISON) != "no"; \
then \
- $(BISON) $(BISONFLAGS) --output=$@ --defines=$(AUTOGEN_PARSER_HDR) $(top_srcdir)/$(CUSTOM_PARSER) && \
+ $(BISON) --output=$@ --defines=$(AUTOGEN_PARSER_HDR) $(top_srcdir)/$(CUSTOM_PARSER) && \
if cmp -s $@ $(top_srcdir)/$(BOOTSTRAP_PARSER); \
then \
cp $@ $(top_srcdir)/$(BOOTSTRAP_PARSER) && \