summaryrefslogtreecommitdiffstats
path: root/autogen.sh
diff options
context:
space:
mode:
authorJustin Clift <jclift@redhat.com>2013-03-15 02:20:42 +0000
committerAnand Avati <avati@redhat.com>2013-03-15 15:20:22 -0700
commit1409ea2e80e8d15d3202bcf6e1b9c0e0d461697c (patch)
tree3474d466b2051a21209ff78676b819c399981b59 /autogen.sh
parentfc988b255b33b323f9d310614d501a4069219831 (diff)
Warn on missing pkg-config, plus trivial comparator typo fix.
Change-Id: I68eef93ee70a934feb9a53cca050b81a4e66e26c BUG: 921817 Signed-off-by: Justin Clift <jclift@redhat.com> Reviewed-on: http://review.gluster.org/4672 Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/autogen.sh b/autogen.sh
index 2e2bd517025..d0010268332 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."