]> granicus.if.org Git - curl/commitdiff
curl-config now shows asyncdns if built with ares enabled
authorDaniel Stenberg <daniel@haxx.se>
Mon, 8 Dec 2003 10:00:21 +0000 (10:00 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 8 Dec 2003 10:00:21 +0000 (10:00 +0000)
CHANGES
configure.ac
curl-config.in

diff --git a/CHANGES b/CHANGES
index 5a65de79b1f180b1940ffeead832c2a561806172..9084b36939be7c3fe04425d7d1ccfbace970801c 100644 (file)
--- 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.
index c831dffaf8ce8566f995ca1920e4284f490755fb..ca1f78a8d9dbdbcb4d8c130047c74547d430bd33 100644 (file)
@@ -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 ],
index fcbb5ff6f4c208126bd4487a98281e3e98472d79..bc8a0128c1e8ee1088f8777db1e9e1e826beb229 100644 (file)
@@ -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)