From d49503f8aa1415731c649f50d5a92af837433fa1 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Mon, 13 May 2019 22:31:05 +0200 Subject: Add check for compface --- meson.build | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 6509af70..106aa030 100644 --- a/meson.build +++ b/meson.build @@ -109,6 +109,15 @@ if compiler.has_function('regcomp', prefix : '#include ') conf_data.set('HAVE_REGCOMP', 1) endif +if compiler.has_header('compface.h') + conf_data.set('HAVE_LIBCOMPFACE', 1) + compface_link_args = ['-lcompface'] +else + compface_link_args = [] +endif +compface = declare_dependency(compile_args : [], + link_args : compface_link_args) + configure_file(output : 'config.h', configuration : conf_data) @@ -349,5 +358,5 @@ executable('sylpheed', 'src/vcard.c', version_h], dependencies : [gtk, glib, gobject, gmodule, libsylph_dep, openssl, - gtkspell, aspell, enchant, oniguruma], + gtkspell, aspell, enchant, oniguruma, compface], install : true) -- cgit v1.2.3