From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NStZJ-00016T-7w for qemu-devel@nongnu.org; Thu, 07 Jan 2010 09:42:33 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NStZB-0000yO-8U for qemu-devel@nongnu.org; Thu, 07 Jan 2010 09:42:29 -0500 Received: from [199.232.76.173] (port=39725 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NStZA-0000y7-Ub for qemu-devel@nongnu.org; Thu, 07 Jan 2010 09:42:24 -0500 Received: from mx1.redhat.com ([209.132.183.28]:19748) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NStZA-0007xx-EB for qemu-devel@nongnu.org; Thu, 07 Jan 2010 09:42:24 -0500 Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o07EgM3E007439 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 7 Jan 2010 09:42:22 -0500 Received: from localhost.localdomain (vpn2-11-178.ams2.redhat.com [10.36.11.178]) by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o07EgIoV005391 for ; Thu, 7 Jan 2010 09:42:22 -0500 From: Paolo Bonzini Date: Thu, 7 Jan 2010 15:42:18 +0100 Message-Id: <1262875338-4104-4-git-send-email-pbonzini@redhat.com> In-Reply-To: <1262875338-4104-1-git-send-email-pbonzini@redhat.com> References: <1262875338-4104-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PATCH 3/3] use pkg-config for libcurl when cross compiling List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Signed-off-by: Paolo Bonzini --- configure | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 9fc3173..92a0d21 100755 --- a/configure +++ b/configure @@ -1309,13 +1309,19 @@ fi ########################################## # curl probe +if test "$pkgconfig" = pkg-config; then + curlconfig=curl-config +else + curlconfig='$pkgconfig libcurl' +fi + if test "$curl" != "no" ; then cat > $TMPC << EOF #include int main(void) { return curl_easy_init(); } EOF - curl_cflags=`curl-config --cflags 2>/dev/null` - curl_libs=`curl-config --libs 2>/dev/null` + curl_cflags=`$curlconfig --cflags 2>/dev/null` + curl_libs=`$curlconfig --libs 2>/dev/null` if compile_prog "$curl_cflags" "$curl_libs" ; then curl=yes libs_tools="$curl_libs $libs_tools" -- 1.6.5.2