Update test for coverage of all the view signals.
[mmediamanager.git] / configure.ac
blobb4530762777d9e1288185939cb9316cce47a29c8
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])
24 GNOME_COMMON_INIT
26 AC_PREREQ([2.59])
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])
33 AM_MAINTAINER_MODE
35 AC_ENABLE_SHARED([yes])
36 AC_ENABLE_STATIC([no])
38 ######################
39 # Check for programs #
40 ######################
42 AC_PROG_CC
43 AM_PROG_CC_STDC
44 AC_PROG_INSTALL
46 AC_HEADER_STDC
48 AC_LIBTOOL_DLOPEN
49 AC_PROG_LIBTOOL
51 PKG_PROG_PKG_CONFIG
53 ################
54 # glib-mkenums #
55 ################
57 AC_PATH_PROG([GLIB_MKENUMS],[glib-mkenums])
59 ######################
60 # dbus-binding tool  #
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])
76 AM_GLIB_GNU_GETTEXT
78 IT_PROG_INTLTOOL([0.40.0])
80 #####################
81 # dependency checks #
82 #####################
84 PKG_CHECK_MODULES(MMEDIAMANAGER, [glib-2.0
85                                   gthread-2.0
86                                   gio-unix-2.0 
87                                   gobject-2.0 
88                                   gmodule-2.0
89                                   libxml-2.0
91 AC_SUBST(MMEDIAMANAGER_CFLAGS)
92 AC_SUBST(MMEDIAMANAGER_LIBS)
94 ########
95 # dbus #
96 ########
98 PKG_CHECK_MODULES(DBUS, [dbus-glib-1
99                          gthread-2.0
101 AC_SUBST(DBUS_CFLAGS)
102 AC_SUBST(DBUS_LIBS)
104 ########
105 # gtk+ #
106 ########
108 PKG_CHECK_MODULES(GTK, [gtk+-2.0 >= 2.13])
109 AC_SUBST(GTK_CFLAGS)
110 AC_SUBST(GTK_LIBS)
112 ###########
113 # gtk-doc #
114 ###########
116 GNOME_DOC_INIT
117 GTK_DOC_CHECK([1.0])
119 ################
120 # output files #
121 ################
123 AC_OUTPUT([
124 Makefile
125 data/Makefile
126 src/libmmanager.pc
127 src/Makefile
128 libmmanager-gtk/libmmanager-gtk.pc
129 libmmanager-gtk/Makefile
130 test/Makefile
131 test/clients/Makefile
132 test/server-app/Makefile
133 po/Makefile.in