configure.ac: fail when bzip2 plugin is enabled but not found

This commit is contained in:
Max Kellermann 2009-04-13 20:39:51 +02:00
parent 2cbda895fb
commit c824013e94

View File

@ -310,7 +310,7 @@ AC_ARG_ENABLE(bzip2,
if test x$enable_bzip2 = xyes; then
AC_CHECK_LIB(bz2, BZ2_bzDecompressInit,
[MPD_LIBS="$MPD_LIBS -lbz2"],
enable_bzip2=no)
[AC_MSG_ERROR([libbz2 not found])])
fi
AM_CONDITIONAL(HAVE_BZ2, test x$enable_bzip2 = xyes)