summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile.am3
-rw-r--r--configure.ac4
-rw-r--r--ipmid.cpp2
3 files changed, 7 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am
index 966dbe4..7024a26 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -27,8 +27,7 @@ CLEANFILES = $(BUILT_SOURCES)
BOOST_CXX = -DBOOST_ERROR_CODE_HEADER_ONLY \
-DBOOST_SYSTEM_NO_DEPRECATED \
-DBOOST_ALL_NO_LIB
-#TODO - Make this path a configure option (bitbake parameter)
-ipmid_CXXFLAGS = -DHOST_IPMI_LIB_PATH=\"/usr/lib/host-ipmid/\" \
+ipmid_CXXFLAGS = \
$(BOOST_CXX) \
$(PHOSPHOR_LOGGING_CFLAGS) \
$(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
diff --git a/configure.ac b/configure.ac
index 78af3df..a4f407f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -161,6 +161,10 @@ AC_ARG_VAR(POWER_READING_SENSOR, [Power reading sensor configuration file])
AS_IF([test "x$POWER_READING_SENSOR" == "x"],[POWER_READING_SENSOR="/usr/share/ipmi-providers/power_reading.json"])
AC_DEFINE_UNQUOTED([POWER_READING_SENSOR], ["$POWER_READING_SENSOR"], [Power reading sensor configuration file])
+AC_ARG_VAR(HOST_IPMI_LIB_PATH, [The file path to search for libraries.])
+AS_IF([test "x$HOST_IPMI_LIB_PATH" == "x"], [HOST_IPMI_LIB_PATH="/usr/lib/host-ipmid/"])
+AC_DEFINE_UNQUOTED([HOST_IPMI_LIB_PATH], ["$HOST_IPMI_LIB_PATH"], [The file path to search for libraries.])
+
# Create configured output
AC_CONFIG_FILES([Makefile test/Makefile softoff/Makefile])
AC_OUTPUT
diff --git a/ipmid.cpp b/ipmid.cpp
index 238c0e5..cfaad9b 100644
--- a/ipmid.cpp
+++ b/ipmid.cpp
@@ -1,3 +1,5 @@
+#include "config.h"
+
#include "ipmid.hpp"
#include "host-cmd-manager.hpp"
OpenPOWER on IntegriCloud