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: Ifff470ca7ccdbfebf61815fd4fa40549c8f2fe1a
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/configure.ac b/configure.ac
index 8a0dec1..e7faf70 100644
--- a/configure.ac
+++ b/configure.ac
@@ -20,12 +20,9 @@
# Checks for external dependencies
AC_CHECK_LIB([z], [gzopen], [],
[AC_MSG_ERROR([zlib required but not found])])
-PKG_CHECK_MODULES([SYSTEMD], [libsystemd >= 221], [],
- [AC_MSG_ERROR([systemd required but not found])])
-PKG_CHECK_MODULES([PHOSPHOR_DBUS_INTERFACES], [phosphor-dbus-interfaces], [],
- [AC_MSG_ERROR([phosphor-dbus-interfaces required but not found])])
-PKG_CHECK_MODULES([SDBUSPLUS], [sdbusplus], [],
- [AC_MSG_ERROR([sdbusplus required but not found])])
+PKG_CHECK_MODULES([SYSTEMD], [libsystemd >= 221])
+PKG_CHECK_MODULES([PHOSPHOR_DBUS_INTERFACES], [phosphor-dbus-interfaces])
+PKG_CHECK_MODULES([SDBUSPLUS], [sdbusplus])
AC_PATH_PROG([SDBUSPLUSPLUS], [sdbus++])
AS_IF([test "x$SDBUSPLUSPLUS" = "x"],
[AC_MSG_ERROR([sdbus++ required but not found])])