null+****@clear*****
null+****@clear*****
2010年 11月 15日 (月) 10:32:04 JST
Kouhei Sutou 2010-11-15 01:32:04 +0000 (Mon, 15 Nov 2010)
New Revision: 4a4ff941142a9447209626e90c6685a0f1482636
Log:
believe mecab-config existense on cross compiling.
Modified files:
configure.ac
Modified: configure.ac (+5 -1)
===================================================================
--- configure.ac 2010-11-13 11:03:16 +0000 (b6bc223)
+++ configure.ac 2010-11-15 01:32:04 +0000 (11bdeb6)
@@ -558,7 +558,11 @@ if test "x$with_mecab" = "xyes"; then
AC_ARG_WITH(mecab-config,
[AS_HELP_STRING([--with-mecab-config=PATH],
[set mecab-config location. [default=auto-detect]])],
- [AC_CHECK_FILE("$withval", MECAB_CONFIG="$withval", MECAB_CONFIG=no)],
+ [if test "$cross_compiling" = "yes"; then
+ MECAB_CONFIG="$withval"
+ else
+ AC_CHECK_FILE("$withval", MECAB_CONFIG="$withval", MECAB_CONFIG=no)
+ fi],
[AC_PATH_PROG(MECAB_CONFIG, mecab-config, no)])
if test "x$MECAB_CONFIG" = "xno"; then
with_mecab="no"