34 lines
1.1 KiB
Diff
34 lines
1.1 KiB
Diff
--- configure.ac 2018-02-28 15:45:34.000000000 +0100
|
|
+++ configure.ac 2018-07-13 20:48:53.678923351 +0200
|
|
@@ -2836,8 +2836,17 @@
|
|
|
|
have_rquota=no
|
|
if test -f /usr/include/rpcsvc/rquota.x && test -n "$RPCGEN"; then
|
|
+ PKG_CHECK_MODULES(LIBTIRPC, libtirpc, [
|
|
+ have_rquota=yes
|
|
+ QUOTA_LIBS="$QUOTA_LIBS \$(LIBTIRPC_LIBS)"
|
|
+ ], [
|
|
+ AC_CHECK_HEADER([rpc/rpc.h], [
|
|
+ have_rquota=yes
|
|
+ ])
|
|
+ ])
|
|
+fi
|
|
+if test "$have_rquota" = yes; then
|
|
AC_DEFINE(HAVE_RQUOTA,, [Define if you wish to retrieve quota of NFS mounted mailboxes])
|
|
- have_rquota=yes
|
|
fi
|
|
AM_CONDITIONAL(HAVE_RQUOTA, test "$have_rquota" = "yes")
|
|
|
|
--- src/plugins/quota/Makefile.am 2018-02-28 15:45:34.000000000 +0100
|
|
+++ src/plugins/quota/Makefile.am 2018-07-13 20:50:16.056369313 +0200
|
|
@@ -17,7 +17,8 @@
|
|
-I$(top_srcdir)/src/lib-storage/index \
|
|
-I$(top_srcdir)/src/lib-storage/index/imapc \
|
|
-I$(top_srcdir)/src/lib-storage/index/maildir \
|
|
- -I$(top_srcdir)/src/doveadm
|
|
+ -I$(top_srcdir)/src/doveadm \
|
|
+ $(LIBTIRPC_CFLAGS)
|
|
|
|
NOPLUGIN_LDFLAGS =
|
|
lib10_doveadm_quota_plugin_la_LDFLAGS = -module -avoid-version
|