aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-04-01 09:10:33 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-04-01 09:10:33 +0000
commit01ea3577445360940ee776f6863e676c53014d1d (patch)
treea154a4bda7be6e920cd5f183534e3bdc8310845e
parentad9e83a90ff756eb38099856cd80340189ae7d32 (diff)
When ares is enabled, we now check for the ares_cancel function to verify
that we use a library that is recent enough to build with the latest libcurl.
-rw-r--r--configure.ac22
1 files changed, 22 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 29e44f3c1..b265c75a1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1268,6 +1268,28 @@ AC_HELP_STRING([--disable-ares],[Disable ares for name lookups]),
CPPFLAGS="$CPPFLAGS -I$enableval/include"
LDFLAGS="$LDFLAGS -L$enableval/lib"
fi
+
+ dnl verify that a sufficient c-ares is here
+ AC_MSG_CHECKING([that c-ares is good and recent enough])
+ AC_LINK_IFELSE( [
+#include <ares.h>
+/* provide a set of dummy functions in case c-ares was built with debug */
+void curl_dofree() { }
+void curl_sclose() { }
+void curl_domalloc() { }
+
+int main(void)
+{
+ ares_channel channel;
+ ares_cancel(channel);
+ return 0;
+}
+],
+ AC_MSG_RESULT(yes),
+ AC_MSG_RESULT(no)
+ AC_MSG_ERROR([c-ares library defective or too old])
+ )
+
;;
esac ],
AC_MSG_RESULT(no)