Re: flex [was mod_python 3.2.0-BETA available for testing]
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > Apache Mod-Python > Re: flex [was mod_python 3.2.0-BETA available for testing]




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Re: flex [was mod_python 3.2.0-BETA available for testing]  
Nick


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-26-05 10:46 PM

Jim,

I don't think it's too verbose, but maybe you could delay it to the end of
the configure script so you don't have to either interrupt with control-C or
scroll back to see what went "wrong."

Here's another idea: Fail the flex test fairly silently (e.g. just "no"),
but fall back to a script that generates a nice, verbose error message
explaining the situation.  That way, when the user tries to call "make"
after modifying the .l file, the fake flex alternative script gets called,
displays the message, and exits with status 1.

Nick

Jim Gallacher wrote:
> Gregory (Grisha) Trubetskoy wrote:
> 
>
> I've made the changes to configure.in, but before I commit I wanted to
> get some feedback. Are the following configure messages unclear or too
> verbose?
>
> For the case of the missing flex, ./configure will generate:
> ...
> checking for --with-flex... no
> checking for flex... no
> configure: WARNING: flex  not found
>   You can generally ignore this warning unless you need to regenerate
>   psp_parser.c from psp_parse.l. If you do need regenerate psp_parser.c,
>   use --with-flex to specify the location of flex.
>   See the README for more information.
> ...
>
> For the case of the wrong flex version, ./configure will generate:
> ...
> checking for --with-flex... no
> checking for flex... /usr/local/sbin/flex
> found /usr/local/sbin/flex, we'll use this. Use --with-flex to specify
> another.
> checking flex version... configure: WARNING: Flex version 2.5.4 found.
>   Version 2.5.31 or greater is required.
>   You can generally ignore this warning unless you need to regenerate
>   psp_parser.c from psp_parse.l. If you do need regenerate psp_parser.c,
>   use --with-flex to specify the location of the correct flex version.
>   See the README for more information.
> ...
>
> Any comments?
>
> Jim







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 11:18 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register