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

Diff of /linuxsampler/trunk/configure.ac

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

revision 716 by iliev, Sun Jul 24 06:57:30 2005 UTC revision 822 by wylder, Thu Dec 22 21:45:30 2005 UTC
# Line 99  if test "$have_unix98" = "no"; then Line 99  if test "$have_unix98" = "no"; then
99      fi      fi
100  fi  fi
101    
102    # check for <features.h>
103    AC_CHECK_HEADERS(features.h)
104    
105  # Checks for available audio and MIDI systems / drivers  # Checks for available audio and MIDI systems / drivers
106  # (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)
107  have_midi_input_driver="false"  have_midi_input_driver="false"
# Line 212  AM_CONDITIONAL(HAVE_COREMIDI, test $have Line 215  AM_CONDITIONAL(HAVE_COREMIDI, test $have
215  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.])
216    
217  # Check presence of libgig  # Check presence of libgig
218  libgig_version="2.0.1"  libgig_version="2.0.2"
219  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)
220  if test "$HAVE_GIG" = "false"; then  if test "$HAVE_GIG" = "false"; then
221      echo "Required libgig version not found!"      echo "Required libgig version not found!"
# Line 259  fi Line 262  fi
262  # TODO: should we use AC_ARG_VAR(variable, description) instead?  # TODO: should we use AC_ARG_VAR(variable, description) instead?
263    
264  AC_ARG_ENABLE(asm,  AC_ARG_ENABLE(asm,
265    [  --disable-asm    [  --enable-asm
266                            Disable hand-crafted assembly optimizations                            Enable hand-crafted assembly optimizations
267                            (default=on). LinuxSampler provides CPU specific                            (default=off). LinuxSampler provides CPU specific
268                            assembly optimizations for the most important                            assembly optimizations for the most important
269                            synthesis algorithms. You usually don't want to                            synthesis algorithms. This is currently disabled
270                            disable that.],                            by default since current asm code is broken.],
271    [config_asm="no"],    [config_asm="yes"],
272    [config_asm="yes"]    [config_asm="no"]
273  )  )
274  if test "$config_asm" = "yes"; then  if test "$config_asm" = "yes"; then
275    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.])
276  fi  fi
277    
278  AC_ARG_ENABLE(dev-mode,  AC_ARG_ENABLE(dev-mode,
279    [  --enable-dev-mode    [  --disable-dev-mode
280                            Enable development mode (default=no). In that mode                            Disable development mode (default=on). In that mode
281                            we do some extra sanity checks here and there.                            we do some extra sanity checks here and there.
282                            This helps to spot possible problems, but reduces                            This helps to spot possible problems, but reduces
283                            efficiency a bit],                            efficiency a bit],
284    [config_dev_mode="yes"],    [config_dev_mode="no"],
285    [config_dev_mode="no"]    [config_dev_mode="yes"]
286  )  )
287  if test "$config_dev_mode" = "yes"; then  if test "$config_dev_mode" = "yes"; then
288    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 439  AC_ARG_ENABLE(max-voices,
439  )  )
440  AC_DEFINE_UNQUOTED(CONFIG_MAX_VOICES, $config_max_voices, [Define max. voices.])  AC_DEFINE_UNQUOTED(CONFIG_MAX_VOICES, $config_max_voices, [Define max. voices.])
441    
442    AC_ARG_ENABLE(subfragment-size,
443      [  --enable-subfragment-size
444                              Every audio fragment will be splitted into
445                              subfragments. Where each subfragment renders
446                              audio with constant synthesis parameters. This is
447                              done for efficiency reasons. This parameter
448                              defines the default size of a subfragment in
449                              sample points. A large value means less CPU time
450                              whereas a low value means better audio quality
451                              (default=32).],
452      [config_subfragment_size="${enableval}"],
453      [config_subfragment_size="32"]
454    )
455    AC_DEFINE_UNQUOTED(CONFIG_DEFAULT_SUBFRAGMENT_SIZE, $config_subfragment_size, [Define default subfragment size (in sample points).])
456    
457    AC_ARG_ENABLE(global-attenuation,
458      [  --enable-global-attenuation
459                              To prevent clipping all samples will be lowered
460                              in amplitude by this given factor.
461                              (default=0.35)],
462      [config_global_attenuation="${enableval}"],
463      [config_global_attenuation="0.35"]
464    )
465    AC_DEFINE_UNQUOTED(CONFIG_GLOBAL_ATTENUATION, $config_global_attenuation, [Define global volume attenuation (as floating point factor).])
466    
467  AC_ARG_ENABLE(voice-steal-algo,  AC_ARG_ENABLE(voice-steal-algo,
468    [  --enable-voice-steal-algo    [  --enable-voice-steal-algo
469                            Voice stealing algorithm to be used. Currently                            Voice stealing algorithm to be used. Currently
# Line 469  AC_ARG_ENABLE(sysex-buffer-size, Line 497  AC_ARG_ENABLE(sysex-buffer-size,
497  )  )
498  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.])
499    
 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.])  
   
500  AC_ARG_ENABLE(force-filter,  AC_ARG_ENABLE(force-filter,
501    [  --enable-force-filter    [  --enable-force-filter
502                            If enabled will force filter to be used even if                            If enabled will force filter to be used even if
# Line 591  AC_ARG_ENABLE(signed-triang-algo, Line 607  AC_ARG_ENABLE(signed-triang-algo,
607                                Uses integer math without any branch will then be                                Uses integer math without any branch will then be
608                                converted to floating point value for each sample point.                                converted to floating point value for each sample point.
609                                This int->float conversion might hurt on some systems.                                This int->float conversion might hurt on some systems.
610                                intmathabs:
611                                  Similar to intmath but uses abs() function.
612                                  Depending on compiler and platrofm this could
613                                  perform better than integer math as it avoids
614                                  an extra integer multiply instruction.
615    
616                              diharmonic:                              diharmonic:
617                                The triangular wave will be approximated by adding two                                The triangular wave will be approximated by adding two
618                                sinusoidials. This solution might especially hurt on                                sinusoidials. This solution might especially hurt on
# Line 602  AC_ARG_ENABLE(signed-triang-algo, Line 624  AC_ARG_ENABLE(signed-triang-algo,
624                                benchmark between the algorithms mentioned above.                                benchmark between the algorithms mentioned above.
625                                This will NOT work for cross compilation!],                                This will NOT work for cross compilation!],
626    [ if test ! "(" "${enableval}" = "intmath" \    [ if test ! "(" "${enableval}" = "intmath" \
627                  -o "${enableval}" = "intmathabs" \
628                -o "${enableval}" = "diharmonic" ")" ; then                -o "${enableval}" = "diharmonic" ")" ; then
629        AC_MSG_ERROR([Unknown triangular wave algorithm for parameter --enable-signed-triang-algo])        AC_MSG_ERROR([Unknown triangular wave algorithm for parameter --enable-signed-triang-algo])
630      else      else
# Line 619  AC_ARG_ENABLE(unsigned-triang-algo, Line 642  AC_ARG_ENABLE(unsigned-triang-algo,
642                                Uses integer math without any branch will then be                                Uses integer math without any branch will then be
643                                converted to floating point value for each sample point.                                converted to floating point value for each sample point.
644                                This int->float conversion might hurt on some systems.                                This int->float conversion might hurt on some systems.
645                                intmathabs:
646                                  Similar to intmath but uses abs() function.
647                                  Depending on compiler and platrofm this could
648                                  perform better than integer math as it avoids
649                                  an extra integer multiply instruction.
650    
651                              diharmonic:                              diharmonic:
652                                The triangular wave will be approximated by adding two                                The triangular wave will be approximated by adding two
653                                sinusoidials. This solution might especially hurt on                                sinusoidials. This solution might especially hurt on
# Line 630  AC_ARG_ENABLE(unsigned-triang-algo, Line 659  AC_ARG_ENABLE(unsigned-triang-algo,
659                                benchmark between the algorithms mentioned above.                                benchmark between the algorithms mentioned above.
660                                This will NOT work for cross compilation!],                                This will NOT work for cross compilation!],
661    [ if test ! "(" "${enableval}" = "intmath" \    [ if test ! "(" "${enableval}" = "intmath" \
662                  -o "${enableval}" = "intmathabs" \
663                -o "${enableval}" = "diharmonic" ")" ; then                -o "${enableval}" = "diharmonic" ")" ; then
664        AC_MSG_ERROR([Unknown triangular wave algorithm for parameter --enable-unsigned-triang-algo])        AC_MSG_ERROR([Unknown triangular wave algorithm for parameter --enable-unsigned-triang-algo])
665      else      else
# Line 667  if test "$config_signed_triang_algo" = " Line 697  if test "$config_signed_triang_algo" = "
697      AC_TRY_RUN([      AC_TRY_RUN([
698              #define SIGNED 1              #define SIGNED 1
699              #define SILENT 1              #define SILENT 1
700              #include "benchmarks/triang.cpp"              #include "${srcdir}/benchmarks/triang.cpp"
701          ],          ],
702          triang_signed=0,          triang_signed=0,
703          triang_signed=$?,          triang_signed=$?,
# Line 679  if test "$config_signed_triang_algo" = " Line 709  if test "$config_signed_triang_algo" = "
709      elif test "$triang_signed" = "3"; then      elif test "$triang_signed" = "3"; then
710          config_signed_triang_algo="diharmonic"          config_signed_triang_algo="diharmonic"
711          echo "di harmonics"          echo "di harmonics"
712        elif test "$triang_signed" = "5"; then
713            config_signed_triang_algo="intmathabs"
714            echo "integer math using abs()"
715      else      else
716          echo "Benchmark of signed triangular wave algorithms failed!"          echo "Benchmark of signed triangular wave algorithms failed!"
717          echo "Maybe you are doing cross compilation? In that case you have to select"          echo "Maybe you are doing cross compilation? In that case you have to select"
# Line 687  if test "$config_signed_triang_algo" = " Line 720  if test "$config_signed_triang_algo" = "
720          exit -1;          exit -1;
721      fi      fi
722  fi  fi
723  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.])
724    
725  if test "$config_unsigned_triang_algo" = "benchmark"; then  if test "$config_unsigned_triang_algo" = "benchmark"; then
726      echo -n "benchmarking for the best (unsigned) triangular oscillator algorithm... "      echo -n "benchmarking for the best (unsigned) triangular oscillator algorithm... "
# Line 695  if test "$config_unsigned_triang_algo" = Line 728  if test "$config_unsigned_triang_algo" =
728      AC_TRY_RUN([      AC_TRY_RUN([
729              #define SIGNED 0              #define SIGNED 0
730              #define SILENT 1              #define SILENT 1
731              #include "benchmarks/triang.cpp"              #include "${srcdir}/benchmarks/triang.cpp"
732          ],          ],
733          triang_unsigned=0,          triang_unsigned=0,
734          triang_unsigned=$?,          triang_unsigned=$?,
# Line 707  if test "$config_unsigned_triang_algo" = Line 740  if test "$config_unsigned_triang_algo" =
740      elif test "$triang_unsigned" = "3"; then      elif test "$triang_unsigned" = "3"; then
741          config_unsigned_triang_algo="diharmonic"          config_unsigned_triang_algo="diharmonic"
742          echo "di harmonics"          echo "di harmonics"
743        elif test "$triang_unsigned" = "5"; then
744            config_unsigned_triang_algo="intmathabs"
745            echo "integer math using abs()"
746      else      else
747          echo "Benchmark of unsigned triangular wave algorithms failed!"          echo "Benchmark of unsigned triangular wave algorithms failed!"
748          echo "Maybe you are doing cross compilation? In that case you have to select"          echo "Maybe you are doing cross compilation? In that case you have to select"
# Line 715  if test "$config_unsigned_triang_algo" = Line 751  if test "$config_unsigned_triang_algo" =
751          exit -1;          exit -1;
752      fi      fi
753  fi  fi
754  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.])
755    
756  AC_LANG_RESTORE  AC_LANG_RESTORE
757    
# Line 792  echo "# Maximum Stream Refill Size: ${co Line 828  echo "# Maximum Stream Refill Size: ${co
828  echo "# Stream Size: ${config_stream_size}"  echo "# Stream Size: ${config_stream_size}"
829  echo "# Maximum Disk Streams: ${config_max_streams}"  echo "# Maximum Disk Streams: ${config_max_streams}"
830  echo "# Maximum Voices: ${config_max_voices}"  echo "# Maximum Voices: ${config_max_voices}"
831    echo "# Default Subfragment Size: ${config_subfragment_size}"
832    echo "# Global Volume Attenuation: ${config_global_attenuation}"
833  echo "# Voice Stealing Algorithm: ${config_voice_steal_algo}"  echo "# Voice Stealing Algorithm: ${config_voice_steal_algo}"
834  echo "# Signed Triangular Oscillator Algorithm: ${config_signed_triang_algo}"  echo "# Signed Triangular Oscillator Algorithm: ${config_signed_triang_algo}"
835  echo "# Unsigned Triangular Oscillator Algorithm: ${config_unsigned_triang_algo}"  echo "# Unsigned Triangular Oscillator Algorithm: ${config_unsigned_triang_algo}"
836  echo "# SysEx Buffer Size: ${config_sysex_buffer_size} Byte"  echo "# SysEx Buffer Size: ${config_sysex_buffer_size} Byte"
 echo "# Filter Update Steps: ${config_filter_update_steps}"  
837  echo "# Force Filter Usage: ${config_force_filter}"  echo "# Force Filter Usage: ${config_force_filter}"
838  echo "# Filter Cutoff Minimum: ${config_filter_cutoff_min} Hz"  echo "# Filter Cutoff Minimum: ${config_filter_cutoff_min} Hz"
839  echo "# Filter Cutoff Maximum: ${config_filter_cutoff_max} Hz"  echo "# Filter Cutoff Maximum: ${config_filter_cutoff_max} Hz"

Legend:
Removed from v.716  
changed lines
  Added in v.822

  ViewVC Help
Powered by ViewVC