diff options
author | Viliam Mateicka <viliam.mateicka@gmail.com> | 2008-12-16 21:46:11 +0100 |
---|---|---|
committer | Viliam Mateicka <viliam.mateicka@gmail.com> | 2008-12-16 21:46:11 +0100 |
commit | ddcf0a407876ef886ca8634daa223c6f27c236dc (patch) | |
tree | 64661abf5a83b688a9ec47d8270a788ba0cec2ff /configure.ac | |
parent | 98fd9b7da8547efe81d473371bb3ca7620c7b2b2 (diff) | |
download | mpd-ddcf0a407876ef886ca8634daa223c6f27c236dc.tar.gz mpd-ddcf0a407876ef886ca8634daa223c6f27c236dc.tar.xz mpd-ddcf0a407876ef886ca8634daa223c6f27c236dc.zip |
archiveapi: archive plugin for ZIP files
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 15173f186..5c4ee04e8 100644 --- a/configure.ac +++ b/configure.ac @@ -182,6 +182,14 @@ AC_ARG_ENABLE(bz2, AM_CONDITIONAL(HAVE_BZ2, test x$enable_bz2 = xyes) +AC_ARG_ENABLE(zip, + AS_HELP_STRING([--enable-zip], + [enable zip archive support (default: disabled)]), + enable_zip=$enableval, + enable_zip=no) + +AM_CONDITIONAL(HAVE_ZIP, test x$enable_zip = xyes) + # archive plugin libraries AC_CHECK_LIB(bz2, BZ2_bzDecompressInit,[MPD_LIBS="-lbz2";],enable_bz2=no) @@ -189,6 +197,11 @@ if test x$enable_bz2 = xyes; then AC_DEFINE(HAVE_BZ2, 1, [Define to have bz2 archive support]) fi +AC_CHECK_LIB(zzip, zzip_dir_open,[MPD_LIBS="-lzzip";],enable_zip=no) +if test x$enable_zip = xyes; then + AC_DEFINE(HAVE_ZIP, 1, [Define to have zip archive support]) +fi + dnl dnl decoder plugins dnl @@ -1171,6 +1184,12 @@ else echo " BZ2 archives support ..........disabled" fi +if test x$enable_zip = xyes; then + echo " ZIP archives support ..........enabled" +else + echo " ZIP archives support ..........disabled" +fi + echo "" echo "##########################################" echo "" |