--- linuxsampler/trunk/configure.in 2006/01/14 14:07:47 829 +++ linuxsampler/trunk/configure.in 2006/02/26 13:00:08 840 @@ -61,7 +61,6 @@ # determine the right gcc switch for CPU specific optimizations # (only if the user did not provide one) CXX_CPU_SWITCH= -echo "X $CXXFLAGS " if ! echo "X $CXXFLAGS " | grep -q -- " \(-march=\|-mcpu=\|-mtune=\|-arch=\)" ; then if test "$def_arch_x86" = 1; then CXX_CPU_SWITCH="-march=$target_cpu" @@ -192,6 +191,18 @@ AM_CONDITIONAL(HAVE_JACK, test $HAVE_JACK = 1) AC_DEFINE_UNQUOTED(HAVE_JACK,$HAVE_JACK,[Define to 1 if you have JACK installed.]) +# ARTS + +m4_ifdef([m4_include(m4/arts.m4)],, + [sinclude([m4/arts.m4])]) + +AM_PATH_ARTS(0.9.5, have_arts=1, have_arts=0) +if test "$have_arts" = "1"; then + have_audio_output_driver="true" +fi +AM_CONDITIONAL(HAVE_ARTS, test "$have_arts" = "1") +AC_DEFINE_UNQUOTED(HAVE_ARTS,$have_arts,[Define to 1 if you have aRts installed.]) + # MidiShare (Linux, OS X, Windows) AC_CHECK_HEADER(MidiShare.h, AC_CHECK_LIB(MidiShare, MidiCountEvs, @@ -716,6 +727,20 @@ AC_DEFINE_UNQUOTED(CONFIG_PROCESS_MUTED_CHANNELS, 1, [Define to 1 if you want to enable processing of muted channels.]) fi +AC_ARG_ENABLE(interpolate-volume, + [ --disable-interpolate-volume + Disable interpolation of volume modulation + (default=on). With this enabled, the volume changes + generated by for example the envelope generator + will be smoother, minimizing the risk for audio + clicks. Disable it to reduce CPU usage.], + [config_interpolate_volume="no"], + [config_interpolate_volume="yes"] +) +if test "$config_interpolate_volume" = "yes"; then + AC_DEFINE_UNQUOTED(CONFIG_INTERPOLATE_VOLUME, 1, [Define to 1 if you want to enable interpolation of volume modulation.]) +fi + ########################################################################### # Automatic Benchmarks (to detect the best algorithms for the system) @@ -876,6 +901,7 @@ echo "# Override Filter Type: ${config_override_filter_type}" echo "# Assert GS SysEx Checksum: ${config_assert_gs_sysex_checksum}" echo "# Process Muted Channels: ${config_process_muted_channels}" +echo "# Interpolate Volume: ${config_interpolate_volume}" echo "#-------------------------------------------------------------------#" echo "# Read './configure --help' or file 'configure.in' for details. #" echo "#####################################################################"