@@ -101,8 +101,10 @@ builtin_cppflags += $(ALSA_CFLAGS)
builtin_ldadd += $(ALSA_LIBS)
endif
+if BATTERY
builtin_modules += battery
builtin_sources += profiles/battery/battery.c
+endif
if SIXAXIS
plugin_LTLIBRARIES += plugins/sixaxis.la
@@ -181,6 +181,10 @@ AC_ARG_ENABLE(hog, AC_HELP_STRING([--disable-hog],
[disable HoG profile]), [enable_hog=${enableval}])
AM_CONDITIONAL(HOG, test "${enable_hog}" != "no")
+AC_ARG_ENABLE(battery, AC_HELP_STRING([--disable-battery],
+ [disable battery profile]), [enable_battery=${enableval}])
+AM_CONDITIONAL(BATTERY, test "${enable_battery}" != "no")
+
AC_ARG_ENABLE(health, AC_HELP_STRING([--enable-health],
[enable health profiles]), [enable_health=${enableval}])
AM_CONDITIONAL(HEALTH, test "${enable_health}" = "yes")