configure: use the user specified valgrind excutable for massif
[ffmpeg.git] / configure
index 9d6ce4f..6fe7945 100755 (executable)
--- a/configure
+++ b/configure
@@ -2516,7 +2516,7 @@ case "$toolchain" in
         add_ldflags -fsanitize=thread -pie
     ;;
     valgrind-massif)
-        target_exec_default="valgrind"
+        target_exec_default=${valgrind:-"valgrind"}
         target_exec_args="--tool=massif --alloc-fn=av_malloc --alloc-fn=av_mallocz"
     ;;
     valgrind-memcheck)