dovecot-1.2: Added --with-zlib and --with-bzlib configure options.
dovecot at dovecot.org
dovecot at dovecot.org
Wed Aug 13 01:21:02 EEST 2008
details: http://hg.dovecot.org/dovecot-1.2/rev/75b1f16cba72
changeset: 8090:75b1f16cba72
user: Timo Sirainen <tss at iki.fi>
date: Tue Aug 12 18:20:46 2008 -0400
description:
Added --with-zlib and --with-bzlib configure options.
diffstat:
1 file changed, 45 insertions(+), 11 deletions(-)
configure.in | 56 +++++++++++++++++++++++++++++++++++++++++++++-----------
diffs (76 lines):
diff -r 30e4c3360e76 -r 75b1f16cba72 configure.in
--- a/configure.in Tue Aug 12 17:56:58 2008 -0400
+++ b/configure.in Tue Aug 12 18:20:46 2008 -0400
@@ -272,6 +272,24 @@ AC_ARG_WITH(solr,
want_solr=yes
fi,
want_solr=no)
+
+AC_ARG_WITH(zlib,
+[ --with-zlib Build with zlib compression support],
+ if test x$withval = xno || test x$withval = xauto; then
+ want_zlib=$withval
+ else
+ want_zlib=yes
+ fi,
+ want_zlib=auto)
+
+AC_ARG_WITH(bzlib,
+[ --with-bzlib Build with bzlib compression support],
+ if test x$withval = xno || test x$withval = xauto; then
+ want_bzlib=$withval
+ else
+ want_bzlib=yes
+ fi,
+ want_bzlib=auto)
AC_ARG_WITH(ssl,
[ --with-ssl=gnutls|openssl Build with GNUTLS or OpenSSL (default)],
@@ -2233,20 +2251,36 @@ dnl ** Plugins
dnl ** Plugins
dnl **
-AC_CHECK_HEADER(zlib.h, [
- have_zlib=yes
- have_zlib_plugin=yes
- AC_DEFINE(HAVE_ZLIB,, Define if you have zlib library)
-])
+if test "$want_zlib" != "no"; then
+ AC_CHECK_HEADER(zlib.h, [
+ have_zlib=yes
+ have_zlib_plugin=yes
+ AC_DEFINE(HAVE_ZLIB,, Define if you have zlib library)
+ ], [
+ if test "$want_zlib" = "yes"; then
+ AC_ERROR([Can't build with zlib support: zlib.h not found])
+ fi
+ ])
+fi
AM_CONDITIONAL(BUILD_ZLIB, test "$have_zlib" = "yes")
-AC_CHECK_HEADER(bzlib.h, [
- AC_CHECK_LIB(bz2, BZ2_bzdopen, [
- have_bzlib=yes
- have_zlib_plugin=yes
- AC_DEFINE(HAVE_BZLIB,, Define if you have bzlib library)
+if test "$want_bzlib" != "no"; then
+ AC_CHECK_HEADER(bzlib.h, [
+ AC_CHECK_LIB(bz2, BZ2_bzdopen, [
+ have_bzlib=yes
+ have_zlib_plugin=yes
+ AC_DEFINE(HAVE_BZLIB,, Define if you have bzlib library)
+ ], [
+ if test "$want_bzlib" = "yes"; then
+ AC_ERROR([Can't build with bzlib support: libbz2 not found])
+ fi
+ ])
+ ], [
+ if test "$want_bzlib" = "yes"; then
+ AC_ERROR([Can't build with bzlib support: bzlib.h not found])
+ fi
])
-])
+fi
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