aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2009-07-16 18:33:59 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-07-16 17:28:55 -0500
commit1b0c87fc0f5fb39eca22f26cab9a8e4ffd32a6e7 (patch)
tree7a5c01028289a09ac8c8b3f0d058ecdefc206774
parent9637443f852a3abb61c0c8f33c567ff87928e845 (diff)
configure xen in a single place
Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rwxr-xr-xconfigure17
1 files changed, 7 insertions, 10 deletions
diff --git a/configure b/configure
index 0c3c27d331..4b3ee9b0f6 100755
--- a/configure
+++ b/configure
@@ -1993,11 +1993,6 @@ case "$target_arch2" in
echo "KVM_CFLAGS=$kvm_cflags" >> $config_mak
echo "#define CONFIG_KVM 1" >> $config_h
fi
- if test "$xen" = "yes" -a "$target_softmmu" = "yes";
- then
- echo "CONFIG_XEN=y" >> $config_mak
- echo "#define CONFIG_XEN 1" >> $config_h
- fi
target_phys_bits=32
;;
x86_64)
@@ -2016,11 +2011,6 @@ case "$target_arch2" in
echo "KVM_CFLAGS=$kvm_cflags" >> $config_mak
echo "#define CONFIG_KVM 1" >> $config_h
fi
- if test "$xen" = "yes" -a "$target_softmmu" = "yes"
- then
- echo "CONFIG_XEN=y" >> $config_mak
- echo "#define CONFIG_XEN 1" >> $config_h
- fi
target_phys_bits=64
;;
alpha)
@@ -2177,6 +2167,13 @@ esac
if [ $target_phys_bits -lt $hostlongbits ] ; then
target_phys_bits=$hostlongbits
fi
+case "$target_arch2" in
+ i386|x86_64)
+ if test "$xen" = "yes" -a "$target_softmmu" = "yes" ; then
+ echo "CONFIG_XEN=y" >> $config_mak
+ echo "#define CONFIG_XEN 1" >> $config_h
+ fi
+esac
echo "HWLIB=../libhw$target_phys_bits/libqemuhw$target_phys_bits.a" >> $config_mak
echo "#define TARGET_PHYS_ADDR_BITS $target_phys_bits" >> $config_h
echo "subdir-$target: subdir-libhw$target_phys_bits" >> $config_host_mak