2 # Process this file with autoconf to produce a configure script.
5 AC_INIT([message-port], [0.0.1], [], [], [])
6 AC_CONFIG_SRCDIR([daemon/main.c])
7 AC_CONFIG_HEADERS([config.h])
8 AC_CONFIG_AUX_DIR([build-aux])
9 AC_CONFIG_MACRO_DIR([m4])
11 AM_INIT_AUTOMAKE([1.11 nostdinc silent-rules subdir-objects tar-pax -Wno-portability])
12 LT_INIT([disable-static])
14 # Checks for programs.
17 # Checks for libraries.
18 PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.30])
22 PKG_CHECK_MODULES([GIO],[gio-2.0])
26 PKG_CHECK_MODULES([GIOUNIX],[gio-unix-2.0])
27 AC_SUBST(GIOUNIX_CFLAGS)
28 AC_SUBST(GIOUINX_LIBS)
30 PKG_CHECK_MODULES([AUL], [aul])
34 PKG_CHECK_MODULES([PKGMGRINFO], [pkgmgr-info])
35 AC_SUBST(PKGMGRINFO_CFLAGS)
36 AC_SUBST(PKGMGRINFO_LIBS)
38 PKG_CHECK_MODULES([BUNDLE], [bundle])
39 AC_SUBST(BUNDLE_CFLAGS)
42 PKG_CHECK_MODULES([DLOG], [dlog], [AC_DEFINE([HAVE_DLOG], [1], [Use DLOG])])
46 AC_DEFINE(MESSAGEPORT_BUS_ADDRESS,
47 ["unix:path=%s/.message-port", g_get_user_runtime_dir()],
48 [messageport daemon server socket address])
52 [--enable-debug Eenable debug features],
53 [enable_debug=$enableval], [enable_debug=no])
54 if test "x$enable_debug" = "xyes" ; then
55 AC_DEFINE(ENABLE_DEBUG, [1], [Enable debug features])
59 AC_ARG_ENABLE(examples,
60 [--enable-examples example applications],
61 [enable_examples=$enable_examples], [enable_examples=no])
62 AM_CONDITIONAL(BUILD_EXAMPLES, [test "x$enable_examples" = "xyes"])
63 if test "x$enable_examples" = "xyes"; then
67 # Checks for header files.
68 AC_CHECK_HEADERS([string.h])
70 # Checks for typedefs, structures, and compiler characteristics.
72 # Checks for library functions.
82 if test "x$enable_examples" = "xyes"; then