You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
744 B
29 lines
744 B
2 years ago
|
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], [-])
|