Maintainer's effort n.2:
[mmediamanager.git] / configure.ac
blob51048b52e67db17114ffa22e9ecbda435142f152
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 dist-bzip2 no-dist-gzip 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  #
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])
66 AM_GLIB_GNU_GETTEXT
68 IT_PROG_INTLTOOL([0.40.0])
70 #####################
71 # dependency checks #
72 #####################
74 PKG_CHECK_MODULES(MMEDIAMANAGER, [glib-2.0
75                                   gthread-2.0
76                                   gio-unix-2.0 
77                                   gobject-2.0 
78                                   gmodule-2.0
79                                   libxml-2.0
81 AC_SUBST(MMEDIAMANAGER_CFLAGS)
82 AC_SUBST(MMEDIAMANAGER_LIBS)
84 ########
85 # dbus #
86 ########
88 PKG_CHECK_MODULES(DBUS, [dbus-glib-1
89                          gthread-2.0
91 AC_SUBST(DBUS_CFLAGS)
92 AC_SUBST(DBUS_LIBS)
94 ########
95 # gtk+ #
96 ########
98 PKG_CHECK_MODULES(GTK, [gtk+-2.0 >= 2.13])
99 AC_SUBST(GTK_CFLAGS)
100 AC_SUBST(GTK_LIBS)
102 ###########
103 # gtk-doc #
104 ###########
106 GNOME_DOC_INIT
107 GTK_DOC_CHECK([1.0])
109 ################
110 # output files #
111 ################
113 AC_OUTPUT([
114 Makefile
115 data/Makefile
116 src/libmmanager.pc
117 src/Makefile
118 libmmanager-gtk/libmmanager-gtk.pc
119 libmmanager-gtk/Makefile
120 test/Makefile
121 test/clients/Makefile
122 po/Makefile.in