AC_PREREQ([2.60])
-AC_INIT([ofono-efl], [1])
+AC_INIT([ofono-efl], [2])
AM_INIT_AUTOMAKE([foreign subdir-objects])
AM_CONFIG_HEADER([config.h])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
-AM_MAINTAINER_MODE
-
PKG_PROG_PKG_CONFIG
AC_LANG_C
EFL_WITH_BIN([edje], [edje-cc], [edje_cc])
+want_tizen="auto"
+have_tizen="no"
+AC_ARG_ENABLE([tizen],
+ AC_HELP_STRING([--enable-tizen], [enable Tizen integration. @<:@default=auto@:>@]),
+ [want_tizen="${enableval}"], [:])
+
+if test "$want_tizen" != "no"; then
+ PKG_CHECK_MODULES([TIZEN],
+ [
+ ecore-x
+ appcore-efl
+ ui-gadget
+ capi-social-contacts
+ vconf
+ capi-system-power
+ utilX
+ aul
+ appsvc
+ notification
+ ],
+ [have_tizen="yes"],
+ [have_tizen="no"])
+fi
+
+if test "$want_tizen" = "yes" -a "$have_tizen" = "no"; then
+ AC_MSG_ERROR([Want tizen, but not found])
+elif test "$have_tizen" = "yes"; then
+ AC_DEFINE([HAVE_TIZEN], 1, [Tizen support])
+fi
+
+AM_CONDITIONAL([HAVE_TIZEN], [test "$have_tizen" = "yes"])
+
with_max_log_level="EINA_LOG_LEVEL_DBG"
AC_ARG_WITH(maximum-log-level,
[AC_HELP_STRING([--with-maximum-log-level=NUMBER],
[with_max_log_level="${withval}"], [:])
AC_DEFINE_UNQUOTED(EINA_LOG_LEVEL_MAXIMUM, ${with_max_log_level}, [if set, logging is limited to this amount.])
+with_dbusservicesdir=`pkg-config --variable=session_bus_services_dir dbus-1`
+AC_ARG_WITH(dbusservicesdir,
+ [AC_HELP_STRING([--with-dbusservicesdir=PATH],
+ [Where to place dbus services files])],
+ [with_dbusservicesdir="${withval}"], [:])
+AC_SUBST(with_dbusservicesdir)
+
+
+with_desktopdir="/opt/share/applications"
+AC_ARG_WITH(desktopdir,
+ [AC_HELP_STRING([--with-desktopdir=PATH],
+ [Where to place desktop files. Default=/opt/share/applications/])],
+ [with_desktopdir="${withval}"], [:])
+AC_SUBST(with_desktopdir)
+
AC_CONFIG_FILES([
Makefile
])