2 # Copyright (C) 2015 Mitsutoshi NAKANO <bkbin005@rinku.zaq.ne.jp>
4 # This program is free software; you can redistribute it and/or modify it
5 # under the terms of the GNU General Public License as published
6 # by the Free Software Foundation; either version 2 of the License,
7 # or (at your option) any later version.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty
11 # of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12 # See the GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program;
16 # if not, write to the Free Software Foundation, Inc.,
17 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 # Process this file with autoconf to produce a configure script.
22 AC_INIT([canna-yubin], [0.3.1.20180131.0],
23 [canna-yubin-misc@lists.osdn.me])
29 [--with-canna build Canna dictionary [[default=/var/lib/canna/dic/canna/]]],
31 AC_ARG_WITH([wnn], [--with-wnn build Wnn dictionary [[default=no]]], [],
34 case "x$with_canna" in
36 'xyes') CANNADICDIR='/var/lib/canna/dic/canna/' ;;
37 *) CANNADICDIR="$with_canna" ;;
39 case "x$CANNADICDIR" in
41 *) CANNATARGETS='yubin7.cbd yubin7.cld' ;;
46 'xyes') WNNDICDIR='/usr/local/lib/wnn/ja_JP/dic/yubin/' ;;
47 *) WNNDICDIR="$with_wnn" ;;
51 *) WNNTARGETS='yubin7.dic';;
54 # Checks for programs.
59 case "x$CANNADICDIR" in
62 AC_CHECK_PROGS(MKBINDIC, [mkbindic], [])
64 'x') AC_MSG_ERROR([could not find mkbindic. Did you install Canna?]) ;;
72 AC_CHECK_PROGS(ATOD, [atod], [])
75 AC_MSG_ERROR([could not find atod. Did you install Wnn and set your PATH? FreeWnn default, atod is installed /usr/local/bin/Wnn4/!])
81 AC_SUBST(CANNATARGETS)
86 # Checks for libraries.
88 # Checks for header files.
90 # Checks for typedefs, structures, and compiler characteristics.
92 # Checks for library functions.
94 AC_CONFIG_FILES([Makefile])