If sound is enabled check that we have a sound loader

This commit is contained in:
Kim Woelders 2018-06-23 08:19:12 +02:00
parent cdccc198cd
commit 09fc7a95ef
1 changed files with 4 additions and 0 deletions

View File

@ -138,6 +138,10 @@ if test "x$enable_sound" = "xesound"; then
fi
AM_CONDITIONAL(USE_LIBESD, test "x$enable_sound" = "xesound")
if test "x$enable_sound" != "xno" -a "x$with_sndldr" = "xnone"; then
AC_MSG_ERROR([Sound support requires a sound loader])
fi
# Save CPPFLAGS/LDFLAGS and add X_... to each
SAVE_CPPFLAGS="$CPPFLAGS"
SAVE_LDFLAGS="$LDFLAGS"