[dovecot-cvs] dovecot: Don't bother checking if cap_init() is in libc, it's al...

dovecot at dovecot.org dovecot at dovecot.org
Mon Jun 11 22:40:49 EEST 2007


details:   http://hg.dovecot.org/dovecot/rev/a28ab423949a
changeset: 5691:a28ab423949a
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Jun 11 22:40:04 2007 +0300
description:
Don't bother checking if cap_init() is in libc, it's always in libcap.

diffstat:

1 file changed, 3 insertions(+), 5 deletions(-)
configure.in |    8 +++-----

diffs (18 lines):

diff -r c1f51c3510ca -r a28ab423949a configure.in
--- a/configure.in	Mon Jun 11 22:39:25 2007 +0300
+++ b/configure.in	Mon Jun 11 22:40:04 2007 +0300
@@ -404,11 +404,9 @@ AC_SEARCH_LIBS(fdatasync, rt, [
   AC_DEFINE(HAVE_FDATASYNC,, Define if you have fdatasync())
 ])
 
-AC_CHECK_FUNC(cap_init, [], [
-	AC_CHECK_LIB(cap, cap_init, [
-		AC_DEFINE(HAVE_LIBCAP,, libcap is installed for cap_init())
-		LIBCAP="-lcap"
-	])
+AC_CHECK_LIB(cap, cap_init, [
+  AC_DEFINE(HAVE_LIBCAP,, libcap is installed for cap_init())
+  LIBCAP="-lcap"
 ])
 AC_SUBST(LIBCAP)
 


More information about the dovecot-cvs mailing list