diff --git a/ares/configure.ac b/ares/configure.ac
index 319d5b70b65adcb5bf76af95145567c53a9a70b9..64c76c9f90e7583ec19575389037f8fcefd5f36a 100644
--- a/ares/configure.ac
+++ b/ares/configure.ac
@@ -41,7 +41,7 @@ AC_HELP_STRING([--disable-debug],[Disable debug options]),
     dnl Checks for standard header files, to make memdebug.h inclusions bettter
     AC_HEADER_STDC
 
-    CPPFLAGS="$CPPFLAGS -DCURLDEBUG -I../include"
+    CPPFLAGS="$CPPFLAGS -DCURLDEBUG -I$srcdir/../include"
     CFLAGS="$CFLAGS -g" 
 
     dnl set compiler "debug" options to become more picky, and remove