diff --git a/configure b/configure index 830b68bc04..5a9a2f5670 100755 --- a/configure +++ b/configure @@ -5986,6 +5986,21 @@ fi echores "$_zlib" +echocheck "bzlib" +bzlib=no +def_bzlib='#define CONFIG_BZLIB 0' +cat > $TMPC << EOF +#include +int main(void) { BZ2_bzlibVersion(); return 0; } +EOF +cc_check -lbz2 && bzlib=yes +if test "$bzlib" = yes ; then + def_bzlib='#define CONFIG_BZLIB 1' + _ld_extra="$_ld_extra -lbz2" +fi +echores "$bzlib" + + echocheck "RTC" if test "$_rtc" = auto ; then cat > $TMPC << EOF