summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-10-25 22:00:39 +0300
committerAndrei Karas <akaras@inbox.ru>2017-10-25 22:00:39 +0300
commit31de1563a480777460ab303af929464db3f80776 (patch)
tree6c2e37920bfa64291ccabb3b7a737a913f75182c /configure.ac
parent7bbd39e0da04cee932f4afe6a4c85ebb78f39a81 (diff)
downloadmanaverse-31de1563a480777460ab303af929464db3f80776.tar.gz
manaverse-31de1563a480777460ab303af929464db3f80776.tar.bz2
manaverse-31de1563a480777460ab303af929464db3f80776.tar.xz
manaverse-31de1563a480777460ab303af929464db3f80776.zip
Add configure options for build only tests binary with system catch and doctest.
Diffstat (limited to 'configure.ac')
-rwxr-xr-xconfigure.ac20
1 files changed, 19 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 6ac21107e..962dcfc0f 100755
--- a/configure.ac
+++ b/configure.ac
@@ -665,25 +665,43 @@ AC_ARG_ENABLE(unittestsbin,
unittestsbin_enabled=true
unittestsbin_catch=true
unittestsbin_doctest=false
+ unittestsbin_embed=true
;;
catch)
unittestsbin_enabled=true
unittestsbin_catch=true
unittestsbin_doctest=false
+ unittestsbin_embed=true
;;
doctest)
unittestsbin_enabled=true
unittestsbin_catch=false
unittestsbin_doctest=true
+ unittestsbin_embed=true
+ ;;
+ systemcatch)
+ unittestsbin_enabled=true
+ unittestsbin_catch=true
+ unittestsbin_doctest=false
+ unittestsbin_embed=false
+ ;;
+ systemdoctest)
+ unittestsbin_enabled=true
+ unittestsbin_catch=false
+ unittestsbin_doctest=true
+ unittestsbin_embed=false
;;
no)
- unittestsbin_enabled=false ;;
+ unittestsbin_enabled=false
+ unittestsbin_embed=true
+ ;;
*) AC_MSG_ERROR(bad value ${enableval} for --enable-unittestsbin) ;;
esac],[unittestsbin_enabled=false])
AM_CONDITIONAL(ENABLE_UNITTESTSBIN, test x$unittestsbin_enabled = xtrue)
AM_CONDITIONAL(ENABLE_UNITTESTSBIN_CATCH, test x$unittestsbin_catch = xtrue)
AM_CONDITIONAL(ENABLE_UNITTESTSBIN_DOCTEST, test x$unittestsbin_doctest = xtrue)
+AM_CONDITIONAL(ENABLE_UNITTESTSBIN_EMBED, test x$unittestsbin_embed = xtrue)
# Override home directory for unit tests
AC_ARG_WITH(unittestsdir,