updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / funguloids / funguloids-lua.patch
blob85228ff27ec49aefa27daca3b3b767fe2abbf11f
1 --- configure.ac
2 +++ configure.ac
3 @@ -47,30 +47,11 @@
6 # LUA ----------------------------------------------------
7 -AC_LANG_PUSH(C)
8 -AC_ARG_WITH(lua,
9 -[ --with-lua[[=DIR]] specify the path to the Lua 5.1 include files [[autodetect]]],
11 - if test "x$withval" != "x"; then
12 - lua_dir="$withval"
13 - fi
14 -],[
15 - lua_dir=
16 -])
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]])
23 - ])
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)
28 -else
29 - CFLAGS="$CFLAGS $FUNGU_FOUND_HEADER"
30 - CPPFLAGS="$CPPFLAGS $FUNGU_FOUND_HEADER"
31 - LDFLAGS="$LDFLAGS -llua5.1"
32 -fi
33 -AC_LANG_POP
34 +])
36 AC_SUBST(LUA_CFLAGS)
37 AC_SUBST(LUA_LIBS)