1 AC_INIT([odeviced], [0.1.0], [sudharsh@gmail.com], [odeviced])
2 AC_CONFIG_SRCDIR([Makefile.am])
3 AC_CONFIG_HEADERS(config.h)
4 AM_INIT_AUTOMAKE([dist-bzip2])
12 AC_PATH_PROG(VALAC, valac, valac)
15 AH_TEMPLATE([GETTEXT_PACKAGE], [Package name for gettext])
16 GETTEXT_PACKAGE=odeviced
17 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE")
18 AC_SUBST(GETTEXT_PACKAGE)
20 IT_PROG_INTLTOOL([0.35.0])
28 PKG_CHECK_MODULES(GLIB, glib-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GLIB_REQUIRED gio-2.0)
29 PKG_CHECK_MODULES(DBUS, dbus-1 dbus-glib-1)
30 PKG_CHECK_MODULES(GMODULE, gmodule-2.0)
31 PKG_CHECK_MODULES(GSTREAMER, gstreamer-0.10)
38 AC_SUBST(GMODULE_CFLAGS)
39 AC_SUBST(GMODULE_LIBS)
41 AC_SUBST(GSTREAMER_CFLAGS)
42 AC_SUBST(GSTREAMER_LIBS)
45 DBUS_GLIB_BIN="`$PKG_CONFIG --variable=exec_prefix dbus-glib-1`/bin"
46 AC_ARG_WITH(dbusbindir,[ --with-dbusbindir=DIR dbus tools in DIR], [DBUS_GLIB_BIN="$withval"])
47 echo "DBus tools location ${DBUS_GLIB_BIN}"
48 AC_SUBST(DBUS_GLIB_BIN)
50 DBUS_SERVICES_DIR="$DATADIR/dbus-1/services"
51 AC_SUBST(DBUS_SERVICES_DIR)
52 AC_DEFINE_UNQUOTED(DBUS_SERVICES_DIR, "$DBUS_SERVICES_DIR", [Where services dir for dbus is])
54 DBUS_SYSTEM_DIR="/etc/dbus-1/system.d"
55 AC_SUBST(DBUS_SYSTEM_DIR)
56 AC_DEFINE_UNQUOTED(DBUS_SYSTEM_DIR, "$DBUS_SYSTEM_DIR", [Where system.d dir is])
58 AC_CONFIG_FILES([po/Makefile.in])
64 src/plugins/powercontrol/Makefile
65 src/plugins/rtc/Makefile
66 src/plugins/display/Makefile
67 src/plugins/power/Makefile
68 src/plugins/input/Makefile
69 src/plugins/led/Makefile
70 src/plugins/idlenotifier/Makefile
71 src/plugins/audio/Makefile
72 src/plugins/accelerometer/Makefile