dump/dump-remove-lzo.patch
Troy Dawson 81913d23b3 RHEL 9.0.0 Alpha bootstrap
The content of this branch was automatically imported from Fedora ELN
with the following as its source:
https://src.fedoraproject.org/rpms/dump#706963b99603917b567e6a94156f5d12bb0d2746
2020-10-20 06:47:54 -07:00

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], [-])