From 616852a5af8ff35993c8d2cc24efa6bfcb4aa7c6 Mon Sep 17 00:00:00 2001 From: Peter Maydell Date: Thu, 9 Jun 2011 22:54:29 +0100 Subject: [PATCH] configure: Detect and don't try to use older libcurl Older versions of libcurl don't have some of the features we try to use, in particular curl_multi_setopt(). Check for this in the 'is libcurl available?' configure test so we disable curl support if the library is too old. Signed-off-by: Peter Maydell Signed-off-by: Edgar E. Iglesias --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index 663b557ad0..c931ae860a 100755 --- a/configure +++ b/configure @@ -1710,7 +1710,7 @@ fi if test "$curl" != "no" ; then cat > $TMPC << EOF #include -int main(void) { return curl_easy_init(); } +int main(void) { curl_easy_init(); curl_multi_setopt(0, 0, 0); return 0; } EOF curl_cflags=`$curlconfig --cflags 2>/dev/null` curl_libs=`$curlconfig --libs 2>/dev/null` -- 2.34.1