[dovecot-cvs] dovecot configure.in,1.277.2.27,1.277.2.28
cras at dovecot.org
cras at dovecot.org
Thu Aug 10 20:45:36 EEST 2006
Update of /var/lib/cvs/dovecot
In directory talvi:/tmp/cvs-serv20437
Modified Files:
Tag: branch_1_0
configure.in
Log Message:
Put back specific checks for struct dqblk.dqb_curblocks vs curspace. The
removal broke compiling for some OSes such as OSX.
Index: configure.in
===================================================================
RCS file: /var/lib/cvs/dovecot/configure.in,v
retrieving revision 1.277.2.27
retrieving revision 1.277.2.28
diff -u -d -r1.277.2.27 -r1.277.2.28
--- configure.in 10 Aug 2006 17:28:30 -0000 1.277.2.27
+++ configure.in 10 Aug 2006 17:45:34 -0000 1.277.2.28
@@ -1132,6 +1132,36 @@
AC_MSG_RESULT(no)
])
+dnl * Check if we have struct dqblk.dqb_curblocks
+AC_MSG_CHECKING([if struct dqblk.dqb_curblocks exists])
+AC_TRY_COMPILE([
+ #include <sys/types.h>
+ #include "$srcdir/src/plugins/quota/quota-fs.h"
+], [
+ struct dqblk dqblk;
+ unsigned int x = dqblk.dqb_curblocks;
+], [
+ AC_DEFINE(HAVE_STRUCT_DQBLK_CURBLOCKS,, Define if struct sqblk.dqb_curblocks exists)
+ AC_MSG_RESULT(yes)
+], [
+ AC_MSG_RESULT(no)
+])
+
+dnl * Check if we have struct dqblk.dqb_curspace
+AC_MSG_CHECKING([if struct dqblk.dqb_curspace exists])
+AC_TRY_COMPILE([
+ #include <sys/types.h>
+ #include "$srcdir/src/plugins/quota/quota-fs.h"
+], [
+ struct dqblk dqblk;
+ unsigned int x = dqblk.dqb_curspace;
+], [
+ AC_DEFINE(HAVE_STRUCT_DQBLK_CURSPACE,, Define if struct sqblk.dqb_curspace exists)
+ AC_MSG_RESULT(yes)
+], [
+ AC_MSG_RESULT(no)
+])
+
dnl * Check if we have Q_QUOTACTL ioctl (Solaris)
AC_MSG_CHECKING([if struct Q_QUOTACTL ioctl exists])
AC_TRY_COMPILE([
More information about the dovecot-cvs
mailing list