Skip to content

Commit

Permalink
meson: ltdl.h is required
Browse files Browse the repository at this point in the history
Signed-off-by: Hubert Figuière <[email protected]>
  • Loading branch information
hfiguiere committed Feb 2, 2025
1 parent f519c27 commit 07b813e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions libgphoto2_port/meson.build
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
libusb_req = '>= 0.1.5'
libusb1_req = '>= 1.0.0'

ltdl_dep = cc.find_library('ltdl', required : false)
ltdl_dep = cc.find_library(
'ltdl',
has_headers: 'ltdl.h',
required: false
)
if not ltdl_dep.found()
ltdl_dep = cc.find_library('libltdl', required : false)
ltdl_dep = cc.find_library('libltdl', has_headers: 'ltdl.h', required: true)
endif

# This will be libusb-1.0 by default and fallback on the older libusb.
Expand Down

0 comments on commit 07b813e

Please sign in to comment.