From 024e998f8b73047eb2ae56ea92cb2cbc0bbedc17 Mon Sep 17 00:00:00 2001 From: defanor Date: Sat, 2 Oct 2021 20:23:38 +0300 Subject: Make libgsasl optional Only EXTERNAL and PLAIN mechanisms are supported without it for now. --- configure.ac | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 116598a..3e4bdd0 100644 --- a/configure.ac +++ b/configure.ac @@ -19,11 +19,16 @@ LT_INIT PKG_CHECK_MODULES([LIBXML], [libxml-2.0]) -PKG_CHECK_MODULES([GSASL], [libgsasl]) - AM_PATH_LIBGCRYPT +# GSASL, optional + +AC_ARG_WITH([gsasl], + AS_HELP_STRING([--without-gsasl], [Don't use libgsasl for SASL])) +AS_IF([test "x$with_gsasl" != "xno"], + [PKG_CHECK_MODULES([GSASL], [libgsasl], [AC_DEFINE([HAVE_GSASL], [1], [GSASL is available])])]) + # DNS: libunbound or c-ares, optional AC_ARG_VAR([DNSSEC_TRUST_ANCHOR_FILE], -- cgit v1.2.3