Skip to content

Commit

Permalink
configure: use command over which
Browse files Browse the repository at this point in the history
avoid an external dependency on which.

Which isn't always available, so use command

Signed-off-by: William Roberts <[email protected]>
  • Loading branch information
William Roberts committed Aug 23, 2021
1 parent ec3e81c commit ac9e46f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ PKG_CHECK_MODULES([TSS2_TCTILDR],[tss2-tctildr])
PKG_CHECK_MODULES([TSS2_RC],[tss2-rc])
AC_ARG_VAR([GDBUS_CODEGEN],[The gdbus-codegen executable.])
AC_CHECK_PROG([GDBUS_CODEGEN], [gdbus-codegen], [gdbus-codegen])
AS_IF([test ! -x "$(which $GDBUS_CODEGEN)"],
AS_IF([test ! -x "$(command -v $GDBUS_CODEGEN)"],
[AC_MSG_ERROR([*** gdbus-codegen is required to build tpm2-abrmd])])

# Check OS and set library and compile flags accordingly
Expand Down

0 comments on commit ac9e46f

Please sign in to comment.