summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Williams <patrick@stwcx.xyz>2017-06-01 15:39:40 -0500
committerPatrick Williams <patrick@stwcx.xyz>2017-06-05 21:38:09 +0000
commit9149a772dec2b86607d31d3e411f4cc2fe8a7094 (patch)
treed032a3981db4889ce577915902e2852240bf88f6
parenta71d0f15a3e2584a4f83f7cc6d9c9bbec99ea4f7 (diff)
downloadipmi-fru-parser-9149a772dec2b86607d31d3e411f4cc2fe8a7094.zip
ipmi-fru-parser-9149a772dec2b86607d31d3e411f4cc2fe8a7094.tar.gz
build: stop on error in check for mapper
The configure check for the mapper repository did not have an error condition in it. Therefore, the configure run passed and then the failure surfaced as a missing header file on compile. Add an explicit error condition to the AC_CHECK_LIB call. Change-Id: Ie7d2941963977ba157d65970db21044e7eec9b6f Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
-rw-r--r--configure.ac5
1 files changed, 3 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index c1ef974..7a74c01 100644
--- a/configure.ac
+++ b/configure.ac
@@ -17,10 +17,11 @@ AM_PATH_PYTHON([2.7],
[AC_MSG_ERROR([Could not find python-2.7 installed...python-2.7 is required])])
# Checks for libraries.
-AC_CHECK_LIB([mapper], [mapper_get_service])
+AC_CHECK_LIB([mapper], [mapper_get_service],,\
+ [AC_MSG_ERROR([Could not find libmapper: phosphor-objmgr package required])])
PKG_CHECK_MODULES([SYSTEMD], [libsystemd >= 221])
PKG_CHECK_MODULES([SDBUSPLUS], [sdbusplus],,\
- AC_MSG_ERROR(["Requires sdbusplus package."]))
+ [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