Re: flex -lfl

2000-03-27 Thread Akim Demaille
> "Sascha" == Sascha Ziemann <[EMAIL PROTECTED]> writes: Sascha> - How can I check for flex and bison instead of lex and yacc? Sascha> I use some flex/bison specific features, which would not work Sascha> with lex/yacc. Here's what I do: # I want flex, and only flex AM_PROG_LEX if test "$LE

Re: flex -lfl

2000-03-24 Thread Alexandre Oliva
On Mar 24, 2000, Tom Tromey <[EMAIL PROTECTED]> wrote: > Try doing "LEX=flex" and "YACC=bison" in configure.in before running > the macros. Bleah. Even better: LEX=${LEX-flex} YACC=${YACC-bison} So the user can override these variables, if s/he doesn't have flex or bison in the PATH. Sascha>

Re: flex -lfl

2000-03-24 Thread Tom Tromey
Sascha> I don't specify -lfl and I don't use LIBS, so I can not use Sascha> LIBADD instead. I don't understand this. Anyway, the current automake doesn't force you to link with @LEXLIB@. Neither did automake 1.4, if I remember correctly. So I don't understand why you are seeing -lfl on your link

Re: flex -lfl

2000-03-24 Thread Sascha Ziemann
Bob Friesenhahn <[EMAIL PROTECTED]> writes: | Use LIBADD rather than LIBS. LIBS use used by all libraries, while | LIBADD must be specified individually for each library. Akim Demaille <[EMAIL PROTECTED]> writes: | Just don't use -lfl at all. I don't specify -lfl and I don't use LIBS, so I ca

Re: flex -lfl

2000-03-24 Thread Tom Tromey
> "Sascha" == Sascha Ziemann <[EMAIL PROTECTED]> writes: Sascha> bin_PROGRAMS = rlpd rlpc Sascha> rlpd_SOURCES = rlpd.c rlp.c errwrap.c conf_parser.y conf_lexer.l Sascha> rlpc_SOURCES = rlpc.c rlp.c errwrap.c Sascha> How can I prevent the second program (rlpc) from beeing linked Sascha> with

Re: flex -lfl

2000-03-24 Thread Akim Demaille
> "Sascha" == Sascha Ziemann <[EMAIL PROTECTED]> writes: Sascha> One needs -lfl and the other not. Just don't use -lfl at all. It contains a dummy main, which you certainly already have available somewhere else, and a dummy yywrap, which you can write: return 1. Alternatively, use %option

flex -lfl

2000-03-23 Thread Sascha Ziemann
Hi, I have defined two programs: bin_PROGRAMS = rlpd rlpc rlpd_SOURCES = rlpd.c rlp.c errwrap.c conf_parser.y conf_lexer.l rlpc_SOURCES = rlpc.c rlp.c errwrap.c One needs -lfl and the other not. But the makefile generated by automake compiles it in this way: gcc -DHAVE_CONFIG_H -DSYSCONFDIR=\