]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
look for gmake as gmake, gnumake or make
authorMark Andrews <marka@isc.org>
Tue, 3 Nov 2009 02:57:22 +0000 (02:57 +0000)
committerMark Andrews <marka@isc.org>
Tue, 3 Nov 2009 02:57:22 +0000 (02:57 +0000)
util/bindlib.sh

index 0194b5b4cf2d64331aaebb836a1a0684af6dae08..482b13b322c1da0a229b01eb7c99cc65d9ae1b01 100644 (file)
@@ -14,7 +14,7 @@
 # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 # PERFORMANCE OF THIS SOFTWARE.
 
-# $Id: bindlib.sh,v 1.3 2009/10/29 00:46:48 sar Exp $
+# $Id: bindlib.sh,v 1.4 2009/11/03 02:57:22 marka Exp $
 
 # Configure, build and install the bind export libraries for use by DHCP
 #
 binddir="$1"
 bindsrcdir="$2"
 
+gmake=
+for x in gmake gnumake make; do
+       if $x --version 2>/dev/null | grep GNU > /dev/null; then
+               gmake=$x
+               break;
+       fi
+done
+if test -z "$gmake"; then
+       echo "unable to find gmake" 1>&2
+       exit 1;
+fi
+
 # Configure the export libraries
 cd $bindsrcdir
 ./configure --without-openssl --without-libxml2 --enable-exportlib --enable-threads=no --with-export-includedir=$binddir/include --with-export-libdir=$binddir/lib > $binddir/configure.log
 
 # Build the export librares
 cd lib/export
-gmake > $binddir/build.log
+MAKE=$gmake $gmake > $binddir/build.log
 
 # Install the libraries and includes
-gmake install > $binddir/install.log
+MAKE=$gmake $gmake install > $binddir/install.log