Tatsuhiro Tsujikawa hace 19 años
padre
commit
c3f7478a6e
Se han modificado 2 ficheros con 10 adiciones y 0 borrados
  1. 9 0
      configure
  2. 1 0
      configure.ac

+ 9 - 0
configure

@@ -878,6 +878,7 @@ Optional Packages:
   --with-openssl             use openssl library if installed. Default: yes
   --with-libxml2             use libxml2 library if installed. Default: yes
   --with-libares             use ares library if installed. Default: yes
+  --with-libcares            use c-ares library if installed. Default: yes
   --with-xml-prefix=PFX   Prefix where libxml is installed (optional)
   --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
   --with-libgnutls-prefix=PFX   Prefix where libgnutls is installed (optional)
@@ -1959,6 +1960,14 @@ else
   with_libares=yes
 fi;
 
+# Check whether --with-libcares or --without-libcares was given.
+if test "${with_libcares+set}" = set; then
+  withval="$with_libcares"
+  with_libcares=$withval
+else
+  with_libcares=yes
+fi;
+
 # Check whether --enable-bittorrent or --disable-bittorrent was given.
 if test "${enable_bittorrent+set}" = set; then
   enableval="$enable_bittorrent"

+ 1 - 0
configure.ac

@@ -17,6 +17,7 @@ AC_ARG_WITH([gnutls],  [  --with-gnutls              use gnutls library if insta
 AC_ARG_WITH([openssl], [  --with-openssl             use openssl library if installed. Default: yes], [with_openssl=$withval], [with_openssl=yes])
 AC_ARG_WITH([libxml2], [  --with-libxml2             use libxml2 library if installed. Default: yes], [with_libxml2=$withval], [with_libxml2=yes])
 AC_ARG_WITH([libares], [  --with-libares             use ares library if installed. Default: yes], [with_libares=$withval], [with_libares=yes])
+AC_ARG_WITH([libcares], [  --with-libcares            use c-ares library if installed. Default: yes], [with_libcares=$withval], [with_libcares=yes])
 
 AC_ARG_ENABLE([bittorrent], [ --enable-bittorrent        enable BitTorrent support. Default: yes], [enable_bittorrent=$enableval], [enable_bittorrent=yes])
 AC_ARG_ENABLE([metalink], [ --enable-metalink          enable Metalink support. Default: yes], [enable_metalink=$enableval], [enable_metalink=yes])