From 936d69c8d36623ee80abab5a573a0671ed938bc2 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sun, 28 Aug 2022 16:33:38 +0300 Subject: [PATCH 55/55] Meson: Do extra check that found readline library is suitable This protects against macOS libedit library that's not suitable readline replacement for freeciv use. See osdn #45161 Signed-off-by: Marko Lindqvist --- meson.build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 9a910ee6ed..544dcebede 100644 --- a/meson.build +++ b/meson.build @@ -372,7 +372,8 @@ if rl_req != 'false' readline_dep = c_compiler.find_library('readline', dirs: cross_lib_path, required:false) - if readline_dep.found() + if readline_dep.found() and c_compiler.has_function('rl_completion_suppress_append', + dependencies: readline_dep) pub_conf_data.set('FREECIV_HAVE_LIBREADLINE', 1) elif rl_req == 'true' error('Readline support requested but not found.') -- 2.35.1