summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Venture <venture@google.com>2019-02-13 08:28:17 -0800
committerPatrick Venture <venture@google.com>2019-02-13 08:28:17 -0800
commit8024d1dc7dfff6360f3e1bdbce145652eb5698be (patch)
tree37e0ba3577847445ef4205c98cb19cae79857cab
parent40a7406097c0b5b0670c5987f6fe8c902d65562d (diff)
downloadphosphor-logging-8024d1dc7dfff6360f3e1bdbce145652eb5698be.zip
phosphor-logging-8024d1dc7dfff6360f3e1bdbce145652eb5698be.tar.gz
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: If99dcef3cfe918a7d0926cf4fa1eb34f1b619f03 Signed-off-by: Patrick Venture <venture@google.com>
-rw-r--r--configure.ac4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index fa1700a..f918ba6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -36,8 +36,8 @@ AS_IF([test "x$enable_install_scripts" != "xyes"], [
# sdbusplus is non-private because we have no library to link.
# If we ever have a library, move this to private.
- AX_PKG_CHECK_MODULES([SDBUSPLUS], [sdbusplus], [], [], [AC_MSG_ERROR(["sdbusplus required and not found."])])
- AX_PKG_CHECK_MODULES([PHOSPHOR_DBUS_INTERFACES], [], [phosphor-dbus-interfaces], [], [AC_MSG_ERROR(["phosphor-dbus-interfaces required and not found."])])
+ AX_PKG_CHECK_MODULES([SDBUSPLUS], [sdbusplus])
+ AX_PKG_CHECK_MODULES([PHOSPHOR_DBUS_INTERFACES], [phosphor-dbus-interfaces])
# Check for sdbus++
AC_PATH_PROG([SDBUSPLUSPLUS], [sdbus++])
OpenPOWER on IntegriCloud