mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-17 22:06:41 +00:00
Require wildmidi >= 0.4
https://bugzilla.gnome.org/show_bug.cgi?id=768576
This commit is contained in:
parent
0969e8323f
commit
c402496916
2 changed files with 15 additions and 9 deletions
23
configure.ac
23
configure.ac
|
@ -3032,16 +3032,23 @@ AG_GST_CHECK_FEATURE(WILDMIDI, [wildmidi midi soft synth plugin], wildmidi, [
|
||||||
WildMidi_Init, ,
|
WildMidi_Init, ,
|
||||||
wildmidi_lib.h,
|
wildmidi_lib.h,
|
||||||
WILDMIDI_LIBS="-lWildMidi")
|
WILDMIDI_LIBS="-lWildMidi")
|
||||||
AC_CHECK_LIB(WildMidi, WildMidi_LoadSamples, AC_DEFINE(HAVE_WILDMIDI_0_2_2, [1], [Have WildMidi 0.2.2 or earlier library]))
|
WILDMIDI_CFLAGS=
|
||||||
|
WILDMIDI_LIBS=
|
||||||
if test "x$HAVE_WILDMIDI" = "xyes"; then
|
if test "x$HAVE_WILDMIDI" = "xyes"; then
|
||||||
WILDMIDI_CFLAGS=
|
AC_MSG_CHECKING([for wildmidi >= 4.0])
|
||||||
WILDMIDI_LIBS=-lWildMidi
|
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <wildmidi_lib.h>]], [[
|
||||||
AC_MSG_NOTICE(compiling gstWildMidi)
|
#if LIBWILDMIDI_VER_MAJOR == 0 && LIBWILDMIDI_VER_MINOR < 4
|
||||||
|
#error "wildmidi too old"
|
||||||
|
#endif
|
||||||
|
]])], [ AC_MSG_RESULT(yes)
|
||||||
|
HAVE_WILDMIDI="yes"
|
||||||
|
WILDMIDI_CFLAGS=
|
||||||
|
WILDMIDI_LIBS=-lWildMidi
|
||||||
|
], [ AC_MSG_RESULT(no)
|
||||||
|
HAVE_WILDMIDI="no"
|
||||||
|
])
|
||||||
else
|
else
|
||||||
WILDMIDI_CFLAGS=
|
AC_MSG_WARN([WildMidi library or development headers not found])
|
||||||
WILDMIDI_LIBS=
|
|
||||||
AC_MSG_WARN(no WildMidi library found (libWildMidi))
|
|
||||||
fi
|
fi
|
||||||
AC_SUBST(WILDMIDI_CFLAGS)
|
AC_SUBST(WILDMIDI_CFLAGS)
|
||||||
AC_SUBST(WILDMIDI_LIBS)
|
AC_SUBST(WILDMIDI_LIBS)
|
||||||
|
|
|
@ -223,7 +223,6 @@ check_functions = [
|
||||||
# check token HAVE_WAYLAND
|
# check token HAVE_WAYLAND
|
||||||
# check token HAVE_WEBP
|
# check token HAVE_WEBP
|
||||||
# check token HAVE_WILDMIDI
|
# check token HAVE_WILDMIDI
|
||||||
# check token HAVE_WILDMIDI_0_2_2
|
|
||||||
# check token HAVE_WIN32
|
# check token HAVE_WIN32
|
||||||
# check token HAVE_WININET
|
# check token HAVE_WININET
|
||||||
# check token HAVE_WINKS
|
# check token HAVE_WINKS
|
||||||
|
|
Loading…
Reference in a new issue