/[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 1748 by persson, Sun Jun 22 14:46:46 2008 UTC revision 1852 by schoenebeck, Sun Mar 1 22:22:03 2009 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=5  LINUXSAMPLER_RELEASE_MINOR=5
8  LINUXSAMPLER_RELEASE_BUILD=1.5cvs  LINUXSAMPLER_RELEASE_BUILD=1.10cvs
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 39  AC_DEFINE_UNQUOTED(LSCP_RELEASE_MAJOR, $ Line 39  AC_DEFINE_UNQUOTED(LSCP_RELEASE_MAJOR, $
39  AC_DEFINE_UNQUOTED(LSCP_RELEASE_MINOR, ${LSCP_RELEASE_MINOR}, [LSCP spec minor version this release complies with.])  AC_DEFINE_UNQUOTED(LSCP_RELEASE_MINOR, ${LSCP_RELEASE_MINOR}, [LSCP spec minor version this release complies with.])
40    
41  AC_PROG_CXX  AC_PROG_CXX
42    AC_LIBTOOL_WIN32_DLL
43  AM_PROG_LIBTOOL  AM_PROG_LIBTOOL
44    
45  AC_SUBST(SHLIB_VERSION_ARG)  AC_SUBST(SHLIB_VERSION_ARG)
# Line 61  PKG_PROG_PKG_CONFIG Line 62  PKG_PROG_PKG_CONFIG
62  AC_MSG_CHECKING([whether x86 architecture])  AC_MSG_CHECKING([whether x86 architecture])
63  def_arch_x86=0  def_arch_x86=0
64  case $target_cpu in  case $target_cpu in
65    "i386" | "i486" | "i586" | "i686" | "i786")    "i386" | "i486" | "i586" | "i686" | "i786" | "x86_64")
66      echo "yes"      echo "yes"
67      def_arch_x86=1;;      def_arch_x86=1;;
68    *)    *)
# Line 73  AC_DEFINE_UNQUOTED(ARCH_X86,$def_arch_x8 Line 74  AC_DEFINE_UNQUOTED(ARCH_X86,$def_arch_x8
74  # (only if the user did not provide one)  # (only if the user did not provide one)
75  CXX_CPU_SWITCH=  CXX_CPU_SWITCH=
76  if ! echo "X $CXXFLAGS " | grep -q -- " \(-march=\|-mcpu=\|-mtune=\|-arch=\)" ; then  if ! echo "X $CXXFLAGS " | grep -q -- " \(-march=\|-mcpu=\|-mtune=\|-arch=\)" ; then
77    if test "$def_arch_x86" = 1; then    if test "$def_arch_x86" = 1 -a "$target_cpu" != "x86_64"; then
78      CXX_CPU_SWITCH="-march=$target_cpu"      CXX_CPU_SWITCH="-march=$target_cpu"
79    elif test "$target_cpu" = "ppc"; then    elif test "$target_cpu" = "ppc"; then
80      CXX_CPU_SWITCH="-arch=$target_cpu"      CXX_CPU_SWITCH="-arch=$target_cpu"
# Line 414  fi Line 415  fi
415  AM_CONDITIONAL(HAVE_COREMIDI, test $have_coremidi = "1")  AM_CONDITIONAL(HAVE_COREMIDI, test $have_coremidi = "1")
416  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.])
417    
418    # CoreAudio (OS X)
419    AC_ARG_ENABLE(coreaudio-driver,
420      [  --disable-coreaudio-driver
421                              Disable support for the Apple CoreAudio system.],
422      [config_coreaudio_driver="$enableval"],
423      [config_coreaudio_driver="yes"]
424    )
425    have_coreaudio=0
426    if test "$config_coreaudio_driver" = "yes"; then
427        AC_CHECK_HEADER(CoreAudio/CoreAudio.h,
428            have_coreaudio=1,
429            have_coreaudio=0
430        )
431        if test "$have_coreaudio" = "1"; then
432            have_audio_output_driver="true"
433        fi
434    else
435        echo "CoreAudio support disabled by configure script parameter"
436    fi
437    AM_CONDITIONAL(HAVE_COREAUDIO, test $have_coreaudio = "1")
438    AC_DEFINE_UNQUOTED(HAVE_COREAUDIO,$have_coreaudio,[Define to 1 if you have CoreAudio installed.])
439    
440  # MME MIDI (Win32)  # MME MIDI (Win32)
441  AC_ARG_ENABLE(mmemidi-driver,  AC_ARG_ENABLE(mmemidi-driver,
442    [  --disable-mmemidi-driver    [  --disable-mmemidi-driver
# Line 436  fi Line 459  fi
459  AM_CONDITIONAL(HAVE_MME_MIDI, test $have_mmemidi = "1")  AM_CONDITIONAL(HAVE_MME_MIDI, test $have_mmemidi = "1")
460  AC_DEFINE_UNQUOTED(HAVE_MME_MIDI,$have_mmemidi,[Define to 1 if you have MME MIDI installed.])  AC_DEFINE_UNQUOTED(HAVE_MME_MIDI,$have_mmemidi,[Define to 1 if you have MME MIDI installed.])
461    
462    
463    # DSSI
464    AC_CHECK_HEADERS(dssi.h,
465            have_dssi=1,
466            have_dssi=0)
467    AM_CONDITIONAL(HAVE_DSSI, test $have_dssi = "1")
468    
469    # LV2
470    PKG_CHECK_MODULES(LV2, lv2core, have_lv2=1, have_lv2=0)
471    if test $have_lv2 = "0"; then
472        AC_CHECK_HEADER(lv2.h, have_lv2=1, have_lv2=0)
473    fi
474    AM_CONDITIONAL(HAVE_LV2, test $have_lv2 = "1")
475    
476    # VST
477    AC_ARG_ENABLE(vstsdk-dir,
478      [  --enable-vstsdk-dir
479                              Directory where the VST SDK is located.
480                              This automatically enables the compilation
481                              of the VST plugin.],
482      [VSTSDK_DIR="${enableval}"],
483      [VSTSDK_DIR=]
484    )
485    AC_SUBST(VSTSDK_DIR)
486    AM_CONDITIONAL(HAVE_VST, test "x$VSTSDK_DIR" != "x")
487    
488    # AU
489    AC_CHECK_HEADERS(AudioUnit/AudioUnit.h,
490            have_au=1,
491            have_au=0)
492    AM_CONDITIONAL(HAVE_AU, test $have_au = "1")
493    AM_CONDITIONAL(HAVE_AUFLAGS, test test "$AUFLAGS" != "")
494    
495    
496  # have we found at least one MIDI input and one audio output driver ?  # have we found at least one MIDI input and one audio output driver ?
497  if test "$have_midi_input_driver" = "false"; then  if test "$have_midi_input_driver" = "false"; then
498      echo "No supported MIDI input system found!"      echo "No supported MIDI input system found!"
# Line 681  AC_DEFINE_UNQUOTED(CONFIG_STREAM_BUFFER_ Line 738  AC_DEFINE_UNQUOTED(CONFIG_STREAM_BUFFER_
738    
739  AC_ARG_ENABLE(max-streams,  AC_ARG_ENABLE(max-streams,
740    [  --enable-max-streams    [  --enable-max-streams
741                            Maximum amount of disk streams (default=90). This                            Initial maximum amount of disk streams
742                            value should always be higher than the maximum                            (default=90). This value can be changed at
743                            amount of voices.],                            runtime. It should always be higher than the
744                              maximum amount of voices.],
745    [config_max_streams="${enableval}"],    [config_max_streams="${enableval}"],
746    [config_max_streams="90"]    [config_max_streams="90"]
747  )  )
748  AC_DEFINE_UNQUOTED(CONFIG_MAX_STREAMS, $config_max_streams, [Define max. streams.])  AC_DEFINE_UNQUOTED(CONFIG_DEFAULT_MAX_STREAMS, $config_max_streams, [Define initial max. streams.])
749    
750  AC_ARG_ENABLE(max-voices,  AC_ARG_ENABLE(max-voices,
751    [  --enable-max-voices    [  --enable-max-voices
752                            Maximum amount of voices (default=64). This value                            Initial maximum amount of voices (default=64).
753                            should always be lower than the maximum amount of                            This value can be changed at runtime. It should
754                            disk streams.],                            always be lower than the maximum amount of disk
755                              streams.],
756    [config_max_voices="${enableval}"],    [config_max_voices="${enableval}"],
757    [config_max_voices="64"]    [config_max_voices="64"]
758  )  )
759  AC_DEFINE_UNQUOTED(CONFIG_MAX_VOICES, $config_max_voices, [Define max. voices.])  AC_DEFINE_UNQUOTED(CONFIG_DEFAULT_MAX_VOICES, $config_max_voices, [Define initial max. voices.])
760    
761  AC_ARG_ENABLE(subfragment-size,  AC_ARG_ENABLE(subfragment-size,
762    [  --enable-subfragment-size    [  --enable-subfragment-size
# Line 999  if test "$config_interpolate_volume" = " Line 1058  if test "$config_interpolate_volume" = "
1058    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.])
1059  fi  fi
1060    
1061    AC_ARG_ENABLE(master-volume-sysex-by-port,
1062      [  --enable-master-volume-sysex-by-port
1063                              Whether global volume sysex message should be
1064                              applied globally to the whole sampler or only to
1065                              the sampler channels connected to the same MIDI
1066                              input port on which the sysex message arrived on.
1067                              By default global volume sysex messages apply
1068                              globally to the whole sampler, since many MIDI
1069                              devices behave that way.],
1070      [config_master_volume_sysex_by_port="$enableval"],
1071      [config_master_volume_sysex_by_port="no"]
1072    )
1073    if test "$config_master_volume_sysex_by_port" = "yes"; then
1074      AC_DEFINE_UNQUOTED(CONFIG_MASTER_VOLUME_SYSEX_BY_PORT, 1, [Define to 1 if you want global volume sysex message only be applied to the respective MIDI port.])
1075    fi
1076    
1077  AC_ARG_ENABLE(plugin-dir,  AC_ARG_ENABLE(plugin-dir,
1078    [  --enable-plugin-dir    [  --enable-plugin-dir
1079                            Directory where the sampler shall look for potential plugins,                            Directory where the sampler shall look for potential plugins,
# Line 1154  AC_OUTPUT( \ Line 1229  AC_OUTPUT( \
1229      src/drivers/audio/Makefile \      src/drivers/audio/Makefile \
1230      src/drivers/midi/Makefile \      src/drivers/midi/Makefile \
1231      src/plugins/Makefile \      src/plugins/Makefile \
1232        src/hostplugins/Makefile \
1233        src/hostplugins/dssi/Makefile \
1234        src/hostplugins/lv2/Makefile \
1235        src/hostplugins/vst/Makefile \
1236        src/hostplugins/au/Makefile \
1237      linuxsampler.spec \      linuxsampler.spec \
1238      debian/Makefile \      debian/Makefile \
1239      Artwork/Makefile \      Artwork/Makefile \
# Line 1194  echo "# Streams to be refilled per Disk Line 1274  echo "# Streams to be refilled per Disk
1274  echo "# Minimum Stream Refill Size: ${config_stream_min_refill}"  echo "# Minimum Stream Refill Size: ${config_stream_min_refill}"
1275  echo "# Maximum Stream Refill Size: ${config_stream_max_refill}"  echo "# Maximum Stream Refill Size: ${config_stream_max_refill}"
1276  echo "# Stream Size: ${config_stream_size}"  echo "# Stream Size: ${config_stream_size}"
1277  echo "# Maximum Disk Streams: ${config_max_streams}"  echo "# Default Maximum Disk Streams: ${config_max_streams}"
1278  echo "# Maximum Voices: ${config_max_voices}"  echo "# Default Maximum Voices: ${config_max_voices}"
1279  echo "# Default Subfragment Size: ${config_subfragment_size}"  echo "# Default Subfragment Size: ${config_subfragment_size}"
1280  echo "# Default Global Volume Attenuation: ${config_global_attenuation_default}"  echo "# Default Global Volume Attenuation: ${config_global_attenuation_default}"
1281  echo "# Voice Stealing Algorithm: ${config_voice_steal_algo}"  echo "# Voice Stealing Algorithm: ${config_voice_steal_algo}"
# Line 1214  echo "# Override Filter Type: ${config_o Line 1294  echo "# Override Filter Type: ${config_o
1294  echo "# Assert GS SysEx Checksum: ${config_assert_gs_sysex_checksum}"  echo "# Assert GS SysEx Checksum: ${config_assert_gs_sysex_checksum}"
1295  echo "# Process Muted Channels: ${config_process_muted_channels}"  echo "# Process Muted Channels: ${config_process_muted_channels}"
1296  echo "# Process All-Notes-Off MIDI message: ${config_process_all_notes_off}"  echo "# Process All-Notes-Off MIDI message: ${config_process_all_notes_off}"
1297    echo "# Apply global volume SysEx by MIDI port: ${config_master_volume_sysex_by_port}"
1298  echo "# Interpolate Volume: ${config_interpolate_volume}"  echo "# Interpolate Volume: ${config_interpolate_volume}"
1299  echo "# Instruments database support: ${config_instruments_db}"  echo "# Instruments database support: ${config_instruments_db}"
1300  if test "$config_instruments_db" = "yes"; then  if test "$config_instruments_db" = "yes"; then

Legend:
Removed from v.1748  
changed lines
  Added in v.1852

  ViewVC Help
Powered by ViewVC