From: Brian Jackson Subject: [PATCH 1/1] Add configure script check for gawk and unifdef when using kvm-userspace.git Date: Mon, 27 Oct 2008 15:08:25 -0500 Message-ID: <200810271508.25854.iggy@theiggy.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit To: kvm@vger.kernel.org Return-path: Received: from theiggy.com ([66.220.1.110]:43943 "EHLO mail.theiggy.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752253AbYJ0UIb (ORCPT ); Mon, 27 Oct 2008 16:08:31 -0400 Received: from phil-connors.local (unknown [216.63.86.25]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.theiggy.com (Postfix) with ESMTPSA id D533DC130 for ; Mon, 27 Oct 2008 15:08:30 -0500 (CDT) Content-Disposition: inline Sender: kvm-owner@vger.kernel.org List-ID: When building kvm-userspace from git, gawk and unifdef are used by kernel/Makefile. Without this check it's non-obvious why kernel/Makefile fails. Signed-off-by: Brian Jackson diff --git a/configure b/configure index 3b5d14f..26f73f3 100755 --- a/configure +++ b/configure @@ -113,6 +113,17 @@ if [ -d "$kerneldir/include2" ]; then kernelsourcedir=${kerneldir%/*}/source fi +# check for some utils we use +if [ -d .git ] ; then + if [ ! -x "`which gawk`" ] ; then + echo "gawk not installed and necessary for compiling from git" + exit 1 + fi + if [ ! -x "`which unifdef`" ] ; then + echo "unifdef not installed and necessary for compiling from git" + exit 1 +fi + #configure user dir (cd user; ./configure --prefix="$prefix" --kerneldir="$libkvm_kerneldir" \ --arch="$arch" \