build : add systemd dependency

Change-Id: Iebb46bb0d763cdd4b11ed37f3358e4bd73f0c242
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
diff --git a/Makefile.am b/Makefile.am
index 14cdc1e..7ece020 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -28,5 +28,7 @@
 	impl.cpp \
 	parser.cpp \
 	write.cpp
+openpower_read_vpd_LDFLAGS = $(SDBUSPLUS_LIBS)
+openpower_read_vpd_CXXFLAGS = $(SDBUSPLUS_CFLAGS)
 
 SUBDIRS = test
diff --git a/configure.ac b/configure.ac
index 33b9ae7..2cb5d9d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -13,6 +13,9 @@
     [AC_SUBST([PYTHON], [echo "$PYTHON"])],
     [AC_MSG_ERROR([Could not find python-2.7 installed...python-2.7 is required])])
 
+PKG_CHECK_MODULES([SDBUSPLUS], [sdbusplus],,\
+    AC_MSG_ERROR(["Requires sdbusplus package."]))
+
 # Surpress the --with-libtool-sysroot error
 LT_INIT