]> granicus.if.org Git - pgbouncer/commitdiff
Fix --with-cares=auto
authorMarco Nenciarini <mnencia@kcore.it>
Thu, 29 Jun 2017 12:01:33 +0000 (14:01 +0200)
committerGitHub <noreply@github.com>
Thu, 29 Jun 2017 12:01:33 +0000 (14:01 +0200)
configure.ac

index c4af0bdf781ae2b2dc3c41d5482fa86ca6b58717..dcfa0409f94decb32526d08bba462c8ed226fe60 100644 (file)
@@ -91,8 +91,8 @@ AC_ARG_WITH(cares,
   AC_HELP_STRING([--with-cares=prefix],[Specify where c-ares is installed]),
   [ if test "$withval" = "no"; then
       use_cares=no
-    elif test "$withval" = "yes"; then
-      use_cares=yes
+    elif test "$withval" = "yes" || test "$withval" = "auto"; then
+      use_cares="$withval"
       CARES_CFLAGS=""
       CARES_LIBS="-lcares"
     else