32 lines
968 B
Plaintext
32 lines
968 B
Plaintext
AC_DEFUN([SM_BZIP],
|
|
[
|
|
AC_REQUIRE([SM_STATIC])
|
|
|
|
AX_CHECK_LIB_USING_HEADER(bz2,
|
|
'BZ2_bzCompressInit((bz_stream*) NULL, 0, 0, 0)',
|
|
bzlib.h, have_bzip=yes, have_bzip=no)
|
|
|
|
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)
|
|
|
|
if test "$with_static_bzip" = "yes"; then
|
|
LIB_PRE=$START_STATIC
|
|
LIB_POST=$END_STATIC
|
|
fi
|
|
|
|
if test "$have_bzip_header" = "no"; then
|
|
have_bzip=no
|
|
fi
|
|
|
|
if test "$have_bzip" = "no"; then
|
|
echo "*** bzip is required to build StepMania; please make sure"
|
|
echo "*** that libbz2 is installed to continue the installation process."
|
|
exit 0;
|
|
fi
|
|
|
|
LIBS="$LIBS $LIB_PRE -lbz2 $LIB_POST"
|
|
|
|
LIB_PRE=
|
|
LIB_POST=
|
|
])
|