]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
m4: rlimit.m4 - Modernize m4 syntax
authorAki Tuomi <aki.tuomi@open-xchange.com>
Mon, 25 Apr 2022 19:14:42 +0000 (22:14 +0300)
committerKarl Fleischmann <karl.fleischmann@open-xchange.com>
Mon, 4 Jul 2022 09:43:26 +0000 (11:43 +0200)
m4/rlimit.m4

index 9e652a4924b601fb2590325b203a147be9e67010..aed713a87852e4f3c3d1cac9d8ad6a52169a2d98 100644 (file)
@@ -15,9 +15,9 @@ AC_DEFUN([DOVECOT_RLIMIT_AS], [
     ])
   ])
   
-  if test $i_cv_have_rlimit_as = yes; then
+  AS_IF([test $i_cv_have_rlimit_as = yes], [
     AC_DEFINE(HAVE_RLIMIT_AS,, [Define if you have RLIMIT_AS for setrlimit()])
-  fi
+  ])
 ])
 
 dnl * Do we have RLIMIT_NPROC?
@@ -37,9 +37,9 @@ AC_DEFUN([DOVECOT_RLIMIT_NPROC], [
     ])
   ])
   
-  if test $i_cv_have_rlimit_nproc = yes; then
+  AS_IF([test $i_cv_have_rlimit_nproc = yes], [
     AC_DEFINE(HAVE_RLIMIT_NPROC,, [Define if you have RLIMIT_NPROC for setrlimit()])
-  fi
+  ])
 ])
 
 dnl * Do we have RLIMIT_CORE?
@@ -59,7 +59,7 @@ AC_DEFUN([DOVECOT_RLIMIT_CORE], [
     ])
   ])
   
-  if test $i_cv_have_rlimit_core = yes; then
+  AS_IF([test $i_cv_have_rlimit_core = yes], [
     AC_DEFINE(HAVE_RLIMIT_CORE,, [Define if you have RLIMIT_CORE for getrlimit()])
-  fi
+  ])
 ])