diff options
author | Simon Josefsson <simon@josefsson.org> | 2006-07-13 09:34:31 +0000 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2006-07-13 09:34:31 +0000 |
commit | 0a861e33be370c21985ee229c5ce50c783b7932d (patch) | |
tree | 3127d805eeb007af775b944cb924268260e73d8c | |
parent | 1319b101ef70042a9f6fc5c8da8070006aa6bf7c (diff) | |
download | libtasn1-0a861e33be370c21985ee229c5ce50c783b7932d.tar.gz libtasn1-0a861e33be370c21985ee229c5ce50c783b7932d.tar.bz2 libtasn1-0a861e33be370c21985ee229c5ce50c783b7932d.zip |
Fix valgrind test.
-rw-r--r-- | configure.in | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/configure.in b/configure.in index dc74a59..52e7770 100644 --- a/configure.in +++ b/configure.in @@ -83,13 +83,15 @@ AC_FUNC_ALLOCA AC_MSG_NOTICE([Detecting system's parameters]) +# Run self-tests under valgrind? if test "$cross_compiling" = no; then AC_CHECK_PROGS(VALGRIND, valgrind) fi -if test -z "$VALGRIND"; then - opt_valgrind_tests=no -else +if test -n "$VALGRIND" && $VALGRIND true > /dev/null 2>&1; then opt_valgrind_tests=yes +else + opt_valgrind_tests=no + VALGRIND= fi AC_MSG_CHECKING([whether self tests are run under valgrind]) AC_ARG_ENABLE(valgrind-tests, |