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

index b4ab9cc1337b9df92eee9c0d43a0fa6d80654653..b1403424144cb206e3e28600d108ff9be688c060 100644 (file)
@@ -1,13 +1,13 @@
 AC_DEFUN([DOVECOT_LIBCAP],[
- if test $want_libcap != no; then
+ AS_IF([test $want_libcap != no], [
    AC_CHECK_LIB(cap, cap_init, [
      AC_DEFINE(HAVE_LIBCAP,, [libcap is installed for cap_init()])
      LIBCAP="-lcap"
      AC_SUBST(LIBCAP)
    ], [
-     if test "$want_libcap" = "yes"; then
+     AS_IF([test "$want_libcap" = "yes"], [
        AC_ERROR([Can't build with libcap support: libcap not found])
-     fi
+     ])
    ])
- fi
+ ])
 ])