From 1409ea2e80e8d15d3202bcf6e1b9c0e0d461697c Mon Sep 17 00:00:00 2001 From: Justin Clift Date: Fri, 15 Mar 2013 02:20:42 +0000 Subject: Warn on missing pkg-config, plus trivial comparator typo fix. Change-Id: I68eef93ee70a934feb9a53cca050b81a4e66e26c BUG: 921817 Signed-off-by: Justin Clift Reviewed-on: http://review.gluster.org/4672 Reviewed-by: Kaleb KEITHLEY Tested-by: Gluster Build System Reviewed-by: Anand Avati --- autogen.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'autogen.sh') diff --git a/autogen.sh b/autogen.sh index 2e2bd517..d0010268 100755 --- a/autogen.sh +++ b/autogen.sh @@ -41,19 +41,25 @@ fi # Check for libtoolize or glibtoolize env libtoolize --version > /dev/null 2>&1 -if [ $? = 0 ]; then +if [ $? -eq 0 ]; then # libtoolize was found, so use it TOOL=libtoolize else # libtoolize wasn't found, so check for glibtoolize env glibtoolize --version > /dev/null 2>&1 - if [ $? = 0 ]; then + if [ $? -eq 0 ]; then TOOL=glibtoolize else MISSING="$MISSING libtoolize/glibtoolize" fi fi +# Check for pkg-config +env pkg-config --version > /dev/null 2>&1 +if [ $? -ne 0 ]; then + MISSING="$MISSING pkg-config" +fi + ## If dependencies are missing, warn the user and abort if [ "x$MISSING" != "x" ]; then echo "Aborting." -- cgit