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

index 7eb0cce41c47174a5cf7dfb799071b9a7e3d219d..442c7dfb55dfb8cf82cd58744de936e851f7afc0 100644 (file)
@@ -1,19 +1,19 @@
 dnl * Linux compatible mremap()
 AC_DEFUN([DOVECOT_LINUX_MREMAP], [
   AC_CACHE_CHECK([Linux compatible mremap()],i_cv_have_linux_mremap,[
-    AC_TRY_LINK([
+    AC_LINK_IFELSE([AC_LANG_PROGRAM([[
       #include <unistd.h>
       #define __USE_GNU
       #include <sys/mman.h>
-    ][
+    ]], [[
       mremap(0, 0, 0, MREMAP_MAYMOVE);
-    ][
+    ]])],[
       i_cv_have_linux_mremap=yes
     ], [
       i_cv_have_linux_mremap=no
     ])
   ])
-  if test $i_cv_have_linux_mremap = yes; then
+  AS_IF([test $i_cv_have_linux_mremap = yes], [
     AC_DEFINE(HAVE_LINUX_MREMAP,, [Define if you have Linux-compatible mremap()])
-  fi
+  ])
 ])