From c9a71a7176f13cbd86c8270c523c0e506b2ab424 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 30 Jul 2014 22:26:24 +0200 Subject: fs/GzipOutputStream: new class wrapping zlib --- configure.ac | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index dbbb5a5ac..a5b875229 100644 --- a/configure.ac +++ b/configure.ac @@ -329,6 +329,11 @@ AC_ARG_ENABLE(audiofile, [enable audiofile support (WAV and others)]),, enable_audiofile=auto) +AC_ARG_ENABLE(zlib, + AS_HELP_STRING([--enable-zlib], + [enable zlib support (default: auto)]),, + enable_zlib=auto) + AC_ARG_ENABLE(bzip2, AS_HELP_STRING([--enable-bzip2], [enable bzip2 archive support (default: auto)]),, @@ -1031,6 +1036,16 @@ fi AM_CONDITIONAL(ENABLE_ISO9660_TEST, test x$MKISOFS != xno) +dnl ---------------------------------- zlib --------------------------------- + +MPD_AUTO_PKG(zlib, ZLIB, [zlib], + [zlib support], [zlib not found]) + +AM_CONDITIONAL(HAVE_ZLIB, test x$enable_zlib = xyes) +if test x$enable_zlib = xyes; then + AC_DEFINE(HAVE_ZLIB, 1, [Define to enable zlib support]) +fi + dnl ---------------------------------- libbz2 --------------------------------- MPD_AUTO_LIB(bzip2, BZ2, bz2, BZ2_bzDecompressInit, [-lbz2], [], -- cgit v1.2.3