From 493bffb3e0bd616c2a333d563bc1dd4addec5359 Mon Sep 17 00:00:00 2001 From: Luca Deri Date: Sun, 19 Apr 2020 21:48:24 +0200 Subject: Added check for pkg-config presence --- autogen.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/autogen.sh b/autogen.sh index c4ce5bc16..e03f93023 100755 --- a/autogen.sh +++ b/autogen.sh @@ -12,6 +12,7 @@ AUTOMAKE=$(command -v automake) LIBTOOL=$(command -v libtool) LIBTOOLIZE=$(command -v libtoolize) AUTORECONF=$(command -v autoreconf) +PKG_CONFIG=$(command -v pkg-config) if test -z $AUTOCONF; then echo "autoconf is missing: please install it and try again" @@ -33,6 +34,11 @@ if test -z $AUTORECONF; then exit fi +if test -z $PKG_CONFIG; then + echo "pkg-config is missing: please install it (apt-get install pkg-config) and try again" + exit +fi + cat configure.seed | sed \ -e "s/@NDPI_MAJOR@/$NDPI_MAJOR/g" \ -e "s/@NDPI_MINOR@/$NDPI_MINOR/g" \ -- cgit v1.2.3