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 m4_define([mmediamanager_version_major],[0])
18 m4_define([mmediamanager_version_minor],[1])
19 m4_define([mmediamanager_version_micro],[0])
20 m4_define([mmediamanager_version],[mmediamanager_version_major.mmediamanager_version_minor.mmediamanager_version_micro])
22 AC_INIT([mmediamanager],[mmediamanager_version],[http://repo.or.cz/w/mmediamanager.git])
27 AC_CONFIG_HEADERS([config.h])
28 AC_CONFIG_SRCDIR([configure.ac])
29 AC_CONFIG_MACRO_DIR([m4])
31 AM_INIT_AUTOMAKE([1.9 foreign dist-bzip2 no-dist-gzip tar-ustar])
35 AC_ENABLE_SHARED([yes])
36 AC_ENABLE_STATIC([no])
38 ######################
39 # Check for programs #
40 ######################
57 AC_PATH_PROG([GLIB_MKENUMS],[glib-mkenums])
59 ######################
61 ######################
63 AC_PATH_PROG([DBUS_BINDING_TOOL],[dbus-binding-tool],[no])
65 if test "$DBUS_BINDING_TOOL" = "no"; then
66 AC_MSG_ERROR([dbus-binding-tool not found])
69 ########################
70 # internationalization #
71 ########################
73 GETTEXT_PACKAGE=mmediamanager
74 AC_SUBST([GETTEXT_PACKAGE])
75 AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE],["$GETTEXT_PACKAGE"], [Gettext package])
78 IT_PROG_INTLTOOL([0.40.0])
84 PKG_CHECK_MODULES(MMEDIAMANAGER, [glib-2.0
91 AC_SUBST(MMEDIAMANAGER_CFLAGS)
92 AC_SUBST(MMEDIAMANAGER_LIBS)
98 PKG_CHECK_MODULES(DBUS, [dbus-glib-1
101 AC_SUBST(DBUS_CFLAGS)
108 PKG_CHECK_MODULES(GTK, [gtk+-2.0 >= 2.13])
126 libmmanager/libmmanager.pc
128 libmmanager-gtk/libmmanager-gtk.pc
129 libmmanager-gtk/Makefile
132 test/clients/Makefile
133 test/server-app/Makefile
136 docs/libmmanager/Makefile
137 docs/libmmanager-gtk/Makefile