From 0ed805ae6bcea7999471b76c69846801ffb2221f Mon Sep 17 00:00:00 2001 From: Olivier Certner Date: Fri, 26 May 2023 10:20:44 +0200 Subject: [PATCH] meson.build: Fix detection of libzim built with Xapian The dependency on libzim must be specified in compiler.has_header_symbol() for it to find the header in all cases. Fixes a configure error on FreeBSD: """ Header "zim/zim.h" has symbol "LIBZIM_WITH_XAPIAN" : NO meson.build:33:2: ERROR: Problem encountered: Libzim seems to be compiled without xapian. Xapian support is mandatory. """ --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index d3927e430..5295e9078 100644 --- a/meson.build +++ b/meson.build @@ -36,7 +36,7 @@ else endif libzim_dep = dependency('libzim', version : '>=8.1.0', static:static_deps) -if not compiler.has_header_symbol('zim/zim.h', 'LIBZIM_WITH_XAPIAN') +if not compiler.has_header_symbol('zim/zim.h', 'LIBZIM_WITH_XAPIAN', dependencies: libzim_dep) error('Libzim seems to be compiled without xapian. Xapian support is mandatory.') endif