From ba0fddb08844e9a97984cfe2a2a296fa08119327 Mon Sep 17 00:00:00 2001 From: Alexey Kopytov Date: Mon, 7 Mar 2016 20:20:41 +0300 Subject: [PATCH] Check if pkg-config is available and throw an error if it's not in autogen.sh --- autogen.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/autogen.sh b/autogen.sh index e55907c..b74d732 100755 --- a/autogen.sh +++ b/autogen.sh @@ -85,6 +85,17 @@ if test x$AUTOHEADER = x; then fi fi +if test x$PKG_CONFIG = x; then + PKG_CONFIG="pkg-config" +fi + +if test -z "$($PKG_CONFIG --version)"; then + echo <