summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorPatrick Venture <venture@google.com>2019-02-13 15:15:28 -0800
committerPatrick Venture <venture@google.com>2019-02-13 15:15:28 -0800
commit0d2f93212461c763ccf50df74485d10729cbdd48 (patch)
treec0d3d47e4c677e349bbdad754669be57ccd9b182 /configure.ac
parentc9caf86988b5695c117894df1628cba0cc4b4210 (diff)
downloadopenpower-pnor-code-mgmt-0d2f93212461c763ccf50df74485d10729cbdd48.tar.gz
openpower-pnor-code-mgmt-0d2f93212461c763ccf50df74485d10729cbdd48.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: Id4ae96c559212f60721bd9a3af6fd3d7742e61ee Signed-off-by: Patrick Venture <venture@google.com>
Diffstat (limited to 'configure.ac')
-rwxr-xr-xconfigure.ac9
1 files changed, 3 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac
index 79dbef858..f2d87666a 100755
--- a/configure.ac
+++ b/configure.ac
@@ -13,12 +13,9 @@ AC_PROG_INSTALL #Checks/sets the install variable to be used
AC_PROG_MAKE_SET
# Check for libraries
-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([The openbmc/phosphor-logging package is required])])
+PKG_CHECK_MODULES([PHOSPHOR_DBUS_INTERFACES], [phosphor-dbus-interfaces])
+PKG_CHECK_MODULES([SDBUSPLUS], [sdbusplus])
+PKG_CHECK_MODULES([PHOSPHOR_LOGGING], [phosphor-logging])
AC_PATH_PROG([SDBUSPLUSPLUS], [sdbus++])
OpenPOWER on IntegriCloud