diff options
author | Daniel Stenberg <daniel@haxx.se> | 2003-12-15 13:24:16 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2003-12-15 13:24:16 +0000 |
commit | 0839d6e6bc61f3fa035cd680056852cf3a6cd4e1 (patch) | |
tree | 30eaf3c8a90076b94f7139b2f7ce10527841451e | |
parent | bbafc27b42483c268c59eda164c43f20b2305ad6 (diff) |
We cannot 'cd' to the ares build dir to get the path, as the directory hasn't
been created at this point yet when we build outside of the source dir.
-rw-r--r-- | configure.ac | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index aadf63f04..36d689199 100644 --- a/configure.ac +++ b/configure.ac @@ -1058,8 +1058,12 @@ AC_HELP_STRING([--disable-ares],[Disable ares for name lookups]), 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" |