summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-12-08 10:00:21 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-12-08 10:00:21 +0000
commit437afe07672c567df46d804b777dd8303d066d23 (patch)
tree90b1186da310b5b480e3c831b2ae65e60452c166
parent0ab2dff69ce7da9964bd8060d8f8d71799048d74 (diff)
downloadcurl-437afe07672c567df46d804b777dd8303d066d23.tar.gz
curl-config now shows asyncdns if built with ares enabled
-rw-r--r--CHANGES5
-rw-r--r--configure.ac4
-rw-r--r--curl-config.in3
3 files changed, 11 insertions, 1 deletions
diff --git a/CHANGES b/CHANGES
index 5a65de79b..9084b3693 100644
--- a/CHANGES
+++ b/CHANGES
@@ -7,6 +7,11 @@
Changelog
+Daniel (8 December)
+- Based on a patch from Dominick Meglio, curl-config --feature now outputs
+ 'AsynchDNS' as a feature if libcurl was built with ares. The feature name
+ is the same that 'curl -V' outputs, for simplicity.
+
Daniel (3 December)
- Marty Kuhrt made the build up-to-date on VMS, and moved most of the VMS-
specific stuff in the client code to a separate header file.
diff --git a/configure.ac b/configure.ac
index c831dffaf..ca1f78a8d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1043,7 +1043,9 @@ AC_HELP_STRING([--disable-ares],[Disable using ares for name lookups]),
fi
AC_DEFINE(USE_ARES, 1, [Define if you want to enable ares support])
-
+ dnl substitute HAVE_ARES for curl-config and similar
+ HAVE_ARES="1"
+ AC_SUBST(HAVE_ARES)
ares="yes"
;;
esac ],
diff --git a/curl-config.in b/curl-config.in
index fcbb5ff6f..bc8a0128c 100644
--- a/curl-config.in
+++ b/curl-config.in
@@ -90,6 +90,9 @@ while test $# -gt 0; do
if test "@CURL_DISABLE_DICT@" = "1"; then
echo "DICT-disabled"
fi
+ if test "@HAVE_ARES@" = "1"; then
+ echo "AsynchDNS"
+ fi
;;
--version)