On Tue, Jun 26, 2001 at 11:42:07AM +0200, Marcus Meissner wrote:
On Tue, Jun 26, 2001 at 05:43:55PM +0900, Bang Jun-Young wrote:
Why does configure check for flex twice? On NetBSD I get:
checking for bison... no checking for byacc... no checking for flex... flex checking for yywrap in -lfl... yes checking for flex... flex
(as seen above, autoconf doesn't search for `yacc' for AC_PROG_YACC -- should be fixed)
It will use it as default if neither byacc nor flex are found.
The reason we check for 'flex' again is that the standard check sets LEX to 'lex' even if none is found, which lead to confusion during compile.
Our check is similar, but it finds out if 'lex' is present and aborts configure if not.
This has reduced compiling support queries :)
That's all fine and dandy :), but I think we should add a comment to this configure.in line, given the pretty confusing doubled configure output. I'm about 150% sure other people will want to submit the same "fixes" otherwise.