summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-03-30 21:11:55 +0300
committerAndrei Karas <akaras@inbox.ru>2017-03-30 21:11:55 +0300
commitfec78ac900de7f61b7f08d14ffb526715e7942b0 (patch)
tree8220544b9e1b9816fe79249dd8d73f4c22f11221 /configure.ac
parente31cc8b4e05a1d14190c411ae7bd9e240a0809b5 (diff)
downloadplus-fec78ac900de7f61b7f08d14ffb526715e7942b0.tar.gz
plus-fec78ac900de7f61b7f08d14ffb526715e7942b0.tar.bz2
plus-fec78ac900de7f61b7f08d14ffb526715e7942b0.tar.xz
plus-fec78ac900de7f61b7f08d14ffb526715e7942b0.zip
Add configure flag enable-unittestsbin for build unit tests binary but not run it.
Diffstat (limited to 'configure.ac')
-rwxr-xr-xconfigure.ac14
1 files changed, 13 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 834087ede..361baef7b 100755
--- a/configure.ac
+++ b/configure.ac
@@ -572,11 +572,23 @@ AC_ARG_ENABLE(unittests,
yes) unittests_enabled=true
;;
no) unittests_enabled=false ;;
- *) AC_MSG_ERROR(bad value ${enableval} for --enable-tests) ;;
+ *) AC_MSG_ERROR(bad value ${enableval} for --enable-unittests) ;;
esac],[unittests_enabled=false])
AM_CONDITIONAL(ENABLE_UNITTESTS, test x$unittests_enabled = xtrue)
+# Enable unit tests binaries only
+AC_ARG_ENABLE(unittestsbin,
+[ --enable-unittestsbin Turn on unit tests binary compilation only],
+[case "${enableval}" in
+ yes) unittestsbin_enabled=true
+ ;;
+ no) unittestsbin_enabled=false ;;
+ *) AC_MSG_ERROR(bad value ${enableval} for --enable-unittestsbin) ;;
+esac],[unittestsbin_enabled=false])
+
+AM_CONDITIONAL(ENABLE_UNITTESTSBIN, test x$unittestsbin_enabled = xtrue)
+
# Enable tcmalloc
AC_ARG_ENABLE(tcmalloc,
[ --enable-tcmalloc Turn on tcmalloc],