diff --git a/configure.ac b/configure.ac
index 83e3070ff7e2744f08b902f1304e15f9a67e2a98..3c6759335a8a989980b2a5077b03a50d81a77e29 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1073,7 +1073,7 @@ AC_HELP_STRING([--disable-ares],[Disable ares for name lookups]),
        HAVE_ARES="1"
        AC_SUBST(HAVE_ARES)
 
-       LIBS="$LIBS -lares"
+       LIBS="$LIBS -lcares"
 
        dnl For backwards compatibility default to includes/lib in srcdir/ares
        dnl If a value is specified it is assumed that the libs are in $val/lib