AC_ARG_ENABLE(extra-pki,
AS_HELP_STRING([--disable-extra-pki],
[only enable the basic PKI stuff]),
- ac_enable_pki=no)
-if test x$ac_enable_pki != xno; then
- AC_MSG_RESULT(no)
- AC_DEFINE(ENABLE_PKI, 1, [whether to include all the PKCS #x stuff and other PKI stuff])
-else
+ disable_pki=$enableval, disable_pki=no)
+if test "$disable_pki" != "no"; then
ac_full=0
AC_MSG_RESULT(yes)
+else
+ AC_MSG_RESULT(no)
+ AC_DEFINE(ENABLE_PKI, 1, [whether to include all the PKCS/PKI stuff])
fi
-AM_CONDITIONAL(ENABLE_PKI, test "$ac_enable_pki" = "yes")
+AM_CONDITIONAL(ENABLE_PKI, test "$disable_pki" = "no")
dnl Check whether to disable OpenPGP authentication completely
dnl from libgnutls-extra.