Skip to content

Commit

Permalink
Use command -v instead of which
Browse files Browse the repository at this point in the history
  • Loading branch information
meat authored and rodarima committed Oct 3, 2024
1 parent e7fee99 commit 9880c1b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion autogen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# Required binaries check
#
check_bin_file(){
which $1 > /dev/null 2>&1
command -v $1 > /dev/null 2>&1
if [ $? = 0 ]; then
return 0
else
Expand Down
10 changes: 5 additions & 5 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -297,18 +297,18 @@ if test "x$enable_png" = "xyes"; then

dnl Check if the user hasn't set the variable $PNG_CONFIG
if test -z "$PNG_CONFIG"; then
PNG_CONFIG=`which libpng16-config`
PNG_CONFIG=`command -v libpng16-config`
if test -z "$PNG_CONFIG"; then
PNG_CONFIG=`which libpng14-config`
PNG_CONFIG=`command -v libpng14-config`
fi
if test -z "$PNG_CONFIG"; then
PNG_CONFIG=`which libpng12-config`
PNG_CONFIG=`command -v libpng12-config`
fi
if test -z "$PNG_CONFIG"; then
PNG_CONFIG=`which libpng-config`
PNG_CONFIG=`command -v libpng-config`
fi
if test -z "$PNG_CONFIG"; then
PNG_CONFIG=`which libpng10-config`
PNG_CONFIG=`command -v libpng10-config`
fi
fi

Expand Down

0 comments on commit 9880c1b

Please sign in to comment.