restore/dump-remove-lzo.patch
DistroBaker 8bb28b7f83 Merged update from upstream sources
This is an automated DistroBaker update from upstream sources.
If you do not know what this is about or would like to opt out,
contact the OSCI team.

Source: https://src.fedoraproject.org/rpms/dump.git#33119038a04d203fddd1a6c9d128098f0d911801
2021-02-22 14:03:53 +01: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], [-])