diff --git a/autoconf/m4/bzip.m4 b/autoconf/m4/bzip.m4 index 882f3987b2..1d41610384 100644 --- a/autoconf/m4/bzip.m4 +++ b/autoconf/m4/bzip.m4 @@ -1,7 +1,12 @@ AC_DEFUN([SM_BZIP], [ AC_REQUIRE([SM_STATIC]) - AC_CHECK_LIB(bz2, BZ2_bzCompressInit, have_bzip=yes, have_bzip=no) + +dnl # XXX: AC_CHECK_LIB doesn't work correctly on MinGW for BZip. +dnl # Hardcoding it because I'm so fed up with this shit. + if test "$host_os" != "mingw32"; then + AC_CHECK_LIB(bz2, BZ2_bzCompressInit, have_bzip=yes, have_bzip=no) + fi AC_CHECK_HEADER(bzlib.h, have_bzip_header=yes, have_bzip_header=no) AC_ARG_WITH(static-bzip, AS_HELP_STRING([--with-static-bzip],[Statically link bzip]), with_static_bzip=$withval, with_static_bzip=no)