[dovecot-cvs] dovecot: Simplify some checks with AC_SEARCH_LIBS()
dovecot at dovecot.org
dovecot at dovecot.org
Mon Jun 11 22:40:49 EEST 2007
details: http://hg.dovecot.org/dovecot/rev/c1f51c3510ca
changeset: 5690:c1f51c3510ca
user: Timo Sirainen <tss at iki.fi>
date: Mon Jun 11 22:39:25 2007 +0300
description:
Simplify some checks with AC_SEARCH_LIBS()
diffstat:
1 file changed, 4 insertions(+), 23 deletions(-)
configure.in | 27 ++++-----------------------
diffs (44 lines):
diff -r c2362f144f15 -r c1f51c3510ca configure.in
--- a/configure.in Mon Jun 11 14:50:10 2007 +0300
+++ b/configure.in Mon Jun 11 22:39:25 2007 +0300
@@ -398,16 +398,10 @@ dnl ** just some generic stuff...
dnl ** just some generic stuff...
dnl **
-AC_CHECK_FUNC(socket, [], [
- AC_CHECK_LIB(socket, socket, [
- LIBS="$LIBS -lsocket"
- ])
-])
-
-AC_CHECK_FUNC(inet_addr, [], [
- AC_CHECK_LIB(nsl, inet_addr, [
- LIBS="$LIBS -lnsl"
- ])
+AC_SEARCH_LIBS(socket, socket)
+AC_SEARCH_LIBS(inet_addr, nsl)
+AC_SEARCH_LIBS(fdatasync, rt, [
+ AC_DEFINE(HAVE_FDATASYNC,, Define if you have fdatasync())
])
AC_CHECK_FUNC(cap_init, [], [
@@ -417,19 +411,6 @@ AC_CHECK_FUNC(cap_init, [], [
])
])
AC_SUBST(LIBCAP)
-
-AC_CHECK_FUNC(fdatasync, [
- have_fdatasync=yes
-], [
- AC_CHECK_LIB(rt, fdatasync, [
- have_fdatasync=yes
- LIBS="$LIBS -lrt"
- ])
-])
-
-if test "$have_fdatasync" = "yes"; then
- AC_DEFINE(HAVE_FDATASYNC,, Define if you have fdatasync())
-fi
dnl * after -lsocket and -lnsl tests, inet_aton() may be in them
AC_CHECK_FUNCS(fcntl flock lockf inet_aton sigaction getpagesize madvise \
More information about the dovecot-cvs
mailing list