[m-rev.] for review: user-defined events

Julien Fischer juliensf at csse.unimelb.edu.au
Mon Nov 20 17:52:01 AEDT 2006


On Mon, 20 Nov 2006, Zoltan Somogyi wrote:

> On 20-Nov-2006, Julien Fischer <juliensf at csse.unimelb.edu.au> wrote:
>> Rather than just assuming the existence of bison and yacc the configure
>> script should be modified to check, e.g. using the AC_PROG_LEX and
>> AC_PROG_YACC macros.
>
> The code there assumes flex and bison; it won't work with old lex and yacc
> (lex doesn't have %option noyywrap, and yacc doesn't take an option to specify
> the prefix).

Despite what the names might suggest the above macros will look for 
bison and flex respectively *before* looking for lex and yacc.  The
code in the configure script needs to along the lines of:

 	AC_PROG_FLEX
 	if test "$LEX" != "flex"
 	then
 		<error message and abort>
 	fi

and similarly for bison.

Julien.
--------------------------------------------------------------------------
mercury-reviews mailing list
Post messages to:       mercury-reviews at csse.unimelb.edu.au
Administrative Queries: owner-mercury-reviews at csse.unimelb.edu.au
Subscriptions:          mercury-reviews-request at csse.unimelb.edu.au
--------------------------------------------------------------------------



More information about the reviews mailing list