mirror of
https://github.com/NixOS/nix
synced 2025-06-25 10:41:16 +02:00
Merge pull request #11974 from trofi/nix-bz2-fallback
src/perl/meson.build: fall back to 'bz2' library lookup
This commit is contained in:
commit
ad7e83855c
1 changed files with 7 additions and 1 deletions
|
@ -65,7 +65,13 @@ yath = find_program('yath', required : false)
|
||||||
|
|
||||||
# Required Libraries
|
# Required Libraries
|
||||||
#-------------------------------------------------
|
#-------------------------------------------------
|
||||||
bzip2_dep = dependency('bzip2')
|
bzip2_dep = dependency('bzip2', required: false)
|
||||||
|
if not bzip2_dep.found()
|
||||||
|
bzip2_dep = cpp.find_library('bz2')
|
||||||
|
if not bzip2_dep.found()
|
||||||
|
error('No "bzip2" pkg-config or "bz2" library found')
|
||||||
|
endif
|
||||||
|
endif
|
||||||
curl_dep = dependency('libcurl')
|
curl_dep = dependency('libcurl')
|
||||||
libsodium_dep = dependency('libsodium')
|
libsodium_dep = dependency('libsodium')
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue