1 |
# Process this file with autoconf to produce a configure script. |
# Process this file with autoconf to produce a configure script. |
2 |
AC_INIT(Qsampler, 0.2.0.1, rncbc@rncbc.org, qsampler) |
AC_INIT(Qsampler, 0.2.1.14, rncbc@rncbc.org, qsampler) |
3 |
|
|
4 |
AC_CONFIG_SRCDIR(src/qsamplerMainForm.ui) |
AC_CONFIG_SRCDIR(src/qsamplerMainForm.ui) |
5 |
AC_CONFIG_HEADERS(config.h) |
AC_CONFIG_HEADERS(config.h) |
205 |
if test "x$ac_fxsend_level" = "xyes"; then |
if test "x$ac_fxsend_level" = "xyes"; then |
206 |
AC_DEFINE(CONFIG_FXSEND_LEVEL, 1, [Define if FX send level is available.]) |
AC_DEFINE(CONFIG_FXSEND_LEVEL, 1, [Define if FX send level is available.]) |
207 |
fi |
fi |
208 |
|
AC_CHECK_LIB(lscp, lscp_set_fxsend_name, [ac_fxsend_rename="yes"], [ac_fxsend_rename="no"]) |
209 |
|
if test "x$ac_fxsend_rename" = "xyes"; then |
210 |
|
AC_DEFINE(CONFIG_FXSEND_RENAME, 1, [Define if FX send rename is available.]) |
211 |
|
fi |
212 |
fi |
fi |
213 |
|
|
214 |
AC_CACHE_CHECK([for audio_routing array type], |
AC_CACHE_CHECK([for audio_routing array type], |
232 |
AC_DEFINE(CONFIG_EDIT_INSTRUMENT, 1, [Define if instrument editing is available.]) |
AC_DEFINE(CONFIG_EDIT_INSTRUMENT, 1, [Define if instrument editing is available.]) |
233 |
fi |
fi |
234 |
|
|
235 |
|
AC_CACHE_CHECK([for CHANNEL_MIDI LSCP event support in liblscp], |
236 |
|
ac_lscp_channel_midi_event, [ |
237 |
|
AC_TRY_COMPILE([ |
238 |
|
#include "lscp/client.h" |
239 |
|
#include "lscp/event.h" |
240 |
|
], [ |
241 |
|
lscp_event_t ev; |
242 |
|
ev = LSCP_EVENT_CHANNEL_MIDI; |
243 |
|
], ac_lscp_channel_midi_event="yes", ac_lscp_channel_midi_event="no") |
244 |
|
]) |
245 |
|
if test "x$ac_lscp_channel_midi_event" = "xyes"; then |
246 |
|
AC_DEFINE(CONFIG_EVENT_CHANNEL_MIDI, 1, [Define if LSCP CHANNEL_MIDI event support is available.]) |
247 |
|
fi |
248 |
|
|
249 |
|
AC_CACHE_CHECK([for DEVICE_MIDI LSCP event support in liblscp], |
250 |
|
ac_lscp_device_midi_event, [ |
251 |
|
AC_TRY_COMPILE([ |
252 |
|
#include "lscp/client.h" |
253 |
|
#include "lscp/event.h" |
254 |
|
], [ |
255 |
|
lscp_event_t ev; |
256 |
|
ev = LSCP_EVENT_DEVICE_MIDI; |
257 |
|
], ac_lscp_device_midi_event="yes", ac_lscp_device_midi_event="no") |
258 |
|
]) |
259 |
|
if test "x$ac_lscp_device_midi_event" = "xyes"; then |
260 |
|
AC_DEFINE(CONFIG_EVENT_DEVICE_MIDI, 1, [Define if LSCP DEVICE_MIDI event support is available.]) |
261 |
|
fi |
262 |
|
|
263 |
# Check for optional libraries. |
# Check for optional libraries. |
264 |
if test "x$ac_libgig" = "xyes"; then |
if test "x$ac_libgig" = "xyes"; then |
265 |
AC_CHECK_LIB(gig, main, [ac_libgig="yes"], [ac_libgig="no"]) |
AC_CHECK_LIB(gig, main, [ac_libgig="yes"], [ac_libgig="no"]) |
266 |
if test "x$ac_libgig" = "xyes"; then |
if test "x$ac_libgig" = "xyes"; then |
267 |
AC_DEFINE(CONFIG_LIBGIG, 1, [Define if libgig is available.]) |
AC_DEFINE(CONFIG_LIBGIG, 1, [Define if libgig is available.]) |
268 |
ac_libs="$ac_libs -lgig" |
ac_libs="$ac_libs -lgig" |
269 |
|
AC_MSG_CHECKING([for gig::File::SetAutoLoad() method in libgig]) |
270 |
|
AC_LANG_SAVE |
271 |
|
AC_LANG_CPLUSPLUS |
272 |
|
CXXFLAGS="$ac_libs" |
273 |
|
AC_TRY_RUN([ |
274 |
|
#include <stdlib.h> |
275 |
|
#include <gig.h> |
276 |
|
int main() { |
277 |
|
gig::File file; |
278 |
|
file.SetAutoLoad(false); |
279 |
|
exit(0); |
280 |
|
} |
281 |
|
], |
282 |
|
have_libgig_setautoload="yes", |
283 |
|
have_libgig_setautoload="no", |
284 |
|
have_libgig_setautoload="no" |
285 |
|
) |
286 |
|
AC_LANG_RESTORE |
287 |
|
AC_MSG_RESULT([$have_libgig_setautoload]) |
288 |
|
if test "x$have_libgig_setautoload" = "xyes"; then |
289 |
|
AC_DEFINE(HAVE_LIBGIG_SETAUTOLOAD, 1, [Define if libgig provides gig::File::SetAutoLoad() method.]) |
290 |
|
fi |
291 |
fi |
fi |
292 |
fi |
fi |
293 |
|
|
333 |
echo " LSCP MIDI instrument support . . . . . . . . . . .: $ac_midi_instrument" |
echo " LSCP MIDI instrument support . . . . . . . . . . .: $ac_midi_instrument" |
334 |
echo " LSCP FX send support . . . . . . . . . . . . . . .: $ac_fxsend" |
echo " LSCP FX send support . . . . . . . . . . . . . . .: $ac_fxsend" |
335 |
echo " LSCP FX send level support . . . . . . . . . . . .: $ac_fxsend_level" |
echo " LSCP FX send level support . . . . . . . . . . . .: $ac_fxsend_level" |
336 |
|
echo " LSCP FX send rename support . . . . . . . . . . .: $ac_fxsend_rename" |
337 |
echo " LSCP audio routing support . . . . . . . . . . . .: $ac_audio_routing" |
echo " LSCP audio routing support . . . . . . . . . . . .: $ac_audio_routing" |
338 |
echo " LSCP volume support . . . . . . . . . . . . . . .: $ac_volume" |
echo " LSCP volume support . . . . . . . . . . . . . . .: $ac_volume" |
339 |
echo " LSCP edit instrument support . . . . . . . . . . .: $ac_edit_instrument" |
echo " LSCP edit instrument support . . . . . . . . . . .: $ac_edit_instrument" |
340 |
echo " GigaSampler instrument file support (libgig) . . .: $ac_libgig" |
echo " GigaSampler instrument file support (libgig) . . .: $ac_libgig" |
341 |
|
if test "x$ac_libgig" = "xyes"; then |
342 |
|
echo " libgig supports fast information retrieval . . . .: $have_libgig_setautoload" |
343 |
|
fi |
344 |
|
echo " LSCP channel MIDI event support . . . . . . . . .: $ac_lscp_channel_midi_event" |
345 |
|
echo " LSCP device MIDI event support . . . . . . . . . .: $ac_lscp_device_midi_event" |
346 |
echo |
echo |
347 |
echo " Install prefix . . . . . . . . . . . . . . . . . .: $ac_prefix" |
echo " Install prefix . . . . . . . . . . . . . . . . . .: $ac_prefix" |
348 |
echo |
echo |