mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 04:13:28 +01:00
Fix tests when building out-of-tree
(This was too hard. Silly autoconf.)
This commit is contained in:
parent
b408125288
commit
facecce176
@ -1407,6 +1407,14 @@ AC_SUBST(BINDIR)
|
||||
LOCALSTATEDIR=`eval echo $localstatedir`
|
||||
AC_SUBST(LOCALSTATEDIR)
|
||||
|
||||
case "$srcdir" in
|
||||
/*) TOP_SRCDIR=$srcdir;;
|
||||
*) TOP_SRCDIR=$PWD/$srcdir;;
|
||||
esac
|
||||
|
||||
AH_TEMPLATE([TOP_SRCDIR],[source directory we're building from])
|
||||
AC_DEFINE_UNQUOTED(TOP_SRCDIR,"$TOP_SRCDIR")
|
||||
|
||||
if test "$bwin32" = true; then
|
||||
# Test if the linker supports the --nxcompat and --dynamicbase options
|
||||
# for Windows
|
||||
|
@ -115,7 +115,7 @@ static void *
|
||||
fake_network_setup(const struct testcase_t *testcase)
|
||||
{
|
||||
/* This is the file containing our test descriptors. */
|
||||
const char *fname = BUILDDIR "/src/test/test_descriptors.txt";
|
||||
const char *fname = TOP_SRCDIR "/src/test/test_descriptors.txt";
|
||||
|
||||
(void) testcase;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user