2 # Copyright (C) 2006, 2007 John Costigan.
4 # This file is part of Maemo Mapper.
6 # Maemo Mapper is free software: you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation, either version 3 of the License, or
9 # (at your option) any later version.
11 # Maemo Mapper is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with Maemo Mapper. If not, see <http://www.gnu.org/licenses/>.
21 AM_INIT_AUTOMAKE(maemo-mapper, 2.0)
24 AC_CONFIG_HEADERS(src/config.h)
28 PKG_CHECK_MODULES(GTK, gtk+-2.0)
32 PKG_CHECK_MODULES(OSSO, libosso >= 1 libossohelp)
36 PKG_CHECK_MODULES(HILDON, hildon-libs >= 0.9.50 hildon-fm)
38 AC_SUBST(HILDON_CFLAGS)
40 PKG_CHECK_MODULES(GNOME_VFS, gnome-vfs-2.0 >= 2.8.4.11 gnome-vfs-module-2.0 >= 2.8.4.11)
41 AC_SUBST(GNOME_VFS_LIBS)
42 AC_SUBST(GNOME_VFS_CFLAGS)
44 PKG_CHECK_MODULES(GCONF, gconf-2.0 >= 2.6.2)
46 AC_SUBST(GCONF_CFLAGS)
48 PKG_CHECK_MODULES(LIBXML2, libxml-2.0 >= 2.6.16)
49 AC_SUBST(LIBXML2_LIBS)
50 AC_SUBST(LIBXML2_CFLAGS)
52 PKG_CHECK_MODULES(SQLITE, sqlite3)
54 AC_SUBST(SQLITE_CFLAGS)
56 PKG_CHECK_MODULES(CONIC, conic)
58 AC_SUBST(CONIC_CFLAGS)
62 localedir=`$PKG_CONFIG osso-af-settings --variable=localedir`
63 AC_PROG_INTLTOOL([0.23])
64 GETTEXT_PACKAGE=$PACKAGE
65 AC_SUBST(GETTEXT_PACKAGE)
66 AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], "${GETTEXT_PACKAGE}", [Name of gettext package])
67 ALL_LINGUAS="en_US en_GB nl_NL it_IT bg_BG fi_FI"
71 # To make application visible in maemo Task Navigator it needs a Desktop
72 # file for the application.
73 # D-BUS service file is needed to be able to launch the maemo application
74 # and connect it to D-BUS services.
75 # The following line defines install directories for these files.
76 desktopentrydir=`$PKG_CONFIG osso-af-settings --variable=desktopentrydir`
77 serviceentrydir=`$PKG_CONFIG osso-af-settings --variable=dbusservicedir`
79 # Application pixmaps install directory
80 pixmapdir=`$PKG_CONFIG osso-af-settings --variable=hildonpixmapdir`
82 # Application icon install directories
83 icon_26x26dir=$datadir/icons/hicolor/26x26/hildon
84 icon_34x34dir=$datadir/icons/hicolor/34x34/hildon
85 icon_40x40dir=$datadir/icons/hicolor/40x40/hildon
86 icon_50x50dir=$datadir/icons/hicolor/50x50/hildon
87 icon_scalabledir=$datadir/icons/hicolor/scalable/hildon
89 # Help file install directory
90 helpfile_enusdir=$datadir/osso-help/en_US
91 AC_SUBST(helpfile_enusdir)
92 helpfile_engbdir=$datadir/osso-help/en_GB
93 AC_SUBST(helpfile_engbdir)
94 helpfile_fifidir=$datadir/osso-help/fi_FI
95 AC_SUBST(helpfile_fifidir)
97 # Hildon control panel plugin install directories
98 pluginlibdir=`$PKG_CONFIG hildon-control-panel --variable=plugindir`
99 plugindesktopentrydir=`$PKG_CONFIG hildon-control-panel --variable=plugindesktopentrydir`
101 # Define as variables in Makefiles
102 AC_SUBST(desktopentrydir)
103 AC_SUBST(serviceentrydir)
106 AC_SUBST(icon_26x26dir)
107 AC_SUBST(icon_34x34dir)
108 AC_SUBST(icon_40x40dir)
109 AC_SUBST(icon_50x50dir)
110 AC_SUBST(icon_scalabledir)
111 AC_SUBST(pluginlibdir)
112 AC_SUBST(plugindesktopentrydir)
114 AC_DEFINE_UNQUOTED([LOCALEDIR], "${localedir}", [Runtime locale catalog files path])
115 AC_DEFINE_UNQUOTED([PIXMAPDIR], "${pixmapdir}", [Runtime pixmap files path])
117 # Produce output files