diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-10-09 21:13:40 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-10-10 04:51:27 +0300 |
commit | 27a3406336522ba6d968ef0ee2c615000348d2d0 (patch) | |
tree | ae37c85ea02459824bad39c4ae87c24a992f4902 /configure.ac | |
parent | b4368e66dabccb4ad5478c52e8d58f22f162923f (diff) | |
download | plus-27a3406336522ba6d968ef0ee2c615000348d2d0.tar.gz plus-27a3406336522ba6d968ef0ee2c615000348d2d0.tar.bz2 plus-27a3406336522ba6d968ef0ee2c615000348d2d0.tar.xz plus-27a3406336522ba6d968ef0ee2c615000348d2d0.zip |
Fix configure option --with-unittestsdir.
Diffstat (limited to 'configure.ac')
-rwxr-xr-x | configure.ac | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/configure.ac b/configure.ac index ecc6ee35a..9b309ed9e 100755 --- a/configure.ac +++ b/configure.ac @@ -668,13 +668,14 @@ AM_CONDITIONAL(ENABLE_UNITTESTSBIN_CATCH, test x$unittestsbin_catch = xtrue) AM_CONDITIONAL(ENABLE_UNITTESTSBIN_DOCTEST, test x$unittestsbin_doctest = xtrue) # Override home directory for unit tests -AC_ARG_WITH(unittestsdir,[ --with-unittestsdir override home directory for unit tests ] ) -if test "x$with_unittestsdir" == "xno"; then - with_unittestsdir=no -else - with_unittestsdir=yes - CPPFLAGS="$CPPFLAGS -DUNITESTSDIR=$withval" -fi +AC_ARG_WITH(unittestsdir, +[ --with-unittestsdir override home directory for unit tests ], +[ + if test "x$withval" != "xno"; then + with_unittestsdir=$withval + CXXFLAGS="$CXXFLAGS -DUNITESTSDIR=\\\"$withval\\\"" + fi +]) # Enable tcmalloc AC_ARG_ENABLE(tcmalloc, |