summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2010-07-06 12:42:15 +0800
committerPeng Wu <alexepico@gmail.com>2010-07-08 13:17:34 +0800
commit6cc8818cf72cbe7b56c6394030c6256178e71d28 (patch)
treee386616817256c91190f3c2f8bda0e60d62d833c /configure.ac
parent1ab6137e03e3d63968544e318d74ff36b807a611 (diff)
downloadibus-libpinyin-6cc8818cf72cbe7b56c6394030c6256178e71d28.tar.gz
ibus-libpinyin-6cc8818cf72cbe7b56c6394030c6256178e71d28.tar.xz
ibus-libpinyin-6cc8818cf72cbe7b56c6394030c6256178e71d28.zip
fixes ubuntu build.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac12
1 files changed, 11 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 748abce..827c979 100644
--- a/configure.ac
+++ b/configure.ac
@@ -169,9 +169,19 @@ AC_ARG_ENABLE(lua-extension,
PKG_CHECK_MODULES(LUA, [
lua
], [],
-[enable_lua_extension=no]
+[has_lua_extension=no]
)
+if test x"$has_lua_extension" = x"no";
+then
+ PKG_CHECK_MODULES(LUA, [
+ lua5.1
+ ], [],
+ [enable_lua_extension=no]
+ );
+fi
+
+
AM_CONDITIONAL(IBUS_BUILD_LUA_EXTENSION, [test x"$enable_lua_extension" = x"yes"])
# OUTPUT files