From db0eca46e65253983a0212b006e995ea52f698a9 Mon Sep 17 00:00:00 2001 From: William Roberts Date: Fri, 16 Jul 2021 15:19:33 -0500 Subject: [PATCH] configure: use type -p over which type is a bash builtin, use it over which is not always installed and missing from the dependency list anyways. Fixes: #785 Signed-off-by: William Roberts --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 5e9a556c..257cb3ce 100644 --- a/configure.ac +++ b/configure.ac @@ -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