-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
95 lines (79 loc) · 2.37 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# -*- Autoconf -*-
# Copyright (C) 2015 Mitsutoshi NAKANO <[email protected]>
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published
# by the Free Software Foundation; either version 2 of the License,
# or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty
# of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program;
# if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.69])
AC_INIT([canna-yubin], [0.3.1.20150227.0],
AM_INIT_AUTOMAKE
# Checks for options.
AC_ARG_WITH([canna],
[--with-canna build Canna dictionary [[default=/var/lib/canna/dic/canna/]]],
[], [with_canna=yes])
AC_ARG_WITH([wnn], [--with-wnn build Wnn dictionary [[default=no]]], [],
[with_wnn=no])
case "x$with_canna" in
'xno') ;;
'xyes') CANNADICDIR='/var/lib/canna/dic/canna/' ;;
*) CANNADICDIR="$with_canna" ;;
esac
case "x$CANNADICDIR" in
'x') ;;
*) CANNATARGETS='yubin7.cbd yubin7.cld' ;;
esac
case "x$with_wnn" in
'xno') ;;
'xyes') WNNDICDIR='/usr/local/lib/wnn/ja_JP/dic/yubin/' ;;
*) WNNDICDIR="$with_wnn" ;;
esac
case "x$WNNDICDIR" in
'x') ;;
*) WNNTARGETS='yubin7.dic';;
esac
# Checks for programs.
AC_PROG_INSTALL
AC_PROG_MKDIR_P
case "x$CANNADICDIR" in
'x') ;;
x*)
AC_CHECK_PROGS(MKBINDIC, [mkbindic], [])
case "x$MKBINDIC" in
'x') AC_MSG_ERROR([could not find mkbindic. Did you install Canna?]) ;;
esac
;;
esac
case "x$WNNDICDIR" in
'x') ;;
x*)
AC_CHECK_PROGS(ATOD, [atod], [])
case "x$ATOD" in
'x')
AC_MSG_ERROR([could not find atod. Did you install Wnn and set your PATH? FreeWnn default, atod is installed /usr/local/bin/Wnn4/!])
;;
esac
;;
esac
AC_SUBST(CANNATARGETS)
AC_SUBST(WNNTARGETS)
AC_SUBST(CANNADICDIR)
AC_SUBST(WNNDICDIR)
# Checks for libraries.
# Checks for header files.
# Checks for typedefs, structures, and compiler characteristics.
# Checks for library functions.
AC_CONFIG_FILES([Makefile])
AC_OUTPUT