configure.ac: Don't set BZ2_LIBS if bz2 is not found

This commit is contained in:
Sebastian Dröge 2013-08-26 13:48:02 +02:00
parent f7db01b0e1
commit f69cdad175

View file

@ -1090,7 +1090,9 @@ AG_GST_CHECK_FEATURE(BZ2, [bz2 library], bz2, [
AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <bzlib.h>]], [[const char *version = BZ2_bzlibVersion ();]])],[HAVE_BZ2=yes],[HAVE_BZ2=no])
AC_MSG_RESULT($HAVE_BZ2)
LIBS=$save_LIBS
BZ2_LIBS="-lbz2"
if test "x$HAVE_BZ2" = "xyes"; then
BZ2_LIBS="-lbz2"
fi
AC_SUBST(BZ2_LIBS):w
])