From 9149a772dec2b86607d31d3e411f4cc2fe8a7094 Mon Sep 17 00:00:00 2001 From: Patrick Williams Date: Thu, 1 Jun 2017 15:39:40 -0500 Subject: 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 --- configure.ac | 5 +++-- 1 file 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])]) -- cgit v1.2.1