5 |
|
|
6 |
LINUXSAMPLER_RELEASE_MAJOR=0 |
LINUXSAMPLER_RELEASE_MAJOR=0 |
7 |
LINUXSAMPLER_RELEASE_MINOR=4 |
LINUXSAMPLER_RELEASE_MINOR=4 |
8 |
LINUXSAMPLER_RELEASE_BUILD=0 |
LINUXSAMPLER_RELEASE_BUILD=0.7cvs |
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 |
29 |
LIBLINUXSAMPLER_LT_AGE=0 |
LIBLINUXSAMPLER_LT_AGE=0 |
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: |
34 |
|
|
35 |
|
LSCP_RELEASE_MAJOR=1 |
36 |
|
LSCP_RELEASE_MINOR=2 |
37 |
|
|
38 |
|
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.]) |
40 |
|
|
41 |
AM_PROG_LIBTOOL |
AM_PROG_LIBTOOL |
42 |
|
|
43 |
AC_SUBST(SHLIB_VERSION_ARG) |
AC_SUBST(SHLIB_VERSION_ARG) |
296 |
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.]) |
297 |
|
|
298 |
# Check presence of libgig |
# Check presence of libgig |
299 |
libgig_version="3.1.0" |
libgig_version="3.1.1" |
300 |
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) |
301 |
if test "$HAVE_GIG" = "false"; then |
if test "$HAVE_GIG" = "false"; then |
302 |
echo "Required libgig version not found!" |
echo "Required libgig version not found!" |
308 |
AC_SUBST(GIG_CFLAGS) |
AC_SUBST(GIG_CFLAGS) |
309 |
AC_SUBST(GIG_LIBS) |
AC_SUBST(GIG_LIBS) |
310 |
|
|
311 |
# SQLITE3 |
# Check presence of sqlite3 |
312 |
PKG_CHECK_MODULES(SQLITE3, sqlite3, HAVE_SQLITE3=true, HAVE_SQLITE3=false) |
sqlite_version="3.3" |
313 |
|
PKG_CHECK_MODULES(SQLITE3, sqlite3 >= $sqlite_version, HAVE_SQLITE3=true, HAVE_SQLITE3=false) |
314 |
AC_SUBST(SQLITE3_LIBS) |
AC_SUBST(SQLITE3_LIBS) |
315 |
AC_SUBST(SQLITE3_CFLAGS) |
AC_SUBST(SQLITE3_CFLAGS) |
316 |
if test $HAVE_SQLITE3 = false; then |
if test $HAVE_SQLITE3 = false; then |
317 |
HAVE_SQLITE3=0; |
HAVE_SQLITE3=0; |
318 |
echo "no, support for instrument DB will be disabled!" |
instruments_db_support="no" |
319 |
|
echo "*** Required sqlite version not found!" |
320 |
|
echo "*** You need to have sqlite version ${sqlite_version} or higher" |
321 |
|
echo "*** for instruments database support to be enabled." |
322 |
|
echo "*** Support for instruments DB will be disabled!" |
323 |
else |
else |
324 |
HAVE_SQLITE3=1 |
HAVE_SQLITE3=1 |
325 |
echo "yes" |
instruments_db_support="yes" |
326 |
fi |
fi |
327 |
AM_CONDITIONAL(HAVE_SQLITE3, test $HAVE_SQLITE3 = 1) |
AM_CONDITIONAL(HAVE_SQLITE3, test $HAVE_SQLITE3 = 1) |
328 |
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 have SQLITE3 installed.]) |
348 |
# TODO: should we use AC_ARG_VAR(variable, description) instead? |
# TODO: should we use AC_ARG_VAR(variable, description) instead? |
349 |
|
|
350 |
AC_ARG_ENABLE(asm, |
AC_ARG_ENABLE(asm, |
351 |
[ --enable-asm |
[ --disable-asm |
352 |
Enable hand-crafted assembly optimizations |
Enable hand-crafted assembly optimizations |
353 |
(default=off). LinuxSampler provides CPU specific |
(default=on). LinuxSampler provides CPU specific |
354 |
assembly optimizations for the most important |
assembly optimizations. This is currently limited |
355 |
synthesis algorithms. This is currently disabled |
to just enter a fast (denormal) FPU mode on x86 |
356 |
by default since current asm code is broken.], |
platforms. There are currently no synthesis core |
357 |
[config_asm="yes"], |
assembly optimizations anymore since LS 0.4.0], |
358 |
[config_asm="no"] |
[config_asm="no"], |
359 |
|
[config_asm="yes"] |
360 |
) |
) |
361 |
if test "$config_asm" = "yes"; then |
if test "$config_asm" = "yes"; then |
362 |
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.]) |
363 |
fi |
fi |
364 |
|
|
365 |
AC_ARG_ENABLE(dev-mode, |
AC_ARG_ENABLE(dev-mode, |
366 |
[ --enable-dev-mode |
[ --disable-dev-mode |
367 |
Enable development mode (default=off). In that mode |
Disable development mode (default=on). In that mode |
368 |
we do some extra sanity checks here and there. |
we do some extra sanity checks here and there. |
369 |
This helps to spot possible problems, but reduces |
This helps to spot possible problems, but reduces |
370 |
efficiency a bit], |
efficiency a bit], |
371 |
[config_dev_mode="yes"], |
[config_dev_mode="no"], |
372 |
[config_dev_mode="no"] |
[config_dev_mode="yes"] |
373 |
) |
) |
374 |
if test "$config_dev_mode" = "yes"; then |
if test "$config_dev_mode" = "yes"; then |
375 |
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.]) |
541 |
) |
) |
542 |
AC_DEFINE_UNQUOTED(CONFIG_DEFAULT_SUBFRAGMENT_SIZE, $config_subfragment_size, [Define default subfragment size (in sample points).]) |
AC_DEFINE_UNQUOTED(CONFIG_DEFAULT_SUBFRAGMENT_SIZE, $config_subfragment_size, [Define default subfragment size (in sample points).]) |
543 |
|
|
544 |
AC_ARG_ENABLE(global-attenuation, |
AC_ARG_ENABLE(global-attenuation-default, |
545 |
[ --enable-global-attenuation |
[ --enable-global-attenuation-default |
546 |
To prevent clipping all samples will be lowered |
To prevent clipping all samples will be lowered |
547 |
in amplitude by this given factor. |
in amplitude by this given default factor (can |
548 |
|
be overridden at runtime). |
549 |
(default=0.35)], |
(default=0.35)], |
550 |
[config_global_attenuation="${enableval}"], |
[config_global_attenuation_default="${enableval}"], |
551 |
[config_global_attenuation="0.35"] |
[config_global_attenuation_default="0.35"] |
552 |
) |
) |
553 |
AC_DEFINE_UNQUOTED(CONFIG_GLOBAL_ATTENUATION, $config_global_attenuation, [Define global volume attenuation (as floating point factor).]) |
AC_DEFINE_UNQUOTED(CONFIG_GLOBAL_ATTENUATION_DEFAULT, $config_global_attenuation_default, [Define default global volume attenuation (as floating point factor).]) |
554 |
|
|
555 |
AC_ARG_ENABLE(voice-steal-algo, |
AC_ARG_ENABLE(voice-steal-algo, |
556 |
[ --enable-voice-steal-algo |
[ --enable-voice-steal-algo |
828 |
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.]) |
829 |
fi |
fi |
830 |
|
|
831 |
|
AC_ARG_ENABLE(plugin-dir, |
832 |
|
[ --enable-plugin-dir |
833 |
|
Directory where the sampler shall look for potential plugins, |
834 |
|
that is 3rd party shared libraries that should be loaded by |
835 |
|
the sampler on startup. By default the sampler will search |
836 |
|
for plugins in the subdirectory "plugins" below its own |
837 |
|
library directory. |
838 |
|
(i.e. /usr/local/lib/linuxsampler/plugins)], |
839 |
|
[config_plugin_dir="${enableval}"], |
840 |
|
[config_plugin_dir="${libdir}/linuxsampler/plugins"] |
841 |
|
) |
842 |
|
AC_SUBST(config_plugin_dir) |
843 |
|
|
844 |
|
|
845 |
########################################################################### |
########################################################################### |
846 |
# Automatic Benchmarks (to detect the best algorithms for the system) |
# Automatic Benchmarks (to detect the best algorithms for the system) |
875 |
echo "Call './configure --help' for further information or read configure.in." |
echo "Call './configure --help' for further information or read configure.in." |
876 |
exit -1; |
exit -1; |
877 |
fi |
fi |
878 |
|
else |
879 |
|
case "$config_signed_triang_algo" in |
880 |
|
intmath) |
881 |
|
triang_signed=2 ;; |
882 |
|
diharmonic) |
883 |
|
triang_signed=3 ;; |
884 |
|
intmathabs) |
885 |
|
triang_signed=5 ;; |
886 |
|
esac |
887 |
fi |
fi |
888 |
AC_DEFINE_UNQUOTED(CONFIG_SIGNED_TRIANG_ALGO, ${triang_signed}, [Define signed triangular wave algorithm to be used.]) |
AC_DEFINE_UNQUOTED(CONFIG_SIGNED_TRIANG_ALGO, ${triang_signed}, [Define signed triangular wave algorithm to be used.]) |
889 |
|
|
915 |
echo "Call './configure --help' for further information or read configure.in." |
echo "Call './configure --help' for further information or read configure.in." |
916 |
exit -1; |
exit -1; |
917 |
fi |
fi |
918 |
|
else |
919 |
|
case "$config_unsigned_triang_algo" in |
920 |
|
intmath) |
921 |
|
triang_unsigned=2 ;; |
922 |
|
diharmonic) |
923 |
|
triang_unsigned=3 ;; |
924 |
|
intmathabs) |
925 |
|
triang_unsigned=5 ;; |
926 |
|
esac |
927 |
fi |
fi |
928 |
AC_DEFINE_UNQUOTED(CONFIG_UNSIGNED_TRIANG_ALGO, ${triang_unsigned}, [Define unsigned triangular wave algorithm to be used.]) |
AC_DEFINE_UNQUOTED(CONFIG_UNSIGNED_TRIANG_ALGO, ${triang_unsigned}, [Define unsigned triangular wave algorithm to be used.]) |
929 |
|
|
955 |
man/Makefile \ |
man/Makefile \ |
956 |
man/linuxsampler.1 \ |
man/linuxsampler.1 \ |
957 |
src/Makefile \ |
src/Makefile \ |
958 |
|
src/db/Makefile \ |
959 |
src/network/Makefile \ |
src/network/Makefile \ |
960 |
src/engines/Makefile \ |
src/engines/Makefile \ |
961 |
src/engines/gig/Makefile \ |
src/engines/gig/Makefile \ |
962 |
src/engines/common/Makefile \ |
src/engines/common/Makefile \ |
963 |
src/common/Makefile src/lib/Makefile \ |
src/common/Makefile \ |
|
src/lib/fileloader/Makefile \ |
|
|
src/lib/fileloader/libgig/Makefile \ |
|
964 |
src/testcases/Makefile \ |
src/testcases/Makefile \ |
965 |
src/drivers/Makefile \ |
src/drivers/Makefile \ |
966 |
src/drivers/audio/Makefile \ |
src/drivers/audio/Makefile \ |
970 |
Artwork/Makefile \ |
Artwork/Makefile \ |
971 |
scripts/Makefile \ |
scripts/Makefile \ |
972 |
osx/Makefile \ |
osx/Makefile \ |
973 |
osx/LinuxSampler.xcode/Makefile \ |
osx/linuxsampler.xcodeproj/Makefile \ |
974 |
Documentation/Makefile \ |
Documentation/Makefile \ |
975 |
Documentation/Engines/Makefile \ |
Documentation/Engines/Makefile \ |
976 |
Documentation/Engines/gig/Makefile \ |
Documentation/Engines/gig/Makefile \ |
978 |
Doxyfile \ |
Doxyfile \ |
979 |
) |
) |
980 |
|
|
981 |
|
# resolve all nested variables in '${config_plugin_dir}' |
982 |
|
# (merely for providing a human readable summary below) |
983 |
|
while test $config_plugin_dir != `eval echo ${config_plugin_dir}` ; do |
984 |
|
config_plugin_dir=`eval echo ${config_plugin_dir}` |
985 |
|
done |
986 |
|
|
987 |
|
|
988 |
########################################################################### |
########################################################################### |
989 |
# Output All Configuration Options |
# Output All Configuration Options |
1008 |
echo "# Maximum Disk Streams: ${config_max_streams}" |
echo "# Maximum Disk Streams: ${config_max_streams}" |
1009 |
echo "# Maximum Voices: ${config_max_voices}" |
echo "# Maximum Voices: ${config_max_voices}" |
1010 |
echo "# Default Subfragment Size: ${config_subfragment_size}" |
echo "# Default Subfragment Size: ${config_subfragment_size}" |
1011 |
echo "# Global Volume Attenuation: ${config_global_attenuation}" |
echo "# Default Global Volume Attenuation: ${config_global_attenuation_default}" |
1012 |
echo "# Voice Stealing Algorithm: ${config_voice_steal_algo}" |
echo "# Voice Stealing Algorithm: ${config_voice_steal_algo}" |
1013 |
echo "# Signed Triangular Oscillator Algorithm: ${config_signed_triang_algo}" |
echo "# Signed Triangular Oscillator Algorithm: ${config_signed_triang_algo}" |
1014 |
echo "# Unsigned Triangular Oscillator Algorithm: ${config_unsigned_triang_algo}" |
echo "# Unsigned Triangular Oscillator Algorithm: ${config_unsigned_triang_algo}" |
1026 |
echo "# Process Muted Channels: ${config_process_muted_channels}" |
echo "# Process Muted Channels: ${config_process_muted_channels}" |
1027 |
echo "# Process All-Notes-Off MIDI message: ${config_process_all_notes_off}" |
echo "# Process All-Notes-Off MIDI message: ${config_process_all_notes_off}" |
1028 |
echo "# Interpolate Volume: ${config_interpolate_volume}" |
echo "# Interpolate Volume: ${config_interpolate_volume}" |
1029 |
|
echo "# Instruments database support: ${instruments_db_support}" |
1030 |
|
echo "# Plugin Path: ${config_plugin_dir}" |
1031 |
echo "#-------------------------------------------------------------------#" |
echo "#-------------------------------------------------------------------#" |
1032 |
echo "# Read './configure --help' or file 'configure.in' for details. #" |
echo "# Read './configure --help' or file 'configure.in' for details. #" |
1033 |
echo "#####################################################################" |
echo "#####################################################################" |