On Mon, Aug 04, 2008 at 04:24:09PM -0400, Timo Sirainen wrote: > On Aug 4, 2008, at 2:38 PM, Dean Brooks wrote: > > >Does dovecot require a shared version of the libbz2 library to compile > >correctly? Is there no way to statically link this? > > You could link the libbz2.a into the imap binary (and hope that linker > doesn't optimize it away), but you can't link .a libraries to shared > libraries (plugins). > > >Or, alternatively, is there a way to shut off this libbz2 plugin > >completely in the configure script? > > You could afterwards remove HAVE_BZLIB from config.h and remove it > from Makefile. > > Wonder if there's a way in autoconf to detect if a library is shared..
Is there a way to implement a --without-bzlib style option so people can disable compilation of some of these plugins? It seems like a bad idea to make Dovecot completely contingent on having a specific .so available on a system. Especially given that the .so version of bzlib isn't even installed by default when compiling the bzlib library. -- Dean Brooks [EMAIL PROTECTED]