dovecot-1.2: Fix VPATH build of RQUOTA support.
dovecot at dovecot.org
dovecot at dovecot.org
Tue Jul 7 22:06:00 EEST 2009
details: http://hg.dovecot.org/dovecot-1.2/rev/b340ecb24469
changeset: 9191:b340ecb24469
user: Matthias Andree <matthias.andree at gmx.de>
date: Tue Jul 07 21:01:36 2009 +0200
description:
Fix VPATH build of RQUOTA support.
Some rpcgen derive #include "..." paths from the infile argument.
This will be off for VPATH builds, as the generated rquota_xdr.c
code will look in $(srcdir), but we'll generate the rquota.h file in
$(builddir). Play safe and copy rquota.x to $(builddir) first.
This fixes the build on openSUSE 11.1.
diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
src/plugins/quota/Makefile.am | 3 ++-
diffs (15 lines):
diff -r dff7312629a7 -r b340ecb24469 src/plugins/quota/Makefile.am
--- a/src/plugins/quota/Makefile.am Tue Jul 07 15:00:52 2009 -0400
+++ b/src/plugins/quota/Makefile.am Tue Jul 07 21:01:36 2009 +0200
@@ -37,9 +37,10 @@ RQUOTA_XDR = rquota_xdr.c
#RQUOTA_X = /usr/include/rpcsvc/rquota.x
RQUOTA_X = $(srcdir)/rquota.x
rquota_xdr.c: Makefile $(RQUOTA_X)
+ if "$(srcdir)" != "$(builddir)" ; then cp $(RQUOTA_X) $(builddir) ; fi
(echo '#include "lib.h"'; \
echo '#include <rpc/rpc.h>'; \
- $(RPCGEN) -c $(RQUOTA_X) | \
+ $(RPCGEN) -c $(builddir)/rquota.x | \
sed -e 's/IXDR_PUT/(void)IXDR_PUT/g' \
-e 's,/usr/include/rpcsvc/rquota.h,rquota.h,' \
-e 's/int32_t \*buf/int32_t *buf ATTR_UNUSED/' \
More information about the dovecot-cvs
mailing list