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

index babbcbd8e6eae31f772b71734fd291be08425b85..82c0c1d50c3dfd1090fa8160871f01641335cd99 100644 (file)
@@ -4,12 +4,12 @@ AC_DEFUN([DOVECOT_ARC4RANDOM], [
      [Use libbsd (default is no)]
   ), [want_libbsd=$withval], [want_libbsd=no])
   AC_CHECK_FUNC([arc4random_buf], AC_DEFINE([HAVE_ARC4RANDOM], [1], [Define this if you have arc4random_buf()]), [
-      if test "$want_libbsd" = yes; then
+      AS_IF([test "$want_libbsd" = yes], [
         AC_CHECK_LIB([bsd], [arc4random_buf], [
           LIBS="$LIBS -lbsd"
           AC_DEFINE([HAVE_ARC4RANDOM], [1], [Define this if you have arc4random_buf()])
           AC_DEFINE([HAVE_LIBBSD], [1], [Define this if you have libbsd])
         ])
-      fi
+      ])
   ])
 ])