Add configure option for zlib

This commit is contained in:
Felix Janda 2015-05-02 18:59:18 +02:00 committed by Oswald Buddenhagen
parent d0494fef43
commit 9ce90dfe01

View File

@ -157,6 +157,10 @@ if test "x$ac_cv_berkdb4" = xyes; then
fi
have_zlib=
AC_ARG_WITH(zlib,
AS_HELP_STRING([--with-zlib], [use zlib [detect]]),
[ob_cv_with_zlib=$withval])
if test "x$ob_cv_with_zlib" != xno; then
AC_CHECK_LIB([z], [deflate],
[AC_CHECK_HEADER(zlib.h,
[have_zlib=1
@ -164,6 +168,7 @@ AC_CHECK_LIB([z], [deflate],
AC_DEFINE([HAVE_LIBZ], 1, [if you have the zlib library])]
)]
)
fi
AC_ARG_ENABLE(compat,
AC_HELP_STRING([--disable-compat], [don't include isync compatibility wrapper [no]]),