From: Fred Morcos Date: Thu, 6 Jul 2023 12:09:25 +0000 (+0200) Subject: Meson: Auth various functions X-Git-Tag: rec-5.1.0-alpha1~80^2~344 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=81fd95b2829e576046e222363ae673fa9d7213b2;p=thirdparty%2Fpdns.git Meson: Auth various functions --- diff --git a/meson.build b/meson.build index ead054a8de..3fe2f024af 100644 --- a/meson.build +++ b/meson.build @@ -91,6 +91,23 @@ if not fs.exists('docs/pdns_server.1') and not python_have_venv endif # TODO Generate pdns_server.1 manpage +# Various Functions +funcs = [ + 'strcasestr', + 'localtime_r', + 'gmtime_r', + 'recvmmsg', + 'sched_setscheduler', + 'getrandom', + 'arc4random', +] +foreach func: funcs + found = cxx.has_function(func) + define = 'HAVE_' + func.to_upper() + conf.set10(define, found, description: 'Whether we have ' + func) + # summary(func, found, bool_yn: true, section: 'Various Functions') +endforeach + # Generate config.h ---------------------------------------------------------------------- config_h = configure_file(configuration: conf, output: 'config.h') # summary('Defines', conf.keys(), section: 'Build Configuration') # TODO Meson 0.57