From 2dadba52dd55084bbec52b3b338add5f8be77c13 Mon Sep 17 00:00:00 2001 From: Morgan Deters Date: Wed, 17 Feb 2010 19:07:49 +0000 Subject: [PATCH] fix bug 27: --with-cxxtest-dir=(relative-path) now works --- configure.ac | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/configure.ac b/configure.ac index 7b27b8b6f..247aceb92 100644 --- a/configure.ac +++ b/configure.ac @@ -331,6 +331,16 @@ AC_ARG_WITH([cxxtest-dir], [AS_HELP_STRING([--with-cxxtest-dir=DIR], [path to CxxTest installation])], [CXXTEST="$withval"]) +# In the case of "./configure --with-cxxtest-dir=../cxxtest" (or other +# relative path) and having switched the configure directory (see above), +# search with respect to the top source dir, not the build dir +if test "$CVC4_CONFIGURE_IN_BUILDS" = yes; then + case "$CXXTEST" in + /*) ;; + *) CXXTEST="$srcdir/$CXXTEST" ;; + esac +fi + CXXTESTGEN= AC_PATH_PROG(CXXTESTGEN, cxxtestgen.pl, [], [$CXXTEST:$PATH]) if test -z "$CXXTESTGEN"; then -- 2.30.2