From: Aki Tuomi Date: Mon, 25 Apr 2022 19:00:01 +0000 (+0300) Subject: m4: mntctl.m4 - Modernize m4 syntax X-Git-Tag: 2.4.0~3893 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=99df4e1b8bcb8aa312570ddb8f42ff2e1f368eb6;p=thirdparty%2Fdovecot%2Fcore.git m4: mntctl.m4 - Modernize m4 syntax --- diff --git a/m4/mntctl.m4 b/m4/mntctl.m4 index 9d0dde1d13..7cc74aa5b8 100644 --- a/m4/mntctl.m4 +++ b/m4/mntctl.m4 @@ -5,19 +5,18 @@ dnl ** AC_DEFUN([DOVECOT_MNTCTL], [ if test $ac_cv_header_sys_vmount_h = yes; then AC_MSG_CHECKING([for reasonable mntctl buffer size]) - AC_RUN_IFELSE([AC_LANG_SOURCE([[ + AC_RUN_IFELSE([AC_LANG_PROGRAM([[ #include #include #include - int main() { + ]], [[ int size,count; char *m; FILE *f=fopen("conftestval", "w"); if (!f) exit(1); if ((count=mntctl(MCTL_QUERY,sizeof(size),&size))!=0 || !(m=malloc(size)) || (count=mntctl(MCTL_QUERY,size,m))<=0) exit(1); - fprintf(f, "%d\n",(size * (count + 5))/count & ~1); /* 5 mounts more */ - exit(0); - } + fprintf(f, "%d\n",(size * (count + 5))/count & ~1); /* 5 mounts more */ + exit(0); ]])],[ size=`cat conftestval` rm -f conftestval