Bug #1207 » 0005-Meson-Require-zstd.h-to-build-in-zstd-compression-su.patch
| meson.build | ||
|---|---|---|
|
'fcntl.h',
|
||
|
'time.h',
|
||
|
'libgen.h',
|
||
|
'zstd.h',
|
||
|
'memory.h',
|
||
|
'netdb.h',
|
||
|
'pwd.h',
|
||
| ... | ... | |
|
error('Mandatory header zlib.h not found!')
|
||
|
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('''
|
||
- « Previous
- 1
- 2
- Next »