From 36f0a5b87030a76240aa4c68abf8cd154479c5bd Mon Sep 17 00:00:00 2001
From: Michael Jerris <mike@jerris.com>
Date: Wed, 30 Nov 2011 12:03:53 -0500
Subject: [PATCH] FS-2936: don't allow using system libcurl on systems that
 strip out Curl_setopt, we use it

---
 configure.in | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/configure.in b/configure.in
index e703bbc8b2..3fd09db8f4 100644
--- a/configure.in
+++ b/configure.in
@@ -803,6 +803,16 @@ if test "$_libcurl_with" = "yes" ; then
   ac_cv_use_system_curl=yes;
 fi
 
+if test "$ac_cv_use_system_curl" = "yes" ; then
+AC_CACHE_CHECK([whether to use system libcurl library], [ac_cv_curl_usable], [
+  AC_CHECK_LIB(curl, Curl_setopt, [ac_cv_curl_usable="yes"], [ac_cv_curl_usable="no"])
+])
+fi
+
+if test "$ac_cv_curl_usable" != "yes" ; then
+  ac_cv_use_system_curl=no;
+fi
+
 if test "$ac_cv_use_system_curl" != "yes" ; then
  LIBCURL_DEPS='${switch_builddir}/libs/curl/lib/libcurl.la'
  LIBCURL='${switch_builddir}/libs/curl/lib/libcurl.la'