X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=configure.ac;h=066293716ff8c1e7a35757fe74a85ceab876aba0;hp=4327723b68c78a54a9ec74abb57e86bee8603a59;hb=1c45e5c5ab13155207984d26d27908ebde6c5cc7;hpb=3fdfee96b812d8e1794d388a3975334133ccf61b diff --git a/configure.ac b/configure.ac index 4327723..0662937 100644 --- a/configure.ac +++ b/configure.ac @@ -91,6 +91,8 @@ if test "x$with_platform" = "xmaemo"; then PKG_CHECK_MODULES(MODEST_LIBTINYMAIL_MAEMO,libtinymail-maemo-1.0 hildon-libs libosso libossomime osso-addressbook-1.0 wpeditor) AC_SUBST(MODEST_LIBTINYMAIL_MAEMO_CFLAGS) AC_SUBST(MODEST_LIBTINYMAIL_MAEMO_LIBS) + + AC_DEFINE_UNQUOTED(MODEST_PLATFORM_MAEMO, 1, ["Whether modest is being built for the Maemo platform."]) desktopentrydir=`$PKG_CONFIG osso-af-settings --variable=desktopentrydir` serviceentrydir=`$PKG_CONFIG dbus-glib-1 --variable=prefix`/share/dbus-1/services @@ -118,13 +120,17 @@ if test "x$with_platform" = "xmaemo"; then AC_SUBST(plugindesktopentrydir) MODEST_PLATFORM_ID=2 - + # warnings are errors, but don't check format errors, because + # it breaks with logical id's + CFLAGS="$CFLAGS -Wno-format-extra-args -Werror" else # gnome frontend PKG_CHECK_MODULES(MODEST_LIBTINYMAIL_GNOME_DESKTOP,libtinymail-gnome-desktop-1.0 libnm_glib glib-2.0 >= 2.8 gtk+-2.0 >= 2.10) AC_SUBST(MODEST_LIBTINYMAIL_GNOME_DESKTOP_CFLAGS) AC_SUBST(MODEST_LIBTINYMAIL_GNOME_DESKTOP_LIBS) MODEST_PLATFORM_ID=1 + + AC_DEFINE_UNQUOTED(MODEST_PLATFORM_GNOME, 1, ["Whether modest is being built for the GNOME platform."]) fi dnl 1==>gnome, 2==>maemo