From 97898c9056e48d2aa0ec1ec8251377c587b7caee Mon Sep 17 00:00:00 2001 From: Patrick Venture Date: Wed, 13 Feb 2019 07:43:45 -0800 Subject: 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: I420f4702c9cf78af58854fba06e731e49e1ec5f2 Signed-off-by: Patrick Venture --- configure.ac | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/configure.ac b/configure.ac index ebd6a70..6599c9e 100644 --- a/configure.ac +++ b/configure.ac @@ -22,12 +22,7 @@ LT_INIT([dlopen disable-static shared]) # Required for systemd linking LT_LIB_DLLOAD # Checks for libraries. -PKG_CHECK_MODULES( - [PHOSPHOR_LOGGING], - [phosphor-logging], - [], - [AC_MSG_ERROR([Could not find phosphor-logging...openbmc/phosphor-logging package required])] -) +PKG_CHECK_MODULES([PHOSPHOR_LOGGING], [phosphor-logging]) PKG_CHECK_MODULES( [LIBIPMID], [libipmid], -- cgit v1.2.3