On Mon, Dec 22, 2003 at 07:50:13PM +0000, Tom Payne wrote: > The autoconf script, further updated. > > Changes: > - fixed handling of debian's lua-config50 script > - use pkg-config lua if possible (will propagate pkg-config script upstream > to lua developers) > > Notes: > > Use > ./configure --with-lua-suffix=50 > on debian to ensure the autoconf script uses lua-config50 not lua-config
Debian Lua 4.0 packages still get used, although it finds 5.0.1 from /usr/local. Disabling the pkgconfig stuff fixes things, but it might be best to check the version of the used library/headers in addition to the lua executable (strcmp(lua_version(), "Lua 5.0.1")>=0 might suffice?). checking for lua-config... /usr/bin/lua-config checking for lua... /usr/local/bin/lua checking for lua version >= 5.0.1... yes (found 5.0.1) checking for luac... /usr/local/bin/luac checking for lua includes... -I/usr/include/lua40 checking for lua libraries... -L/usr/include -llualib40 -llua40 > Warning about undefined "snprintf" is because snprintf is defined in > stdio.h which (according to my man pages), which is not #included by ion. Apparently the XOPEN_SOURCE options are not defined in the standard system.mk and setting those them causes snprintf not be defined. -- Tuomo
