From: Mike Hopkirk(hops) <ho...@sc...> - 2000-05-04 22:57:23
|
> > > I'm trying to fix the config for finding flex in /usr/local > > but autoconf is proving its usual recalcitrant self. > > I should have some tweaks for that either today or tomorrow... > Yeah. I've run into the same problem with UW7. Once you remove flex from > your $PATH all works fine. OK - I've put some crowbars in configure.in so that it will now discover and use flex libs if they happen to be in /usr/local/lib. Its a bit more extensive that desired due to some rather stupid interdependencies wired into automake macros This basically makes AC_CHECK_LIB use -L/usr/local/lib when its checking that a prog using yywrap works - I don't see this affecting any platform that doesn't have the libs there but are instead in the default system lookup paths but pls let me know if theres any probs. While I was wallowing in that mire I also added handling for configure to support explicit specification of the lexer and yacc binaries to use. --with-lex --with-flex --with-yacc --with-byacc --with-bison run/build tested these on both osr5 and UW7. petr - if you use bison to build cscope on UW7, the egrep source has refs to alloca in it which then fail the link stage... This is probably handlable with an alloca in config.h and some creative macros (or we could add alloca.s src to the pkg) -- - hops Everything disclaimed (including disclaimer) ------<ho...@sc...>-------------------------------------- Mike Hopkirk (hops) | Whenever possible steal code. SCO Inc | Tom Duff. (ex) Bell Labs |