dovecot-1.1: Check that libbz2 has correct functions. Old versio...

dovecot at dovecot.org dovecot at dovecot.org
Mon Jul 21 15:59:57 EEST 2008


details:   http://hg.dovecot.org/dovecot-1.1/rev/d46b9e8dcf13
changeset: 7786:d46b9e8dcf13
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Jul 21 15:59:33 2008 +0300
description:
Check that libbz2 has correct functions. Old versions had different names.

diffstat:

1 file changed, 5 insertions(+), 3 deletions(-)
configure.in |    8 +++++---

diffs (18 lines):

diff -r ea00b1553ef1 -r d46b9e8dcf13 configure.in
--- a/configure.in	Mon Jul 21 03:21:25 2008 +0300
+++ b/configure.in	Mon Jul 21 15:59:33 2008 +0300
@@ -2222,9 +2222,11 @@ AM_CONDITIONAL(BUILD_ZLIB, test "$have_z
 AM_CONDITIONAL(BUILD_ZLIB, test "$have_zlib" = "yes")
 
 AC_CHECK_HEADER(bzlib.h, [
-  have_bzlib=yes
-  have_zlib_plugin=yes
-  AC_DEFINE(HAVE_BZLIB,, Define if you have zlib library)
+  AC_CHECK_LIB(bz2, BZ2_bzdopen, [
+    have_bzlib=yes
+    have_zlib_plugin=yes
+    AC_DEFINE(HAVE_BZLIB,, Define if you have zlib library)
+  ])
 ])
 AM_CONDITIONAL(BUILD_BZLIB, test "$have_bzlib" = "yes")
 AM_CONDITIONAL(BUILD_ZLIB_PLUGIN, test "$have_zlib_plugin" = "yes")


More information about the dovecot-cvs mailing list