Patch to improve configuration of bison and flex
Peter Eisentraut <[email protected]> Sat, 24 Jan 2004 19:47:45 +0100
| Newsgroups | gmane.comp.db.rekall.devel |
|---|---|
| Message-ID | <[email protected]> |
Since there are apparently some problems with different versions of bison, I thought I'd create a small patch to make it easier for users to configure with different versions of bison and flex. This patch just adds the normal autoconf detection mechanism for bison and flex which can be overridden like "configure BISON=/else/where/bison". I also removed one apparently useless invocation of AC_PROG_YACC. _______________________________________________ Rekall-devel mailing list [email protected] http://www.mailman.a-i-s.co.uk/cgi-bin/mailman/listinfo/rekall-devel
rekall-yacc-config-patch
(text/x-diff, 2 KB)
diff -cr ../cvs-rekall/configure.in.in ./configure.in.in *** ../cvs-rekall/configure.in.in 2003-12-20 22:55:59.000000000 +0100 --- ./configure.in.in 2004-01-24 11:25:11.000000000 +0100 *************** *** 230,235 **** --- 230,239 ---- dnl Image readers/writers dnl KDE_CHECK_KIMGIO + + dnl Checks for programs. + AC_CHECK_PROGS(BISON, bison, bison) + AC_CHECK_PROGS(FLEX, flex, flex) dnl Checks for header files. AC_HEADER_DIRENT diff -cr ../cvs-rekall/kbase/configure.in.in ./kbase/configure.in.in *** ../cvs-rekall/kbase/configure.in.in 2003-11-15 00:07:41.000000000 +0100 --- ./kbase/configure.in.in 2004-01-24 11:23:06.000000000 +0100 *************** *** 20,27 **** fi AC_SUBST(NOOPT_CXXFLAGS) - AC_PROG_YACC - KDE_FIND_PATH(perl, PERL, [], [ AC_MSG_WARN([Couldn't find perl 5 or later. ical2vcal will no work.]) ], --- 20,25 ---- diff -cr ../cvs-rekall/libs/el32/Makefile.am ./libs/el32/Makefile.am *** ../cvs-rekall/libs/el32/Makefile.am 2004-01-21 13:12:55.000000000 +0100 --- ./libs/el32/Makefile.am 2004-01-24 11:31:36.000000000 +0100 *************** *** 31,40 **** #elt_LDADD = libel_interp.la el.tab.cpp: el.y lex.el_yy.c ! bison -pel_yy -o el.tab.cpp el.y lex.el_yy.c: el.l ! flex -Pel_yy el.l install-data-local: --- 31,40 ---- #elt_LDADD = libel_interp.la el.tab.cpp: el.y lex.el_yy.c ! $(BISON) -pel_yy -o el.tab.cpp el.y lex.el_yy.c: el.l ! $(FLEX) -Pel_yy el.l install-data-local: diff -cr ../cvs-rekall/sip/sip/Makefile.am ./sip/sip/Makefile.am *** ../cvs-rekall/sip/sip/Makefile.am 2003-12-01 14:26:19.000000000 +0100 --- ./sip/sip/Makefile.am 2004-01-24 11:30:35.000000000 +0100 *************** *** 13,22 **** parser.tab.c: parser.y ! bison $(srcdir)/parser.y lex.yy.c: lexer.l ! flex $(srcdir)/lexer.l AM_CFLAGS = -Wno-cast-qual --- 13,22 ---- parser.tab.c: parser.y ! $(BISON) $(srcdir)/parser.y lex.yy.c: lexer.l ! $(FLEX) $(srcdir)/lexer.l AM_CFLAGS = -Wno-cast-qual