From acebff9884c8f525bdfe92af48b8ce833a7a1cac Mon Sep 17 00:00:00 2001 From: Thierry Crozat Date: Mon, 2 Sep 2019 22:24:42 +0100 Subject: CONFIGURE: Add check for NSSpeechSynthesizerDelegate protocole availability on macOS --- configure | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'configure') diff --git a/configure b/configure index fe56b92fb6..935f53f986 100755 --- a/configure +++ b/configure @@ -4223,7 +4223,15 @@ EOF cc_check -lspeechd && _tts=yes ;; darwin*) - _tts=yes + # Check the API is available. The most recent API we need is for the NSSpeechSynthesizerDelegate protocole + cat > $TMPC << EOF +#include +@interface SpeechDelegate : NSObject { +} +@end +int main(void) { return 0; } +EOF + cc_check -ObjC++ -lobjc && _tts=yes ;; esac fi -- cgit v1.2.3