dnl Guile-Mecab --- GNU Guile bindings for mecab, yet another part of speech dnl analyzer. dnl Copyright © 2021 Julien Lepiller dnl dnl This file is part of Guile-Mecab. dnl dnl Guile-Mecab is free software; you can redistribute it and/or modify it dnl under the terms of the GNU General Public License as published by dnl the Free Software Foundation; either version 3 of the License, or dnl (at your option) any later version. dnl dnl Guile-Mecab is distributed in the hope that it will be useful, but dnl WITHOUT ANY WARRANTY; without even the implied warranty of dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU dnl General Public License for more details. dnl dnl You should have received a copy of the GNU General Public License dnl along with Guile-Mecab. If not, see . AC_INIT([Guile-Mecab], [0.1.0], [], [], [https://git.lepiller.eu/guile-mecab]) AC_CONFIG_SRCDIR(mecab) AC_CONFIG_AUX_DIR([build-aux]) AC_CONFIG_MACRO_DIR([m4]) AM_INIT_AUTOMAKE([-Wall -Werror foreign color-tests]) dnl Enable silent rules by default. AM_SILENT_RULES([yes]) GUILE_PKG([3.0 2.2 2.0]) GUILE_PROGS dnl (srfi srfi-64) appeared in Guile 2.0.11. GUILE_MODULE_REQUIRED([srfi srfi-64]) GUILE_MODULE_REQUIRED([bytestructures guile]) AC_ARG_WITH( mecab-config, [ --with-mecab-config=PATH set mecab-config location [search path]], AC_MSG_RESULT(using $with_mecab_config for mecab-config) MECAB_CONFIG=$with_mecab_config, [AC_PATH_PROGS(MECAB_CONFIG, mecab-config, no)] ) if test $MECAB_CONFIG = "no"; then AC_MSG_ERROR(mecab-config is not found in your system) fi AC_SUBST(MECAB_CONFIG) AC_ARG_WITH( mecab-libdir, [ --with-mecab-libdir=PATH set mecab library location [`mecab-config prefix`/lib]], AC_MSG_RESULT(using $with_mecab_libdir for mecab libdir) MECAB_LIBDIR=$with_mecab_libdir, [MECAB_LIBDIR="`$MECAB_CONFIG --prefix`/lib"] ) AC_SUBST([MECAB_LIBDIR]) AC_CONFIG_FILES([Makefile mecab/configuration.scm]) AC_CONFIG_FILES([pre-inst-env], [chmod +x pre-inst-env]) if test "$cross_compiling" != no; then GUILE_TARGET="--target=$host_alias" AC_SUBST([GUILE_TARGET]) fi AC_OUTPUT