mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-07-06 15:39:09 +02:00
zstd fixes
Change-Id: Iae2862b011e027b1e26e33ef53393e1ec90e4fde Signed-off-by: SJ <sj@acts.hu>
This commit is contained in:
10
configure
vendored
10
configure
vendored
@ -4809,12 +4809,18 @@ fi
|
||||
|
||||
if test "$have_zstd" = "yes"; then
|
||||
echo "zstd library: yes"
|
||||
antispam_libs="$antispam_libs -lzstd"
|
||||
defs="$defs -DHAVE_ZSTD"
|
||||
|
||||
if test "$(which zstd)" = ""; then echo "Error: cannot find the zstd binary"; exit 1; fi
|
||||
|
||||
zstd_magic=$(echo this is a test | zstd | hexdump -C | awk '/00000000/{print "ntohl(0x"$2$3$4$5 ")"}')
|
||||
|
||||
|
||||
cat >>confdefs.h <<_ACEOF
|
||||
#define HAVE_ZSTD 1
|
||||
#define ZSTD_DETECTED_MAGICNUMBER $zstd_magic
|
||||
_ACEOF
|
||||
|
||||
antispam_libs="$antispam_libs -lzstd"
|
||||
fi
|
||||
|
||||
if test "$have_zip" = "yes"; then
|
||||
|
Reference in New Issue
Block a user