AC_HELP_STRING([--with-libcurl=DIR],[look for the curl library in DIR]),
[_libcurl_with=$withval],[_libcurl_with=ifelse([$1],,[yes],[$1])])
+AC_CACHE_CHECK([whether to use system libcurl library], [ac_cv_use_system_curl], [
+ LIBCURL_CHECK_CONFIG([yes], [7.13.0], [ac_cv_use_system_curl='yes'], [ac_cv_use_system_curl='no'])
+])
+
if test "$_libcurl_with" = "no" ; then
ac_cv_use_system_curl=no;
fi
ac_cv_use_system_curl=yes;
fi
-AC_CACHE_CHECK([whether to use system libcurl library], [ac_cv_use_system_curl], [
- LIBCURL_CHECK_CONFIG([yes], [7.13.0], [ac_cv_use_system_curl='yes'], [ac_cv_use_system_curl='no'])
-])
-
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'