Skip to content

Commit

Permalink
configure: use type -p over which
Browse files Browse the repository at this point in the history
type is a bash builtin, use it over which is not always installed and
missing from the dependency list anyways.

Fixes: tpm2-software#785

Signed-off-by: William Roberts <[email protected]>
  • Loading branch information
William Roberts committed Jul 16, 2021
1 parent f0a0b80 commit db0eca4
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 "$(type -p $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 db0eca4

Please sign in to comment.