[dovecot-cvs] dovecot configure.in,1.277.2.67,1.277.2.68

tss at dovecot.org tss at dovecot.org
Thu Mar 22 00:00:45 EET 2007


Update of /var/lib/cvs/dovecot
In directory talvi:/tmp/cvs-serv23096

Modified Files:
      Tag: branch_1_0
	configure.in 
Log Message:
Check if struct stat has tv_nsec fields



Index: configure.in
===================================================================
RCS file: /var/lib/cvs/dovecot/configure.in,v
retrieving revision 1.277.2.67
retrieving revision 1.277.2.68
diff -u -d -r1.277.2.67 -r1.277.2.68
--- configure.in	16 Mar 2007 15:11:37 -0000	1.277.2.67
+++ configure.in	21 Mar 2007 22:00:41 -0000	1.277.2.68
@@ -1160,6 +1160,23 @@
   AC_MSG_RESULT(no)
 ])
 
+AC_MSG_CHECKING([if struct stat has tv_nsec fields])
+AC_TRY_COMPILE([
+  #include <sys/types.h>
+  #include <sys/stat.h>
+  #include <unistd.h>
+], [
+  struct stat st;
+  unsigned long x = st.st_mtim.tv_nsec;
+
+  return 0;
+], [
+  AC_DEFINE(HAVE_STAT_TV_NSEC,, Define if you have tv_nsec fields in struct stat)
+  AC_MSG_RESULT(yes)
+], [
+  AC_MSG_RESULT(no)
+])
+
 dnl * Check if statvfs() can be used to find out block device for files
 AC_MSG_CHECKING([if statvfs.f_mntfromname exists])
 AC_TRY_COMPILE([



More information about the dovecot-cvs mailing list