Project

General

Profile

Bug #1207 » 0020-Meson-Require-zstd.h-to-build-in-zstd-compression-su.patch

main, S3_2 - Marko Lindqvist, 01/10/2025 08:52 PM

View differences:

meson.build
'fcntl.h',
'time.h',
'libgen.h',
'zstd.h',
'memory.h',
'netdb.h',
'pwd.h',
......
lzma_dep = []
endif
zstd_dep = c_compiler.find_library('zstd', dirs: cross_lib_path,
required:false)
if c_compiler.has_header('zstd.h', args: header_arg)
priv_conf_data.set('HAVE_ZSTD_H', 1)
if zstd_dep.found()
pub_conf_data.set('FREECIV_HAVE_LIBZSTD', 1)
zstd_dep = c_compiler.find_library('zstd', dirs: cross_lib_path,
required:false)
if zstd_dep.found()
pub_conf_data.set('FREECIV_HAVE_LIBZSTD', 1)
endif
else
zstd_dep = []
endif
if c_compiler.compiles('''
(1-1/2)