From bfe40f011550beab984a2e24486fc1b132109068 Mon Sep 17 00:00:00 2001 From: winlin Date: Mon, 13 Apr 2020 19:50:40 +0800 Subject: [PATCH] Check pkg-config --- trunk/auto/depends.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/trunk/auto/depends.sh b/trunk/auto/depends.sh index 1ed7e3aa3..7c4e96141 100755 --- a/trunk/auto/depends.sh +++ b/trunk/auto/depends.sh @@ -110,7 +110,11 @@ function Ubuntu_prepare() echo "The valgrind-dev is installed." fi fi - + + pkg-config --version >/dev/null 2>&1; ret=$?; if [[ 0 -ne $ret ]]; then + echo "Please install pkg-config"; exit -1; + fi + echo "Tools for Ubuntu are installed." return 0 } @@ -191,6 +195,10 @@ function Centos_prepare() echo "The valgrind-devel is installed." fi fi + + pkg-config --version --help >/dev/null 2>&1; ret=$?; if [[ 0 -ne $ret ]]; then + echo "Please install pkg-config"; exit -1; + fi echo "Tools for Centos are installed." return 0