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.7cvs |
LINUXSAMPLER_RELEASE_BUILD=0 |
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=1 |
28 |
LIBLINUXSAMPLER_LT_REVISION=0 |
LIBLINUXSAMPLER_LT_REVISION=0 |
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" |
114 |
# check for <features.h> |
# check for <features.h> |
115 |
AC_CHECK_HEADERS(features.h) |
AC_CHECK_HEADERS(features.h) |
116 |
|
|
117 |
|
# test for POSIX thread library |
118 |
|
m4_ifdef([m4_include(m4/pthread.m4)],, |
119 |
|
[sinclude([m4/pthread.m4])]) |
120 |
|
ACX_PTHREAD |
121 |
|
LIBS="$PTHREAD_LIBS $LIBS" |
122 |
|
CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
123 |
|
CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS" |
124 |
|
CC="$PTHREAD_CC" |
125 |
|
|
126 |
|
# check for a bug in NPTL-enabled glibc |
127 |
|
# (see Gentoo bug report #194076) |
128 |
|
AC_ARG_ENABLE(nptl-bug-check, |
129 |
|
[ --disable-nptl-bug-check |
130 |
|
Disable check for a bug in certain NPTL-enabled |
131 |
|
glibc versions that caused crashs.], |
132 |
|
[config_check_nptl_bug="$enableval"], |
133 |
|
[config_check_nptl_bug="yes"] |
134 |
|
) |
135 |
|
if test "$config_check_nptl_bug" = "yes"; then |
136 |
|
m4_ifdef([m4_include(m4/nptl_bug.m4)],, |
137 |
|
[sinclude([m4/nptl_bug.m4])]) |
138 |
|
ACX_NPTL_GLIBC_BUG([ |
139 |
|
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" |
140 |
|
echo "You seem to have a buggy PTHREAD library! LinuxSampler would" |
141 |
|
echo "probably crash due to this. Please report us the system you are" |
142 |
|
echo "using and/or file a bug report to the bug tracking system of" |
143 |
|
echo "your distribution." |
144 |
|
echo "If you have a NPTL-enabled glibc AND it was compiled for TLS as" |
145 |
|
echo "well, you can try to circumvent this problem for now by setting" |
146 |
|
echo "the environment variable LD_ASSUME_KERNEL=\"2.4.1\" , which" |
147 |
|
echo "should cause this test to pass." |
148 |
|
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" |
149 |
|
AC_MSG_ERROR([possibly NPTL glibc bug detected]) |
150 |
|
]) |
151 |
|
else |
152 |
|
echo "NPTL glibc bug check disabled" |
153 |
|
fi |
154 |
|
|
155 |
|
|
156 |
|
|
157 |
########################################################################### |
########################################################################### |
158 |
# Checks for available audio and MIDI systems / drivers |
# Checks for available audio and MIDI systems / drivers |
334 |
AM_CONDITIONAL(HAVE_COREMIDI, test $have_coremidi = "1") |
AM_CONDITIONAL(HAVE_COREMIDI, test $have_coremidi = "1") |
335 |
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.]) |
336 |
|
|
337 |
|
# have we found at least one MIDI input and one audio output driver ? |
338 |
|
if test "$have_midi_input_driver" = "false"; then |
339 |
|
echo "No supported MIDI input system found!" |
340 |
|
echo "Sorry, LinuxSampler only supports the following MIDI drivers at the moment:" |
341 |
|
echo "ALSA, MIDIShare, CoreMIDI." |
342 |
|
echo "If you think you have one of those available on your system, make sure you" |
343 |
|
echo "also have the respective development (header) files installed." |
344 |
|
exit -1; |
345 |
|
fi |
346 |
|
if test "$have_audio_output_driver" = "false"; then |
347 |
|
echo "No supported audio output system found!" |
348 |
|
echo "Sorry, LinuxSampler only supports ALSA, JACK and ARTS as audio output" |
349 |
|
echo "driver at the moment!" |
350 |
|
exit -1; |
351 |
|
fi |
352 |
|
|
353 |
|
|
354 |
|
|
355 |
|
########################################################################### |
356 |
|
# Checks for various DLL libraries |
357 |
|
|
358 |
# Check presence of libgig |
# Check presence of libgig |
359 |
libgig_version="3.1.1" |
libgig_version="3.2.0" |
360 |
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) |
361 |
if test "$HAVE_GIG" = "false"; then |
if test "$HAVE_GIG" = "false"; then |
362 |
echo "Required libgig version not found!" |
echo "Required libgig version not found!" |
368 |
AC_SUBST(GIG_CFLAGS) |
AC_SUBST(GIG_CFLAGS) |
369 |
AC_SUBST(GIG_LIBS) |
AC_SUBST(GIG_LIBS) |
370 |
|
|
371 |
# Check presence of sqlite3 |
# Instruments DB feature (requires SQLite 3.3) |
372 |
sqlite_version="3.3" |
AC_ARG_ENABLE(instruments-db, |
373 |
PKG_CHECK_MODULES(SQLITE3, sqlite3 >= $sqlite_version, HAVE_SQLITE3=true, HAVE_SQLITE3=false) |
[ --disable-instruments-db |
374 |
AC_SUBST(SQLITE3_LIBS) |
Disable compilation of the sampler's instruments |
375 |
AC_SUBST(SQLITE3_CFLAGS) |
database feature. You need to have SQLite 3.3 |
376 |
if test $HAVE_SQLITE3 = false; then |
or younger installed for this feature.], |
377 |
HAVE_SQLITE3=0; |
[config_instruments_db="$enableval"], |
378 |
instruments_db_support="no" |
[config_instruments_db="yes"] |
379 |
echo "*** Required sqlite version not found!" |
) |
380 |
echo "*** You need to have sqlite version ${sqlite_version} or higher" |
HAVE_SQLITE3=0; |
381 |
echo "*** for instruments database support to be enabled." |
if test "$config_instruments_db" = "yes"; then |
382 |
echo "*** Support for instruments DB will be disabled!" |
# Check presence of sqlite3 |
383 |
|
sqlite_version="3.3" |
384 |
|
PKG_CHECK_MODULES(SQLITE3, sqlite3 >= $sqlite_version, HAVE_SQLITE3=true, HAVE_SQLITE3=false) |
385 |
|
AC_SUBST(SQLITE3_LIBS) |
386 |
|
AC_SUBST(SQLITE3_CFLAGS) |
387 |
|
if test $HAVE_SQLITE3 = false; then |
388 |
|
HAVE_SQLITE3=0 |
389 |
|
config_instruments_db="no" |
390 |
|
echo "*** Required sqlite version not found!" |
391 |
|
echo "*** You need to have sqlite version ${sqlite_version} or higher" |
392 |
|
echo "*** for instruments database support to be enabled." |
393 |
|
echo "*** Support for instruments DB will be disabled!" |
394 |
|
else |
395 |
|
HAVE_SQLITE3=1 |
396 |
|
fi |
397 |
else |
else |
398 |
HAVE_SQLITE3=1 |
echo "Instruments DB feature disabled by configure script parameter" |
|
instruments_db_support="yes" |
|
399 |
fi |
fi |
400 |
AM_CONDITIONAL(HAVE_SQLITE3, test $HAVE_SQLITE3 = 1) |
AM_CONDITIONAL(HAVE_SQLITE3, test $HAVE_SQLITE3 = 1) |
401 |
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.]) |
402 |
|
|
|
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 |
|
403 |
|
|
404 |
|
|
405 |
########################################################################### |
########################################################################### |
423 |
fi |
fi |
424 |
|
|
425 |
AC_ARG_ENABLE(dev-mode, |
AC_ARG_ENABLE(dev-mode, |
426 |
[ --disable-dev-mode |
[ --enable-dev-mode |
427 |
Disable development mode (default=on). In that mode |
Enable development mode (default=off). In that mode |
428 |
we do some extra sanity checks here and there. |
we do some extra sanity checks here and there. |
429 |
This helps to spot possible problems, but reduces |
This helps to spot possible problems, but reduces |
430 |
efficiency a bit], |
efficiency a bit], |
431 |
[config_dev_mode="$enableval"], |
[config_dev_mode="$enableval"], |
432 |
[config_dev_mode="yes"] |
[config_dev_mode="no"] |
433 |
) |
) |
434 |
if test "$config_dev_mode" = "yes"; then |
if test "$config_dev_mode" = "yes"; then |
435 |
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.]) |
899 |
) |
) |
900 |
AC_SUBST(config_plugin_dir) |
AC_SUBST(config_plugin_dir) |
901 |
|
|
902 |
|
AC_ARG_ENABLE(default-instruments-db-location, |
903 |
|
[ --enable-default-instruments-db-location |
904 |
|
Only when instruments DB feature is enabled: file name |
905 |
|
which shall be taken as default location of the |
906 |
|
instruments DB file. This location can still be |
907 |
|
overridden at runtime with a command line switch. |
908 |
|
(default: /var/lib/linuxsampler/instruments.db)], |
909 |
|
[config_default_instruments_db_file="${enableval}"], |
910 |
|
[config_default_instruments_db_file="/var/lib/linuxsampler/instruments.db"] |
911 |
|
) |
912 |
|
AC_DEFINE_UNQUOTED( |
913 |
|
CONFIG_DEFAULT_INSTRUMENTS_DB_LOCATION, |
914 |
|
"$config_default_instruments_db_file", |
915 |
|
[Only when instruments DB feature is enabled: default location of the DB file.] |
916 |
|
) |
917 |
|
AC_SUBST(config_default_instruments_db_file) |
918 |
|
|
919 |
|
|
920 |
########################################################################### |
########################################################################### |
921 |
# Automatic Benchmarks (to detect the best algorithms for the system) |
# Automatic Benchmarks (to detect the best algorithms for the system) |
1040 |
src/drivers/Makefile \ |
src/drivers/Makefile \ |
1041 |
src/drivers/audio/Makefile \ |
src/drivers/audio/Makefile \ |
1042 |
src/drivers/midi/Makefile \ |
src/drivers/midi/Makefile \ |
1043 |
|
src/plugins/Makefile \ |
1044 |
linuxsampler.spec \ |
linuxsampler.spec \ |
1045 |
debian/Makefile \ |
debian/Makefile \ |
1046 |
Artwork/Makefile \ |
Artwork/Makefile \ |
1102 |
echo "# Process Muted Channels: ${config_process_muted_channels}" |
echo "# Process Muted Channels: ${config_process_muted_channels}" |
1103 |
echo "# Process All-Notes-Off MIDI message: ${config_process_all_notes_off}" |
echo "# Process All-Notes-Off MIDI message: ${config_process_all_notes_off}" |
1104 |
echo "# Interpolate Volume: ${config_interpolate_volume}" |
echo "# Interpolate Volume: ${config_interpolate_volume}" |
1105 |
echo "# Instruments database support: ${instruments_db_support}" |
echo "# Instruments database support: ${config_instruments_db}" |
1106 |
|
if test "$config_instruments_db" = "yes"; then |
1107 |
|
echo "# Instruments DB default location: ${config_default_instruments_db_file}" |
1108 |
|
fi |
1109 |
echo "# Plugin Path: ${config_plugin_dir}" |
echo "# Plugin Path: ${config_plugin_dir}" |
1110 |
echo "#-------------------------------------------------------------------#" |
echo "#-------------------------------------------------------------------#" |
1111 |
echo "# Read './configure --help' or file 'configure.in' for details. #" |
echo "# Read './configure --help' or file 'configure.in' for details. #" |