From patchwork Fri Sep 18 11:41:24 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juan Quintela X-Patchwork-Id: 48506 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n8IBg9W8013894 for ; Fri, 18 Sep 2009 11:42:09 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756657AbZIRLmB (ORCPT ); Fri, 18 Sep 2009 07:42:01 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756641AbZIRLmB (ORCPT ); Fri, 18 Sep 2009 07:42:01 -0400 Received: from mx1.redhat.com ([209.132.183.28]:7271 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756646AbZIRLl5 (ORCPT ); Fri, 18 Sep 2009 07:41:57 -0400 Received: from int-mx05.intmail.prod.int.phx2.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.18]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n8IBg1C2004925 for ; Fri, 18 Sep 2009 07:42:01 -0400 Received: from localhost.localdomain (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx05.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n8IBfa8w017440; Fri, 18 Sep 2009 07:41:56 -0400 From: Juan Quintela To: kvm@vger.kernel.org Subject: [PATCH 13/24] Use compile_prog function in thee missing compilations Date: Fri, 18 Sep 2009 13:41:24 +0200 Message-Id: In-Reply-To: References: In-Reply-To: References: X-Scanned-By: MIMEDefang 2.67 on 10.5.11.18 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Signed-off-by: Juan Quintela --- configure | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/configure b/configure index 930e450..8c69894 100755 --- a/configure +++ b/configure @@ -936,7 +936,7 @@ cat > $TMPC < /dev/null ; then + if compile_prog $kvm_cflags ""; then kvm_cap_pit="yes" fi @@ -949,7 +949,7 @@ cat > $TMPC < /dev/null ; then + if compile_prog $kvm_cflags "" ; then kvm_cap_device_assignment="yes" fi fi @@ -963,7 +963,7 @@ cat > $TMPC << EOF #endif int main(void) { return 0; } EOF - if $cc $ARCH_CFLAGS -o $TMPE ${OS_CFLAGS} $TMPC 2>/dev/null ; then + if compile_prog "" "" ; then libs_softmmu="-lpci $libs_softmmu" else echo