summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorPatrick Venture <venture@google.com>2019-02-13 15:06:00 -0800
committerPatrick Venture <venture@google.com>2019-02-13 15:06:16 -0800
commit12025cdc6ae3115b4ab97ee40a597a752a5aa2f7 (patch)
tree55da0e13239a5aff7f58b0851c0d4b2b9a9b98ff /configure.ac
parent09be576c5a092c820e13c1373bb1768fbc7c03cf (diff)
downloadphosphor-objmgr-12025cdc6ae3115b4ab97ee40a597a752a5aa2f7.tar.gz
phosphor-objmgr-12025cdc6ae3115b4ab97ee40a597a752a5aa2f7.zip
build: pkg anti-pattern: use defaults
Use the defaults in the pkg check where the default error message is sufficient to identify which package is missing. Change-Id: I5bacea77a8a6814bcd21a904219f9e6cb1da58ce Signed-off-by: Patrick Venture <venture@google.com>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac6
1 files changed, 3 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index a22822f..69cc916 100644
--- a/configure.ac
+++ b/configure.ac
@@ -25,10 +25,10 @@ AC_SUBST([HAVE_PYTHON])
AC_SUBST([PYTHONDIR], ${pythondir})
# Checks for libraries.
-PKG_CHECK_MODULES([SDBUSPLUS], [sdbusplus],, [AC_MSG_ERROR([Could not find sdbusplus...openbmc/sdbusplus package required])])
-PKG_CHECK_MODULES([TINYXML2], [tinyxml2],, AC_MSG_ERROR(["Requires tinyxml2."]))
+PKG_CHECK_MODULES([SDBUSPLUS], [sdbusplus])
+PKG_CHECK_MODULES([TINYXML2], [tinyxml2])
PKG_CHECK_MODULES([SYSTEMD], [libsystemd >= 221])
-PKG_CHECK_MODULES([PHOSPHOR_LOGGING], [phosphor-logging],, AC_MSG_ERROR(["Requires phosphor-logging."]))
+PKG_CHECK_MODULES([PHOSPHOR_LOGGING], [phosphor-logging])
# 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