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