From 1384cde059be80ad0c8554cfc2975893af55c86b Mon Sep 17 00:00:00 2001 From: Patrick Venture Date: Wed, 13 Feb 2019 15:10:50 -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: Ie8279e319c33bdbb9425c2d1a3d0e50b6a5150c1 Signed-off-by: Patrick Venture --- configure.ac | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 84a946f..482fa5b 100644 --- a/configure.ac +++ b/configure.ac @@ -21,9 +21,9 @@ AM_PATH_PYTHON([2.7], # Checks for libraries. PKG_CHECK_MODULES([SYSTEMD], [libsystemd >= 221]) -PKG_CHECK_MODULES([SDBUSPLUS], [sdbusplus],, AC_MSG_ERROR(["Requires sdbusplus package."])) -PKG_CHECK_MODULES([PHOSPHOR_DBUS_INTERFACES], [phosphor-dbus-interfaces],, AC_MSG_ERROR(["Requires phosphor-dbus-interfaces package."])) -PKG_CHECK_MODULES([PHOSPHOR_LOGGING], [phosphor-logging],, AC_MSG_ERROR(["Requires phosphor-logging."])) +PKG_CHECK_MODULES([SDBUSPLUS], [sdbusplus]) +PKG_CHECK_MODULES([PHOSPHOR_DBUS_INTERFACES], [phosphor-dbus-interfaces]) +PKG_CHECK_MODULES([PHOSPHOR_LOGGING], [phosphor-logging]) # Checks for typedefs, structures, and compiler characteristics. AX_CXX_COMPILE_STDCXX_17([noext]) -- cgit v1.2.1