cca227d2929386ee11e4aa23464681ef35eb9679Aki Tuomidnl * Check if we have struct dqblk.dqb_curblocks
cca227d2929386ee11e4aa23464681ef35eb9679Aki TuomiAC_DEFUN([DOVECOT_DQBLK_CURBLOCKS], [
cca227d2929386ee11e4aa23464681ef35eb9679Aki Tuomi AC_CACHE_CHECK([if struct dqblk.dqb_curblocks exists],i_cv_have_dqblk_dqb_curblocks,[
cca227d2929386ee11e4aa23464681ef35eb9679Aki Tuomi AC_TRY_COMPILE([
cca227d2929386ee11e4aa23464681ef35eb9679Aki Tuomi struct dqblk dqblk;
cca227d2929386ee11e4aa23464681ef35eb9679Aki Tuomi unsigned int x = dqblk.dqb_curblocks;
cca227d2929386ee11e4aa23464681ef35eb9679Aki Tuomi i_cv_have_dqblk_dqb_curblocks=yes
cca227d2929386ee11e4aa23464681ef35eb9679Aki Tuomi i_cv_have_dqblk_dqb_curblocks=no
cca227d2929386ee11e4aa23464681ef35eb9679Aki Tuomi if test $i_cv_have_dqblk_dqb_curblocks = yes; then
cca227d2929386ee11e4aa23464681ef35eb9679Aki Tuomi AC_DEFINE(HAVE_STRUCT_DQBLK_CURBLOCKS,, [Define if struct sqblk.dqb_curblocks exists])
cca227d2929386ee11e4aa23464681ef35eb9679Aki Tuomidnl * Check if we have struct dqblk.dqb_curspace
cca227d2929386ee11e4aa23464681ef35eb9679Aki TuomiAC_DEFUN([DOVECOT_DQBLK_CURSPACE], [
cca227d2929386ee11e4aa23464681ef35eb9679Aki Tuomi AC_CACHE_CHECK([if struct dqblk.dqb_curspace exists],i_cv_have_dqblk_dqb_curspace,[
cca227d2929386ee11e4aa23464681ef35eb9679Aki Tuomi AC_TRY_COMPILE([
cca227d2929386ee11e4aa23464681ef35eb9679Aki Tuomi struct dqblk dqblk;
cca227d2929386ee11e4aa23464681ef35eb9679Aki Tuomi unsigned int x = dqblk.dqb_curspace;
cca227d2929386ee11e4aa23464681ef35eb9679Aki Tuomi i_cv_have_dqblk_dqb_curspace=yes
cca227d2929386ee11e4aa23464681ef35eb9679Aki Tuomi i_cv_have_dqblk_dqb_curspace=no
cca227d2929386ee11e4aa23464681ef35eb9679Aki Tuomi if test $i_cv_have_dqblk_dqb_curspace = yes; then
cca227d2929386ee11e4aa23464681ef35eb9679Aki Tuomi AC_DEFINE(HAVE_STRUCT_DQBLK_CURSPACE,, [Define if struct sqblk.dqb_curspace exists])