diff options
author | Sebastian Dröge <slomo@circular-chaos.org> | 2013-08-26 13:47:53 +0200 |
---|---|---|
committer | Sebastian Dröge <slomo@circular-chaos.org> | 2013-08-26 13:48:04 +0200 |
commit | 8cce960372c170a8e8068807e235d18df4d6ba67 (patch) | |
tree | aa265aa64b445de3006fbf0c6cebbeb9e3716faf /configure.ac | |
parent | 4b7bcc2ec18da09eadb10cde53b3bc8276db7a8f (diff) |
configure.ac: Don't set BZ2_LIBS if bz2 is not found
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index be80dc76e..56335ac95 100644 --- a/configure.ac +++ b/configure.ac @@ -1013,7 +1013,9 @@ AG_GST_CHECK_FEATURE(BZ2, [bz2 library for matroska ],, [ 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) ]) |