--- qsampler/trunk/configure.ac 2007/11/22 02:48:41 1508 +++ qsampler/trunk/configure.ac 2008/02/16 19:41:05 1698 @@ -1,5 +1,5 @@ # Process this file with autoconf to produce a configure script. -AC_INIT(Qsampler, 0.2.0.11, rncbc@rncbc.org, qsampler) +AC_INIT(Qsampler, 0.2.1.7, 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,12 +232,62 @@ 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_LSCP_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_LSCP_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"]) if test "x$ac_libgig" = "xyes"; then AC_DEFINE(CONFIG_LIBGIG, 1, [Define if libgig is available.]) ac_libs="$ac_libs -lgig" + AC_MSG_CHECKING([for gig::File::SetAutoLoad() method in libgig]) + AC_LANG_SAVE + AC_LANG_CPLUSPLUS + CXXFLAGS="$ac_libs" + AC_TRY_RUN([ +#include +#include +int main() { + gig::File file; + file.SetAutoLoad(false); + exit(0); +} + ], + have_libgig_setautoload="yes", + have_libgig_setautoload="no", + have_libgig_setautoload="no" + ) + AC_LANG_RESTORE + AC_MSG_RESULT([$have_libgig_setautoload]) + if test "x$have_libgig_setautoload" = "xyes"; then + AC_DEFINE(HAVE_LIBGIG_SETAUTOLOAD, 1, [Define if libgig provides gig::File::SetAutoLoad() method.]) + fi fi fi @@ -279,10 +333,16 @@ 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" echo " GigaSampler instrument file support (libgig) . . .: $ac_libgig" +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