dbus-sdr: prevent handler registration if dbus-sdr is enabled
Compile out the handler registration if it is using dynamic stack.
Reorder the handlers to have common handlers between the two
implementations alway registered.
Managing the handlers like this all code to be compiled during CI while
providing some control over the handlers used.
Change-Id: I6e9cffacfac4127d2307e8c5e548c84323742c94
Signed-off-by: Willy Tu <wltu@google.com>
diff --git a/configure.ac b/configure.ac
index 8ec8c40..0fbf537 100644
--- a/configure.ac
+++ b/configure.ac
@@ -277,6 +277,13 @@
)
AM_CONDITIONAL([FEATURE_DYNAMIC_SENSORS], [test x$dynamic_sensors = xtrue])
+AS_IF([test x$dynamic_sensors = xtrue],
+ AC_MSG_NOTICE([Enabling dynamic sensors feature])
+ [cpp_flags="$cpp_flags -DFEATURE_DYNAMIC_SENSORS"]
+ AC_SUBST([CPPFLAGS], [$cpp_flags]),
+ AC_MSG_WARN([Disabling dynamic sensors feature])
+)
+
# hybrid sensors stack is disabled by default; offer a way to enable it
AC_ARG_ENABLE([hybrid-sensors],
[ --enable-hybrid-sensors Enable/disable Hybrid Sensors stack],