summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Venture <venture@google.com>2019-02-13 15:39:44 -0800
committerPatrick Venture <venture@google.com>2019-02-13 15:39:44 -0800
commit5d3c69bc469c4e9e7d3514a336beb680cce0bd7f (patch)
treee73da0ca1aafb13d18d5e7831ab1a12b22ffc8f9
parent414db5a810049aee974437ddc8436ed70f2c46cf (diff)
downloadphosphor-settingsd-5d3c69bc469c4e9e7d3514a336beb680cce0bd7f.tar.gz
phosphor-settingsd-5d3c69bc469c4e9e7d3514a336beb680cce0bd7f.zip
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: Ifa7c986a2102fdee5d83b52dd4bbc030c43d8c7d Signed-off-by: Patrick Venture <venture@google.com>
-rw-r--r--configure.ac9
1 files changed, 3 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac
index ecfda4e..d7e7812 100644
--- a/configure.ac
+++ b/configure.ac
@@ -12,12 +12,9 @@ AC_PROG_MAKE_SET
AM_PATH_PYTHON([2.7], [AC_SUBST([PYTHON], [echo "$PYTHON"])], [AC_MSG_ERROR(
[Could not find python-2.7 installed...python-2.7 is required])])
-PKG_CHECK_MODULES([PHOSPHOR_DBUS_INTERFACES], [phosphor-dbus-interfaces],,\
- AC_MSG_ERROR(["Requires phosphor-dbus-interfaces package."]))
-PKG_CHECK_MODULES([SDBUSPLUS], [sdbusplus],,
- AC_MSG_ERROR(["Requires sdbusplus package."]))
-PKG_CHECK_MODULES([PHOSPHOR_LOGGING], [phosphor-logging],,\
- AC_MSG_ERROR(["Requires phosphor-logging package."]))
+PKG_CHECK_MODULES([PHOSPHOR_DBUS_INTERFACES], [phosphor-dbus-interfaces])
+PKG_CHECK_MODULES([SDBUSPLUS], [sdbusplus])
+PKG_CHECK_MODULES([PHOSPHOR_LOGGING], [phosphor-logging])
LT_INIT
OpenPOWER on IntegriCloud