From: Timo Sirainen Date: Mon, 21 Jul 2008 12:59:33 +0000 (+0300) Subject: Check that libbz2 has correct functions. Old versions had different names. X-Git-Tag: 1.2.alpha1~115 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=45dcebd36186498cccc3fddbe429f08460dd6c47;p=thirdparty%2Fdovecot%2Fcore.git Check that libbz2 has correct functions. Old versions had different names. --HG-- branch : HEAD --- diff --git a/configure.in b/configure.in index 3eef27e827..29c05c240a 100644 --- a/configure.in +++ b/configure.in @@ -2236,9 +2236,11 @@ AC_CHECK_HEADER(zlib.h, [ 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")