--- qsampler/trunk/configure.ac 2008/02/14 22:31:26 1691 +++ qsampler/trunk/configure.ac 2008/02/19 09:18:45 1704 @@ -1,5 +1,5 @@ # Process this file with autoconf to produce a configure script. -AC_INIT(Qsampler, 0.2.1.6, rncbc@rncbc.org, qsampler) +AC_INIT(Qsampler, 0.2.1.10, rncbc@rncbc.org, qsampler) AC_CONFIG_SRCDIR(src/qsamplerMainForm.ui) AC_CONFIG_HEADERS(config.h) @@ -243,7 +243,21 @@ ], ac_lscp_channel_midi_event="yes", ac_lscp_channel_midi_event="no") ]) if test "x$ac_lscp_channel_midi_event" = "xyes"; then - AC_DEFINE(CONFIG_LSCP_CHANNEL_MIDI, 1, [Define if LSCP CHANNEL_MIDI event support is available.]) + AC_DEFINE(CONFIG_EVENT_CHANNEL_MIDI, 1, [Define if LSCP CHANNEL_MIDI event support is available.]) +fi + +AC_CACHE_CHECK([for DEVICE_MIDI LSCP event support in liblscp], + ac_lscp_device_midi_event, [ + AC_TRY_COMPILE([ + #include "lscp/client.h" + #include "lscp/event.h" + ], [ + lscp_event_t ev; + ev = LSCP_EVENT_DEVICE_MIDI; + ], ac_lscp_device_midi_event="yes", ac_lscp_device_midi_event="no") +]) +if test "x$ac_lscp_device_midi_event" = "xyes"; then + AC_DEFINE(CONFIG_EVENT_DEVICE_MIDI, 1, [Define if LSCP DEVICE_MIDI event support is available.]) fi # Check for optional libraries. @@ -328,6 +342,7 @@ echo " libgig supports fast information retrieval . . . .: $have_libgig_setautoload" fi echo " LSCP channel MIDI event support . . . . . . . . .: $ac_lscp_channel_midi_event" +echo " LSCP device MIDI event support . . . . . . . . . .: $ac_lscp_device_midi_event" echo echo " Install prefix . . . . . . . . . . . . . . . . . .: $ac_prefix" echo