# Copyright (c) 2006,2007 Nokia Corporation
# All rights reserved.
-#
+#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
-#
+#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# * Neither the name of the Nokia Corporation nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
-#
+#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
# IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
AC_CONFIG_SRCDIR(src/modest-main.c)
AM_INIT_AUTOMAKE([dist-bzip2])
+# Support silent build rules, requires at least automake-1.11. Disable
+# by either passing --disable-silent-rules to configure or passing V=1
+# to make
+m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
+
MODEST_API_MAJOR_VERSION=modest_api_major_version
MODEST_API_MINOR_VERSION=modest_api_minor_version
MODEST_API_MICRO_VERSION=modest_api_micro_version
AC_MSG_ERROR([install gtkhtml 3.8 or newer])
fi
-PKG_CHECK_MODULES(LIBMODEST_DBUS_CLIENT,libmodest-dbus-client-1.0 >= 3.1.0)
+PKG_CHECK_MODULES(LIBMODEST_DBUS_CLIENT,libmodest-dbus-client-1.0 >= 3.2.0)
dnl # GLib/Gobject/Gtk/Gconf => mandatory
PKG_CHECK_MODULES(MODEST_GSTUFF,glib-2.0 >= 2.6 gobject-2.0 gtk+-2.0 >= 2.6 gconf-2.0 gnome-vfs-2.0 libgtkhtml-${gtk_html_version} libtinymail-1.0 libtinymail-camel-1.0 libtinymail-gnomevfs-1.0 libtinymailui-1.0 libtinymailui-gtk-1.0)
have_gtk=false
if test "$MODEST_TOOLKIT" = "detect"; then
- PKG_CHECK_EXISTS(hildon-1 >= 2.1.0 hildon-fm-2, have_hildon2=true, have_gtk=true)
+ PKG_CHECK_EXISTS(hildon-1 >= 2.1.0 hildon-fm-2, have_hildon2=true, have_hildon2=false)
+ PKG_CHECK_EXISTS(glib-2.0 >= 2.8 gtk+-2.0 >= 2.10 libnotify gtksourceview-2.0, have_gtk=true, have_gtk=false)
if test "x$have_hildon2" = "xtrue"; then
- PKG_CHECK_MODULES(MODEST_HILDON_WIDGETS,hildon-1 hildon-fm-2)
- hildonpkgs="hildon-1 hildon-fm-2"
detected_toolkit=hildon2
hildon_api=`$PKG_CONFIG --modversion hildon-1 | cut -d. -f1`
- echo "DETECTED HILDON 2 $have_hildon2."
+ echo "DETECTED HILDON 2 $have_hildon2 (API is $hildon_api)."
+ elif test "x$have_gtk" == "xtrue"; then
+ detected_toolkit=gtk
+ echo "DETECTED GTK."
fi
MODEST_TOOLKIT="$detected_toolkit"
with_toolkit=$detected_toolkit
fi
dnl -------- TOOLKIT SELECTION: *HILDON API* -----------
-if test "$with_toolkit" = "hildon2"; then
+if test "x$with_toolkit" == "xhildon2"; then
+ hildonpkgs="hildon-1 hildon-fm-2"
+ hildon_api=`$PKG_CONFIG --modversion hildon-1 | cut -d. -f1`
AC_DEFINE_UNQUOTED(MODEST_HILDON_API, $hildon_api, ["the API version of hildon"])
MODEST_PLUGIN_DEFINES="$MODEST_PLUGIN_DEFINES -DMODEST_HILDON_API=$hildon_api"
MODEST_PLUGIN_DEFINES="$MODEST_PLUGIN_DEFINES -DMODEST_TOOLKIT_HILDON2"
-elif test "$with_toolkit" = "gtk"; then
+elif test "x$with_toolkit" == "xgtk"; then
MODEST_PLUGIN_DEFINES="$MODEST_PLUGIN_DEFINES -DMODEST_TOOLKIT_GTK"
fi
dnl -------- TOOLKIT SELECTION: *TOOLKIT DIR* -----------
if test "x$with_toolkit" == "xgtk"; then
- PKG_CHECK_MODULES(MODEST_TOOLKIT,glib-2.0 >= 2.8 gtk+-2.0 >= 2.10 libnotify gtksourceview-2.0)
+ PKG_CHECK_MODULES(MODEST_TOOLKIT,glib-2.0 >= 2.8 gtk+-2.0 >= 2.10 libnotify)
AC_DEFINE_UNQUOTED(MODEST_TOOLKIT_GTK, 1, ["Whether modest is being build for the gtk toolkit."])
- MODEST_TOOLKIT_DIR=gnome
-else
- if test "$with_toolkit" = "hildon2"; then
- AC_DEFINE_UNQUOTED(MODEST_TOOLKIT_HILDON2, 1, ["Whether modest is being build for the hildon2 toolkit."])
- MODEST_TOOLKIT_DIR=hildon2
- fi
+ MODEST_TOOLKIT_DIR=gtk
+elif test "$with_toolkit" = "hildon2"; then
+ AC_DEFINE_UNQUOTED(MODEST_TOOLKIT_HILDON2, 1, ["Whether modest is being build for the hildon2 toolkit."])
+ MODEST_TOOLKIT_DIR=hildon2
fi
AC_SUBST(MODEST_TOOLKIT)
AC_SUBST(MODEST_TOOLKIT_DIR)
use_profile_data=false
# Plugin packages must not include libcanberra and libprofile
-if test "$with_platform" = "maemo"; then
+if test "x$with_platform" == "xmaemo"; then
hildonpkgs="$hildonpkgs libcanberra"
AC_CHECK_HEADER([profiled/keys_nokia.h], use_profile_data=true, use_profile_data=false)
if test "$use_profile_data" = "true"; then
src/Makefile
src/modest-plugin-1.0.pc
src/dbus_api/Makefile
-src/gnome/Makefile
-src/maemo/Makefile
-src/maemo/easysetup/Makefile
+src/gtk/Makefile
src/hildon2/Makefile
src/widgets/Makefile
docs/Makefile
docs/reference/Makefile
tests/Makefile
tests/dbus_api/Makefile
-src/maemo/modest.desktop
-src/maemo/com.nokia.modest.service
src/hildon2/modest.desktop
src/hildon2/com.nokia.modest.service
])