Add 7-segment display daemon
This daemon takes the path of a 7-segment display device node as its
argument and then writes POST codes which were received over D-Bus to
that device.
Signed-off-by: Benjamin Fair <benjaminfair@google.com>
Change-Id: Ic00548c3ebb5a7aa3c9a927c2de748595eb90e71
diff --git a/configure.ac b/configure.ac
index fe7c1c7..9ecf38f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -51,6 +51,19 @@
PKG_CHECK_MODULES([GMOCK], [gmock], [], [AC_MSG_NOTICE([gmock not found, tests will not build])])
AX_PTHREAD([GTEST_CFLAGS+=" -DGTEST_HAS_PTHREAD=1 "],[GTEST_CFLAGS+=" -DGTEST_HAS_PTHREAD=0 "])
+AC_ARG_ENABLE([7seg],
+ AS_HELP_STRING([--enable-7seg], [Build daemon to send POST codes to a 7-segment display.])
+)
+AM_CONDITIONAL([ENABLE_7SEG], [test "x$enable_7seg" = "xyes"])
+
+AS_IF([test "x$enable_7seg" = "xyes"], [
+ PKG_CHECK_VAR([UDEVRULESDIR], [udev], [udevdir])
+ AC_MSG_CHECKING([udev rules path])
+ AS_IF([test "x$UDEVRULESDIR" = "x"], [
+ AC_MSG_FAILURE([Unable to identify udev rules path.])
+ ])
+])
+
# Add --enable-oe-sdk flag to configure script
AC_ARG_ENABLE([oe-sdk],
AS_HELP_STRING([--enable-oe-sdk], [Link testcases absolutely against OE SDK so they can be ran within it.])