Add ability to configure from dbus

This allows configuration of PID control from dbus using
entity manager. Sample configuration will be pushed to
entity-manager repo shortly.

Tested-by: Used yaml configuration and dbus / entity-manager
           based configuration and pid seemed to work the same.
	   Verified printout of configuration matched generated
	   cpp files.

Change-Id: Ia7b016e53262791ffcccdb9b21c1ccddae2926bc
Signed-off-by: James Feist <james.feist@linux.intel.com>
diff --git a/configure.ac b/configure.ac
index 06c18ae..ca26b79 100644
--- a/configure.ac
+++ b/configure.ac
@@ -68,6 +68,14 @@
 ZONEGEN="$PYTHON ${srcdir}/scripts/zone_gen.py -i $ZONE_YAML_GEN"
 AC_SUBST(ZONEGEN)
 
+AC_ARG_ENABLE([configure-dbus],
+    AS_HELP_STRING([--enable-configure-dbus], [Enable configuring pid from D-Bus.]))
+AM_CONDITIONAL(CONFIGURE_DBUS, [test "x$enable_configure_dbus" = "xyes"])
+AS_IF([test "x$enable_configure_dbus" = "xyes"],
+    [AC_DEFINE(configureDbus, [1], [Read configuration from D-Bus.])],
+    [AC_DEFINE(configureDbus, [0], [Do not read configuration from D-Bus.])]
+)
+
 # Create configured output
 AC_CONFIG_FILES([Makefile test/Makefile])
 AC_OUTPUT