[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 3/3] use pkg-config for libcurl when cross compiling
From: |
Paolo Bonzini |
Subject: |
[Qemu-devel] [PATCH 3/3] use pkg-config for libcurl when cross compiling |
Date: |
Thu, 7 Jan 2010 15:42:18 +0100 |
Signed-off-by: Paolo Bonzini <address@hidden>
---
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 <curl/curl.h>
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