/[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 1049 by schoenebeck, Wed Feb 28 06:53:42 2007 UTC revision 1360 by schoenebeck, Sun Sep 30 20:04:11 2007 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=4  LINUXSAMPLER_RELEASE_MINOR=4
8  LINUXSAMPLER_RELEASE_BUILD=0.4cvs  LINUXSAMPLER_RELEASE_BUILD=0.7cvs
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 127  AC_ARG_ENABLE(alsa-driver, Line 127  AC_ARG_ENABLE(alsa-driver,
127    [  --disable-alsa-driver    [  --disable-alsa-driver
128                            Disable support for the Advanced Linux Sound                            Disable support for the Advanced Linux Sound
129                            Architecture (ALSA).],                            Architecture (ALSA).],
130    [config_alsa_driver="no"],    [config_alsa_driver="$enableval"],
131    [config_alsa_driver="yes"]    [config_alsa_driver="yes"]
132  )  )
133  have_alsa=0  have_alsa=0
# Line 207  AC_ARG_ENABLE(jack-driver, Line 207  AC_ARG_ENABLE(jack-driver,
207    [  --disable-jack-driver    [  --disable-jack-driver
208                            Disable support for the Jack Audio Connection Kit                            Disable support for the Jack Audio Connection Kit
209                            (JACK).],                            (JACK).],
210    [config_jack_driver="no"],    [config_jack_driver="$enableval"],
211    [config_jack_driver="yes"]    [config_jack_driver="yes"]
212  )  )
213  have_jack=0  have_jack=0
# Line 230  AC_ARG_ENABLE(arts-driver, Line 230  AC_ARG_ENABLE(arts-driver,
230    [  --disable-arts-driver    [  --disable-arts-driver
231                            Disable support for the Analogue Realtime System                            Disable support for the Analogue Realtime System
232                            (aRts).],                            (aRts).],
233    [config_arts_driver="no"],    [config_arts_driver="$enableval"],
234    [config_arts_driver="yes"]    [config_arts_driver="yes"]
235  )  )
236  have_arts=0  have_arts=0
# Line 251  AC_DEFINE_UNQUOTED(HAVE_ARTS,$have_arts, Line 251  AC_DEFINE_UNQUOTED(HAVE_ARTS,$have_arts,
251  AC_ARG_ENABLE(midishare-driver,  AC_ARG_ENABLE(midishare-driver,
252    [  --disable-midishare-driver    [  --disable-midishare-driver
253                            Disable support for the MidiShare system.],                            Disable support for the MidiShare system.],
254    [config_midishare_driver="no"],    [config_midishare_driver="$enableval"],
255    [config_midishare_driver="yes"]    [config_midishare_driver="yes"]
256  )  )
257  have_midishare=0  have_midishare=0
# Line 277  AC_DEFINE_UNQUOTED(HAVE_MIDISHARE,$have_ Line 277  AC_DEFINE_UNQUOTED(HAVE_MIDISHARE,$have_
277  AC_ARG_ENABLE(coremidi-driver,  AC_ARG_ENABLE(coremidi-driver,
278    [  --disable-coremidi-driver    [  --disable-coremidi-driver
279                            Disable support for the Apple CoreMIDI system.],                            Disable support for the Apple CoreMIDI system.],
280    [config_coremidi_driver="no"],    [config_coremidi_driver="$enableval"],
281    [config_coremidi_driver="yes"]    [config_coremidi_driver="yes"]
282  )  )
283  have_coremidi=0  have_coremidi=0
# Line 296  AM_CONDITIONAL(HAVE_COREMIDI, test $have Line 296  AM_CONDITIONAL(HAVE_COREMIDI, test $have
296  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.])
297    
298  # Check presence of libgig  # Check presence of libgig
299  libgig_version="3.1.0"  libgig_version="3.1.1"
300  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)
301  if test "$HAVE_GIG" = "false"; then  if test "$HAVE_GIG" = "false"; then
302      echo "Required libgig version not found!"      echo "Required libgig version not found!"
# Line 308  fi Line 308  fi
308  AC_SUBST(GIG_CFLAGS)  AC_SUBST(GIG_CFLAGS)
309  AC_SUBST(GIG_LIBS)  AC_SUBST(GIG_LIBS)
310    
311  # SQLITE3  # Check presence of sqlite3
312  PKG_CHECK_MODULES(SQLITE3, sqlite3, HAVE_SQLITE3=true, HAVE_SQLITE3=false)  sqlite_version="3.3"
313    PKG_CHECK_MODULES(SQLITE3, sqlite3 >= $sqlite_version, HAVE_SQLITE3=true, HAVE_SQLITE3=false)
314  AC_SUBST(SQLITE3_LIBS)  AC_SUBST(SQLITE3_LIBS)
315  AC_SUBST(SQLITE3_CFLAGS)  AC_SUBST(SQLITE3_CFLAGS)
316  if test $HAVE_SQLITE3 = false; then  if test $HAVE_SQLITE3 = false; then
317      HAVE_SQLITE3=0;      HAVE_SQLITE3=0;
318      echo "no, support for instrument DB will be disabled!"      instruments_db_support="no"
319        echo "*** Required sqlite version not found!"
320        echo "*** You need to have sqlite version ${sqlite_version} or higher"
321        echo "*** for instruments database support to be enabled."
322        echo "*** Support for instruments DB will be disabled!"
323  else  else
324      HAVE_SQLITE3=1      HAVE_SQLITE3=1
325      echo "yes"      instruments_db_support="yes"
326  fi  fi
327  AM_CONDITIONAL(HAVE_SQLITE3, test $HAVE_SQLITE3 = 1)  AM_CONDITIONAL(HAVE_SQLITE3, test $HAVE_SQLITE3 = 1)
328  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 343  fi Line 348  fi
348  # TODO: should we use AC_ARG_VAR(variable, description) instead?  # TODO: should we use AC_ARG_VAR(variable, description) instead?
349    
350  AC_ARG_ENABLE(asm,  AC_ARG_ENABLE(asm,
351    [  --enable-asm    [  --disable-asm
352                            Enable hand-crafted assembly optimizations                            Enable hand-crafted assembly optimizations
353                            (default=off). LinuxSampler provides CPU specific                            (default=on). LinuxSampler provides CPU specific
354                            assembly optimizations for the most important                            assembly optimizations. This is currently limited
355                            synthesis algorithms. This is currently disabled                            to just enter a fast (denormal) FPU mode on x86
356                            by default since current asm code is broken.],                            platforms. There are currently no synthesis core
357    [config_asm="yes"],                            assembly optimizations anymore since LS 0.4.0],
358    [config_asm="no"]    [config_asm="$enableval"],
359      [config_asm="yes"]
360  )  )
361  if test "$config_asm" = "yes"; then  if test "$config_asm" = "yes"; then
362    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 asm optimizations.])
363  fi  fi
364    
365  AC_ARG_ENABLE(dev-mode,  AC_ARG_ENABLE(dev-mode,
# Line 362  AC_ARG_ENABLE(dev-mode, Line 368  AC_ARG_ENABLE(dev-mode,
368                            we do some extra sanity checks here and there.                            we do some extra sanity checks here and there.
369                            This helps to spot possible problems, but reduces                            This helps to spot possible problems, but reduces
370                            efficiency a bit],                            efficiency a bit],
371    [config_dev_mode="no"],    [config_dev_mode="$enableval"],
372    [config_dev_mode="yes"]    [config_dev_mode="yes"]
373  )  )
374  if test "$config_dev_mode" = "yes"; then  if test "$config_dev_mode" = "yes"; then
# Line 390  AC_ARG_ENABLE(rt-exceptions, Line 396  AC_ARG_ENABLE(rt-exceptions,
396                            context as well. Otherwise if disabled                            context as well. Otherwise if disabled
397                            segmentation faults will be forced by the                            segmentation faults will be forced by the
398                            application on critical errors.],                            application on critical errors.],
399    [config_rt_exceptions="yes"],    [config_rt_exceptions="$enableval"],
400    [config_rt_exceptions="no"]    [config_rt_exceptions="no"]
401  )  )
402  if test "$config_rt_exceptions" = "yes"; then  if test "$config_rt_exceptions" = "yes"; then
# Line 584  AC_ARG_ENABLE(force-filter, Line 590  AC_ARG_ENABLE(force-filter,
590                            If enabled will force filter to be used even if                            If enabled will force filter to be used even if
591                            no usage was define in instrument patch files.                            no usage was define in instrument patch files.
592                            (default=no).],                            (default=no).],
593    [config_force_filter="yes"],    [config_force_filter="$enableval"],
594    [config_force_filter="no"]    [config_force_filter="no"]
595  )  )
596  if test "$config_force_filter" = "yes"; then  if test "$config_force_filter" = "yes"; then
# Line 674  AC_ARG_ENABLE(gs-checksum, Line 680  AC_ARG_ENABLE(gs-checksum,
680                            messages which do not provide a correct checksum                            messages which do not provide a correct checksum
681                            will be ignored. This is disabled by default as                            will be ignored. This is disabled by default as
682                            not all devices honor GS checksums.],                            not all devices honor GS checksums.],
683    [config_assert_gs_sysex_checksum="yes"],    [config_assert_gs_sysex_checksum="$enableval"],
684    [config_assert_gs_sysex_checksum="no"]    [config_assert_gs_sysex_checksum="no"]
685  )  )
686  if test "config_assert_gs_sysex_checksum" = "yes"; then  if test "config_assert_gs_sysex_checksum" = "yes"; then
# Line 720  AC_ARG_ENABLE(signed-triang-algo, Line 726  AC_ARG_ENABLE(signed-triang-algo,
726                                Similar to intmath but uses abs() function.                                Similar to intmath but uses abs() function.
727                                Depending on compiler and platrofm this could                                Depending on compiler and platrofm this could
728                                perform better than integer math as it avoids                                perform better than integer math as it avoids
729                                an extra integer multiply instruction.                                an extra integer multiply instruction.
   
730                              diharmonic:                              diharmonic:
731                                The triangular wave will be approximated by adding two                                The triangular wave will be approximated by adding two
732                                sinusoidials. This solution might especially hurt on                                sinusoidials. This solution might especially hurt on
# Line 755  AC_ARG_ENABLE(unsigned-triang-algo, Line 760  AC_ARG_ENABLE(unsigned-triang-algo,
760                                Similar to intmath but uses abs() function.                                Similar to intmath but uses abs() function.
761                                Depending on compiler and platrofm this could                                Depending on compiler and platrofm this could
762                                perform better than integer math as it avoids                                perform better than integer math as it avoids
763                                an extra integer multiply instruction.                                an extra integer multiply instruction.
   
764                              diharmonic:                              diharmonic:
765                                The triangular wave will be approximated by adding two                                The triangular wave will be approximated by adding two
766                                sinusoidials. This solution might especially hurt on                                sinusoidials. This solution might especially hurt on
# Line 787  AC_ARG_ENABLE(process-muted-channels, Line 791  AC_ARG_ENABLE(process-muted-channels,
791                            will not discard notes, triggered in mute mode,                            will not discard notes, triggered in mute mode,
792                            when the channel is unmuted. But also will reduce                            when the channel is unmuted. But also will reduce
793                            the efficiency.],                            the efficiency.],
794    [config_process_muted_channels="yes"],    [config_process_muted_channels="$enableval"],
795    [config_process_muted_channels="no"]    [config_process_muted_channels="no"]
796  )  )
797  if test "$config_process_muted_channels" = "yes"; then  if test "$config_process_muted_channels" = "yes"; then
# Line 801  AC_ARG_ENABLE(process-all-notes-off, Line 805  AC_ARG_ENABLE(process-all-notes-off,
805                            all voices whenever it receives an All-Notes-Off                            all voices whenever it receives an All-Notes-Off
806                            MIDI message. You can disable this behavior, so                            MIDI message. You can disable this behavior, so
807                            that LS simply ignores such messages.],                            that LS simply ignores such messages.],
808    [config_process_all_notes_off="no"],    [config_process_all_notes_off="$enableval"],
809    [config_process_all_notes_off="yes"]    [config_process_all_notes_off="yes"]
810  )  )
811  if test "$config_process_all_notes_off" = "yes"; then  if test "$config_process_all_notes_off" = "yes"; then
# Line 815  AC_ARG_ENABLE(interpolate-volume, Line 819  AC_ARG_ENABLE(interpolate-volume,
819                            generated by for example the envelope generator                            generated by for example the envelope generator
820                            will be smoother, minimizing the risk for audio                            will be smoother, minimizing the risk for audio
821                            clicks. Disable it to reduce CPU usage.],                            clicks. Disable it to reduce CPU usage.],
822    [config_interpolate_volume="no"],    [config_interpolate_volume="$enableval"],
823    [config_interpolate_volume="yes"]    [config_interpolate_volume="yes"]
824  )  )
825  if test "$config_interpolate_volume" = "yes"; then  if test "$config_interpolate_volume" = "yes"; then
826    AC_DEFINE_UNQUOTED(CONFIG_INTERPOLATE_VOLUME, 1, [Define to 1 if you want to enable interpolation of volume modulation.])    AC_DEFINE_UNQUOTED(CONFIG_INTERPOLATE_VOLUME, 1, [Define to 1 if you want to enable interpolation of volume modulation.])
827  fi  fi
828    
829    AC_ARG_ENABLE(plugin-dir,
830      [  --enable-plugin-dir
831                              Directory where the sampler shall look for potential plugins,
832                              that is 3rd party shared libraries that should be loaded by
833                              the sampler on startup. By default the sampler will search
834                              for plugins in the subdirectory "plugins" below its own
835                              library directory.
836                              (i.e. /usr/local/lib/linuxsampler/plugins)],
837      [config_plugin_dir="${enableval}"],
838      [config_plugin_dir="${libdir}/linuxsampler/plugins"]
839    )
840    AC_SUBST(config_plugin_dir)
841    
842    
843  ###########################################################################  ###########################################################################
844  # Automatic Benchmarks (to detect the best algorithms for the system)  # Automatic Benchmarks (to detect the best algorithms for the system)
# Line 856  if test "$config_signed_triang_algo" = " Line 873  if test "$config_signed_triang_algo" = "
873          echo "Call './configure --help' for further information or read configure.in."          echo "Call './configure --help' for further information or read configure.in."
874          exit -1;          exit -1;
875      fi      fi
876    else
877        case "$config_signed_triang_algo" in
878            intmath)
879                triang_signed=2 ;;
880            diharmonic)
881                triang_signed=3 ;;
882            intmathabs)
883                triang_signed=5 ;;
884        esac
885  fi  fi
886  AC_DEFINE_UNQUOTED(CONFIG_SIGNED_TRIANG_ALGO, ${triang_signed}, [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.])
887    
# Line 887  if test "$config_unsigned_triang_algo" = Line 913  if test "$config_unsigned_triang_algo" =
913          echo "Call './configure --help' for further information or read configure.in."          echo "Call './configure --help' for further information or read configure.in."
914          exit -1;          exit -1;
915      fi      fi
916    else
917        case "$config_unsigned_triang_algo" in
918            intmath)
919                triang_unsigned=2 ;;
920            diharmonic)
921                triang_unsigned=3 ;;
922            intmathabs)
923                triang_unsigned=5 ;;
924        esac
925  fi  fi
926  AC_DEFINE_UNQUOTED(CONFIG_UNSIGNED_TRIANG_ALGO, ${triang_unsigned}, [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.])
927    
# Line 918  AC_OUTPUT( \ Line 953  AC_OUTPUT( \
953      man/Makefile \      man/Makefile \
954      man/linuxsampler.1 \      man/linuxsampler.1 \
955      src/Makefile \      src/Makefile \
956        src/db/Makefile \
957      src/network/Makefile \      src/network/Makefile \
958      src/engines/Makefile \      src/engines/Makefile \
959      src/engines/gig/Makefile \      src/engines/gig/Makefile \
960      src/engines/common/Makefile \      src/engines/common/Makefile \
961      src/common/Makefile src/lib/Makefile \      src/common/Makefile \
     src/lib/fileloader/Makefile \  
     src/lib/fileloader/libgig/Makefile \  
962      src/testcases/Makefile \      src/testcases/Makefile \
963      src/drivers/Makefile \      src/drivers/Makefile \
964      src/drivers/audio/Makefile \      src/drivers/audio/Makefile \
# Line 934  AC_OUTPUT( \ Line 968  AC_OUTPUT( \
968      Artwork/Makefile \      Artwork/Makefile \
969      scripts/Makefile \      scripts/Makefile \
970      osx/Makefile \      osx/Makefile \
971      osx/LinuxSampler.xcode/Makefile \      osx/linuxsampler.xcodeproj/Makefile \
972      Documentation/Makefile \      Documentation/Makefile \
973      Documentation/Engines/Makefile \      Documentation/Engines/Makefile \
974      Documentation/Engines/gig/Makefile \      Documentation/Engines/gig/Makefile \
# Line 942  AC_OUTPUT( \ Line 976  AC_OUTPUT( \
976      Doxyfile \      Doxyfile \
977  )  )
978    
979    # resolve all nested variables in '${config_plugin_dir}'
980    # (merely for providing a human readable summary below)
981    while test $config_plugin_dir != `eval echo ${config_plugin_dir}` ; do
982            config_plugin_dir=`eval echo ${config_plugin_dir}`
983    done
984    
985    
986  ###########################################################################  ###########################################################################
987  # Output All Configuration Options  # Output All Configuration Options
# Line 984  echo "# Assert GS SysEx Checksum: ${conf Line 1024  echo "# Assert GS SysEx Checksum: ${conf
1024  echo "# Process Muted Channels: ${config_process_muted_channels}"  echo "# Process Muted Channels: ${config_process_muted_channels}"
1025  echo "# Process All-Notes-Off MIDI message: ${config_process_all_notes_off}"  echo "# Process All-Notes-Off MIDI message: ${config_process_all_notes_off}"
1026  echo "# Interpolate Volume: ${config_interpolate_volume}"  echo "# Interpolate Volume: ${config_interpolate_volume}"
1027    echo "# Instruments database support: ${instruments_db_support}"
1028    echo "# Plugin Path: ${config_plugin_dir}"
1029  echo "#-------------------------------------------------------------------#"  echo "#-------------------------------------------------------------------#"
1030  echo "# Read './configure --help' or file 'configure.in' for details.     #"  echo "# Read './configure --help' or file 'configure.in' for details.     #"
1031  echo "#####################################################################"  echo "#####################################################################"

Legend:
Removed from v.1049  
changed lines
  Added in v.1360

  ViewVC Help
Powered by ViewVC