From: Aki Tuomi Date: Wed, 12 Nov 2025 06:54:38 +0000 (+0200) Subject: m4: Set DOVECONF_PATH X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b3ed7030c3c5a969d862d3faac5ec2357608138;p=thirdparty%2Fdovecot%2Fcore.git m4: Set DOVECONF_PATH If dovecot is not installed, it points to dovecot build location. --- diff --git a/m4/dovecot.m4 b/m4/dovecot.m4 index 1b45bc9a4f..829b2f122f 100644 --- a/m4/dovecot.m4 +++ b/m4/dovecot.m4 @@ -6,7 +6,7 @@ dnl This file is free software; the authors give dnl unlimited permission to copy and/or distribute it, with or without dnl modifications, as long as this notice is preserved. -# serial 45 +# serial 46 dnl dnl Check for support for D_FORTIFY_SOURCE=2 @@ -425,6 +425,10 @@ AC_DEFUN([DC_DOVECOT],[ AS_IF([test x$DOVECOT_HAVE_MAIL_UTF8 = xyes], [ AC_DEFINE([DOVECOT_HAVE_MAIL_UTF8],,"Define if Dovecot has mail UTF-8 support") ]) + AS_IF([test "$DOVECOT_INSTALLED" != "yes"], + AC_SUBST([DOVECONF_PATH], [$dovecotdir/src/config/doveconf]), + AC_SUBST([DOVECONF_PATH], [])) + AM_CONDITIONAL(DOVECOT_INSTALLED, test "$DOVECOT_INSTALLED" = "yes") DC_PLUGIN_DEPS