X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=config9.m4;h=85a7ec4ceb3e7b5eee9668015475e005a94a6ffa;hp=457e59859d8776f9abc6b03972d4fc9bb7e0a957;hb=4ffb062b7475b0d7bd4737a959bebd9f557d8a95;hpb=89d4217ed873aa9ed8bee1faf0d31bb52c911ae6 diff --git a/config9.m4 b/config9.m4 index 457e598..85a7ec4 100644 --- a/config9.m4 +++ b/config9.m4 @@ -252,6 +252,25 @@ dnl ---- else AC_MSG_RESULT([no]) fi + + AC_MSG_CHECKING([for ares support in libcurl]) + AC_TRY_RUN([ + #include + int main(int argc, char *argv[]) { + curl_version_info_data *data = curl_version_info(CURLVERSION_NOW); + if (data && data->ares && data->ares_num0) { + return 0; + } + return 1; + } + ], [ + AC_MSG_RESULT([yes]) + AC_DEFINE([PHP_HTTP_HAVE_ARES], [1], [ ]) + ], [ + AC_MSG_RESULT([no]) + ], [ + AC_MSG_RESULT([no]) + ]) INCLUDES="$save_INCLUDES" LIBS="$save_LIBS"