Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mumble/TextToSpeech_unix.cpp6
-rw-r--r--src/mumble/mumble.pro7
2 files changed, 11 insertions, 2 deletions
diff --git a/src/mumble/TextToSpeech_unix.cpp b/src/mumble/TextToSpeech_unix.cpp
index d0fbb8276..6443c0702 100644
--- a/src/mumble/TextToSpeech_unix.cpp
+++ b/src/mumble/TextToSpeech_unix.cpp
@@ -33,7 +33,11 @@
#include "TextToSpeech.h"
#ifdef USE_SPEECHD
-#include <libspeechd.h>
+# ifdef USE_SPEECHD_PKGCONFIG
+# include <speech-dispatcher/libspeechd.h>
+# else
+# include <libspeechd.h>
+# endif
#endif
#include "Global.h"
diff --git a/src/mumble/mumble.pro b/src/mumble/mumble.pro
index 04f5a36ce..ff3c02f6f 100644
--- a/src/mumble/mumble.pro
+++ b/src/mumble/mumble.pro
@@ -279,7 +279,12 @@ dbus {
speechd {
DEFINES *= USE_SPEECHD
- LIBS *= -lspeechd
+ system(pkg-config --atleast-version=0.8 speech-dispatcher) {
+ DEFINES *= USE_SPEECHD_PKGCONFIG
+ PKGCONFIG *= speech-dispatcher
+ } else {
+ LIBS *= -lspeechd
+ }
}
directsound {