[dovecot-cvs] dovecot configure.in,1.34,1.35 acconfig.h,1.7,1.8

cras at procontrol.fi cras at procontrol.fi
Thu Oct 24 04:34:22 EEST 2002


Update of /home/cvs/dovecot
In directory danu:/tmp/cvs-serv28902

Modified Files:
	configure.in acconfig.h 
Log Message:
Check fdatasync() from -lrt if it's not in libc (solaris). Also fallback to
fsync() entirely if fdatasync() doesn't exist.



Index: configure.in
===================================================================
RCS file: /home/cvs/dovecot/configure.in,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -d -r1.34 -r1.35
--- configure.in	20 Oct 2002 03:15:16 -0000	1.34
+++ configure.in	24 Oct 2002 00:34:20 -0000	1.35
@@ -109,6 +109,15 @@
 	])
 ])
 
+AC_CHECK_FUNC(fdatasync, [
+	AC_DEFINE([HAVE_FDATASYNC])
+], [
+	AC_CHECK_LIB(rt, fdatasync, [
+		AC_DEFINE([HAVE_FDATASYNC])
+		LIBS="$LIBS -lrt"
+	])
+])
+
 dnl * after -lsocket and -lnsl tests, inet_aton() may be in them
 AC_CHECK_FUNCS(fcntl flock inet_aton sigaction getpagesize madvise setreuid)
 AC_CHECK_FUNCS(strcasecmp stricmp vsnprintf memmove vsyslog writev)

Index: acconfig.h
===================================================================
RCS file: /home/cvs/dovecot/acconfig.h,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- acconfig.h	14 Oct 2002 00:27:42 -0000	1.7
+++ acconfig.h	24 Oct 2002 00:34:20 -0000	1.8
@@ -52,3 +52,6 @@
 
 /* Define if you have Linux-compatible mremap() */
 #undef HAVE_LINUX_MREMAP
+
+/* Define if you have fdatasync() */
+#undef HAVE_FDATASYNC




More information about the dovecot-cvs mailing list