/[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 697 by schoenebeck, Tue Jul 19 15:43:40 2005 UTC revision 714 by schoenebeck, Sat Jul 23 21:55:38 2005 UTC
# Line 218  if test "$HAVE_GIG" = "false"; then Line 218  if test "$HAVE_GIG" = "false"; then
218      echo "Required libgig version not found!"      echo "Required libgig version not found!"
219      echo "You need to have libgig version ${libgig_version} installed!"      echo "You need to have libgig version ${libgig_version} installed!"
220      exit -1;      exit -1;
221    else
222        echo "yes, found libgig $libgig_version"
223  fi  fi
224  AC_SUBST(GIG_CFLAGS)  AC_SUBST(GIG_CFLAGS)
225  AC_SUBST(GIG_LIBS)  AC_SUBST(GIG_LIBS)
# Line 228  AC_SUBST(SQLITE3_LIBS) Line 230  AC_SUBST(SQLITE3_LIBS)
230  AC_SUBST(SQLITE3_CFLAGS)  AC_SUBST(SQLITE3_CFLAGS)
231  if test $HAVE_SQLITE3 = false; then  if test $HAVE_SQLITE3 = false; then
232      HAVE_SQLITE3=0;      HAVE_SQLITE3=0;
233        echo "no, support for instrument DB will be disabled!"
234  else  else
235      HAVE_SQLITE3=1      HAVE_SQLITE3=1
236        echo "yes"
237  fi  fi
238  AM_CONDITIONAL(HAVE_SQLITE3, test $HAVE_SQLITE3 = 1)  AM_CONDITIONAL(HAVE_SQLITE3, test $HAVE_SQLITE3 = 1)
239  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.])
# Line 579  if test "config_assert_gs_sysex_checksum Line 583  if test "config_assert_gs_sysex_checksum
583    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.])
584  fi  fi
585    
586    AC_ARG_ENABLE(signed-triang-algo,
587      [  --enable-signed-triang-algo
588                              Signed triangular wave algorithm to be used (e.g. for LFOs).
589                              Currently available options:
590                                intmath:
591                                  Uses integer math without any branch will then be
592                                  converted to floating point value for each sample point.
593                                  This int->float conversion might hurt on some systems.
594                                diharmonic:
595                                  The triangular wave will be approximated by adding two
596                                  sinusoidials. This solution might especially hurt on
597                                  systems with weak floating point unit.
598                                benchmark (default):
599                                  This is not an algorithm. Use this option if the
600                                  appropriate algorithm should be automatically
601                                  chosen by the configure script by performing a
602                                  benchmark between the algorithms mentioned above.
603                                  This will NOT work for cross compilation!],
604      [ if test ! "(" "${enableval}" = "intmath" \
605                  -o "${enableval}" = "diharmonic" ")" ; then
606          AC_MSG_ERROR([Unknown triangular wave algorithm for parameter --enable-signed-triang-algo])
607        else
608          config_signed_triang_algo="${enableval}"
609        fi
610      ],
611      [config_signed_triang_algo="benchmark"]
612    )
613    
614    AC_ARG_ENABLE(unsigned-triang-algo,
615      [  --enable-unsigned-triang-algo
616                              Unsigned triangular wave algorithm to be used (e.g. for LFOs).
617                              Currently available options:
618                                intmath:
619                                  Uses integer math without any branch will then be
620                                  converted to floating point value for each sample point.
621                                  This int->float conversion might hurt on some systems.
622                                diharmonic:
623                                  The triangular wave will be approximated by adding two
624                                  sinusoidials. This solution might especially hurt on
625                                  systems with weak floating point unit.
626                                benchmark (default):
627                                  This is not an algorithm. Use this option if the
628                                  appropriate algorithm should be automatically
629                                  chosen by the configure script by performing a
630                                  benchmark between the algorithms mentioned above.
631                                  This will NOT work for cross compilation!],
632      [ if test ! "(" "${enableval}" = "intmath" \
633                  -o "${enableval}" = "diharmonic" ")" ; then
634          AC_MSG_ERROR([Unknown triangular wave algorithm for parameter --enable-unsigned-triang-algo])
635        else
636          config_unsigned_triang_algo="${enableval}"
637        fi
638      ],
639      [config_unsigned_triang_algo="benchmark"]
640    )
641    
642    
643    ###########################################################################
644    # Automatic Benchmarks (to detect the best algorithms for the system)
645    
646    AC_LANG_SAVE
647    
648    if test "$config_signed_triang_algo" = "benchmark"; then
649        echo -n "benchmarking for the best (signed) triangular oscillator algorithm... "
650        AC_LANG_CPLUSPLUS
651        AC_TRY_RUN([
652                #define SIGNED 1
653                #define SILENT 1
654                #include "benchmarks/triang.cpp"
655            ],
656            triang_signed=0,
657            triang_signed=$?,
658            triang_signed=0
659        )
660        if test "$triang_signed" = "2"; then
661            config_signed_triang_algo="intmath"
662            echo "integer math"
663        elif test "$triang_signed" = "3"; then
664            config_signed_triang_algo="diharmonic"
665            echo "di harmonics"
666        else
667            echo "Benchmark of signed triangular wave algorithms failed!"
668            echo "Maybe you are doing cross compilation? In that case you have to select"
669            echo "an algorithm manually with './configure --enable-signed-triang-algo=...'"
670            echo "Call './configure --help' for further information or read configure.in."
671            exit -1;
672        fi
673    fi
674    AC_DEFINE_UNQUOTED(CONFIG_SIGNED_TRIANG_ALGO, signed_triang_algo_${config_signed_triang_algo}, [Define signed triangular wave algorithm to be used.])
675    
676    if test "$config_unsigned_triang_algo" = "benchmark"; then
677        echo -n "benchmarking for the best (unsigned) triangular oscillator algorithm... "
678        AC_LANG_CPLUSPLUS
679        AC_TRY_RUN([
680                #define SIGNED 0
681                #define SILENT 1
682                #include "benchmarks/triang.cpp"
683            ],
684            triang_unsigned=0,
685            triang_unsigned=$?,
686            triang_unsigned=0
687        )
688        if test "$triang_unsigned" = "2"; then
689            config_unsigned_triang_algo="intmath"
690            echo "integer math"
691        elif test "$triang_unsigned" = "3"; then
692            config_unsigned_triang_algo="diharmonic"
693            echo "di harmonics"
694        else
695            echo "Benchmark of unsigned triangular wave algorithms failed!"
696            echo "Maybe you are doing cross compilation? In that case you have to select"
697            echo "an algorithm manually with './configure --enable-unsigned-triang-algo=...'"
698            echo "Call './configure --help' for further information or read configure.in."
699            exit -1;
700        fi
701    fi
702    AC_DEFINE_UNQUOTED(CONFIG_UNSIGNED_TRIANG_ALGO, unsigned_triang_algo_${config_unsigned_triang_algo}, [Define unsigned triangular wave algorithm to be used.])
703    
704    AC_LANG_RESTORE
705    
706    
707  ###########################################################################  ###########################################################################
708  # Create Build Files  # Create Build Files
# Line 653  echo "# Stream Size: ${config_stream_siz Line 777  echo "# Stream Size: ${config_stream_siz
777  echo "# Maximum Disk Streams: ${config_max_streams}"  echo "# Maximum Disk Streams: ${config_max_streams}"
778  echo "# Maximum Voices: ${config_max_voices}"  echo "# Maximum Voices: ${config_max_voices}"
779  echo "# Voice Stealing Algorithm: ${config_voice_steal_algo}"  echo "# Voice Stealing Algorithm: ${config_voice_steal_algo}"
780    echo "# Signed Triangular Oscillator Algorithm: ${config_signed_triang_algo}"
781    echo "# Unsigned Triangular Oscillator Algorithm: ${config_unsigned_triang_algo}"
782  echo "# SysEx Buffer Size: ${config_sysex_buffer_size} Byte"  echo "# SysEx Buffer Size: ${config_sysex_buffer_size} Byte"
783  echo "# Filter Update Steps: ${config_filter_update_steps}"  echo "# Filter Update Steps: ${config_filter_update_steps}"
784  echo "# Force Filter Usage: ${config_force_filter}"  echo "# Force Filter Usage: ${config_force_filter}"

Legend:
Removed from v.697  
changed lines
  Added in v.714

  ViewVC Help
Powered by ViewVC