Commit 69c757b3 by Natanael Copa Committed by Stéphane Graber

lua: fix logic to enable lua support in configure

When there is no --enable-lua or --with-lua-pc, Lua should not be enabled. This fixes a bug introduced with 12e93188 (configure/makefile: Allow specify Lua pkg-config file with --with-lua-pc) that caused configure script to fail if lua headers was missing. Signed-off-by: 's avatarNatanael Copa <ncopa@alpinelinux.org> Acked-by: 's avatarStéphane Graber <stgraber@ubuntu.com>
parent 2caf9a97
......@@ -182,13 +182,13 @@ AC_ARG_WITH([lua-pc],
[Specify pkg-config package name for lua]
)],
[LUAPKGCONFIG=$with_lua_pc
enable_lua=yes], [with_lua_pc=auto])
enable_lua=yes])
AM_CONDITIONAL([ENABLE_LUA],
[test "x$enable_lua" = "xyes" -o "xwith_lua_pc != xno"])
[test "x$enable_lua" = "xyes"])
AM_COND_IF([ENABLE_LUA],
[AS_IF([test "x$with_lua_pc" = "xauto"],
[AS_IF([test "x$with_lua_pc" = "xyes"],
[PKG_CHECK_MODULES([LUA], [lua],[LUAPKGCONFIG=lua],
[PKG_CHECK_MODULES([LUA], [lua5.2],[LUAPKGCONFIG=lua5.2],
[PKG_CHECK_MODULES([LUA], [lua5.1],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment