From 83167aa448c455a93479ab7576daddb7c5db84c8 Mon Sep 17 00:00:00 2001 From: Chris Cannam Date: Fri, 9 Apr 2021 17:35:59 +0100 Subject: [PATCH] Check for sincos (thanks ~nia) --- meson.build | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/meson.build b/meson.build index d32902c..4beea2b 100644 --- a/meson.build +++ b/meson.build @@ -101,6 +101,9 @@ sndfile_dep = dependency('sndfile', version: '>= 1.0.16', required: false) vamp_dep = dependency('vamp-sdk', version: '>= 2.9', required: false) thread_dep = dependency('threads') have_ladspa = cpp.has_header('ladspa.h', args: extra_include_args) +have_sincos = cpp.has_function('sincos', + prefix: '#define _GNU_SOURCE\n#include ', + args: '-lm') have_jni = cpp.has_header('jni.h', args: extra_include_args) javac = find_program('javac', required: false) @@ -223,6 +226,10 @@ else endif # resampler +if not have_sincos + feature_defines += [ '-DLACK_SINCOS' ] +endif + if ipp_needed feature_defines += [ '-DHAVE_IPP',