From patchwork Tue Jan 12 21:21:29 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kiszka X-Patchwork-Id: 72446 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.2) with ESMTP id o0CLLYWk012933 for ; Tue, 12 Jan 2010 21:21:34 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753245Ab0ALVVd (ORCPT ); Tue, 12 Jan 2010 16:21:33 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753486Ab0ALVVc (ORCPT ); Tue, 12 Jan 2010 16:21:32 -0500 Received: from fmmailgate01.web.de ([217.72.192.221]:33538 "EHLO fmmailgate01.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753009Ab0ALVVc (ORCPT ); Tue, 12 Jan 2010 16:21:32 -0500 Received: from smtp06.web.de (fmsmtp06.dlan.cinetic.de [172.20.5.172]) by fmmailgate01.web.de (Postfix) with ESMTP id B1A41144D6722; Tue, 12 Jan 2010 22:21:30 +0100 (CET) Received: from [88.65.253.164] (helo=[192.168.1.10]) by smtp06.web.de with asmtp (TLSv1:AES256-SHA:256) (WEB.DE 4.110 #314) id 1NUoB7-0002Ai-00; Tue, 12 Jan 2010 22:21:29 +0100 Message-ID: <4B4CE7D9.2060807@web.de> Date: Tue, 12 Jan 2010 22:21:29 +0100 From: Jan Kiszka User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 MIME-Version: 1.0 To: Avi Kivity , Marcelo Tosatti CC: Gleb Natapov , kvm Subject: [PATCH 2/2] qemu-kvm: Detect availability of kvm_para.h X-Enigmail-Version: 0.95.7 X-Sender: jan.kiszka@web.de X-Provags-ID: V01U2FsdGVkX18JhNo9GVvi8JMAfvapFLbxGS3T4EEMntrMfS1N neZ1ZX0brGT53pj+lETvOGAIgqb+EQeS0b37bTlWR8tiCMoXR/ GVaHximHA= Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org diff --git a/configure b/configure index 6ba565a..b6bebac 100755 --- a/configure +++ b/configure @@ -226,6 +226,7 @@ curses="" docs="" fdt="" kvm="" +kvm_para="" nptl="" sdl="" sparse="no" @@ -1445,6 +1446,13 @@ EOF kvm_cflags="$kvm_cflags -idirafter $source_path/compat" if compile_prog "$kvm_cflags" "" ; then kvm=yes + cat > $TMPC < +int main(void) { return 0; } +EOF + if compile_prog "$kvm_cflags" "" ; then + kvm_para=yes + fi else if test "$kvm" = "yes" ; then if [ -x "`which awk 2>/dev/null`" ] && \ @@ -2559,6 +2567,9 @@ case "$target_arch2" in \( "$target_arch2" = "i386" -a "$cpu" = "x86_64" \) \) ; then echo "CONFIG_KVM=y" >> $config_target_mak echo "KVM_CFLAGS=$kvm_cflags" >> $config_target_mak + if test "$kvm_para" = "yes"; then + echo "CONFIG_KVM_PARA=y" >> $config_target_mak + fi if test $kvm_cap_pit = "yes" ; then echo "CONFIG_KVM_PIT=y" >> $config_target_mak fi