From 6bad8cf444955b08b307672a2569ad053a6bcb13 Mon Sep 17 00:00:00 2001 From: Tomek Mrugalski Date: Mon, 12 Aug 2019 12:09:51 -0700 Subject: [PATCH] [#433] configure.ac better detects sysrepo (and errors out when missing) --- configure.ac | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configure.ac b/configure.ac index 463e52965f..8d3b5a82f4 100644 --- a/configure.ac +++ b/configure.ac @@ -859,6 +859,9 @@ AC_ARG_WITH([sysrepo], [sysrepo_config="$withval"]) if test "${sysrepo_config}" = "yes" ; then + if test "$PKG_CONFIG" = ""; then + AC_MSG_ERROR([--with-sysrepo specified without any parameter and pkg-config was not found. Either use --with-sysrepo=path or install pkg-config]) + fi SYSREPO_CONFIG="$PKG_CONFIG" DISTCHECK_SYSREPO_CONFIGURE_FLAG="-with-sysrepo=${sysrepo_config}" elif test "${sysrepo_config}" != "no" ; then -- 2.47.2