summaryrefslogtreecommitdiffstats
path: root/m4/libcap.m4
blob: b4ab9cc1337b9df92eee9c0d43a0fa6d80654653 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
AC_DEFUN([DOVECOT_LIBCAP],[
 if test $want_libcap != no; then
   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
       AC_ERROR([Can't build with libcap support: libcap not found])
     fi
   ])
 fi
])