been created at this point yet when we build outside of the source dir.
AC_CONFIG_SUBDIRS(ares)
aresinc=`cd $srcdir/ares && pwd`
CPPFLAGS="$CPPFLAGS -I$aresinc"
- areslib=`cd ares && pwd`
- LDFLAGS="$LDFLAGS -L$areslib"
+
+ dnl the pwd= below cannot 'cd' into the ares dir to get the full
+ dnl path to it, since it may not exist yet if we build outside of
+ dnl the source tree
+ pwd=`pwd`
+ LDFLAGS="$LDFLAGS -L$pwd/ares"
fi
else
CPPFLAGS="$CPPFLAGS -I$enableval/include"