AM_GLIB_DEFINE_LOCALEDIR([MODEST_LOCALE_DIR])
AM_GLIB_GNU_GETTEXT
-
-
if test x$prefix = xNONE; then
prefix=/usr/local
fi
CFLAGS="$CFLAGS -O2 -Wall"
fi
+# Option to enable debugging
+AC_ARG_ENABLE(gcov,
+ [AC_HELP_STRING([--enable-gcov],[Coverage reporting (default=no)])],
+ [with_gcov=yes], [with_gcov=no])
+
+if test "x$with_gcov" == "xyes" ; then
+ CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
+ LDFLAGS="$LDFLAGS -lgcov"
+fi
+
dnl -------
detected_toolkit=hildon2
hildonpkgs="$hildonpkgs libcanberra profile"
echo "HILDON 2 PACKAGES $hildonpkgs"
+ AC_CHECK_HEADER([profiled/keys_nokia.h], [], AC_MSG_ERROR([You have to install package profile-data-dev]))
fi
AC_SUBST(hildonpkgs)
serviceentrydir=`$PKG_CONFIG dbus-glib-1 --variable=prefix`/share/dbus-1/services
localedir=`$PKG_CONFIG osso-af-settings --variable=localedir`
backupsettingsdir=/etc/osso-backup/applications
+ ossocudscriptsdir=/etc/osso-cud-scripts
pixmapdir=`$PKG_CONFIG osso-af-settings --variable=hildonpixmapdir`
icon_26x26dir=$datadir/icons/hicolor/26x26/hildon
icon_34x34dir=$datadir/icons/hicolor/34x34/hildon
AC_SUBST(desktopentrydir)
AC_SUBST(serviceentrydir)
AC_SUBST(backupsettingsdir)
+ AC_SUBST(ossocudscriptsdir)
AC_SUBST(localedir)
AC_SUBST(pixmapdir)
AC_SUBST(icon_26x26dir)