Add a global include file for libmmanager-gtk.
[mmediamanager.git] / configure.ac
blob5f3dd5ad156187451bcde41c7a76f8d22100f4ab
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])
26 GNOME_COMMON_INIT
28 AC_PREREQ([2.59])
29 AC_CONFIG_HEADERS([config.h])
30 AC_CONFIG_SRCDIR([configure.ac])
32 AM_INIT_AUTOMAKE([1.9 foreign no-dist-gzip dist-bzip2 tar-ustar])
34 AM_MAINTAINER_MODE
36 AC_ISC_POSIX
37 AC_PROG_CC
38 AM_PROG_CC_STDC
39 AC_HEADER_STDC
41 AM_PROG_LIBTOOL
43 ################
44 # glib-mkenums #
45 ################
47 AC_PATH_PROG([GLIB_MKENUMS],[glib-mkenums])
49 ######################################
50 # dbus-binding tool and service file #
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 AS_AC_EXPAND(DATADIR, $datadir)
60 DBUS_SERVICES_DIR="$DATADIR/dbus-1/services"
61 AC_SUBST(DBUS_SERVICES_DIR)
62 AC_DEFINE_UNQUOTED(DBUS_SERVICES_DIR, "$DBUS_SERVICES_DIR", [Where 
63 services dir for DBUS is])
65 ########################
66 # internationalization #
67 ########################
69 GETTEXT_PACKAGE=mmediamanager
70 AC_SUBST([GETTEXT_PACKAGE])
71 AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE],["$GETTEXT_PACKAGE"], [Gettext package])
72 AM_GLIB_GNU_GETTEXT
74 IT_PROG_INTLTOOL([0.40.0])
76 #####################
77 # dependency checks #
78 #####################
80 PKG_CHECK_MODULES(MMEDIAMANAGER, [glib-2.0
81                                   gthread-2.0
82                                   gio-unix-2.0 
83                                   gobject-2.0 
84                                   gmodule-2.0
85                                   libxml-2.0
87 AC_SUBST(MMEDIAMANAGER_CFLAGS)
88 AC_SUBST(MMEDIAMANAGER_LIBS)
90 ########
91 # dbus #
92 ########
94 PKG_CHECK_MODULES(DBUS, [dbus-glib-1
95                          gthread-2.0
97 AC_SUBST(DBUS_CFLAGS)
98 AC_SUBST(DBUS_LIBS)
100 ########
101 # gtk+ #
102 ########
104 PKG_CHECK_MODULES(GTK, [gtk+-2.0 >= 2.13])
105 AC_SUBST(GTK_CFLAGS)
106 AC_SUBST(GTK_LIBS)
108 ###########
109 # gtk-doc #
110 ###########
112 GNOME_DOC_INIT
113 GTK_DOC_CHECK([1.0])
115 ################
116 # output files #
117 ################
119 AC_OUTPUT([
120 Makefile
121 data/Makefile
122 src/libmmanager.pc
123 src/Makefile
124 libmmanager-gtk/libmmanager-gtk.pc
125 libmmanager-gtk/Makefile
126 test/Makefile
127 test/clients/Makefile
128 po/Makefile.in