On 29.2.2012, at 3.03, Andreas M. Kirchwitz wrote: > Timo Sirainen <t...@iki.fi> wrote: > >>> There seems to be a new dependency in some modules (eg, lib-storage, >>> libdovecot-lda, libdovecot-ssl) on OpenSSL. In Dovecot 2.0, those >>> modules didn't require OpenSSL, but 2.1 does. >>> >>> For the linking process the path to the OpenSSL library isn't >>> specified properly (SSL_LIBS). Dovecot fails to build if OpenSSL >>> is in a non-standard path. (Haven't checked if SSL_CFLAGS isn't >>> properly used as well.) >> >> Maybe http://hg.dovecot.org/dovecot-2.1/rev/c07415305d9e fixes >> everything? > > That's the way to go. Makes things better, but I've found three more > dependencies. This patch is against the daily snapshot 20120228. > (Sorry for the changes to Makefile.in which you won't need. But this way > I don't have to rebuild Makefile.in from Makefile.am when compiling. ;-)
The SSL libraries shouldn't be linked when imapc isn't built. Also it probably wouldn't have built with you if you used configure --without-shared-libs. I did a bit large change that hopefully fixes everything: http://hg.dovecot.org/dovecot-2.1/rev/e540404debb7