[dovecot-cvs] dovecot configure.in,1.113,1.114

cras at procontrol.fi cras at procontrol.fi
Fri Apr 25 05:35:34 EEST 2003


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

Modified Files:
	configure.in 
Log Message:
Use mem_align=4 with 32bit off_t



Index: configure.in
===================================================================
RCS file: /home/cvs/dovecot/configure.in,v
retrieving revision 1.113
retrieving revision 1.114
diff -u -d -r1.113 -r1.114
--- configure.in	23 Apr 2003 15:36:22 -0000	1.113
+++ configure.in	25 Apr 2003 01:35:31 -0000	1.114
@@ -49,7 +49,7 @@
 	preferred_off_t_bits=64)
 
 AC_ARG_WITH(mem-align,
-[  --with-mem-align=BYTES  Set the memory alignment (default: 8)],
+[  --with-mem-align=BYTES  Set the memory alignment (default: sizeof(off_t))],
 	mem_align=$withval,
 	mem_align=8)
 
@@ -390,6 +390,11 @@
 ], [
   AC_DEFINE_UNQUOTED(OFF_T_MAX, $offt_max, Maximum value of off_t)
 ])
+
+dnl currently we break if off_t is smaller than mem_align
+if $offt_bits = 32 -a $mem_align = 8; then
+  mem_align=4
+fi
 
 AC_DEFINE_UNQUOTED(PRIuUOFF_T, "$uofft_fmt", printf() format for uoff_t)
 




More information about the dovecot-cvs mailing list