3 program=`basename "$0"`
11 if test "X$dir" = X; then
14 if test -x "$dir/$program"; then
15 if test $found = no; then
19 if test "X$next_program" = X; then
20 next_program=$dir/$program
27 if test $found = no; then
28 echo "$0: $program not found in PATH ($PATH)" >&2
30 elif test "X$next_program" = X; then
31 echo "$0: $program found only once in PATH ($PATH)" >&2
35 : ${VALGRIND:=libtool --mode=execute valgrind --log-file=valgrind.%p --leak-check=full --num-callers=20}
36 exec $VALGRIND $next_program "$@"
37 echo "$0: $VALGRIND $wrap_program $* failed" >&2