Sadly, that always happens to me. Haven't debugged but worked around it. Open configure.ac, remove the pkg_config check for libcurl, open Makefile.am, and replace @LIBCURL_FLAGS@ or whatever the keyword is with direct paths to the library directory where libcurl.a resides and add -lcurl then.
OK, gotcha. I actually found after fooling around some that if you comment the lines thus:
#PKG_CHECK_MODULES([LIBCURL], [libcurl >= 7.15.6], [AC_DEFINE([CURL_HAS_SOCKOPT], [1], [Defined if version of curl supports sockopts.])],
#[PKG_CHECK_MODULES([LIBCURL], [libcurl >= 7.10.1], ,[AC_MSG_ERROR([Missing required libcurl dev >= 7.10.1])])])
#AC_SUBST(LIBCURL_LIBS)
and add the line:
LIBCURL_LIBS=-lcurl
you don't have to change Makefile.am
Of course now it's bitching about include files in the Platform SDK.