commit e73c68ee5d5a47cb7b9211ac99b067519f9f394d
Author: Turo Lamminen <turol@iki.fi>
AuthorDate: Mon Mar 27 10:30:41 2023 +0300
Commit: Turo Lamminen <turol@users.noreply.github.com>
CommitDate: Mon Mar 27 11:07:29 2023 +0300
Disable FluidSynth when SDL2_Mixer is disabled
---
CMakeLists.txt | 2 +-
configure.ac | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7918f5f1..0070fd23 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -61,7 +61,7 @@ endif()
# Check for FluidSynth.
find_package(FluidSynth 2.2.0)
-if(FluidSynth_FOUND)
+if(FluidSynth_FOUND AND ENABLE_SDL2_MIXER)
set(HAVE_FLUIDSYNTH TRUE)
endif()
diff --git a/configure.ac b/configure.ac
index 233aab93..096bd181 100644
--- a/configure.ac
+++ b/configure.ac
@@ -146,7 +146,7 @@ AS_HELP_STRING([--without-fluidsynth],
[
[with_fluidsynth=check]
])
-AS_IF([test "x$with_fluidsynth" != xno], [
+AS_IF([test "x$with_fluidsynth" != xno] && [test "x$enable_sdl2mixer" != xno], [
PKG_CHECK_MODULES(FLUIDSYNTH, fluidsynth >= 2.2.0, [
AC_DEFINE([HAVE_FLUIDSYNTH], [1], [fluidsynth installed])
], [