From 23ac203c13cb6e53580b7091f8df83166c1a4b6e Mon Sep 17 00:00:00 2001
From: Stephan Bosch <stephan@rename-it.nl>
Date: Tue, 20 Jul 2010 13:29:46 +0200
Subject: [PATCH] Makefile fix: rhel5 still has too old automake that doesn't
 define $builddir.

---
 src/lib-sieve/Makefile.am   | 2 +-
 src/sieve-tools/Makefile.am | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/lib-sieve/Makefile.am b/src/lib-sieve/Makefile.am
index 21336e1be..7e0493f24 100644
--- a/src/lib-sieve/Makefile.am
+++ b/src/lib-sieve/Makefile.am
@@ -45,7 +45,7 @@ unfinished_plugins =
 endif
 
 # These are not actual plugins just yet...
-extdir = $(builddir)/plugins
+extdir = $(top_builddir)/src/lib-sieve/plugins
 plugins = \
 	$(extdir)/vacation/libsieve_ext_vacation.la \
 	$(extdir)/subaddress/libsieve_ext_subaddress.la \
diff --git a/src/sieve-tools/Makefile.am b/src/sieve-tools/Makefile.am
index 5ce234292..7f409bd22 100644
--- a/src/sieve-tools/Makefile.am
+++ b/src/sieve-tools/Makefile.am
@@ -16,7 +16,7 @@ AM_CPPFLAGS = \
 libs = \
 	$(top_builddir)/src/lib-sieve/libdovecot-sieve.la \
 	$(top_builddir)/src/lib-sieve-tool/libsieve-tool.la \
-	$(builddir)/debug/libsieve_ext_debug.la
+	$(top_builddir)/src/sieve-tools/debug/libsieve_ext_debug.la
 
 libs_ldadd = $(libs) $(LIBDOVECOT_STORAGE) $(LIBDOVECOT_LDA) $(LIBDOVECOT)
 libs_deps = $(libs) $(LIBDOVECOT_STORAGE_DEPS) $(LIBDOVECOT_LDA_DEPS) $(LIBDOVECOT_DEPS)
-- 
GitLab