aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xconfigure10
1 files changed, 9 insertions, 1 deletions
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 <AppKit/NSSpeechSynthesizer.h>
+@interface SpeechDelegate : NSObject<NSSpeechSynthesizerDelegate> {
+}
+@end
+int main(void) { return 0; }
+EOF
+ cc_check -ObjC++ -lobjc && _tts=yes
;;
esac
fi