]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Use mem_align=4 with 32bit off_t
authorTimo Sirainen <tss@iki.fi>
Fri, 25 Apr 2003 01:35:31 +0000 (04:35 +0300)
committerTimo Sirainen <tss@iki.fi>
Fri, 25 Apr 2003 01:35:31 +0000 (04:35 +0300)
--HG--
branch : HEAD

configure.in

index 59cdd7c9e5cd82ee466969236e97b467213e8698..41b81fe4780d75389b2fcea3f05296aa5d7ac195 100644 (file)
@@ -49,7 +49,7 @@ AC_ARG_WITH(file-offset-size,
        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)
 
@@ -391,6 +391,11 @@ AC_TRY_COMPILE([
   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)
 
 dnl * make sure size_t isn't signed. we'd probably work fine with it, but