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