Update copyright years
[m17n/m17n-contrib.git] / configure.ac
1 dnl Autoconf script for the m17n-contrib.
2 dnl Process this file with autoconf to produce a configure script.
3 dnl
4 dnl Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012
5 dnl   National Institute of Advanced Industrial Science and Technology (AIST)
6 dnl   Registration Number H15PRO112
7 dnl
8 dnl This file is part of the m17n-contrib; a sub-part of the m17n
9 dnl library.
10 dnl
11 dnl The m17n library is free software; you can redistribute it and/or
12 dnl modify it under the terms of the GNU Lesser General Public License
13 dnl as published by the Free Software Foundation; either version 2.1 of
14 dnl the License, or (at your option) any later version.
15 dnl
16 dnl The m17n library is distributed in the hope that it will be useful,
17 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
18 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
19 dnl Lesser General Public License for more details.
20 dnl
21 dnl You should have received a copy of the GNU Lesser General Public
22 dnl License along with the m17n library; if not, write to the Free
23 dnl Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
24 dnl Boston, MA 02110-1301, USA.
25
26 AC_INIT(m17n-contrib, 1.1.14, bugs-m17n-lib@m17n.org)
27 AM_INIT_AUTOMAKE
28 AM_GNU_GETTEXT([external])
29
30 # Checks for programs.
31 AC_PROG_AWK
32
33 AC_CHECK_PROG(HAVE_M17N_DB, m17n-db, yes)
34 if test "x$HAVE_M17N_DB" != "xyes"; then
35   AC_MSG_ERROR([Please install m17n-db at first.
36 It is available at <http://www.m17n.org/m17n-lib>.])
37 fi
38
39 if test "x$prefix" = "xNONE"; then
40   M17NDIR=`m17n-db`
41 else
42   M17NDIR='${datadir}/m17n'
43 fi
44 AC_SUBST(M17NDIR)
45
46 INPUT_METHOD=`echo im/*.mim`
47 AC_SUBST(INPUT_METHOD)
48 ICONS=`echo im/*.png`
49 AC_SUBST(ICONS)
50
51 AC_CONFIG_FILES([Makefile po/Makefile.in])
52 AC_OUTPUT