]> granicus.if.org Git - pgbouncer/commitdiff
Dont set flags when doing with-cares=auto
authorMarko Kreen <markokr@gmail.com>
Sun, 9 Jul 2017 13:03:31 +0000 (16:03 +0300)
committerMarko Kreen <markokr@gmail.com>
Sun, 9 Jul 2017 13:03:31 +0000 (16:03 +0300)
configure.ac

index dcfa0409f94decb32526d08bba462c8ed226fe60..b9df3c826f26dff2a92169d2270f5410f1b0e2c3 100644 (file)
@@ -91,10 +91,12 @@ 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" || test "$withval" = "auto"; then
+    elif test "$withval" = "yes"; then
       use_cares="$withval"
       CARES_CFLAGS=""
       CARES_LIBS="-lcares"
+    elif test "$withval" = "auto"; then
+      use_cares="$withval"
     else
       use_cares=yes
       CARES_CFLAGS="-I$withval/include"