Blame SOURCES/dump-remove-lzo.patch

836d62
diff --git a/configure.in b/configure.in
836d62
index e40e01b..cd8c35b 100644
836d62
--- a/configure.in
836d62
+++ b/configure.in
836d62
@@ -551,6 +551,23 @@ fi
836d62
 AC_SUBST(ZLIB)
836d62
 
836d62
 dnl
836d62
+dnl Check for lzo headers and libraries
836d62
+dnl
836d62
+AC_CHECK_HEADER(lzo/minilzo.h, [minilzo_h=yes], [minilzo_h=no], [-])
836d62
+AC_CHECK_LIB(minilzo, lzo1x_1_compress, [minilzo_lib=yes], [minilzo_lib=no])
836d62
+if test "$minilzo_h" = yes -a "$minilzo_lib" = yes; then
836d62
+	if test "$STATICZ" = yes; then
836d62
+		LZOLIB="-Wl,-Bstatic -lminilzo -Wl,-Bdynamic"
836d62
+	else
836d62
+		LZOLIB="-lminilzo"
836d62
+	fi
836d62
+	AC_DEFINE([HAVE_LZO],1,[Define this if you have lzo library.])
836d62
+else
836d62
+	LZOLIB=""
836d62
+fi
836d62
+AC_SUBST(LZOLIB)
836d62
+
836d62
+dnl
836d62
 dnl Check for bzlib headers and libraries
836d62
 dnl
836d62
 AC_CHECK_HEADER(bzlib.h, [bzlib_h=yes], [bzlib_h=no], [-])