summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDeepak Kodihalli <dkodihal@in.ibm.com>2017-02-16 08:09:03 -0600
committerDeepak Kodihalli <dkodihal@in.ibm.com>2017-02-17 07:43:31 -0600
commit61845fd5b201a388c319d6e991f8512208b997ac (patch)
tree0c69c9e4b2360b542f02c7338ef23406e8e05587
parent8a2a675ea683ac741f94e2a9b19ca5a3734164c2 (diff)
downloadipmi-fru-parser-61845fd5b201a388c319d6e991f8512208b997ac.zip
ipmi-fru-parser-61845fd5b201a388c319d6e991f8512208b997ac.tar.gz
build: check for sdbusplus package
Change-Id: Id29024e34ac0c930fd4ff51c9886736324ea68e1 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
-rw-r--r--Makefile.am4
-rw-r--r--configure.ac2
2 files changed, 4 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am
index c626404..9a17fc5 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -13,8 +13,8 @@ phosphor_read_eeprom_LDADD = libwritefrudata.la
libwritefrudatadir = ${libdir}
libwritefrudata_LTLIBRARIES = libwritefrudata.la
libwritefrudata_la_SOURCES = frup.cpp fru-gen.cpp writefrudata.cpp
-libwritefrudata_la_LDFLAGS = $(SYSTEMD_LIBS) $(libmapper_LIBS) -version-info 1:0:0 -shared
-libwritefrudata_la_CXXFLAGS = $(SYSTEMD_CFLAGS) $(libmapper_CFLAGS)
+libwritefrudata_la_LDFLAGS = $(SYSTEMD_LIBS) $(libmapper_LIBS) $(SDBUSPLUS_LIBS) -version-info 1:0:0 -shared
+libwritefrudata_la_CXXFLAGS = $(SYSTEMD_CFLAGS) $(libmapper_CFLAGS) $(SDBUSPLUS_CFLAGS)
libstrgfnhandlerdir = ${libdir}/ipmid-providers
libstrgfnhandler_LTLIBRARIES = libstrgfnhandler.la
diff --git a/configure.ac b/configure.ac
index 18fd1d0..8ff7c91 100644
--- a/configure.ac
+++ b/configure.ac
@@ -19,6 +19,8 @@ AM_PATH_PYTHON([2.7],
# Checks for libraries.
AC_CHECK_LIB([mapper], [mapper_get_service])
PKG_CHECK_MODULES([SYSTEMD], [libsystemd >= 221])
+PKG_CHECK_MODULES([SDBUSPLUS], [sdbusplus],,\
+ AC_MSG_ERROR(["Requires sdbusplus package."]))
# Checks for header files.
AC_CHECK_HEADER(systemd/sd-bus.h, ,[AC_MSG_ERROR([Could not find systemd/sd-bus.h...systemd development package required])])
OpenPOWER on IntegriCloud