Description: Link against the system bz2 library
Author: Al Nikolov <clown@debian.org>
Forwarded: non-needed
Last-Update: 2010-01-21
--- a/configure.ac
+++ b/configure.ac
@@ -64,6 +64,7 @@
     AC_MSG_WARN([XML libxml2 library version 2.6.16 or later is required to support XML filelists])
   fi
 fi
+AC_CHECK_LIB(bz2, BZ2_bzRead,, AC_MSG_ERROR([Missing bz2 library]))
 
 # Checks for header files
 
@@ -80,7 +81,6 @@
 		 lib/Makefile
 		 src/Makefile
 		 src/common/Makefile
-		 src/bzip2/Makefile
 		 src/tth/Makefile
 		 rpm/microdc.spec])
 AC_CONFIG_FILES([slackware/microdc.SlackBuild],
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,4 +1,4 @@
-SUBDIRS = common bzip2 tth
+SUBDIRS = common tth
 
 AM_CFLAGS = \
   -Wall \
@@ -40,7 +40,6 @@
 
 microdc2_LDADD = \
   common/libcommon.a \
-  bzip2/libbzip2.a \
   tth/libtth.a \
   ../lib/libgnu.a \
   $(READLINE_LIBS) \
