2 AC_INIT([spice-vdagent], [0.8.0])
3 AC_CONFIG_SRCDIR([configure.ac])
5 AM_CONFIG_HEADER([src/config.h])
7 AM_INIT_AUTOMAKE([foreign dist-bzip2 no-dist-gzip subdir-objects])
8 m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
14 AC_DEFINE(_GNU_SOURCE, [1], [Enable GNU extensions])
16 AC_ARG_ENABLE([console-kit],
17 [AS_HELP_STRING([--enable-console-kit], [Enable ConsoleKit use (default: yes)])],
18 [enable_console_kit="$enableval"],
19 [enable_console_kit="yes"])
22 PKG_CHECK_MODULES(X, [xfixes xrandr x11])
23 if test x"$enable_console_kit" = "xyes" ; then
24 PKG_CHECK_MODULES(DBUS, [dbus-1])
25 AC_DEFINE([HAVE_CONSOLE_KIT], [1], [If defined, vdagentd will be compiled with ConsoleKit support] )
27 AM_CONDITIONAL(HAVE_CONSOLE_KIT, test x"$enable_console_kit" = "xyes")
28 PKG_CHECK_MODULES(SPICE, [spice-protocol >= 0.8.0])