--- qsampler/trunk/configure.ac 2008/01/05 13:29:11 1626 +++ qsampler/trunk/configure.ac 2008/07/02 13:19:09 1749 @@ -1,5 +1,5 @@ # Process this file with autoconf to produce a configure script. -AC_INIT(Qsampler, 0.2.1.1, rncbc@rncbc.org, qsampler) +AC_INIT(Qsampler, 0.2.1.17, rncbc@rncbc.org, qsampler) AC_CONFIG_SRCDIR(src/qsamplerMainForm.ui) AC_CONFIG_HEADERS(config.h) @@ -205,6 +205,10 @@ if test "x$ac_fxsend_level" = "xyes"; then AC_DEFINE(CONFIG_FXSEND_LEVEL, 1, [Define if FX send level is available.]) fi + AC_CHECK_LIB(lscp, lscp_set_fxsend_name, [ac_fxsend_rename="yes"], [ac_fxsend_rename="no"]) + if test "x$ac_fxsend_rename" = "xyes"; then + AC_DEFINE(CONFIG_FXSEND_RENAME, 1, [Define if FX send rename is available.]) + fi fi AC_CACHE_CHECK([for audio_routing array type], @@ -228,6 +232,34 @@ AC_DEFINE(CONFIG_EDIT_INSTRUMENT, 1, [Define if instrument editing is available.]) fi +AC_CACHE_CHECK([for CHANNEL_MIDI LSCP event support in liblscp], + ac_lscp_channel_midi_event, [ + AC_TRY_COMPILE([ + #include "lscp/client.h" + #include "lscp/event.h" + ], [ + lscp_event_t ev; + ev = LSCP_EVENT_CHANNEL_MIDI; + ], 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_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. if test "x$ac_libgig" = "xyes"; then AC_CHECK_LIB(gig, main, [ac_libgig="yes"], [ac_libgig="no"]) @@ -301,6 +333,7 @@ echo " LSCP MIDI instrument support . . . . . . . . . . .: $ac_midi_instrument" echo " LSCP FX send support . . . . . . . . . . . . . . .: $ac_fxsend" echo " LSCP FX send level support . . . . . . . . . . . .: $ac_fxsend_level" +echo " LSCP FX send rename support . . . . . . . . . . .: $ac_fxsend_rename" echo " LSCP audio routing support . . . . . . . . . . . .: $ac_audio_routing" echo " LSCP volume support . . . . . . . . . . . . . . .: $ac_volume" echo " LSCP edit instrument support . . . . . . . . . . .: $ac_edit_instrument" @@ -308,6 +341,8 @@ if test "x$ac_libgig" = "xyes"; then 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