# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+if IBUS_BUILD_LUA_EXTENSION
+LUADIR=lua
+endif
+
SUBDIRS = \
data \
- lua \
+ $(LUADIR) \
src \
setup \
m4 \
)
AM_CONDITIONAL(IBUS_BUILD_DB_OPEN_PHRASE, [test x"$enable_db_open_phrase" = x"yes" ])
-# --disable-lua-extension
+# --enable-lua-extension
AC_ARG_ENABLE(lua-extension,
- AS_HELP_STRING([--disable-lua-extension],
+ AS_HELP_STRING([--enable-lua-extension],
[build lua extension]),
- [ if test "$enableval" = yes; then
- enable_lua_extension = no
- else
- enable_lua_extension = yes
- fi
- ],
- [enable_lua_extension=yes]
+ [enable_lua_extension=$enableval],
+ [enable_lua_extension=no]
)
# check lua
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-if IBUS_BUILD_LUA_EXTENSION
lua_script_DATA = base.lua \
$(NULL)
-endif
lua_scriptdir = $(pkgdatadir)
-if IBUS_BUILD_LUA_EXTENSION
noinst_LTLIBRARIES = \
libpylua.la \
$(NULL)
-endif
libpylua_la_SOURCES = \
lua-plugin.h \
@LUA_LIBS@ \
$(NULL)
-if IBUS_BUILD_LUA_EXTENSION
TESTS = \
lua-ext-console \
test-lua-plugin \
$(NULL)
-endif
noinst_PROGRAMS = \
$(TESTS) \