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'