- PHP_EVAL_LIBLINE($CURL_LIBS, CURL_SHARED_LIBADD)
- PHP_ADD_LIBRARY_WITH_PATH(curl, $CURL_DIR/lib, HTTP_SHARED_LIBADD)
-
- PHP_CHECK_LIBRARY(curl,curl_easy_init,
- [
- AC_DEFINE(HTTP_HAVE_CURL,1,[Have CURL easy support])
- ],[
- AC_MSG_ERROR(There is something wrong with libcurl. Please check config.log for more information.)
- ],[
- $CURL_LIBS -L$CURL_DIR/lib
- ])
+ PHP_ADD_LIBRARY_WITH_PATH(curl, $CURL_DIR/$PHP_LIBDIR, HTTP_SHARED_LIBADD)
+ PHP_EVAL_LIBLINE($CURL_LIBS, HTTP_SHARED_LIBADD)
+ AC_DEFINE([HTTP_HAVE_CURL], [1], [Have cURL support])
+
+ PHP_CHECK_LIBRARY(curl, curl_multi_strerror,
+ [AC_DEFINE([HAVE_CURL_MULTI_STRERROR], [1], [ ])], [ ],
+ [$CURL_LIBS -L$CURL_DIR/$PHP_LIBDIR]
+ )
+ PHP_CHECK_LIBRARY(curl, curl_easy_strerror,
+ [AC_DEFINE([HAVE_CURL_EASY_STRERROR], [1], [ ])], [ ],
+ [$CURL_LIBS -L$CURL_DIR/$PHP_LIBDIR]
+ )
+ fi