6 # LUA ----------------------------------------------------
9 -[ --with-lua[[=DIR]] specify the path to the Lua 5.1 include files [[autodetect]]],
11 - if test "x$withval" != "x"; then
18 -FUNGU_SEARCH_HEADER( [lua.h], [$lua_dir /usr/local /usr], [ include/lua5.1 include/lua / ] )
19 -if test "x$FUNGU_FOUND_HEADER" = "xno"; then
20 - PKG_CHECK_MODULES(LUA, [lua >= 5.1],[],[
21 - PKG_CHECK_MODULES(LUA, [lua5.1 >= 5.1],[],[
22 - AC_MSG_ERROR(Lua 5.1 not found. You can specify its location with [[--with-lua=/path/to/include/lua51]])
24 +PKG_CHECK_MODULES(LUA, [lua >= 5.1],[],[
25 + PKG_CHECK_MODULES(LUA, [lua5.1 >= 5.1],[],[
26 + AC_MSG_ERROR(Lua 5.1 not found)
29 - CFLAGS="$CFLAGS $FUNGU_FOUND_HEADER"
30 - CPPFLAGS="$CPPFLAGS $FUNGU_FOUND_HEADER"
31 - LDFLAGS="$LDFLAGS -llua5.1"