Add the LampTest option
Enable use-lamp-test configuration for LED lamp Test.
Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: Ie01eb3c68dbd5c5d30ed00b40a50217a4ec4c668
diff --git a/configure.ac b/configure.ac
index f375ccf..89feb08 100644
--- a/configure.ac
+++ b/configure.ac
@@ -83,6 +83,14 @@
AC_DEFINE([LED_USE_JSON],[],[Enable JSON configuration.])
)
+# enable lamp test configuration
+AC_ARG_ENABLE([use-lamp-test],
+ AS_HELP_STRING([--enable-use-lamp-test], [Enable lamp test configuration.]))
+AM_CONDITIONAL([WANTS_LAMP_TEST], [test "x$enable_use_lamp_test" == "xyes"])
+AS_IF([test "x$enable_use_lamp_test" == "xyes"],
+ AC_DEFINE([USE_LAMP_TEST],[],[Enable lamp test configuration.])
+)
+
# Path of file for storing the names of asserted groups
AC_ARG_VAR(SAVED_GROUPS_FILE, [Path of file for storing the names of asserted groups])
AS_IF([test "x$SAVED_GROUPS_FILE" == "x"], [SAVED_GROUPS_FILE="/var/lib/phosphor-led-manager/savedGroups"])