null+****@clear*****
null+****@clear*****
2012年 5月 30日 (水) 10:55:37 JST
Susumu Yata 2012-05-30 10:55:37 +0900 (Wed, 30 May 2012)
New Revision: 4afcfdf3fa35de4027973fdfb17956665d7423ee
Log:
Update configure.ac to accept only KyTea 0.4.2 or later.
Modified files:
configure.ac
Modified: configure.ac (+5 -1)
===================================================================
--- configure.ac 2012-05-30 10:02:53 +0900 (24e24df)
+++ configure.ac 2012-05-30 10:55:37 +0900 (aa8e8a7)
@@ -828,6 +828,7 @@ fi
AM_CONDITIONAL(WITH_MECAB, test "x$with_mecab" = "xyes")
# KyTea
+REQUIRED_MINIMUM_KYTEA_VERSION=0.4.2
AC_ARG_WITH(kytea,
[AS_HELP_STRING([--with-kytea],
[use KyTea for morphological analysis. [default=auto]])],
@@ -837,7 +838,10 @@ AC_MSG_CHECKING([whether enable KyTea])
AC_MSG_RESULT($with_kytea)
if test "x$with_kytea" != "xno"; then
m4_ifdef([PKG_CHECK_MODULES], [
- PKG_CHECK_MODULES([KYTEA], [kytea], [kytea_exists=yes], [kytea_exists=no])
+ PKG_CHECK_MODULES([KYTEA],
+ [kytea >= $REQUIRED_MINIMUM_KYTEA_VERSION],
+ [kytea_exists=yes],
+ [kytea_exists=no])
],
[kytea_exists=no])
if test "$kytea_exists" = "no" -a "x$with_kytea" = "xyes"; then