Skip to content

Commit 214042a

Browse files
committed
build: don't append valgrind CPPFLAGS if not installed
1 parent 793ad90 commit 214042a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

configure.ac

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ case $host_os in
4343
# These Homebrew packages may be keg-only, meaning that they won't be found
4444
# in expected paths because they may conflict with system files. Ask
4545
# Homebrew where each one is located, then adjust paths accordingly.
46-
valgrind_prefix=`$BREW --prefix valgrind 2>/dev/null`
47-
if test x$valgrind_prefix != x; then
46+
if $BREW list --versions valgrind >/dev/null; then
47+
valgrind_prefix=`$BREW --prefix valgrind 2>/dev/null`
4848
VALGRIND_CPPFLAGS="-I$valgrind_prefix/include"
4949
fi
5050
else

0 commit comments

Comments
 (0)