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: I8db71f0c975d9c3078b1c6be7faf75667d0a223e
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/configure.ac b/configure.ac
index 63b6dec..d7d34ff 100644
--- a/configure.ac
+++ b/configure.ac
@@ -27,24 +27,9 @@
[],
[AC_MSG_ERROR(["systemd required and not found"])]
)
-PKG_CHECK_MODULES(
- [SDBUSPLUS],
- [sdbusplus],
- [],
- [AC_MSG_ERROR([The openbmc/sdbusplus package is required])]
-)
-PKG_CHECK_MODULES(
- [PHOSPHOR_LOGGING],
- [phosphor-logging],
- [],
- [AC_MSG_ERROR([The openbmc/phosphor-logging package is required])]
-)
-PKG_CHECK_MODULES(
- [PHOSPHOR_DBUS_INTERFACES],
- [phosphor-dbus-interfaces],
- [],
- [AC_MSG_ERROR(["phosphor-dbus-interfaces required and not found."])]
-)
+PKG_CHECK_MODULES([SDBUSPLUS], [sdbusplus])
+PKG_CHECK_MODULES([PHOSPHOR_LOGGING], [phosphor-logging])
+PKG_CHECK_MODULES([PHOSPHOR_DBUS_INTERFACES], [phosphor-dbus-interfaces])
PKG_CHECK_MODULES(
[LIBIPMID],
[libipmid],