]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
m4: Enable rquota only if rpc/rpc.h exists
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 9 Jul 2018 08:33:23 +0000 (11:33 +0300)
committerAki Tuomi <aki.tuomi@dovecot.fi>
Tue, 7 Aug 2018 11:10:08 +0000 (14:10 +0300)
It's been removed in glibc 2.26

m4/quota.m4

index 5840e3af894c8fb4a724d0fa7ab28d2ba7f4385d..0695b1e02100e11debdbdb20700b269965121e5b 100644 (file)
@@ -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")
 ])