aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configure.ac5
1 files changed, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 5f52ae0332..87ac0276b1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -279,7 +279,10 @@ AC_ARG_ENABLE([canberra],
[enable_canberra="$enableval"], [enable_canberra=yes])
if test $enable_canberra = yes; then
- PKG_CHECK_MODULES([CANBERRA],[libcanberra-gtk3 >= libcanberra_gtk_minimum_version])
+ PKG_CHECK_MODULES([CANBERRA],[libcanberra-gtk3 >= libcanberra_gtk_minimum_version],,
+ [AC_MSG_ERROR([libcanberra-gtk3 not found (or version < libcanberra_gtk_minimum_version),
+ If you want to disable support for event sounds,
+ please append --disable-canberra to configure.])])
AC_DEFINE(HAVE_CANBERRA, 1, [Define if using Canberra and Canberra-GTK for sound])
fi
AC_SUBST(CANBERRA_CFLAGS)