On Jan 15, 2008 2:45 PM, Francesco Montorsi <[EMAIL PROTECTED]> wrote:
> John Labenski ha scritto:
>
> > On Jan 15, 2008 9:59 AM, Rob Kendrick <[EMAIL PROTECTED]> wrote:
> >> On Mon, 2008-01-14 at 12:07 -0500, John Labenski wrote:
> >>
> >>> Yes, if Lua is in your include paths it will try to find it and if
> >>> found will use it by default, else specify the path.
> >>>
> >> Doesn't look like it's passing /usr/include/lua5.1/ to any of the
> >> invocations of the compiler.
> >>
> >
> > Fixed now, hopefully, please try again.
> Sorry, but I don't understand this last change to configure.ac...
>
> I've modified the test and tested it under Ubuntu 7.10 with system's
> lua5.1 installed and it seems to work...
>

The Ubuntu package liblua5.1-0-dev puts the includes in
"/usr/include/lua5.1". My last commit for the bakefiles and
configure.ac was to remove the "/include" from $(LUA_DIR)/include so
you could exactly specify where the includes are.

I'm not sure we want to force "$lua_prefix/include/lua5.1" because
we're going to find someone with some system who has it elsewhere and
then we'll have more problems. It is a good idea to check
/usr/include/lua5.1 however.

# default include folder for lua 5.1 seems to be $lua_prefix/include/lua5.1
LUA_INCLUDE_DIR="$lua_prefix/include/lua5.1"
LUA_LIB_DIR="$lua_prefix/lib"

I would have kept this code, the includes can be anywhere, but the
system Lua libs should be in usr/lib or usr/local/lib or somewhere in
the  standard lib search path so I set our Lua lib path to the local
one which is a harmless duplication.

http://wxlua.cvs.sourceforge.net/wxlua/wxLua/build/autoconf/configure.ac?r1=1.64&r2=1.65

if test ! $lua_dir = ""; then   
   LUA_INCLUDE_DIR=$lua_dir     
   # We don't know where the system LUA_LIB_DIR is, just duplicate our
lib path
   LUA_LIB_DIR="`pwd`/lib"      
   echo "  Lua include path: '$LUA_INCLUDE_DIR'"        
fi

Regards,
    John

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to