1 # Copyright © 2008 Cosimo Cecchi <cosimoc@gnome.org>
3 # This program is free software; you can redistribute it and/or modify it
4 # under the terms of the GNU General Public License as published by the
5 # Free Software Foundation; either version 2 of the License, or (at your
6 # option) any later version.
8 # This program is distributed in the hope that it will be useful, but
9 # WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 # General Public License for more details.
13 # You should have received a copy of the GNU General Public License along
14 # with this program; if not, write to the Free Software Foundation, Inc.,
15 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17 dnl Process this file with autoconf to produce a configure script.
19 m4_define([mmediamanager_version_major],[0])
20 m4_define([mmediamanager_version_minor],[1])
21 m4_define([mmediamanager_version_micro],[0])
22 m4_define([mmediamanager_version],[mmediamanager_version_major.mmediamanager_version_minor.mmediamanager_version_micro])
24 AC_INIT([mmediamanager],[mmediamanager_version],[http://repo.or.cz/w/mmediamanager.git])
29 AC_CONFIG_HEADERS([config.h])
30 AC_CONFIG_SRCDIR([configure.ac])
32 AM_INIT_AUTOMAKE([1.9 foreign dist-bzip2 no-dist-gzip tar-ustar])
47 AC_PATH_PROG([GLIB_MKENUMS],[glib-mkenums])
49 ######################
51 ######################
53 AC_PATH_PROG([DBUS_BINDING_TOOL],[dbus-binding-tool],[no])
55 if test "$DBUS_BINDING_TOOL" = "no"; then
56 AC_MSG_ERROR([dbus-binding-tool not found])
59 ########################
60 # internationalization #
61 ########################
63 GETTEXT_PACKAGE=mmediamanager
64 AC_SUBST([GETTEXT_PACKAGE])
65 AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE],["$GETTEXT_PACKAGE"], [Gettext package])
68 IT_PROG_INTLTOOL([0.40.0])
74 PKG_CHECK_MODULES(MMEDIAMANAGER, [glib-2.0
81 AC_SUBST(MMEDIAMANAGER_CFLAGS)
82 AC_SUBST(MMEDIAMANAGER_LIBS)
88 PKG_CHECK_MODULES(DBUS, [dbus-glib-1
98 PKG_CHECK_MODULES(GTK, [gtk+-2.0 >= 2.13])
118 libmmanager-gtk/libmmanager-gtk.pc
119 libmmanager-gtk/Makefile
121 test/clients/Makefile