From e216e01ab3db0d9bea179b043276401d38bfd957 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 13 Apr 2009 20:46:31 +0200 Subject: configure.ac: detect libzzip with pkg-config Fail if the zzip plugin is enabled but not found. --- configure.ac | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 67945b51b..f7edd8145 100644 --- a/configure.ac +++ b/configure.ac @@ -324,11 +324,8 @@ AC_ARG_ENABLE(zip, [enable zip archive support (default: disabled)]),, enable_zip=no) -if test x$enable_zip = xyes; then - AC_CHECK_LIB(zzip, zzip_dir_open, - [MPD_LIBS="$MPD_LIBS -lzzip"], - enable_zip=no) -fi +MPD_AUTO_PKG(zip, ZZIP, [zziplib], + [libzzip archive library], [libzzip not found]) AM_CONDITIONAL(HAVE_ZIP, test x$enable_zip = xyes) if test x$enable_zip = xyes; then -- cgit v1.2.3