From: Aki Tuomi Date: Mon, 25 Apr 2022 19:10:29 +0000 (+0300) Subject: m4: q_quotactl.m4 - Modernize m4 syntax X-Git-Tag: 2.4.0~3890 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=329d2faa60350cc2f28ad33008ceff8859baf50c;p=thirdparty%2Fdovecot%2Fcore.git m4: q_quotactl.m4 - Modernize m4 syntax --- diff --git a/m4/q_quotactl.m4 b/m4/q_quotactl.m4 index 36099ab439..71346d32c7 100644 --- a/m4/q_quotactl.m4 +++ b/m4/q_quotactl.m4 @@ -1,20 +1,20 @@ dnl * Check if we have Q_QUOTACTL ioctl (Solaris) AC_DEFUN([DOVECOT_Q_QUOTACTL], [ AC_CACHE_CHECK([if Q_QUOTACTL ioctl exists],i_cv_have_ioctl_q_quotactl,[ - AC_TRY_COMPILE([ + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include #include - ], [ + ]], [[ struct quotctl ctl; ioctl(0, Q_QUOTACTL, &ctl); - ], [ + ]])],[ i_cv_have_ioctl_q_quotactl=yes ], [ i_cv_have_ioctl_q_quotactl=no ]) ]) - if test $i_cv_have_ioctl_q_quotactl = yes; then + AS_IF([test $i_cv_have_ioctl_q_quotactl = yes], [ AC_DEFINE(HAVE_Q_QUOTACTL,, [Define if Q_QUOTACTL exists]) - fi + ]) ])