summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorThomas Markwalder <tmark@isc.org>2016-01-07 09:53:39 -0500
committerThomas Markwalder <tmark@isc.org>2016-01-07 09:53:39 -0500
commitcacce092a434cf5a8d581ada72c7b12217dbe10b (patch)
tree565f57470b2f6f8d7a77d85b3def79d0e4a6b6e2 /util
parent825c459c4b71c89bc746ccc8a2c8a8148dc3ecd9 (diff)
downloadisc-dhcp-cacce092a434cf5a8d581ada72c7b12217dbe10b.tar.gz
[master] Added make tool and pkg-config tests to configure script
Merges in rt40371.
Diffstat (limited to 'util')
-rw-r--r--util/bindvar.sh13
1 files changed, 12 insertions, 1 deletions
diff --git a/util/bindvar.sh b/util/bindvar.sh
index 30ecd906..184a4cc0 100644
--- a/util/bindvar.sh
+++ b/util/bindvar.sh
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# Copyright (C) 2009 Internet Systems Consortium, Inc. ("ISC")
+# Copyright (C) 2009,2015 Internet Systems Consortium, Inc. ("ISC")
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
@@ -20,6 +20,9 @@
# use by the bind/Makefile, we do this to minimize portability
# concerns.
+# Bind requires a GNU style make to compile, if we can't find one
+# exit with a non-zero status, otherwise exit with success (i.e. 0)
+
binddir=`pwd`
gmake=
for x in gmake gnumake make; do
@@ -29,7 +32,15 @@ for x in gmake gnumake make; do
fi
done
+if [ -z $gmake ]
+then
+ echo "$0: Building Bind requires a GNU style make tool and none were found in your path. We tried gmake, gnumake, and make."
+ exit 1
+fi
+
cat <<EOF > bind/bindvar.tmp
binddir=$binddir/bind
GMAKE=$gmake
EOF
+
+exit 0