summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2018-10-23 11:29:59 +0800
committerPeng Wu <alexepico@gmail.com>2018-10-23 11:29:59 +0800
commit367195725e56c3dbc4cea5ab562abdda4fbeb144 (patch)
treeb5ebb65211a21b7825bad135d94ff09d571a9f91
parent9c08655cdf87e948dda61f452167b9281686334d (diff)
downloadibus-libzhuyin-367195725e56c3dbc4cea5ab562abdda4fbeb144.zip
ibus-libzhuyin-367195725e56c3dbc4cea5ab562abdda4fbeb144.tar.gz
ibus-libzhuyin-367195725e56c3dbc4cea5ab562abdda4fbeb144.tar.xz
update configure.ac
-rw-r--r--configure.ac17
1 files changed, 14 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index fabfeb6..8c4404c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -62,9 +62,6 @@ PKG_CHECK_MODULES(LIBZHUYIN, [
libzhuyin >= 1.0.91
], [enable_libzhuyin=yes])
-# check opencc
-PKG_CHECK_MODULES(OPENCC, [opencc >= 1.0.0], [enable_opencc=yes])
-
# check if ibus_config_get_values, which is available in ibus-1.3.99+ (git master)
save_CFLAGS="$CFLAGS"
save_LIBS="$LIBS"
@@ -101,6 +98,20 @@ if test x"$enable_boost" = x"yes"; then
fi
AM_CONDITIONAL(HAVE_BOOST, test x"$enable_boost" = x"yes")
+# --enable-opencc
+AC_ARG_ENABLE(opencc,
+ AC_HELP_STRING([--enable-opencc],
+ [Use opencc for simplified and traditional Chinese conversion]),
+ [enable_opencc=$enableval],
+ [enable_opencc=no]
+)
+if test x"$enable_opencc" = x"yes"; then
+ # check opencc
+ PKG_CHECK_MODULES(OPENCC, [opencc >= 1.0.0], [
+ AC_DEFINE(HAVE_OPENCC, 1, [Define if found opencc])
+ ])
+fi
+
# define GETTEXT_* variables
GETTEXT_PACKAGE=ibus-libzhuyin
AC_SUBST(GETTEXT_PACKAGE)