Don't use libcanberra without X

libcanberra calls x11 backend functions, so we can't use it
when the x11 backend is disabled.
This commit is contained in:
Matthias Clasen 2015-07-25 23:22:04 -04:00
parent 69d90d4f50
commit 62d785a6b7

View File

@ -1690,6 +1690,10 @@ AC_ARG_ENABLE(libcanberra,
[enable_libcanberra="$enableval"],
[enable_libcanberra=auto])
if test "$enable_x11_backend" != "yes"; then
enable_libcanberra=no
fi
AC_MSG_CHECKING([whether to use libcanberra])
if test "$enable_libcanberra" != "no"; then
AC_MSG_RESULT([yes])