From: Timo Sirainen Date: Mon, 9 Jul 2018 08:33:23 +0000 (+0300) Subject: m4: Enable rquota only if rpc/rpc.h exists X-Git-Tag: 2.3.3.rc1~161 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=75a4b80f7e6c935f13c7d7de47de3e491698e566;p=thirdparty%2Fdovecot%2Fcore.git m4: Enable rquota only if rpc/rpc.h exists It's been removed in glibc 2.26 --- diff --git a/m4/quota.m4 b/m4/quota.m4 index 5840e3af89..0695b1e021 100644 --- a/m4/quota.m4 +++ b/m4/quota.m4 @@ -7,8 +7,10 @@ AC_DEFUN([DOVECOT_RPCGEN], [ have_rquota=no if test -f /usr/include/rpcsvc/rquota.x && test -n "$RPCGEN"; then - AC_DEFINE(HAVE_RQUOTA,, [Define if you wish to retrieve quota of NFS mounted mailboxes]) - have_rquota=yes + AC_CHECK_HEADER([rpc/rpc.h], [ + 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") ])