5 # Copyright (c) 2007-2008 Huang Peng <shawn.p.huang@gmail.com>
8 # This library is free software; you can redistribute it and/or
9 # modify it under the terms of the GNU Lesser General Public
10 # License as published by the Free Software Foundation; either
11 # version 2 of the License, or (at your option) any later version.
13 # This library is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU Lesser General Public License for more details.
18 # You should have received a copy of the GNU Lesser General Public
19 # License along with this program; if not, write to the
20 # Free Software Foundation, Inc., 59 Temple Place, Suite 330,
21 # Boston, MA 02111-1307 USA
25 AC_INIT([ibus],[0.0.1],[https://bugs.launchpad.net/ibus],[ibus])
26 AM_INIT_AUTOMAKE([1.10])
29 AC_CONFIG_HEADERS([config.h])
30 AC_CONFIG_MACRO_DIR([m4])
32 # define PACKAGE_VERSION_* variables
46 AC_CHECK_HEADERS([sys/inotify.h])
50 PKG_CHECK_MODULES(GLIB2, [
53 PKG_CHECK_MODULES(GOBJECT2, [
56 PKG_CHECK_MODULES(PYGOBJECT2, [
62 PKG_CHECK_MODULES(GTK2, [
66 PKG_CHECK_MODULES(PYGTK2, [
71 PKG_CHECK_MODULES(DBUS, [
76 AC_PATH_PROG(PYGTK_CODEGEN, pygtk-codegen-2.0, no)
80 PYTHON_CONFIG=`type -p python$PYTHON_VERSION-config`
81 if test "$PYTHON_CONFIG" != ""; then
82 PYTHON_CFLAGS=`$PYTHON_CONFIG --includes`
83 PYTHON_LIBS=`$PYTHON_CONFIG --libs`
85 PYTHON_CFLAGS=`$PYTHON $srcdir/python-config.py --includes`
86 PYTHON_LIBS=`$PYTHON $srcdir/python-config.py --libs`
88 AC_SUBST(PYTHON_CFLAGS)
94 AC_CHECK_PROG(DB2HTML, db2html, true, false)
95 AM_CONDITIONAL(HAVE_DOCBOOK, $DB2HTML)
98 # define GETTEXT_* variables
100 AC_SUBST(GETTEXT_PACKAGE)
101 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Package name for gettext])
103 AM_GNU_GETTEXT([external])
104 AM_GNU_GETTEXT_VERSION(0.16.1)
106 # Args for make distcheck
107 DISTCHECK_CONFIGURE_FLAGS="--enable-gtk-doc"
108 AC_SUBST(DISTCHECK_CONFIGURE_FLAGS)
111 AC_CONFIG_FILES([ po/Makefile.in