/[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 1502 by senoner, Wed Nov 21 07:29:52 2007 UTC revision 1829 by iliev, Fri Jan 30 19:22:36 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=0  LINUXSAMPLER_RELEASE_BUILD=1.8cvs
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 24  LINUXSAMPLER_RELEASE_BUILD=0 Line 24  LINUXSAMPLER_RELEASE_BUILD=0
24  #  6. If any interfaces have been removed since the last public release, then set age  #  6. If any interfaces have been removed since the last public release, then set age
25  #     to 0.  #     to 0.
26    
27  LIBLINUXSAMPLER_LT_CURRENT=1  LIBLINUXSAMPLER_LT_CURRENT=2
28  LIBLINUXSAMPLER_LT_REVISION=0  LIBLINUXSAMPLER_LT_REVISION=0
29  LIBLINUXSAMPLER_LT_AGE=0  LIBLINUXSAMPLER_LT_AGE=1
30  SHARED_VERSION_INFO="$LIBLINUXSAMPLER_LT_CURRENT:$LIBLINUXSAMPLER_LT_REVISION:$LIBLINUXSAMPLER_LT_AGE"  SHARED_VERSION_INFO="$LIBLINUXSAMPLER_LT_CURRENT:$LIBLINUXSAMPLER_LT_REVISION:$LIBLINUXSAMPLER_LT_AGE"
31    
32  #------------------------------------------------------------------------------------  #------------------------------------------------------------------------------------
33  # the LSCP specification version this LinuSampler release complies with:  # the LSCP specification version this LinuSampler release complies with:
34    
35  LSCP_RELEASE_MAJOR=1  LSCP_RELEASE_MAJOR=1
36  LSCP_RELEASE_MINOR=2  LSCP_RELEASE_MINOR=4
37    
38  AC_DEFINE_UNQUOTED(LSCP_RELEASE_MAJOR, ${LSCP_RELEASE_MAJOR}, [LSCP spec major version this release complies with.])  AC_DEFINE_UNQUOTED(LSCP_RELEASE_MAJOR, ${LSCP_RELEASE_MAJOR}, [LSCP spec major version this release complies with.])
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
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 52  AC_SUBST(target_cpu) Line 54  AC_SUBST(target_cpu)
54  AC_SUBST(target_os)  AC_SUBST(target_os)
55  AC_SUBST(target_vendor)  AC_SUBST(target_vendor)
56    
57    PKG_PROG_PKG_CONFIG
58    
59  ###########################################################################  ###########################################################################
60  # General Checks  # General Checks
# Line 59  AC_SUBST(target_vendor) Line 62  AC_SUBST(target_vendor)
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 71  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 160  else Line 163  else
163      echo "NPTL glibc bug check disabled"      echo "NPTL glibc bug check disabled"
164  fi  fi
165    
166    # FIXME: this is actually a dependency of libgig, not of LS directly, why
167    # isn't it hidden by libgig?
168    AC_CHECK_HEADERS(uuid/uuid.h)
169    AC_SEARCH_LIBS(uuid_generate, uuid)
170    
171    
172    
173  ###########################################################################  ###########################################################################
# Line 263  if test "$config_jack_driver" = "yes"; t Line 271  if test "$config_jack_driver" = "yes"; t
271      if test $have_jack = "1"; then      if test $have_jack = "1"; then
272          AC_SUBST(JACK_LIBS)          AC_SUBST(JACK_LIBS)
273          AC_SUBST(JACK_CFLAGS)          AC_SUBST(JACK_CFLAGS)
274          AC_CHECK_LIB(jack, jack_client_name_size, [AC_DEFINE(HAVE_JACK_CLIENT_NAME_SIZE, 1, [Define to 1 if you have the `jack_client_name_size' function.])], , $JACK_LIBS)          linuxsampler_save_LIBS=$LIBS
275            LIBS="$JACK_LIBS $LIBS"
276            AC_CHECK_FUNCS(jack_client_name_size jack_client_open)
277            LIBS=$linuxsampler_save_LIBS
278          have_audio_output_driver="true";          have_audio_output_driver="true";
279      fi      fi
280  else  else
# Line 272  fi Line 283  fi
283  AM_CONDITIONAL(HAVE_JACK, test $have_jack = "1")  AM_CONDITIONAL(HAVE_JACK, test $have_jack = "1")
284  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.])
285    
286    # JACK MIDI
287    have_jack_midi=0
288    if test $have_jack = "1"; then
289        linuxsampler_save_CFLAGS=$CFLAGS
290        linuxsampler_save_LIBS=$LIBS
291        CFLAGS="$JACK_CFLAGS $CFLAGS"
292        LIBS="$JACK_LIBS $LIBS"
293        AC_CHECK_HEADER(jack/midiport.h, have_jack_midi=1, have_jack_midi=0)
294        if test $have_jack_midi = "1"; then
295            AC_CHECK_FUNCS(jack_midi_get_event_count)
296            AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <jack/midiport.h>]], [[
297                jack_midi_clear_buffer(0, 0);
298            ]])], [AC_DEFINE(JACK_MIDI_FUNCS_NEED_NFRAMES, 1,
299                      [Define to 1 if you have the old jack midi functions that need an nframes argument.])])
300            have_midi_input_driver="true"
301        fi
302        CFLAGS=$linuxsampler_save_CFLAGS
303        LIBS=$linuxsampler_save_LIBS
304    fi
305    AM_CONDITIONAL(HAVE_JACK_MIDI, test $have_jack_midi = "1")
306    AC_DEFINE_UNQUOTED(HAVE_JACK_MIDI, $have_jack_midi,
307                       [Define to 1 if you have JACK with MIDI support installed.])
308    
309  # ARTS  # ARTS
310  AC_ARG_ENABLE(arts-driver,  AC_ARG_ENABLE(arts-driver,
311    [  --disable-arts-driver    [  --disable-arts-driver
# Line 381  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 403  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    
489  # 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 ?
490  if test "$have_midi_input_driver" = "false"; then  if test "$have_midi_input_driver" = "false"; then
491      echo "No supported MIDI input system found!"      echo "No supported MIDI input system found!"
492      echo "Sorry, LinuxSampler only supports the following MIDI drivers at the moment:"      echo "Sorry, LinuxSampler only supports the following MIDI drivers at the moment:"
493      echo "ALSA, MIDIShare, CoreMIDI."      echo "ALSA, JACK, MIDIShare, CoreMIDI, MME."
494      echo "If you think you have one of those available on your system, make sure you"      echo "If you think you have one of those available on your system, make sure you"
495      echo "also have the respective development (header) files installed."      echo "also have the respective development (header) files installed."
496      exit -1;      exit -1;
497  fi  fi
498  if test "$have_audio_output_driver" = "false"; then  if test "$have_audio_output_driver" = "false"; then
499      echo "No supported audio output system found!"      echo "No supported audio output system found!"
500      echo "Sorry, LinuxSampler only supports ALSA, JACK and ARTS as audio output"      echo "Sorry, LinuxSampler only supports ALSA, JACK, ARTS and ASIO as audio output"
501      echo "driver at the moment!"      echo "driver at the moment!"
502      exit -1;      exit -1;
503  fi  fi
# Line 425  fi Line 508  fi
508  # Checks for various DLL libraries  # Checks for various DLL libraries
509    
510  # Check presence of libgig  # Check presence of libgig
511  libgig_version="3.2.0"  libgig_version="3.2.1"
512  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)
513  if test "$HAVE_GIG" = "false"; then  if test "$HAVE_GIG" = "false"; then
514      echo "Required libgig version not found!"      echo "Required libgig version not found!"
# Line 532  if test "$config_rt_exceptions" = "yes"; Line 615  if test "$config_rt_exceptions" = "yes";
615    AC_DEFINE_UNQUOTED(CONFIG_RT_EXCEPTIONS, 1, [Define to 1 to allow exceptions in the realtime context.])    AC_DEFINE_UNQUOTED(CONFIG_RT_EXCEPTIONS, 1, [Define to 1 to allow exceptions in the realtime context.])
616  fi  fi
617    
618    AC_ARG_ENABLE(pthread-testcancel,
619      [  --enable-pthread-testcancel
620                              Enable pthread_testcancel() calls and avoid asynchronous
621                              cancel of pthreads (default=no).],
622      [config_pthread_testcancel="$enableval"],
623      [config_pthread_testcancel="no"]
624    )
625    if test "$config_pthread_testcancel" = "yes"; then
626      AC_DEFINE_UNQUOTED(CONFIG_PTHREAD_TESTCANCEL, 1, [Define to 1 to enable pthread_testcancel() calls.])
627    fi
628    
629  AC_ARG_ENABLE(preload-samples,  AC_ARG_ENABLE(preload-samples,
630    [  --enable-preload-samples    [  --enable-preload-samples
631                            Due to seeking and latency issues with hard drives                            Due to seeking and latency issues with hard drives
# Line 637  AC_DEFINE_UNQUOTED(CONFIG_STREAM_BUFFER_ Line 731  AC_DEFINE_UNQUOTED(CONFIG_STREAM_BUFFER_
731    
732  AC_ARG_ENABLE(max-streams,  AC_ARG_ENABLE(max-streams,
733    [  --enable-max-streams    [  --enable-max-streams
734                            Maximum amount of disk streams (default=90). This                            Initial maximum amount of disk streams
735                            value should always be higher than the maximum                            (default=90). This value can be changed at
736                            amount of voices.],                            runtime. It should always be higher than the
737                              maximum amount of voices.],
738    [config_max_streams="${enableval}"],    [config_max_streams="${enableval}"],
739    [config_max_streams="90"]    [config_max_streams="90"]
740  )  )
741  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.])
742    
743  AC_ARG_ENABLE(max-voices,  AC_ARG_ENABLE(max-voices,
744    [  --enable-max-voices    [  --enable-max-voices
745                            Maximum amount of voices (default=64). This value                            Initial maximum amount of voices (default=64).
746                            should always be lower than the maximum amount of                            This value can be changed at runtime. It should
747                            disk streams.],                            always be lower than the maximum amount of disk
748                              streams.],
749    [config_max_voices="${enableval}"],    [config_max_voices="${enableval}"],
750    [config_max_voices="64"]    [config_max_voices="64"]
751  )  )
752  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.])
753    
754  AC_ARG_ENABLE(subfragment-size,  AC_ARG_ENABLE(subfragment-size,
755    [  --enable-subfragment-size    [  --enable-subfragment-size
# Line 955  if test "$config_interpolate_volume" = " Line 1051  if test "$config_interpolate_volume" = "
1051    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.])
1052  fi  fi
1053    
1054    AC_ARG_ENABLE(master-volume-sysex-by-port,
1055      [  --enable-master-volume-sysex-by-port
1056                              Whether global volume sysex message should be
1057                              applied globally to the whole sampler or only to
1058                              the sampler channels connected to the same MIDI
1059                              input port on which the sysex message arrived on.
1060                              By default global volume sysex messages apply
1061                              globally to the whole sampler, since many MIDI
1062                              devices behave that way.],
1063      [config_master_volume_sysex_by_port="$enableval"],
1064      [config_master_volume_sysex_by_port="no"]
1065    )
1066    if test "$config_master_volume_sysex_by_port" = "yes"; then
1067      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.])
1068    fi
1069    
1070  AC_ARG_ENABLE(plugin-dir,  AC_ARG_ENABLE(plugin-dir,
1071    [  --enable-plugin-dir    [  --enable-plugin-dir
1072                            Directory where the sampler shall look for potential plugins,                            Directory where the sampler shall look for potential plugins,
# Line 1081  AM_CONFIG_HEADER(config.h) Line 1193  AM_CONFIG_HEADER(config.h)
1193  AM_INIT_AUTOMAKE(linuxsampler, "$LINUXSAMPLER_RELEASE_MAJOR.$LINUXSAMPLER_RELEASE_MINOR.$LINUXSAMPLER_RELEASE_BUILD")  AM_INIT_AUTOMAKE(linuxsampler, "$LINUXSAMPLER_RELEASE_MAJOR.$LINUXSAMPLER_RELEASE_MINOR.$LINUXSAMPLER_RELEASE_BUILD")
1194    
1195  AC_LANG_CPLUSPLUS  AC_LANG_CPLUSPLUS
 AC_PROG_CXX  
1196    
1197  # some gcc 4.0 versions need -msse for SSE register allocations  # some gcc 4.0 versions need -msse for SSE register allocations
1198  if test "$config_asm" = "yes"; then  if test "$config_asm" = "yes"; then
# Line 1104  AC_OUTPUT( \ Line 1215  AC_OUTPUT( \
1215      src/engines/Makefile \      src/engines/Makefile \
1216      src/engines/gig/Makefile \      src/engines/gig/Makefile \
1217      src/engines/common/Makefile \      src/engines/common/Makefile \
1218        src/effects/Makefile \
1219      src/common/Makefile \      src/common/Makefile \
1220      src/testcases/Makefile \      src/testcases/Makefile \
1221      src/drivers/Makefile \      src/drivers/Makefile \
1222      src/drivers/audio/Makefile \      src/drivers/audio/Makefile \
1223      src/drivers/midi/Makefile \      src/drivers/midi/Makefile \
1224      src/plugins/Makefile \      src/plugins/Makefile \
1225        src/hostplugins/Makefile \
1226        src/hostplugins/dssi/Makefile \
1227        src/hostplugins/lv2/Makefile \
1228        src/hostplugins/vst/Makefile \
1229      linuxsampler.spec \      linuxsampler.spec \
1230      debian/Makefile \      debian/Makefile \
1231      Artwork/Makefile \      Artwork/Makefile \
# Line 1150  echo "# Streams to be refilled per Disk Line 1266  echo "# Streams to be refilled per Disk
1266  echo "# Minimum Stream Refill Size: ${config_stream_min_refill}"  echo "# Minimum Stream Refill Size: ${config_stream_min_refill}"
1267  echo "# Maximum Stream Refill Size: ${config_stream_max_refill}"  echo "# Maximum Stream Refill Size: ${config_stream_max_refill}"
1268  echo "# Stream Size: ${config_stream_size}"  echo "# Stream Size: ${config_stream_size}"
1269  echo "# Maximum Disk Streams: ${config_max_streams}"  echo "# Default Maximum Disk Streams: ${config_max_streams}"
1270  echo "# Maximum Voices: ${config_max_voices}"  echo "# Default Maximum Voices: ${config_max_voices}"
1271  echo "# Default Subfragment Size: ${config_subfragment_size}"  echo "# Default Subfragment Size: ${config_subfragment_size}"
1272  echo "# Default Global Volume Attenuation: ${config_global_attenuation_default}"  echo "# Default Global Volume Attenuation: ${config_global_attenuation_default}"
1273  echo "# Voice Stealing Algorithm: ${config_voice_steal_algo}"  echo "# Voice Stealing Algorithm: ${config_voice_steal_algo}"
# Line 1170  echo "# Override Filter Type: ${config_o Line 1286  echo "# Override Filter Type: ${config_o
1286  echo "# Assert GS SysEx Checksum: ${config_assert_gs_sysex_checksum}"  echo "# Assert GS SysEx Checksum: ${config_assert_gs_sysex_checksum}"
1287  echo "# Process Muted Channels: ${config_process_muted_channels}"  echo "# Process Muted Channels: ${config_process_muted_channels}"
1288  echo "# Process All-Notes-Off MIDI message: ${config_process_all_notes_off}"  echo "# Process All-Notes-Off MIDI message: ${config_process_all_notes_off}"
1289    echo "# Apply global volume SysEx by MIDI port: ${config_master_volume_sysex_by_port}"
1290  echo "# Interpolate Volume: ${config_interpolate_volume}"  echo "# Interpolate Volume: ${config_interpolate_volume}"
1291  echo "# Instruments database support: ${config_instruments_db}"  echo "# Instruments database support: ${config_instruments_db}"
1292  if test "$config_instruments_db" = "yes"; then  if test "$config_instruments_db" = "yes"; then

Legend:
Removed from v.1502  
changed lines
  Added in v.1829

  ViewVC Help
Powered by ViewVC