-
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
if test "$enable_gpl" = "no"; then
AC_MSG_ERROR([Telephony support requires the --enable-gpl option.])
fi
- PKG_CHECK_MODULES(OFONO, ofono >= 1.3)
+ PKG_CHECK_MODULES(OFONO, ofono >= 1.1)
else
AC_MSG_NOTICE([Telephony support is disabled.])
fi
AC_SUBST(TELEPHONY_CFLAGS)
AC_SUBST(TELEPHONY_LIBS)
+PKG_CHECK_MODULES(AUL, aul,
+ [have_aul=yes], [have_aul=no])
+enable_aul="$have_aul"
+if test "$enable_aul" = "yes"; then
+ AC_DEFINE([AUL_ENABLED], 1, [Enable Application Utility Library support ?])
+fi
+AM_CONDITIONAL(AUL_ENABLED, [test "$enable_aul" = "yes"])
+AC_SUBST(AUL_ENABLED)
+AC_SUBST(AUL_CFLAGS)
+AC_SUBST(AUL_LIBS)
+
+PKG_CHECK_MODULES(TZCONFIG, libtzplatform-config,
+ [have_tzconfig=yes], [have_tzconfig=no])
+enable_tzconfig="$have_tzconfig"
+if test "$enable_tzconfig" = "yes"; then
+ AC_DEFINE([TZCONFIG_ENABLED], 1, [Enable Tizen configuration support ?])
+fi
+AM_CONDITIONAL(TZCONFIG_ENABLED, [test "$enable_tzconfig" = "yes"])
+AC_SUBST(TZCONFIG_ENABLED)
+AC_SUBST(TZCONFIG_CFLAGS)
+AC_SUBST(TZCONFIG_LIBS)
+
+# Check if system-controller (plugin) support should be enabled.
+AC_ARG_ENABLE(system-controller,
+ [ --enable-system-controller enable system-controller support],
+ [enable_systemctl=$enableval], [enable_systemctl=no])
+
+if test "$enable_systemctl" = "yes"; then
+ if test "$enable_websockets" != "yes"; then
+ AC_MSG_ERROR([System controller requires websocket support.])
+ fi
+ if test "$have_aul" != "yes"; then
+ AC_MSG_ERROR([System controller requires AUL support.])
+ fi
+ AC_MSG_NOTICE([System-controller support is enabled.])
+ AC_DEFINE([SYSTEMCTL_ENABLED], 1, [Enable system-controller support ?])
+ PKG_CHECK_MODULES(WAYLAND_CLIENT, wayland-client)
+ PKG_CHECK_MODULES(LIBXML2, libxml-2.0)
+ PKG_CHECK_MODULES(
+ IVI_EXTENSION_PROTOCOL, ivi-extension-protocol,
+ [weston_ico_plugins=no], [weston_ico_plugins=yes]
+ )
+ AC_CHECK_HEADER([ico-uxf-weston-plugin/ico_input_mgr-client-protocol.h])
+ if test "$weston_ico_plugins" != "yes"; then
+ AC_MSG_NOTICE([System-controller uses GENIVI shell.])
+ fi
+ PKG_CHECK_MODULES(AIL, ail)
+else
+ AC_MSG_NOTICE([System-controller support is disabled.])
+fi
+
+AM_CONDITIONAL(SYSTEMCTL_ENABLED, [test "$enable_systemctl" = "yes"])
+AM_CONDITIONAL(WESTON_ICO_PLUGINS,[test "$weston_ico_plugins" = "yes"])
+AC_SUBST(SYSTEMCTL_ENABLED)
+AC_SUBST(WESTON_ICO_PLUGINS)
+AC_SUBST(WAYLAND_CLIENT_CFLAGS)
+AC_SUBST(WAYLAND_CLIENT_LIBS)
+AC_SUBST(IVI_EXTENSION_PROTOCOL_CFLAGS)
+AC_SUBST(IVI_EXTENSION_PROTOCOL_LIBS)
+AC_SUBST(LIBXML2_CFLAGS)
+AC_SUBST(LIBXML2_LIBS)
+AC_SUBST(AIL_CFLAGS)
+AC_SUBST(AIL_LIBS)
+
+# Check if system-monitor (plugin) support should be enabled.
+AC_ARG_ENABLE(system-monitor,
+ [ --enable-system-monitor enable system-monitor support],
+ [enable_sysmon=$enableval], [enable_sysmon=yes])
+
+if test "$enable_sysmon" = "yes"; then
+ AC_MSG_NOTICE([System-monitor support is enabled.])
+ AC_DEFINE([SYSMON_ENABLED], 1, [Enable system-monitor support ?])
+else
+ AC_MSG_NOTICE([System-monitor support is disabled.])
+fi
+
+AM_CONDITIONAL(SYSMON_ENABLED, [test "$enable_sysmon" = "yes"])
+AC_SUBST(SYSMON_ENABLED)
+
+
+# Check if dlog support was enabled.
+AC_ARG_ENABLE(dlog,
+ [ --enable-dlog enable dlog support],
+ [enable_dlog=$enableval], [enable_dlog=auto])
+
+if test "$enable_dlog" != "no"; then
+ PKG_CHECK_MODULES(DLOG, dlog,
+ [have_dlog=yes], [have_dlog=no])
+ if test "$have_dlog" = "no" -a "$enable_dlog" = "yes"; then
+ AC_MSG_ERROR([dlog development libraries not found.])
+ fi
+
+ enable_dlog="$have_dlog"
+else
+ AC_MSG_NOTICE([dlog support is disabled.])
+fi
+
+if test "$enable_dlog" = "yes"; then
+ AC_DEFINE([DLOG_ENABLED], 1, [Enable dlog support ?])
+fi
+AM_CONDITIONAL(DLOG_ENABLED, [test "$enable_dlog" = "yes"])
+AC_SUBST(DLOG_ENABLED)
+AC_SUBST(DLOG_CFLAGS)
+AC_SUBST(DLOG_LIBS)
+
+# Check if Audio Session Manager plugin was enabled.
+AC_ARG_ENABLE(resource-asm,
+ [ --enable-resource-asm build Murphy Audio Session Manager plugin],
+ [enable_resource_asm=$enableval], [enable_resource_asm=no])
+
+if test "$enable_resource_asm" != "no"; then
+ PKG_CHECK_MODULES(AUDIO_SESSION_MANAGER, audio-session-mgr,
+ [have_resource_asm=yes], [have_resource_asm=no])
+ if test "$have_resource_asm" = "no" -a "$enable_resource_asm" = "yes"; then
+ AC_MSG_ERROR([Audio Session Manager development libraries not found.])
+ fi
+ AC_SUBST(AUDIO_SESSION_MANAGER_CFLAGS)
+ AC_SUBST(AUDIO_SESSION_MANAGER_LIBS)
+
+ enable_resource_asm="$have_resource_asm"
+else
+ AC_MSG_NOTICE([Audio Session Manager support is disabled.])
+fi
+if test "$enable_resource_asm" = "yes"; then
+ AC_DEFINE([RESOURCE_ASM_ENABLED], 1, [Enable Audio Session Manager support ?])
+fi
+AM_CONDITIONAL(RESOURCE_ASM_ENABLED, [test "$enable_resource_asm" = "yes"])
+AC_SUBST(RESOURCE_ASM_ENABLED)
+
# Set up murphy CFLAGS and LIBS.
MURPHY_CFLAGS=""
MURPHY_LIBS=""
internal=""; it=""
external=""; et=""
disabled=""; dt=""
-for plugin in $all_plugins; do
+for plugin in $all_plugins; do
type=internal
for p in ${dynamic_plugins//,/ }; do
AM_CONDITIONAL(DISABLED_PLUGIN_DBUS, [check_if_disabled dbus])
AM_CONDITIONAL(DISABLED_PLUGIN_GLIB, [check_if_disabled glib])
AM_CONDITIONAL(DISABLED_PLUGIN_CONSOLE, [check_if_disabled console])
+AM_CONDITIONAL(DISABLED_PLUGIN_DLOG, [check_if_disabled dlog])
AM_CONDITIONAL(DISABLED_PLUGIN_RESOURCE_DBUS, [check_if_disabled resource-dbus])
AM_CONDITIONAL(DISABLED_PLUGIN_RESOURCE_WRT, [check_if_disabled resource-wrt])
AM_CONDITIONAL(DISABLED_PLUGIN_AMB, [check_if_disabled amb])
[check_if_disabled domain-control])
AM_CONDITIONAL(DISABLED_PLUGIN_SYSTEMD, [check_if_disabled systemd])
AM_CONDITIONAL(DISABLED_PLUGIN_TELEPHONY, [check_if_disabled telephony])
+AM_CONDITIONAL(DISABLED_PLUGIN_RESOURCE_ASM, [check_if_disabled resource-asm])
+
+AM_CONDITIONAL(DISABLED_PLUGIN_SYSTEMCTL, [test $enable_systemctl != yes])
+AM_CONDITIONAL(DISABLED_PLUGIN_SYSMON, [test $enable_sysmon != yes])
AM_CONDITIONAL(BUILTIN_PLUGIN_TEST, [check_if_internal test])
AM_CONDITIONAL(BUILTIN_PLUGIN_DBUS, [check_if_internal dbus])
AM_CONDITIONAL(BUILTIN_PLUGIN_GLIB, [check_if_internal glib])
AM_CONDITIONAL(BUILTIN_PLUGIN_CONSOLE, [check_if_internal console])
+AM_CONDITIONAL(BUILTIN_PLUGIN_DLOG, [check_if_internal dlog])
AM_CONDITIONAL(BUILTIN_PLUGIN_RESOURCE_DBUS, [check_if_internal resource-dbus])
AM_CONDITIONAL(BUILTIN_PLUGIN_RESOURCE_WRT, [check_if_internal resource-wrt])
AM_CONDITIONAL(BUILTIN_PLUGIN_AMB, [check_if_internal amb])
AM_CONDITIONAL(BUILTIN_PLUGIN_LUA, [check_if_internal lua])
AM_CONDITIONAL(BUILTIN_PLUGIN_SYSTEMD, [check_if_internal systemd])
AM_CONDITIONAL(BUILTIN_PLUGIN_TELEPHONY, [check_if_internal telephony])
+AM_CONDITIONAL(BUILTIN_PLUGIN_RESOURCE_ASM, [check_if_internal resource-asm])
+AM_CONDITIONAL(BUILTIN_PLUGIN_SYSTEMCTL, [check_if_internal system-controller])
+AM_CONDITIONAL(BUILTIN_PLUGIN_SYSMON, [check_if_internal system-monitor])
# Check for Check (unit test framework).
-PKG_CHECK_MODULES(CHECK,
+PKG_CHECK_MODULES(CHECK,
check >= 0.9.4,
[has_check="yes"], [has_check="no"])
AM_CONDITIONAL(HAVE_CHECK, test "x$has_check" = "xyes")
AC_CONFIG_FILES([build-aux/shave
build-aux/shave-libtool
Makefile
- utils/Makefile
+ utils/Makefile
src/Makefile
src/common/tests/Makefile
src/core/tests/Makefile
src/common/murphy-pulse.pc
src/common/murphy-ecore.pc
src/common/murphy-glib.pc
- src/common/murphy-qt.pc
+ src/common/murphy-qt.pc
src/core/murphy-core.pc
- src/core/lua-utils/murphy-lua-utils.pc
- src/core/lua-decision/murphy-lua-decision.pc
+ src/core/lua-utils/murphy-lua-utils.pc
+ src/core/lua-decision/murphy-lua-decision.pc
src/breedline/breedline.pc
src/breedline/breedline-murphy.pc
src/breedline/breedline-glib.pc
src/resolver/murphy-resolver.pc
src/resolver/tests/Makefile
src/plugins/domain-control/murphy-domain-controller.pc
+ src/plugins/resource-asm/Makefile
doc/Makefile
doc/plugin-developer-guide/Makefile
doc/plugin-developer-guide/db/Makefile
doc/plugin-developer-guide/doxml/Makefile
src/plugins/resource-native/libmurphy-resource/murphy-resource.pc
+ packaging.in/org.Murphy.conf
])
AC_OUTPUT
echo "Websockets support: $enable_websockets"
echo "systemd support: $enable_systemd"
echo "Telephony support: $enable_telephony"
+echo "System controller support: $enable_systemctl"
+echo "System monitor support: $enable_sysmon"
echo "Plugins:"
echo " - linked-in:"
for plugin in ${INTERNAL_PLUGINS:-none}; do