mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
build: Check for conflicting trust model options.
* configure.ac: Disable TOFU if configured without trust models, and check for conflicting options. Signed-off-by: Justus Winter <justus@g10code.com>
This commit is contained in:
parent
b74185b6ea
commit
6060ea898f
@ -263,8 +263,11 @@ AC_MSG_CHECKING([whether to enable TOFU])
|
||||
AC_ARG_ENABLE(tofu,
|
||||
AC_HELP_STRING([--disable-tofu],
|
||||
[disable the TOFU trust model]),
|
||||
use_tofu=$enableval, use_tofu=yes)
|
||||
use_tofu=$enableval, use_tofu=$use_trust_models)
|
||||
AC_MSG_RESULT($use_tofu)
|
||||
if test "$use_trust_models" = no && test "$use_tofu" = yes; then
|
||||
AC_MSG_ERROR([both --disable-trust-models and --enable-tofu given])
|
||||
fi
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user