]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
m4: Set DOVECONF_PATH
authorAki Tuomi <aki.tuomi@open-xchange.com>
Wed, 12 Nov 2025 06:54:38 +0000 (08:54 +0200)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Thu, 13 Nov 2025 09:24:03 +0000 (11:24 +0200)
If dovecot is not installed, it points to dovecot build location.

m4/dovecot.m4

index 1b45bc9a4f9bd53e74cb18605b0107e6cf5245a1..829b2f122ff394a2377ce83cc85c11643e607810 100644 (file)
@@ -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