Bug 558747 - Fix --with-system-bz2=/some/path configure flag [r=benjamin]

--HG--
extra : rebase_source : d88a38bdd0ebd3bbc6247befdf6312db7e6ede6e
This commit is contained in:
Mike Hommey 2010-04-22 10:13:50 +02:00
parent e4ead46813
commit 371a807e0e

View File

@ -4705,7 +4705,7 @@ if test -z "$BZ2_DIR" -o "$BZ2_DIR" = no; then
SYSTEM_BZ2=
else
AC_CHECK_LIB(bz2, BZ2_bzread, [SYSTEM_BZ2=1 BZ2_LIBS="-lbz2"],
[SYSTEM_BZ2= BZ2_CFLAGS= BZ2_LIBS=], $BZ2_LIBS)
[SYSTEM_BZ2= BZ2_CFLAGS= BZ2_LIBS=])
fi
CFLAGS=$_SAVE_CFLAGS
LDFLAGS=$_SAVE_LDFLAGS
@ -4713,7 +4713,7 @@ LIBS=$_SAVE_LIBS
if test "${BZ2_DIR}" -a -d "${BZ2_DIR}" -a "$SYSTEM_BZ2" = 1; then
BZ2_CFLAGS="-I${BZ2_DIR}/include"
BZ2_LIBS="-L${BZ2_DIR}/lib ${MOZ_BZ2_LIBS}"
BZ2_LIBS="-L${BZ2_DIR}/lib ${BZ2_LIBS}"
fi
dnl system PNG Support