dnl AM_PATH_MECAB dnl Adds support for MeCab AC_DEFUN([AM_PATH_MECAB], [ AC_ARG_WITH(mecab-config, AC_HELP_STRING([--with-mecab-config=PATH],[path to mecab-config]), [ AC_MSG_RESULT([using $withval for mecab-config]) MECAB_CONFIG="$withval" ], [ AC_PATH_PROG(MECAB_CONFIG, mecab-config, no) ]) HAVE_MECAB="no" if test "$MECAB_CONFIG" != "no"; then MECAB_INCLUDES="-I`$MECAB_CONFIG --inc-dir`" MECAB_LIBS=`$MECAB_CONFIG --libs` AC_SUBST(MECAB_INCLUDES) AC_SUBST(MECAB_LIBS) HAVE_MECAB="yes" fi AC_SUBST(HAVE_MECAB) ])