mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-03 12:11:33 +01:00
build: Simplify detecting a TPM emulator.
* configure.ac (TPMSERVER): Don't supply hard-coded path. (SWTPM, SWTPM_IOCTL, TSSSTARTUP): Likewise. -- Cherry-picked from master commit of: f2ca727978da5b1ed84f97bf37d604e8a4e60091 Having hard-coded path has bad side effect; It may not be detected even if it's available with PATH. Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
e783866f41
commit
0494ec8f4d
@ -1613,10 +1613,10 @@ if test "$build_tpm2d" = "yes"; then
|
|||||||
if test "$have_libtss" != no; then
|
if test "$have_libtss" != no; then
|
||||||
AC_DEFINE(HAVE_LIBTSS, 1, [Defined if we have TPM2 support library])
|
AC_DEFINE(HAVE_LIBTSS, 1, [Defined if we have TPM2 support library])
|
||||||
# look for a TPM emulator for testing
|
# look for a TPM emulator for testing
|
||||||
AC_PATH_PROG(TPMSERVER, tpm_server,,/bin:/usr/bin:/usr/lib/ibmtss:/usr/libexec/ibmtss)
|
AC_PATH_PROG(TPMSERVER, tpm_server)
|
||||||
AC_PATH_PROG(SWTPM, swtpm,,/bin:/usr/bin:/usr/lib/ibmtss:/usr/libexec/ibmtss)
|
AC_PATH_PROG(SWTPM, swtpm)
|
||||||
AC_PATH_PROG(SWTPM_IOCTL, swtpm_ioctl,,/bin:/usr/bin:/usr/lib/ibmtss:/usr/libexec/ibmtss)
|
AC_PATH_PROG(SWTPM_IOCTL, swtpm_ioctl)
|
||||||
AC_PATH_PROG(TSSSTARTUP, tssstartup,,/bin:/usr/bin:/usr/lib/ibmtss:/usr/libexec/ibmtss)
|
AC_PATH_PROG(TSSSTARTUP, tssstartup)
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
if test "$have_libtss" = no; then
|
if test "$have_libtss" = no; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user