From 0895aef000a2f98641ef10adef053c2f9c05a976 Mon Sep 17 00:00:00 2001 From: "Ben \"root\" Anderson" Date: Thu, 24 Oct 2013 11:36:02 -0500 Subject: [PATCH] Skip libbz2 check on MinGW for now --- autoconf/m4/bzip.m4 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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)