summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorPeng Huang <shawn.p.huang@gmail.com>2009-10-05 14:00:40 +0800
committerPeng Huang <shawn.p.huang@gmail.com>2009-10-05 14:00:40 +0800
commit66834d7005c5ef6f176b5b081d8b76973ff7605e (patch)
treed5090a6be8bc1b4af81f63705e17eb81f8bfad85 /configure.ac
parent05f27be4de0df3c59236badf44f1434b7b79d142 (diff)
downloadibus-libpinyin-66834d7005c5ef6f176b5b081d8b76973ff7605e.tar.gz
ibus-libpinyin-66834d7005c5ef6f176b5b081d8b76973ff7605e.tar.xz
ibus-libpinyin-66834d7005c5ef6f176b5b081d8b76973ff7605e.zip
WIP.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac19
1 files changed, 12 insertions, 7 deletions
diff --git a/configure.ac b/configure.ac
index 643cf0f..4b2b0fc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -78,15 +78,18 @@ AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Define to the read-only
AM_GNU_GETTEXT([external])
AM_GNU_GETTEXT_VERSION(0.16.1)
+AC_ARG_VAR(DATABASE, AS_HELP_STRING([pinyin database google or open-phrase, the default is google]))
+test x"$DATABASE" != x"open-phrase" && DATABASE=google
# --enable-build-db
-AC_ARG_ENABLE(pinyin-database,
- AS_HELP_STRING([--disable-pinyin-database],
- [do not build pinyin database]),
- [enable_pinyin_database=$enableval],
- [enable_pinyin_database=yes]
-)
-AM_CONDITIONAL(IBUS_BUILD_PINYIN_DATABASE, [test x"$enable_pinyin_database" = x"yes" ])
+# AC_ARG_ENABLE(pinyin-database,
+# AS_HELP_STRING([--enable-pinyin-database=[google,open-phrase]],
+# [do not build pinyin database]),
+# [enable_pinyin_database=$enableval],
+# [enable_pinyin_database=google]
+# )
+AM_CONDITIONAL(IBUS_BUILD_DB_GOOGLE, [test x"$DATABASE" = x"google" ])
+AM_CONDITIONAL(IBUS_BUILD_DB_OPEN_PHRASE, [test x"$DATABASE" = x"open-phrase" ])
# OUTPUT files
AC_CONFIG_FILES([ po/Makefile.in
@@ -97,6 +100,7 @@ src/pinyin.xml.in
setup/Makefile
setup/ibus-setup-pinyin
data/Makefile
+data/google/Makefile
data/icons/Makefile
m4/Makefile
])
@@ -108,5 +112,6 @@ Build options:
Version $VERSION
Install prefix $prefix
Build pinyin database $enable_pinyin_database
+ Pinyin datatbase $DATABASE
])