4 |
# LinuxSampler's / liblinuxsampler's "official" release version: |
# LinuxSampler's / liblinuxsampler's "official" release version: |
5 |
|
|
6 |
LINUXSAMPLER_RELEASE_MAJOR=0 |
LINUXSAMPLER_RELEASE_MAJOR=0 |
7 |
LINUXSAMPLER_RELEASE_MINOR=4 |
LINUXSAMPLER_RELEASE_MINOR=5 |
8 |
LINUXSAMPLER_RELEASE_BUILD=0.4cvs |
LINUXSAMPLER_RELEASE_BUILD=1 |
9 |
|
|
10 |
#------------------------------------------------------------------------------------ |
#------------------------------------------------------------------------------------ |
11 |
# The following is the libtool / shared library version. This doesn't have to |
# The following is the libtool / shared library version. This doesn't have to |
24 |
# 6. If any interfaces have been removed since the last public release, then set age |
# 6. If any interfaces have been removed since the last public release, then set age |
25 |
# to 0. |
# to 0. |
26 |
|
|
27 |
LIBLINUXSAMPLER_LT_CURRENT=0 |
LIBLINUXSAMPLER_LT_CURRENT=2 |
28 |
LIBLINUXSAMPLER_LT_REVISION=0 |
LIBLINUXSAMPLER_LT_REVISION=0 |
29 |
LIBLINUXSAMPLER_LT_AGE=0 |
LIBLINUXSAMPLER_LT_AGE=1 |
30 |
SHARED_VERSION_INFO="$LIBLINUXSAMPLER_LT_CURRENT:$LIBLINUXSAMPLER_LT_REVISION:$LIBLINUXSAMPLER_LT_AGE" |
SHARED_VERSION_INFO="$LIBLINUXSAMPLER_LT_CURRENT:$LIBLINUXSAMPLER_LT_REVISION:$LIBLINUXSAMPLER_LT_AGE" |
31 |
|
|
32 |
#------------------------------------------------------------------------------------ |
#------------------------------------------------------------------------------------ |
33 |
# the LSCP specification version this LinuSampler release complies with: |
# the LSCP specification version this LinuSampler release complies with: |
34 |
|
|
35 |
LSCP_RELEASE_MAJOR=1 |
LSCP_RELEASE_MAJOR=1 |
36 |
LSCP_RELEASE_MINOR=2 |
LSCP_RELEASE_MINOR=3 |
37 |
|
|
38 |
AC_DEFINE_UNQUOTED(LSCP_RELEASE_MAJOR, ${LSCP_RELEASE_MAJOR}, [LSCP spec major version this release complies with.]) |
AC_DEFINE_UNQUOTED(LSCP_RELEASE_MAJOR, ${LSCP_RELEASE_MAJOR}, [LSCP spec major version this release complies with.]) |
39 |
AC_DEFINE_UNQUOTED(LSCP_RELEASE_MINOR, ${LSCP_RELEASE_MINOR}, [LSCP spec minor version this release complies with.]) |
AC_DEFINE_UNQUOTED(LSCP_RELEASE_MINOR, ${LSCP_RELEASE_MINOR}, [LSCP spec minor version this release complies with.]) |
79 |
fi |
fi |
80 |
AC_SUBST([CXX_CPU_SWITCH]) |
AC_SUBST([CXX_CPU_SWITCH]) |
81 |
|
|
82 |
|
# check if we're on MS Windows |
83 |
|
AC_CHECK_HEADERS( |
84 |
|
mmsystem.h, |
85 |
|
have_windows=1, |
86 |
|
have_windows=0 |
87 |
|
) |
88 |
|
AM_CONDITIONAL(HAVE_WINDOWS, test $have_windows = "1") |
89 |
|
|
90 |
AC_MSG_CHECKING([whether UNIX98 compatible]) |
AC_MSG_CHECKING([whether UNIX98 compatible]) |
91 |
AC_LANG_SAVE |
AC_LANG_SAVE |
92 |
AC_LANG_C |
AC_LANG_C |
109 |
) |
) |
110 |
AC_LANG_RESTORE |
AC_LANG_RESTORE |
111 |
AC_MSG_RESULT([$have_unix98]) |
AC_MSG_RESULT([$have_unix98]) |
112 |
if test "$have_unix98" = "no"; then |
if test "$have_unix98" = "no" -a "have_windows" = "0"; then |
113 |
if test "x$HAVE_UNIX98" = "x"; then |
if test "x$HAVE_UNIX98" = "x"; then |
114 |
echo "LinuxSampler only runs on UNIX98 compatible systems, which is mandatory for" |
echo "LinuxSampler only runs on UNIX98 compatible systems, which is mandatory for" |
115 |
echo "pthread_mutexattr_settype() call in Mutex.cpp. You may want to run |
echo "pthread_mutexattr_settype() call in Mutex.cpp. You may want to run |
122 |
# check for <features.h> |
# check for <features.h> |
123 |
AC_CHECK_HEADERS(features.h) |
AC_CHECK_HEADERS(features.h) |
124 |
|
|
125 |
|
# test for POSIX thread library |
126 |
|
m4_ifdef([m4_include(m4/pthread.m4)],, |
127 |
|
[sinclude([m4/pthread.m4])]) |
128 |
|
ACX_PTHREAD |
129 |
|
LIBS="$PTHREAD_LIBS $LIBS" |
130 |
|
CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
131 |
|
CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS" |
132 |
|
CC="$PTHREAD_CC" |
133 |
|
|
134 |
|
# check for a bug in NPTL-enabled glibc |
135 |
|
# (see Gentoo bug report #194076) |
136 |
|
AC_ARG_ENABLE(nptl-bug-check, |
137 |
|
[ --disable-nptl-bug-check |
138 |
|
Disable check for a bug in certain NPTL-enabled |
139 |
|
glibc versions that caused crashs.], |
140 |
|
[config_check_nptl_bug="$enableval"], |
141 |
|
[config_check_nptl_bug="yes"] |
142 |
|
) |
143 |
|
if test "$config_check_nptl_bug" = "yes"; then |
144 |
|
m4_ifdef([m4_include(m4/nptl_bug.m4)],, |
145 |
|
[sinclude([m4/nptl_bug.m4])]) |
146 |
|
ACX_NPTL_GLIBC_BUG([ |
147 |
|
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" |
148 |
|
echo "You seem to have a buggy PTHREAD library! LinuxSampler would" |
149 |
|
echo "probably crash due to this. Please report us the system you are" |
150 |
|
echo "using and/or file a bug report to the bug tracking system of" |
151 |
|
echo "your distribution." |
152 |
|
echo "If you have a NPTL-enabled glibc AND it was compiled for TLS as" |
153 |
|
echo "well, you can try to circumvent this problem for now by setting" |
154 |
|
echo "the environment variable LD_ASSUME_KERNEL=\"2.4.1\" , which" |
155 |
|
echo "should cause this test to pass." |
156 |
|
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" |
157 |
|
AC_MSG_ERROR([possibly NPTL glibc bug detected]) |
158 |
|
]) |
159 |
|
else |
160 |
|
echo "NPTL glibc bug check disabled" |
161 |
|
fi |
162 |
|
|
163 |
|
|
164 |
|
|
165 |
########################################################################### |
########################################################################### |
166 |
# Checks for available audio and MIDI systems / drivers |
# Checks for available audio and MIDI systems / drivers |
174 |
[ --disable-alsa-driver |
[ --disable-alsa-driver |
175 |
Disable support for the Advanced Linux Sound |
Disable support for the Advanced Linux Sound |
176 |
Architecture (ALSA).], |
Architecture (ALSA).], |
177 |
[config_alsa_driver="no"], |
[config_alsa_driver="$enableval"], |
178 |
[config_alsa_driver="yes"] |
[config_alsa_driver="yes"] |
179 |
) |
) |
180 |
have_alsa=0 |
have_alsa=0 |
254 |
[ --disable-jack-driver |
[ --disable-jack-driver |
255 |
Disable support for the Jack Audio Connection Kit |
Disable support for the Jack Audio Connection Kit |
256 |
(JACK).], |
(JACK).], |
257 |
[config_jack_driver="no"], |
[config_jack_driver="$enableval"], |
258 |
[config_jack_driver="yes"] |
[config_jack_driver="yes"] |
259 |
) |
) |
260 |
have_jack=0 |
have_jack=0 |
277 |
[ --disable-arts-driver |
[ --disable-arts-driver |
278 |
Disable support for the Analogue Realtime System |
Disable support for the Analogue Realtime System |
279 |
(aRts).], |
(aRts).], |
280 |
[config_arts_driver="no"], |
[config_arts_driver="$enableval"], |
281 |
[config_arts_driver="yes"] |
[config_arts_driver="yes"] |
282 |
) |
) |
283 |
have_arts=0 |
have_arts=0 |
294 |
AM_CONDITIONAL(HAVE_ARTS, test "$have_arts" = "1") |
AM_CONDITIONAL(HAVE_ARTS, test "$have_arts" = "1") |
295 |
AC_DEFINE_UNQUOTED(HAVE_ARTS,$have_arts,[Define to 1 if you have aRts installed.]) |
AC_DEFINE_UNQUOTED(HAVE_ARTS,$have_arts,[Define to 1 if you have aRts installed.]) |
296 |
|
|
297 |
|
# ASIO AUDIO (Win32) |
298 |
|
AC_ARG_ENABLE(asiosdk-dir, |
299 |
|
[ --enable-asiosdk-dir |
300 |
|
Directory where the ASIO SDK is located, this automatically |
301 |
|
enables the compilation of the ASIO audio output driver.], |
302 |
|
[config_asiosdk_dir="${enableval}"], |
303 |
|
[config_asiosdk_dir="."] |
304 |
|
) |
305 |
|
AC_SUBST(config_asiosdk_dir) |
306 |
|
|
307 |
|
AC_ARG_ENABLE(asio-driver, |
308 |
|
[ --disable-asio-driver |
309 |
|
Disable support for the Windows ASIO driver.], |
310 |
|
[config_asio_driver="$enableval"], |
311 |
|
[config_asio_driver="yes"] |
312 |
|
) |
313 |
|
have_asio=0 |
314 |
|
ASIOSDK_BASEDIR= |
315 |
|
if test "$config_asio_driver" = "yes"; then |
316 |
|
asiosdk_headerfile=$config_asiosdk_dir/ASIOSDK2/common/asio.h |
317 |
|
echo -n "checking for ASIO headerfile: $asiosdk_headerfile ...." |
318 |
|
if test -e $asiosdk_headerfile ; then |
319 |
|
echo yes |
320 |
|
have_asio=1 |
321 |
|
ASIOSDK_BASEDIR="$config_asiosdk_dir" |
322 |
|
else |
323 |
|
echo no |
324 |
|
have_asio=0 |
325 |
|
fi |
326 |
|
if test "$have_asio" = "1"; then |
327 |
|
have_audio_output_driver="true" |
328 |
|
fi |
329 |
|
else |
330 |
|
echo "Windows ASIO support disabled by configure script parameter" |
331 |
|
fi |
332 |
|
AC_SUBST(ASIOSDK_BASEDIR) |
333 |
|
AM_CONDITIONAL(HAVE_ASIO, test $have_asio = "1") |
334 |
|
AC_DEFINE_UNQUOTED(HAVE_ASIO,$have_asio,[Define to 1 if you have ASIO installed.]) |
335 |
|
|
336 |
# MidiShare (Linux, OS X, Windows) |
# MidiShare (Linux, OS X, Windows) |
337 |
AC_ARG_ENABLE(midishare-driver, |
AC_ARG_ENABLE(midishare-driver, |
338 |
[ --disable-midishare-driver |
[ --disable-midishare-driver |
339 |
Disable support for the MidiShare system.], |
Disable support for the MidiShare system.], |
340 |
[config_midishare_driver="no"], |
[config_midishare_driver="$enableval"], |
341 |
[config_midishare_driver="yes"] |
[config_midishare_driver="yes"] |
342 |
) |
) |
343 |
have_midishare=0 |
have_midishare=0 |
363 |
AC_ARG_ENABLE(coremidi-driver, |
AC_ARG_ENABLE(coremidi-driver, |
364 |
[ --disable-coremidi-driver |
[ --disable-coremidi-driver |
365 |
Disable support for the Apple CoreMIDI system.], |
Disable support for the Apple CoreMIDI system.], |
366 |
[config_coremidi_driver="no"], |
[config_coremidi_driver="$enableval"], |
367 |
[config_coremidi_driver="yes"] |
[config_coremidi_driver="yes"] |
368 |
) |
) |
369 |
have_coremidi=0 |
have_coremidi=0 |
381 |
AM_CONDITIONAL(HAVE_COREMIDI, test $have_coremidi = "1") |
AM_CONDITIONAL(HAVE_COREMIDI, test $have_coremidi = "1") |
382 |
AC_DEFINE_UNQUOTED(HAVE_COREMIDI,$have_coremidi,[Define to 1 if you have CoreMIDI installed.]) |
AC_DEFINE_UNQUOTED(HAVE_COREMIDI,$have_coremidi,[Define to 1 if you have CoreMIDI installed.]) |
383 |
|
|
384 |
|
# MME MIDI (Win32) |
385 |
|
AC_ARG_ENABLE(mmemidi-driver, |
386 |
|
[ --disable-mmemidi-driver |
387 |
|
Disable support for the Windows MME MIDI system.], |
388 |
|
[config_mmemidi_driver="$enableval"], |
389 |
|
[config_mmemidi_driver="yes"] |
390 |
|
) |
391 |
|
have_mmemidi=0 |
392 |
|
if test "$config_mmemidi_driver" = "yes"; then |
393 |
|
AC_CHECK_HEADERS(mmsystem.h, |
394 |
|
have_mmemidi=1, |
395 |
|
have_mmemidi=0 |
396 |
|
) |
397 |
|
if test "$have_mmemidi" = "1"; then |
398 |
|
have_midi_input_driver="true" |
399 |
|
fi |
400 |
|
else |
401 |
|
echo "MME MIDI support disabled by configure script parameter" |
402 |
|
fi |
403 |
|
AM_CONDITIONAL(HAVE_MME_MIDI, test $have_mmemidi = "1") |
404 |
|
AC_DEFINE_UNQUOTED(HAVE_MME_MIDI,$have_mmemidi,[Define to 1 if you have MME MIDI installed.]) |
405 |
|
|
406 |
|
# have we found at least one MIDI input and one audio output driver ? |
407 |
|
if test "$have_midi_input_driver" = "false"; then |
408 |
|
echo "No supported MIDI input system found!" |
409 |
|
echo "Sorry, LinuxSampler only supports the following MIDI drivers at the moment:" |
410 |
|
echo "ALSA, MIDIShare, CoreMIDI." |
411 |
|
echo "If you think you have one of those available on your system, make sure you" |
412 |
|
echo "also have the respective development (header) files installed." |
413 |
|
exit -1; |
414 |
|
fi |
415 |
|
if test "$have_audio_output_driver" = "false"; then |
416 |
|
echo "No supported audio output system found!" |
417 |
|
echo "Sorry, LinuxSampler only supports ALSA, JACK and ARTS as audio output" |
418 |
|
echo "driver at the moment!" |
419 |
|
exit -1; |
420 |
|
fi |
421 |
|
|
422 |
|
|
423 |
|
|
424 |
|
########################################################################### |
425 |
|
# Checks for various DLL libraries |
426 |
|
|
427 |
# Check presence of libgig |
# Check presence of libgig |
428 |
libgig_version="3.1.1" |
libgig_version="3.2.1" |
429 |
PKG_CHECK_MODULES(GIG, gig >= $libgig_version, HAVE_GIG=true, HAVE_GIG=false) |
PKG_CHECK_MODULES(GIG, gig >= $libgig_version, HAVE_GIG=true, HAVE_GIG=false) |
430 |
if test "$HAVE_GIG" = "false"; then |
if test "$HAVE_GIG" = "false"; then |
431 |
echo "Required libgig version not found!" |
echo "Required libgig version not found!" |
437 |
AC_SUBST(GIG_CFLAGS) |
AC_SUBST(GIG_CFLAGS) |
438 |
AC_SUBST(GIG_LIBS) |
AC_SUBST(GIG_LIBS) |
439 |
|
|
440 |
# Check presence of sqlite3 |
# Instruments DB feature (requires SQLite 3.3) |
441 |
AC_CHECK_PROG(HAVE_SQLITE3_CMD, sqlite3, true, false) |
AC_ARG_ENABLE(instruments-db, |
442 |
sqlite_version="3.3" |
[ --disable-instruments-db |
443 |
PKG_CHECK_MODULES(SQLITE3, sqlite3 >= $sqlite_version, HAVE_SQLITE3=true, HAVE_SQLITE3=false) |
Disable compilation of the sampler's instruments |
444 |
AC_SUBST(SQLITE3_LIBS) |
database feature. You need to have SQLite 3.3 |
445 |
AC_SUBST(SQLITE3_CFLAGS) |
or younger installed for this feature.], |
446 |
if test $HAVE_SQLITE3_CMD = false -o $HAVE_SQLITE3 = false; then |
[config_instruments_db="$enableval"], |
447 |
HAVE_SQLITE3=0; |
[config_instruments_db="yes"] |
448 |
instruments_db_support="no" |
) |
449 |
echo "*** Required sqlite version not found!" |
HAVE_SQLITE3=0; |
450 |
echo "*** You need to have sqlite version ${sqlite_version} or higher" |
if test "$config_instruments_db" = "yes"; then |
451 |
echo "*** for instruments database support to be enabled." |
# Check presence of sqlite3 |
452 |
echo "*** Support for instruments DB will be disabled!" |
sqlite_version="3.3" |
453 |
|
PKG_CHECK_MODULES(SQLITE3, sqlite3 >= $sqlite_version, HAVE_SQLITE3=true, HAVE_SQLITE3=false) |
454 |
|
AC_SUBST(SQLITE3_LIBS) |
455 |
|
AC_SUBST(SQLITE3_CFLAGS) |
456 |
|
if test $HAVE_SQLITE3 = false; then |
457 |
|
HAVE_SQLITE3=0 |
458 |
|
config_instruments_db="no" |
459 |
|
echo "*** Required sqlite version not found!" |
460 |
|
echo "*** You need to have sqlite version ${sqlite_version} or higher" |
461 |
|
echo "*** for instruments database support to be enabled." |
462 |
|
echo "*** Support for instruments DB will be disabled!" |
463 |
|
else |
464 |
|
HAVE_SQLITE3=1 |
465 |
|
fi |
466 |
else |
else |
467 |
HAVE_SQLITE3=1 |
echo "Instruments DB feature disabled by configure script parameter" |
|
instruments_db_support="yes" |
|
468 |
fi |
fi |
469 |
AM_CONDITIONAL(HAVE_SQLITE3, test $HAVE_SQLITE3 = 1) |
AM_CONDITIONAL(HAVE_SQLITE3, test $HAVE_SQLITE3 = 1) |
470 |
AC_DEFINE_UNQUOTED(HAVE_SQLITE3,$HAVE_SQLITE3,[Define to 1 if you have SQLITE3 installed.]) |
AC_DEFINE_UNQUOTED(HAVE_SQLITE3,$HAVE_SQLITE3,[Define to 1 if you want the instruments DB feature and have SQLITE3 installed.]) |
471 |
|
|
|
if test "$have_midi_input_driver" = "false"; then |
|
|
echo "No supported MIDI input system found!" |
|
|
echo "Sorry, LinuxSampler only supports the following MIDI drivers at the moment:" |
|
|
echo "ALSA, MIDIShare, CoreMIDI." |
|
|
echo "If you think you have one of those available on your system, make sure you" |
|
|
echo "also have the respective development (header) files installed." |
|
|
exit -1; |
|
|
fi |
|
|
if test "$have_audio_output_driver" = "false"; then |
|
|
echo "No supported audio output system found!" |
|
|
echo "Sorry, LinuxSampler only supports ALSA and JACK as audio output driver at the moment!" |
|
|
exit -1; |
|
|
fi |
|
472 |
|
|
473 |
|
|
474 |
########################################################################### |
########################################################################### |
477 |
# TODO: should we use AC_ARG_VAR(variable, description) instead? |
# TODO: should we use AC_ARG_VAR(variable, description) instead? |
478 |
|
|
479 |
AC_ARG_ENABLE(asm, |
AC_ARG_ENABLE(asm, |
480 |
[ --enable-asm |
[ --disable-asm |
481 |
Enable hand-crafted assembly optimizations |
Enable hand-crafted assembly optimizations |
482 |
(default=off). LinuxSampler provides CPU specific |
(default=on). LinuxSampler provides CPU specific |
483 |
assembly optimizations for the most important |
assembly optimizations. This is currently limited |
484 |
synthesis algorithms. This is currently disabled |
to just enter a fast (denormal) FPU mode on x86 |
485 |
by default since current asm code is broken.], |
platforms. There are currently no synthesis core |
486 |
[config_asm="yes"], |
assembly optimizations anymore since LS 0.4.0], |
487 |
[config_asm="no"] |
[config_asm="$enableval"], |
488 |
|
[config_asm="yes"] |
489 |
) |
) |
490 |
if test "$config_asm" = "yes"; then |
if test "$config_asm" = "yes"; then |
491 |
AC_DEFINE_UNQUOTED(CONFIG_ASM, 1, [Define to 1 if you want to enable hand-crafted asm optimizations.]) |
AC_DEFINE_UNQUOTED(CONFIG_ASM, 1, [Define to 1 if you want to enable asm optimizations.]) |
492 |
fi |
fi |
493 |
|
|
494 |
AC_ARG_ENABLE(dev-mode, |
AC_ARG_ENABLE(dev-mode, |
495 |
[ --disable-dev-mode |
[ --enable-dev-mode |
496 |
Disable development mode (default=on). In that mode |
Enable development mode (default=off). In that mode |
497 |
we do some extra sanity checks here and there. |
we do some extra sanity checks here and there. |
498 |
This helps to spot possible problems, but reduces |
This helps to spot possible problems, but reduces |
499 |
efficiency a bit], |
efficiency a bit], |
500 |
[config_dev_mode="no"], |
[config_dev_mode="$enableval"], |
501 |
[config_dev_mode="yes"] |
[config_dev_mode="no"] |
502 |
) |
) |
503 |
if test "$config_dev_mode" = "yes"; then |
if test "$config_dev_mode" = "yes"; then |
504 |
AC_DEFINE_UNQUOTED(CONFIG_DEVMODE, 1, [Define to 1 if you want to enable development mode.]) |
AC_DEFINE_UNQUOTED(CONFIG_DEVMODE, 1, [Define to 1 if you want to enable development mode.]) |
525 |
context as well. Otherwise if disabled |
context as well. Otherwise if disabled |
526 |
segmentation faults will be forced by the |
segmentation faults will be forced by the |
527 |
application on critical errors.], |
application on critical errors.], |
528 |
[config_rt_exceptions="yes"], |
[config_rt_exceptions="$enableval"], |
529 |
[config_rt_exceptions="no"] |
[config_rt_exceptions="no"] |
530 |
) |
) |
531 |
if test "$config_rt_exceptions" = "yes"; then |
if test "$config_rt_exceptions" = "yes"; then |
719 |
If enabled will force filter to be used even if |
If enabled will force filter to be used even if |
720 |
no usage was define in instrument patch files. |
no usage was define in instrument patch files. |
721 |
(default=no).], |
(default=no).], |
722 |
[config_force_filter="yes"], |
[config_force_filter="$enableval"], |
723 |
[config_force_filter="no"] |
[config_force_filter="no"] |
724 |
) |
) |
725 |
if test "$config_force_filter" = "yes"; then |
if test "$config_force_filter" = "yes"; then |
809 |
messages which do not provide a correct checksum |
messages which do not provide a correct checksum |
810 |
will be ignored. This is disabled by default as |
will be ignored. This is disabled by default as |
811 |
not all devices honor GS checksums.], |
not all devices honor GS checksums.], |
812 |
[config_assert_gs_sysex_checksum="yes"], |
[config_assert_gs_sysex_checksum="$enableval"], |
813 |
[config_assert_gs_sysex_checksum="no"] |
[config_assert_gs_sysex_checksum="no"] |
814 |
) |
) |
815 |
if test "config_assert_gs_sysex_checksum" = "yes"; then |
if test "config_assert_gs_sysex_checksum" = "yes"; then |
855 |
Similar to intmath but uses abs() function. |
Similar to intmath but uses abs() function. |
856 |
Depending on compiler and platrofm this could |
Depending on compiler and platrofm this could |
857 |
perform better than integer math as it avoids |
perform better than integer math as it avoids |
858 |
an extra integer multiply instruction. |
an extra integer multiply instruction. |
|
|
|
859 |
diharmonic: |
diharmonic: |
860 |
The triangular wave will be approximated by adding two |
The triangular wave will be approximated by adding two |
861 |
sinusoidials. This solution might especially hurt on |
sinusoidials. This solution might especially hurt on |
889 |
Similar to intmath but uses abs() function. |
Similar to intmath but uses abs() function. |
890 |
Depending on compiler and platrofm this could |
Depending on compiler and platrofm this could |
891 |
perform better than integer math as it avoids |
perform better than integer math as it avoids |
892 |
an extra integer multiply instruction. |
an extra integer multiply instruction. |
|
|
|
893 |
diharmonic: |
diharmonic: |
894 |
The triangular wave will be approximated by adding two |
The triangular wave will be approximated by adding two |
895 |
sinusoidials. This solution might especially hurt on |
sinusoidials. This solution might especially hurt on |
920 |
will not discard notes, triggered in mute mode, |
will not discard notes, triggered in mute mode, |
921 |
when the channel is unmuted. But also will reduce |
when the channel is unmuted. But also will reduce |
922 |
the efficiency.], |
the efficiency.], |
923 |
[config_process_muted_channels="yes"], |
[config_process_muted_channels="$enableval"], |
924 |
[config_process_muted_channels="no"] |
[config_process_muted_channels="no"] |
925 |
) |
) |
926 |
if test "$config_process_muted_channels" = "yes"; then |
if test "$config_process_muted_channels" = "yes"; then |
934 |
all voices whenever it receives an All-Notes-Off |
all voices whenever it receives an All-Notes-Off |
935 |
MIDI message. You can disable this behavior, so |
MIDI message. You can disable this behavior, so |
936 |
that LS simply ignores such messages.], |
that LS simply ignores such messages.], |
937 |
[config_process_all_notes_off="no"], |
[config_process_all_notes_off="$enableval"], |
938 |
[config_process_all_notes_off="yes"] |
[config_process_all_notes_off="yes"] |
939 |
) |
) |
940 |
if test "$config_process_all_notes_off" = "yes"; then |
if test "$config_process_all_notes_off" = "yes"; then |
948 |
generated by for example the envelope generator |
generated by for example the envelope generator |
949 |
will be smoother, minimizing the risk for audio |
will be smoother, minimizing the risk for audio |
950 |
clicks. Disable it to reduce CPU usage.], |
clicks. Disable it to reduce CPU usage.], |
951 |
[config_interpolate_volume="no"], |
[config_interpolate_volume="$enableval"], |
952 |
[config_interpolate_volume="yes"] |
[config_interpolate_volume="yes"] |
953 |
) |
) |
954 |
if test "$config_interpolate_volume" = "yes"; then |
if test "$config_interpolate_volume" = "yes"; then |
955 |
AC_DEFINE_UNQUOTED(CONFIG_INTERPOLATE_VOLUME, 1, [Define to 1 if you want to enable interpolation of volume modulation.]) |
AC_DEFINE_UNQUOTED(CONFIG_INTERPOLATE_VOLUME, 1, [Define to 1 if you want to enable interpolation of volume modulation.]) |
956 |
fi |
fi |
957 |
|
|
958 |
|
AC_ARG_ENABLE(plugin-dir, |
959 |
|
[ --enable-plugin-dir |
960 |
|
Directory where the sampler shall look for potential plugins, |
961 |
|
that is 3rd party shared libraries that should be loaded by |
962 |
|
the sampler on startup. By default the sampler will search |
963 |
|
for plugins in the subdirectory "plugins" below its own |
964 |
|
library directory. |
965 |
|
(i.e. /usr/local/lib/linuxsampler/plugins)], |
966 |
|
[config_plugin_dir="${enableval}"], |
967 |
|
[config_plugin_dir="${libdir}/linuxsampler/plugins"] |
968 |
|
) |
969 |
|
AC_SUBST(config_plugin_dir) |
970 |
|
|
971 |
|
AC_ARG_ENABLE(default-instruments-db-location, |
972 |
|
[ --enable-default-instruments-db-location |
973 |
|
Only when instruments DB feature is enabled: file name |
974 |
|
which shall be taken as default location of the |
975 |
|
instruments DB file. This location can still be |
976 |
|
overridden at runtime with a command line switch. |
977 |
|
(default: /var/lib/linuxsampler/instruments.db)], |
978 |
|
[config_default_instruments_db_file="${enableval}"], |
979 |
|
[config_default_instruments_db_file="/var/lib/linuxsampler/instruments.db"] |
980 |
|
) |
981 |
|
AC_DEFINE_UNQUOTED( |
982 |
|
CONFIG_DEFAULT_INSTRUMENTS_DB_LOCATION, |
983 |
|
"$config_default_instruments_db_file", |
984 |
|
[Only when instruments DB feature is enabled: default location of the DB file.] |
985 |
|
) |
986 |
|
AC_SUBST(config_default_instruments_db_file) |
987 |
|
|
988 |
|
|
989 |
########################################################################### |
########################################################################### |
990 |
# Automatic Benchmarks (to detect the best algorithms for the system) |
# Automatic Benchmarks (to detect the best algorithms for the system) |
1104 |
src/engines/Makefile \ |
src/engines/Makefile \ |
1105 |
src/engines/gig/Makefile \ |
src/engines/gig/Makefile \ |
1106 |
src/engines/common/Makefile \ |
src/engines/common/Makefile \ |
1107 |
src/common/Makefile src/lib/Makefile \ |
src/common/Makefile \ |
|
src/lib/fileloader/Makefile \ |
|
|
src/lib/fileloader/libgig/Makefile \ |
|
1108 |
src/testcases/Makefile \ |
src/testcases/Makefile \ |
1109 |
src/drivers/Makefile \ |
src/drivers/Makefile \ |
1110 |
src/drivers/audio/Makefile \ |
src/drivers/audio/Makefile \ |
1111 |
src/drivers/midi/Makefile \ |
src/drivers/midi/Makefile \ |
1112 |
|
src/plugins/Makefile \ |
1113 |
linuxsampler.spec \ |
linuxsampler.spec \ |
1114 |
debian/Makefile \ |
debian/Makefile \ |
1115 |
Artwork/Makefile \ |
Artwork/Makefile \ |
1116 |
scripts/Makefile \ |
scripts/Makefile \ |
1117 |
osx/Makefile \ |
osx/Makefile \ |
1118 |
osx/LinuxSampler.xcode/Makefile \ |
osx/linuxsampler.xcodeproj/Makefile \ |
1119 |
Documentation/Makefile \ |
Documentation/Makefile \ |
1120 |
Documentation/Engines/Makefile \ |
Documentation/Engines/Makefile \ |
1121 |
Documentation/Engines/gig/Makefile \ |
Documentation/Engines/gig/Makefile \ |
1123 |
Doxyfile \ |
Doxyfile \ |
1124 |
) |
) |
1125 |
|
|
1126 |
|
# resolve all nested variables in '${config_plugin_dir}' |
1127 |
|
# (merely for providing a human readable summary below) |
1128 |
|
while test $config_plugin_dir != `eval echo ${config_plugin_dir}` ; do |
1129 |
|
config_plugin_dir=`eval echo ${config_plugin_dir}` |
1130 |
|
done |
1131 |
|
|
1132 |
|
|
1133 |
########################################################################### |
########################################################################### |
1134 |
# Output All Configuration Options |
# Output All Configuration Options |
1171 |
echo "# Process Muted Channels: ${config_process_muted_channels}" |
echo "# Process Muted Channels: ${config_process_muted_channels}" |
1172 |
echo "# Process All-Notes-Off MIDI message: ${config_process_all_notes_off}" |
echo "# Process All-Notes-Off MIDI message: ${config_process_all_notes_off}" |
1173 |
echo "# Interpolate Volume: ${config_interpolate_volume}" |
echo "# Interpolate Volume: ${config_interpolate_volume}" |
1174 |
echo "# Instruments database support: ${instruments_db_support}" |
echo "# Instruments database support: ${config_instruments_db}" |
1175 |
|
if test "$config_instruments_db" = "yes"; then |
1176 |
|
echo "# Instruments DB default location: ${config_default_instruments_db_file}" |
1177 |
|
fi |
1178 |
|
echo "# Plugin Path: ${config_plugin_dir}" |
1179 |
echo "#-------------------------------------------------------------------#" |
echo "#-------------------------------------------------------------------#" |
1180 |
echo "# Read './configure --help' or file 'configure.in' for details. #" |
echo "# Read './configure --help' or file 'configure.in' for details. #" |
1181 |
echo "#####################################################################" |
echo "#####################################################################" |