From 3f1a08eeede2f462a58f1cab0361a29418b1f6ac Mon Sep 17 00:00:00 2001 From: Avi Kivity Date: Tue, 19 May 2009 19:29:02 +0300 Subject: [PATCH] configure: Don't use shell arrays dash doesn't support arrays. Signed-off-by: Avi Kivity --- configure | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/configure b/configure index fc58acef60..dcb9ff9f48 100755 --- a/configure +++ b/configure @@ -1400,11 +1400,13 @@ fi if test -f kvm/kernel/configure; then kvm_kmod="yes" - kmod_args=() + kmod_args="" if test -n "$kerneldir"; then - kmod_args+=("--kerneldir=$kerneldir") + kmod_args="--kerneldir=$kerneldir" fi - (cd kvm/kernel; ./configure "${kmod_args[@]}") + # hope there are no spaces in kmod_args; can't use arrays because of + # dash. + (cd kvm/kernel; ./configure $kmod_args) fi echo "Install prefix $prefix" -- 2.11.4.GIT