lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Tuesday 25 May 2004 09:54, Alex Sandro Queiroz e Silva wrote:
> Hallo,
>
> Bounty Hunter wrote:
> >Im not so good with autotools, can you explain me how to include it in
> >configure.ac and use it?
>
>     Copy lua.m4 to /usr/share/automake or include its contents in a file
> called acinclude.m4 in your project's directory.

Once you did that, you need to include a line like
AM_PATH_LUA()
to check for Lua 5.0 or
AM_PATH_LUA(5.0.2)
to check for a specific minimum version. It adds an option --with-lua-prefix 
to your configure script (by default it tries to guess the Lua prefix by 
fetching the location of the lua interpreter in the users' $PATH). I don't 
know if the version matcher works for Lua < 5, though (it assumes LUA_VERSION 
is a string in the format "Lua x.y.z" or "Lua x.y", don't know if this was 
true back then).

-- Hisham