help-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bison and automake


From: tys lefering
Subject: bison and automake
Date: Wed, 10 Mar 2010 22:24:35 +0100
User-agent: SquirrelMail/1.4.18

Hello all,

There is a question about bison and automake
in the automake maillist, maybe a bison user
has an answer to it:

http://lists.gnu.org/archive/html/automake/2010-03/msg00055.html

Here is the text of the message:

I have a problem with some Lex and Yacc files.  They require newer
versions of flex/bison/m4 be present on the system to correctly
generate code, and that's not something that can always be assumed.
I've cooked up some configure logic to check the version of flex
available in configure.ac.  What I'm trying to do is have the build
run flex and bison if the versions available are high enough, and if
that's not possible I'd like to fall back to building alternate static
copies of the generated source code.  This functions in normal build
situations, but a make distcheck on a machine where flex and yacc are
not up to par still results in make attempting to process the .ll and
.yy files, despite the conditional logic.

Is there a way at the Makefile.am level to prevent the distcheck
target running flex and bison on these files?

ps. and wondering how the configure.ac logic
looks like for the bison version checks and
deciding to run bison or not to run bison and
use supplied copy of generated code.

Thanks,
Tys Lefering.

-- 
"Some day Linux will run out of silly names for often used programs."






reply via email to

[Prev in Thread] Current Thread [Next in Thread]