]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#433] configure.ac better detects sysrepo (and errors out when missing)
authorTomek Mrugalski <tomasz@isc.org>
Mon, 12 Aug 2019 19:09:51 +0000 (12:09 -0700)
committerTomek Mrugalski <tomek@isc.org>
Tue, 13 Aug 2019 21:43:06 +0000 (17:43 -0400)
configure.ac

index 463e52965fcc14f1760d41f96cc54d6d69fa5d00..8d3b5a82f42ca86b14f4c62b9bf690110fcb42fe 100644 (file)
@@ -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