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.0.20141226.0],
23 [canna-yubin-misc@lists.sourceforge.jp])
29 [--with-canna build Canna dictionary [[default=/var/lib/canna/dic/canna/]]],
32 AC_ARG_WITH([wnn], [--with-wnn build Wnn dictionary [[default=no]]], [],
42 CANNADICDIR='/var/lib/canna/dic/canna/'
43 cannaMk='Canna/Makefile'
47 CANNADICDIR="$with_canna"
48 cannaMk='Canna/Makefile'
56 WNNDICDIR='/usr/local/lib/wnn/ja_JP/dic/yubin/'
70 # Checks for programs.
74 if test "x$with_canna" != 'xno'
76 AC_CHECK_PROGS(MKBINDIC, [mkbindic], [])
77 if test "x$MKBINDIC" == 'x'
79 AC_MSG_ERROR([could not find mkbindic. Did you install Canna?])
84 if test "x$with_wnn" != 'xno'
86 AC_CHECK_PROGS(ATOD, [atod], [])
87 if test "x$ATOD" == 'x'
89 AC_MSG_ERROR([could not find atod. Did you install Wnn and set your PATH? FreeWnn default, atod is installed /usr/local/bin/Wnn4/!])
93 # Checks for libraries.
95 # Checks for header files.
97 # Checks for typedefs, structures, and compiler characteristics.
99 # Checks for library functions.