Skip to contentSkip to conversation

Add configure script check for gawk when using kvm-userspace.git

PATCH New Brian Jackson 1 participant 1 message Sep 16, 2008 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add configure script check for gawk when using kvm-userspace.git

When building kvm-userspace from git, gawk is used by kernel/Makefile. Without this check it's non-obvious why kernel/Makefile fails.

configure +6 -0
index 3bb10ce..5cac4c8 100755
@@ -102,6 +102,12 @@ if [ "$arch" = "powerpc" ]; then
     qemu_ldflags="$qemu_ldflags -L $PWD/libfdt"
 fi
 
+# check for some utils we use
+if [ -d .git -a ! -x "`which gawk`" ] ; then
+    echo "gawk not installed and necessary for compiling from git"
+    exit 1
+fi
+
 #configure user dir
 (cd user; ./configure --prefix="$prefix" --kerneldir="$libkvm_kerneldir" \
           --arch="$arch" \