/[svn]/linuxsampler/trunk/configure.in
ViewVC logotype

Diff of /linuxsampler/trunk/configure.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 720 by senkov, Sun Jul 24 18:22:56 2005 UTC revision 849 by schoenebeck, Sat Mar 25 13:05:59 2006 UTC
# Line 5  AC_INIT(configure.in) Line 5  AC_INIT(configure.in)
5    
6  LINUXSAMPLER_RELEASE_MAJOR=0  LINUXSAMPLER_RELEASE_MAJOR=0
7  LINUXSAMPLER_RELEASE_MINOR=3  LINUXSAMPLER_RELEASE_MINOR=3
8  LINUXSAMPLER_RELEASE_BUILD=3  LINUXSAMPLER_RELEASE_BUILD=3cvs
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
# Line 59  esac Line 59  esac
59  AC_DEFINE_UNQUOTED(ARCH_X86,$def_arch_x86,[Define to 1 if you build for x86 architecture.])  AC_DEFINE_UNQUOTED(ARCH_X86,$def_arch_x86,[Define to 1 if you build for x86 architecture.])
60    
61  # determine the right gcc switch for CPU specific optimizations  # determine the right gcc switch for CPU specific optimizations
62    # (only if the user did not provide one)
63  CXX_CPU_SWITCH=  CXX_CPU_SWITCH=
64  if test "$def_arch_x86" = 1; then  if ! echo "X $CXXFLAGS " | grep -q -- " \(-march=\|-mcpu=\|-mtune=\|-arch=\)" ; then
65    CXX_CPU_SWITCH="-march=$target_cpu"    if test "$def_arch_x86" = 1; then
66  elif test "$target_cpu" = "powerpc"; then      CXX_CPU_SWITCH="-march=$target_cpu"
67    CXX_CPU_SWITCH="-arch=$target_cpu"    elif test "$target_cpu" = "powerpc"; then
68        CXX_CPU_SWITCH="-arch=$target_cpu"
69      fi
70  fi  fi
71  AC_SUBST([CXX_CPU_SWITCH])  AC_SUBST([CXX_CPU_SWITCH])
72    
# Line 99  if test "$have_unix98" = "no"; then Line 102  if test "$have_unix98" = "no"; then
102      fi      fi
103  fi  fi
104    
105    # check for <features.h>
106    AC_CHECK_HEADERS(features.h)
107    
108  # Checks for available audio and MIDI systems / drivers  # Checks for available audio and MIDI systems / drivers
109  # (we throw an error if there's not at least one system for audio output and MIDI input available)  # (we throw an error if there's not at least one system for audio output and MIDI input available)
110  have_midi_input_driver="false"  have_midi_input_driver="false"
# Line 185  fi Line 191  fi
191  AM_CONDITIONAL(HAVE_JACK, test $HAVE_JACK = 1)  AM_CONDITIONAL(HAVE_JACK, test $HAVE_JACK = 1)
192  AC_DEFINE_UNQUOTED(HAVE_JACK,$HAVE_JACK,[Define to 1 if you have JACK installed.])  AC_DEFINE_UNQUOTED(HAVE_JACK,$HAVE_JACK,[Define to 1 if you have JACK installed.])
193    
194    # ARTS
195    
196    m4_ifdef([m4_include(m4/arts.m4)],,
197            [sinclude([m4/arts.m4])])
198    
199    AM_PATH_ARTS(0.9.5, have_arts=1, have_arts=0)
200    if test "$have_arts" = "1"; then
201        have_audio_output_driver="true"
202    fi
203    AM_CONDITIONAL(HAVE_ARTS, test "$have_arts" = "1")
204    AC_DEFINE_UNQUOTED(HAVE_ARTS,$have_arts,[Define to 1 if you have aRts installed.])
205    
206  # MidiShare (Linux, OS X, Windows)  # MidiShare (Linux, OS X, Windows)
207  AC_CHECK_HEADER(MidiShare.h,  AC_CHECK_HEADER(MidiShare.h,
208      AC_CHECK_LIB(MidiShare, MidiCountEvs,      AC_CHECK_LIB(MidiShare, MidiCountEvs,
# Line 212  AM_CONDITIONAL(HAVE_COREMIDI, test $have Line 230  AM_CONDITIONAL(HAVE_COREMIDI, test $have
230  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.])
231    
232  # Check presence of libgig  # Check presence of libgig
233  libgig_version="2.0.1"  libgig_version="2.0.2"
234  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)
235  if test "$HAVE_GIG" = "false"; then  if test "$HAVE_GIG" = "false"; then
236      echo "Required libgig version not found!"      echo "Required libgig version not found!"
# Line 259  fi Line 277  fi
277  # TODO: should we use AC_ARG_VAR(variable, description) instead?  # TODO: should we use AC_ARG_VAR(variable, description) instead?
278    
279  AC_ARG_ENABLE(asm,  AC_ARG_ENABLE(asm,
280    [  --disable-asm    [  --enable-asm
281                            Disable hand-crafted assembly optimizations                            Enable hand-crafted assembly optimizations
282                            (default=on). LinuxSampler provides CPU specific                            (default=off). LinuxSampler provides CPU specific
283                            assembly optimizations for the most important                            assembly optimizations for the most important
284                            synthesis algorithms. You usually don't want to                            synthesis algorithms. This is currently disabled
285                            disable that.],                            by default since current asm code is broken.],
286    [config_asm="no"],    [config_asm="yes"],
287    [config_asm="yes"]    [config_asm="no"]
288  )  )
289  if test "$config_asm" = "yes"; then  if test "$config_asm" = "yes"; then
290    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 hand-crafted asm optimizations.])
291  fi  fi
292    
293  AC_ARG_ENABLE(dev-mode,  AC_ARG_ENABLE(dev-mode,
294    [  --enable-dev-mode    [  --disable-dev-mode
295                            Enable development mode (default=no). In that mode                            Disable development mode (default=on). In that mode
296                            we do some extra sanity checks here and there.                            we do some extra sanity checks here and there.
297                            This helps to spot possible problems, but reduces                            This helps to spot possible problems, but reduces
298                            efficiency a bit],                            efficiency a bit],
299    [config_dev_mode="yes"],    [config_dev_mode="no"],
300    [config_dev_mode="no"]    [config_dev_mode="yes"]
301  )  )
302  if test "$config_dev_mode" = "yes"; then  if test "$config_dev_mode" = "yes"; then
303    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.])
# Line 436  AC_ARG_ENABLE(max-voices, Line 454  AC_ARG_ENABLE(max-voices,
454  )  )
455  AC_DEFINE_UNQUOTED(CONFIG_MAX_VOICES, $config_max_voices, [Define max. voices.])  AC_DEFINE_UNQUOTED(CONFIG_MAX_VOICES, $config_max_voices, [Define max. voices.])
456    
457    AC_ARG_ENABLE(subfragment-size,
458      [  --enable-subfragment-size
459                              Every audio fragment will be splitted into
460                              subfragments. Where each subfragment renders
461                              audio with constant synthesis parameters. This is
462                              done for efficiency reasons. This parameter
463                              defines the default size of a subfragment in
464                              sample points. A large value means less CPU time
465                              whereas a low value means better audio quality
466                              (default=32).],
467      [config_subfragment_size="${enableval}"],
468      [config_subfragment_size="32"]
469    )
470    AC_DEFINE_UNQUOTED(CONFIG_DEFAULT_SUBFRAGMENT_SIZE, $config_subfragment_size, [Define default subfragment size (in sample points).])
471    
472    AC_ARG_ENABLE(global-attenuation,
473      [  --enable-global-attenuation
474                              To prevent clipping all samples will be lowered
475                              in amplitude by this given factor.
476                              (default=0.35)],
477      [config_global_attenuation="${enableval}"],
478      [config_global_attenuation="0.35"]
479    )
480    AC_DEFINE_UNQUOTED(CONFIG_GLOBAL_ATTENUATION, $config_global_attenuation, [Define global volume attenuation (as floating point factor).])
481    
482  AC_ARG_ENABLE(voice-steal-algo,  AC_ARG_ENABLE(voice-steal-algo,
483    [  --enable-voice-steal-algo    [  --enable-voice-steal-algo
484                            Voice stealing algorithm to be used. Currently                            Voice stealing algorithm to be used. Currently
# Line 469  AC_ARG_ENABLE(sysex-buffer-size, Line 512  AC_ARG_ENABLE(sysex-buffer-size,
512  )  )
513  AC_DEFINE_UNQUOTED(CONFIG_SYSEX_BUFFER_SIZE, $config_sysex_buffer_size, [Define SysEx buffer size.])  AC_DEFINE_UNQUOTED(CONFIG_SYSEX_BUFFER_SIZE, $config_sysex_buffer_size, [Define SysEx buffer size.])
514    
 AC_ARG_ENABLE(filter-update-steps,  
   [  --enable-filter-update-steps  
                           Amount of sample points after which filter  
                           parameters (cutoff, resonance) are going to be  
                           updated (default=64). Higher value means less CPU  
                           load, but also worse parameter resolution, this  
                           value will be aligned to a power of two.],  
   [config_filter_update_steps="${enableval}"],  
   [config_filter_update_steps="64"]  
 )  
 AC_DEFINE_UNQUOTED(CONFIG_FILTER_UPDATE_STEPS, $config_filter_update_steps, [Define amount of steps to refresh filter coefficients.])  
   
515  AC_ARG_ENABLE(force-filter,  AC_ARG_ENABLE(force-filter,
516    [  --enable-force-filter    [  --enable-force-filter
517                            If enabled will force filter to be used even if                            If enabled will force filter to be used even if
# Line 583  if test "config_assert_gs_sysex_checksum Line 614  if test "config_assert_gs_sysex_checksum
614    AC_DEFINE_UNQUOTED(CONFIG_ASSERT_GS_SYSEX_CHECKSUM, 1, [Define to 1 if you want to enable GS SysEx check.])    AC_DEFINE_UNQUOTED(CONFIG_ASSERT_GS_SYSEX_CHECKSUM, 1, [Define to 1 if you want to enable GS SysEx check.])
615  fi  fi
616    
617    AC_ARG_ENABLE(portamento-time-min,
618      [  --enable-portamento-time-min
619                              Minimum Portamento time in seconds
620                              (default=0.1).],
621      [config_portamento_time_min="${enableval}"],
622      [config_portamento_time_min="0.1"]
623    )
624    AC_DEFINE_UNQUOTED(CONFIG_PORTAMENTO_TIME_MIN, $config_portamento_time_min, [Define min. portamento time.])
625    
626    AC_ARG_ENABLE(portamento-time-max,
627      [  --enable-portamento-time-max
628                              Maximum Portamento time in seconds
629                              (default=32).],
630      [config_portamento_time_max="${enableval}"],
631      [config_portamento_time_max="32"]
632    )
633    AC_DEFINE_UNQUOTED(CONFIG_PORTAMENTO_TIME_MAX, $config_portamento_time_max, [Define max. portamento time.])
634    
635    AC_ARG_ENABLE(portamento-time-default,
636      [  --enable-portamento-time-default
637                              Default Portamento time in seconds
638                              (default=1).],
639      [config_portamento_time_default="${enableval}"],
640      [config_portamento_time_default="1"]
641    )
642    AC_DEFINE_UNQUOTED(CONFIG_PORTAMENTO_TIME_DEFAULT, $config_portamento_time_default, [Define default portamento time.])
643    
644  AC_ARG_ENABLE(signed-triang-algo,  AC_ARG_ENABLE(signed-triang-algo,
645    [  --enable-signed-triang-algo    [  --enable-signed-triang-algo
646                            Signed triangular wave algorithm to be used (e.g. for LFOs).                            Signed triangular wave algorithm to be used (e.g. for LFOs).
# Line 669  if test "$config_process_muted_channels" Line 727  if test "$config_process_muted_channels"
727    AC_DEFINE_UNQUOTED(CONFIG_PROCESS_MUTED_CHANNELS, 1, [Define to 1 if you want to enable processing of muted channels.])    AC_DEFINE_UNQUOTED(CONFIG_PROCESS_MUTED_CHANNELS, 1, [Define to 1 if you want to enable processing of muted channels.])
728  fi  fi
729    
730    AC_ARG_ENABLE(process-all-notes-off,
731      [  --disable-process-all-notes-off
732                              Disable interpretation of All-Notes-Off MIDI
733                              messages (default=on). By default LS will release
734                              all voices whenever it receives an All-Notes-Off
735                              MIDI message. You can disable this behavior, so
736                              that LS simply ignores such messages.],
737      [config_process_all_notes_off="no"],
738      [config_process_all_notes_off="yes"]
739    )
740    if test "$config_process_all_notes_off" = "yes"; then
741      AC_DEFINE_UNQUOTED(CONFIG_PROCESS_ALL_NOTES_OFF, 1, [Define to 1 if you want to enable processing of All-Notes-Off MIDI messages.])
742    fi
743    
744    AC_ARG_ENABLE(interpolate-volume,
745      [  --disable-interpolate-volume
746                              Disable interpolation of volume modulation
747                              (default=on). With this enabled, the volume changes
748                              generated by for example the envelope generator
749                              will be smoother, minimizing the risk for audio
750                              clicks. Disable it to reduce CPU usage.],
751      [config_interpolate_volume="no"],
752      [config_interpolate_volume="yes"]
753    )
754    if test "$config_interpolate_volume" = "yes"; then
755      AC_DEFINE_UNQUOTED(CONFIG_INTERPOLATE_VOLUME, 1, [Define to 1 if you want to enable interpolation of volume modulation.])
756    fi
757    
758    
759  ###########################################################################  ###########################################################################
760  # Automatic Benchmarks (to detect the best algorithms for the system)  # Automatic Benchmarks (to detect the best algorithms for the system)
# Line 681  if test "$config_signed_triang_algo" = " Line 767  if test "$config_signed_triang_algo" = "
767      AC_TRY_RUN([      AC_TRY_RUN([
768              #define SIGNED 1              #define SIGNED 1
769              #define SILENT 1              #define SILENT 1
770              #include "benchmarks/triang.cpp"              #include "${srcdir}/benchmarks/triang.cpp"
771          ],          ],
772          triang_signed=0,          triang_signed=0,
773          triang_signed=$?,          triang_signed=$?,
# Line 704  if test "$config_signed_triang_algo" = " Line 790  if test "$config_signed_triang_algo" = "
790          exit -1;          exit -1;
791      fi      fi
792  fi  fi
793  AC_DEFINE_UNQUOTED(CONFIG_SIGNED_TRIANG_ALGO, signed_triang_algo_${config_signed_triang_algo}, [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.])
794    
795  if test "$config_unsigned_triang_algo" = "benchmark"; then  if test "$config_unsigned_triang_algo" = "benchmark"; then
796      echo -n "benchmarking for the best (unsigned) triangular oscillator algorithm... "      echo -n "benchmarking for the best (unsigned) triangular oscillator algorithm... "
# Line 712  if test "$config_unsigned_triang_algo" = Line 798  if test "$config_unsigned_triang_algo" =
798      AC_TRY_RUN([      AC_TRY_RUN([
799              #define SIGNED 0              #define SIGNED 0
800              #define SILENT 1              #define SILENT 1
801              #include "benchmarks/triang.cpp"              #include "${srcdir}/benchmarks/triang.cpp"
802          ],          ],
803          triang_unsigned=0,          triang_unsigned=0,
804          triang_unsigned=$?,          triang_unsigned=$?,
# Line 725  if test "$config_unsigned_triang_algo" = Line 811  if test "$config_unsigned_triang_algo" =
811          config_unsigned_triang_algo="diharmonic"          config_unsigned_triang_algo="diharmonic"
812          echo "di harmonics"          echo "di harmonics"
813      elif test "$triang_unsigned" = "5"; then      elif test "$triang_unsigned" = "5"; then
814          config_signed_triang_algo="intmathabs"          config_unsigned_triang_algo="intmathabs"
815          echo "integer math using abs()"          echo "integer math using abs()"
816      else      else
817          echo "Benchmark of unsigned triangular wave algorithms failed!"          echo "Benchmark of unsigned triangular wave algorithms failed!"
# Line 735  if test "$config_unsigned_triang_algo" = Line 821  if test "$config_unsigned_triang_algo" =
821          exit -1;          exit -1;
822      fi      fi
823  fi  fi
824  AC_DEFINE_UNQUOTED(CONFIG_UNSIGNED_TRIANG_ALGO, unsigned_triang_algo_${config_unsigned_triang_algo}, [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.])
825    
826  AC_LANG_RESTORE  AC_LANG_RESTORE
827    
# Line 812  echo "# Maximum Stream Refill Size: ${co Line 898  echo "# Maximum Stream Refill Size: ${co
898  echo "# Stream Size: ${config_stream_size}"  echo "# Stream Size: ${config_stream_size}"
899  echo "# Maximum Disk Streams: ${config_max_streams}"  echo "# Maximum Disk Streams: ${config_max_streams}"
900  echo "# Maximum Voices: ${config_max_voices}"  echo "# Maximum Voices: ${config_max_voices}"
901    echo "# Default Subfragment Size: ${config_subfragment_size}"
902    echo "# Global Volume Attenuation: ${config_global_attenuation}"
903  echo "# Voice Stealing Algorithm: ${config_voice_steal_algo}"  echo "# Voice Stealing Algorithm: ${config_voice_steal_algo}"
904  echo "# Signed Triangular Oscillator Algorithm: ${config_signed_triang_algo}"  echo "# Signed Triangular Oscillator Algorithm: ${config_signed_triang_algo}"
905  echo "# Unsigned Triangular Oscillator Algorithm: ${config_unsigned_triang_algo}"  echo "# Unsigned Triangular Oscillator Algorithm: ${config_unsigned_triang_algo}"
906  echo "# SysEx Buffer Size: ${config_sysex_buffer_size} Byte"  echo "# SysEx Buffer Size: ${config_sysex_buffer_size} Byte"
907  echo "# Filter Update Steps: ${config_filter_update_steps}"  echo "# Min. Portamento Time: ${config_portamento_time_min} s"
908    echo "# Max. Portamento Time: ${config_portamento_time_max} s"
909    echo "# Default Portamento Time: ${config_portamento_time_default} s"
910  echo "# Force Filter Usage: ${config_force_filter}"  echo "# Force Filter Usage: ${config_force_filter}"
911  echo "# Filter Cutoff Minimum: ${config_filter_cutoff_min} Hz"  echo "# Filter Cutoff Minimum: ${config_filter_cutoff_min} Hz"
912  echo "# Filter Cutoff Maximum: ${config_filter_cutoff_max} Hz"  echo "# Filter Cutoff Maximum: ${config_filter_cutoff_max} Hz"
# Line 825  echo "# Override Filter Resonance Contro Line 915  echo "# Override Filter Resonance Contro
915  echo "# Override Filter Type: ${config_override_filter_type}"  echo "# Override Filter Type: ${config_override_filter_type}"
916  echo "# Assert GS SysEx Checksum: ${config_assert_gs_sysex_checksum}"  echo "# Assert GS SysEx Checksum: ${config_assert_gs_sysex_checksum}"
917  echo "# Process Muted Channels: ${config_process_muted_channels}"  echo "# Process Muted Channels: ${config_process_muted_channels}"
918    echo "# Process All-Notes-Off MIDI message: ${config_process_all_notes_off}"
919    echo "# Interpolate Volume: ${config_interpolate_volume}"
920  echo "#-------------------------------------------------------------------#"  echo "#-------------------------------------------------------------------#"
921  echo "# Read './configure --help' or file 'configure.in' for details.     #"  echo "# Read './configure --help' or file 'configure.in' for details.     #"
922  echo "#####################################################################"  echo "#####################################################################"

Legend:
Removed from v.720  
changed lines
  Added in v.849

  ViewVC Help
Powered by ViewVC