From patchwork Sun Apr 11 17:01:01 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Weil X-Patchwork-Id: 49920 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 63090B7D24 for ; Mon, 12 Apr 2010 03:01:49 +1000 (EST) Received: from localhost ([127.0.0.1]:36559 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O10Xa-000382-Aj for incoming@patchwork.ozlabs.org; Sun, 11 Apr 2010 13:01:46 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O10X1-000379-3U for qemu-devel@nongnu.org; Sun, 11 Apr 2010 13:01:11 -0400 Received: from [140.186.70.92] (port=34083 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O10Wz-000351-11 for qemu-devel@nongnu.org; Sun, 11 Apr 2010 13:01:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O10Wx-0006hG-89 for qemu-devel@nongnu.org; Sun, 11 Apr 2010 13:01:08 -0400 Received: from moutng.kundenserver.de ([212.227.126.171]:60502) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O10Ww-0006gw-RX for qemu-devel@nongnu.org; Sun, 11 Apr 2010 13:01:07 -0400 Received: from flocke.weilnetz.de (p54ADE617.dip.t-dialin.net [84.173.230.23]) by mrelayeu.kundenserver.de (node=mreu0) with ESMTP (Nemesis) id 0LzFPp-1NNwbh0sL3-014w5I; Sun, 11 Apr 2010 19:01:04 +0200 Received: from stefan by flocke.weilnetz.de with local (Exim 4.71) (envelope-from ) id 1O10Ws-0007Fg-VN; Sun, 11 Apr 2010 19:01:02 +0200 From: Stefan Weil To: QEMU Developers Date: Sun, 11 Apr 2010 19:01:01 +0200 Message-Id: <1271005261-27844-1-git-send-email-weil@mail.berlios.de> X-Mailer: git-send-email 1.7.0 X-Provags-ID: V01U2FsdGVkX19S4FMMj8qwDIltgNQtSJx+B/ocojsv2b+XMaD 2MbXPccuBYdvUGfIkLYXvo+28aS2II4miZH/reQyNQct+bQLNb phcOAFBc8iceVn1nyP1IesZu3u62iUFkPj7Ir8ZjtJT53ejf5y pow== X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. Cc: Subject: [Qemu-devel] [PATCH] Use correct cflags for kvm-kmod when cross compiling X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Using $pkgconfig instead of pkg-config will use ${cross_prefix}pkg-config if that is available. This fix is needed for cross compilations without modified PATH. Without the fix, PATH must be modified to find the cross pkg-config before the native pkg-config. Signed-off-by: Stefan Weil --- configure | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/configure b/configure index 47fca4f..1f02d65 100755 --- a/configure +++ b/configure @@ -1498,7 +1498,7 @@ EOF kvm_cflags="$kvm_cflags -I$kerneldir/arch/$cpu/include" fi else - kvm_cflags=`pkg-config --cflags kvm-kmod 2> /dev/null` + kvm_cflags=`$pkgconfig --cflags kvm-kmod 2>/dev/null` fi if compile_prog "$kvm_cflags" "" ; then kvm=yes