From: Steffan Karger Date: Mon, 15 Aug 2016 18:02:36 +0000 (+0200) Subject: Fix unittests for out-of-source builds X-Git-Tag: v2.4_alpha1~44 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ee4f37c3533667aee87fd39ba131e80f3c1cfde7;p=thirdparty%2Fopenvpn.git Fix unittests for out-of-source builds Signed-off-by: Steffan Karger Acked-by: Matthias Andree Message-Id: 1471284156-2324-1-git-send-email-steffan@karger.me URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg00027.html Signed-off-by: David Sommerseth --- diff --git a/configure.ac b/configure.ac index 4f14ebd00..9189c94e5 100644 --- a/configure.ac +++ b/configure.ac @@ -1215,7 +1215,7 @@ AC_SUBST([TEST_CFLAGS]) # needed for unit testing AC_CHECK_PROGS([CMAKE], [cmake]) if test -n "${CMAKE}"; then - if test -f vendor/cmocka/CMakeLists.txt; then + if test -f "${srcdir}/vendor/cmocka/CMakeLists.txt"; then AM_CONDITIONAL([CMOCKA_INITIALIZED], [true]) else AM_CONDITIONAL([CMOCKA_INITIALIZED], [false])