/[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 1895 by persson, Sun May 3 12:15:40 2009 UTC revision 2360 by persson, Thu Aug 16 17:01:35 2012 UTC
# Line 3  AC_INIT(configure.in) Line 3  AC_INIT(configure.in)
3  #------------------------------------------------------------------------------------  #------------------------------------------------------------------------------------
4  # LinuxSampler's / liblinuxsampler's "official" release version:  # LinuxSampler's / liblinuxsampler's "official" release version:
5    
6  LINUXSAMPLER_RELEASE_MAJOR=0  LINUXSAMPLER_RELEASE_MAJOR=1
7  LINUXSAMPLER_RELEASE_MINOR=5  LINUXSAMPLER_RELEASE_MINOR=0
8  LINUXSAMPLER_RELEASE_BUILD=1.12cvs  LINUXSAMPLER_RELEASE_BUILD=0.svn18
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=1.12cvs Line 24  LINUXSAMPLER_RELEASE_BUILD=1.12cvs
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=2  LIBLINUXSAMPLER_LT_CURRENT=3
28  LIBLINUXSAMPLER_LT_REVISION=0  LIBLINUXSAMPLER_LT_REVISION=0
29  LIBLINUXSAMPLER_LT_AGE=1  LIBLINUXSAMPLER_LT_AGE=0
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=4  LSCP_RELEASE_MINOR=5
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.])
# Line 45  AM_PROG_LIBTOOL Line 45  AM_PROG_LIBTOOL
45  AC_SUBST(SHLIB_VERSION_ARG)  AC_SUBST(SHLIB_VERSION_ARG)
46  AC_SUBST(SHARED_VERSION_INFO)  AC_SUBST(SHARED_VERSION_INFO)
47    
48    module=yes eval LIB_EXT=$shrext_cmds
49    AC_SUBST(LIB_EXT)
50    
51  AC_C_BIGENDIAN  AC_C_BIGENDIAN
52  AC_CANONICAL_HOST  AC_CANONICAL_HOST
53    
# Line 53  PKG_PROG_PKG_CONFIG Line 56  PKG_PROG_PKG_CONFIG
56  ###########################################################################  ###########################################################################
57  # General Checks  # General Checks
58    
59    AM_CONDITIONAL(CROSS_COMPILING, test $cross_compiling = yes)
60    
61  AC_MSG_CHECKING([whether x86 architecture])  AC_MSG_CHECKING([whether x86 architecture])
62  def_arch_x86=0  def_arch_x86=0
63  case $host_cpu in  case $host_cpu in
# Line 76  if ! echo "X $CXXFLAGS " | grep -q -- " Line 81  if ! echo "X $CXXFLAGS " | grep -q -- "
81  fi  fi
82  AC_SUBST([CXX_CPU_SWITCH])  AC_SUBST([CXX_CPU_SWITCH])
83    
84    mac=no
85    linux=no
86    case "$host" in
87        *-*-darwin*)
88            mac=yes
89            ;;
90        *-*-linux*)
91            linux=yes
92            ;;
93    esac
94    AM_CONDITIONAL(LINUX, test "$linux" = yes)
95    AM_CONDITIONAL(MAC, test "$mac" = yes)
96    
97  # check if we're on MS Windows  # check if we're on MS Windows
98  AC_CHECK_HEADERS(  AC_CHECK_HEADERS(
99      mmsystem.h,      mmsystem.h,
# Line 497  AC_CHECK_HEADERS(dssi.h, Line 515  AC_CHECK_HEADERS(dssi.h,
515  AM_CONDITIONAL(HAVE_DSSI, test $config_have_dssi = "yes")  AM_CONDITIONAL(HAVE_DSSI, test $config_have_dssi = "yes")
516    
517  # LV2  # LV2
518  PKG_CHECK_MODULES(LV2, lv2core, config_have_lv2="yes", config_have_lv2="no")  PKG_CHECK_MODULES(LV2, lv2 >= 1.0.0, config_have_lv2="yes", config_have_lv2="no")
519  if test $config_have_lv2 = "no"; then  AC_SUBST(LV2_CFLAGS)
520      AC_CHECK_HEADER(lv2.h, config_have_lv2="yes", config_have_lv2="no")  AC_SUBST(LV2_LIBS)
 fi  
521  AM_CONDITIONAL(HAVE_LV2, test $config_have_lv2 = "yes")  AM_CONDITIONAL(HAVE_LV2, test $config_have_lv2 = "yes")
522    
523  # VST  # VST
# Line 526  AC_CHECK_HEADERS(AudioUnit/AudioUnit.h, Line 543  AC_CHECK_HEADERS(AudioUnit/AudioUnit.h,
543  AM_CONDITIONAL(HAVE_AU, test $config_have_au = "yes")  AM_CONDITIONAL(HAVE_AU, test $config_have_au = "yes")
544  AM_CONDITIONAL(HAVE_AUFLAGS, test "$AUFLAGS" != "")  AM_CONDITIONAL(HAVE_AUFLAGS, test "$AUFLAGS" != "")
545    
546    if test $config_have_au = "yes" ; then
547        if test "x$DEVELOPER_EXTRAS_DIR" = "x" ; then
548            if test -d /Developer/Extras ; then
549                DEVELOPER_EXTRAS_DIR=/Developer/Extras
550            else      
551                DEVELOPER_EXTRAS_DIR=/Developer/Examples
552            fi
553        fi
554        AC_SUBST(DEVELOPER_EXTRAS_DIR)
555    fi
556    
557    if test "x$MAC_PLUGIN_INSTALL_DIR" = "x" ; then
558        MAC_PLUGIN_INSTALL_DIR=/Library/Audio/Plug-Ins
559    fi
560    AC_SUBST(MAC_PLUGIN_INSTALL_DIR)
561    
562  # 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 ?
563  if test "$have_midi_input_driver" = "false"; then  if test "$have_midi_input_driver" = "false"; then
# Line 549  fi Line 581  fi
581  # Checks for various DLL libraries  # Checks for various DLL libraries
582    
583  # Check presence of libgig  # Check presence of libgig
584  libgig_version="3.2.1"  libgig_version="3.3.0"
585  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)
586  if test "$HAVE_GIG" = "false"; then  if test "$HAVE_GIG" = "false"; then
587      echo "Required libgig version not found!"      echo "Required libgig version not found!"
# Line 561  fi Line 593  fi
593  AC_SUBST(GIG_CFLAGS)  AC_SUBST(GIG_CFLAGS)
594  AC_SUBST(GIG_LIBS)  AC_SUBST(GIG_LIBS)
595    
596    # SF2 Engine (requires libgig)
597    AC_ARG_ENABLE(sf2-engine,
598      [  --disable-sf2-engine
599                              Disable compilation of the SF2 engine.
600                              You need to have libgig installed.],
601      [config_sf2_engine="$enableval"],
602      [config_sf2_engine="yes"]
603    )
604    HAVE_SF2=0;
605    if test "$config_sf2_engine" = "yes"; then
606        HAVE_SF2=1
607    else
608        echo "SF2 engine disabled by configure script parameter"
609    fi
610    AM_CONDITIONAL(HAVE_SF2, test $HAVE_SF2 = 1)
611    AC_DEFINE_UNQUOTED(HAVE_SF2,$HAVE_SF2,[Define to 1 if you want SF2 engine and have libsf2 installed.])
612    config_have_sf2="no"
613    if test $HAVE_SF2 = "1"; then
614        config_have_sf2="yes"
615    fi
616    
617    # Check presence of libsndfile
618    libsndfile_version="1.0"
619    PKG_CHECK_MODULES(SNDFILE, sndfile >= $libsndfile_version, HAVE_SNDFILE=true, HAVE_SNDFILE=false)
620    if test "$HAVE_SNDFILE" = "false"; then
621        echo "Required libsndfile version not found!"
622        echo "You need to have libsndfile version ${libsndfile_version} installed!"
623        exit -1;
624    else
625        echo "yes, found libsndfile $libsndfile_version"
626    fi
627    AC_SUBST(SNDFILE_CFLAGS)
628    AC_SUBST(SNDFILE_LIBS)
629    
630    # Check for Vorbis support in libsndfile
631    linuxsampler_save_CFLAGS=$CFLAGS
632    CFLAGS="$SNDFILE_CFLAGS $CFLAGS"
633    AC_CHECK_DECLS([SF_FORMAT_VORBIS], [], [], [[#include <sndfile.h>]])
634    
635    # Check for loop functionality in libsndfile
636    AC_CHECK_MEMBERS([SF_INSTRUMENT.loops],,
637                     [AC_MSG_WARN([Your version of libsndfile does not support
638        reading of loop information. LinuxSampler will not be able to
639        extract loop information from sample files.])],
640                     [#include <sndfile.h>])
641    CFLAGS=$linuxsampler_save_CFLAGS
642    
643  # Instruments DB feature (requires SQLite 3.3)  # Instruments DB feature (requires SQLite 3.3)
644  AC_ARG_ENABLE(instruments-db,  AC_ARG_ENABLE(instruments-db,
645    [  --disable-instruments-db    [  --disable-instruments-db
# Line 656  if test "$config_rt_exceptions" = "yes"; Line 735  if test "$config_rt_exceptions" = "yes";
735    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.])
736  fi  fi
737    
738    config_pthread_testcancel="$mac"
739  AC_ARG_ENABLE(pthread-testcancel,  AC_ARG_ENABLE(pthread-testcancel,
740    [  --enable-pthread-testcancel    [  --enable-pthread-testcancel
741                            Enable pthread_testcancel() calls and avoid asynchronous                            Enable pthread_testcancel() calls and avoid
742                            cancel of pthreads (default=no).],                            asynchronous cancel of pthreads (default=yes
743                              for Mac targets, no otherwise).],
744    [config_pthread_testcancel="$enableval"],    [config_pthread_testcancel="$enableval"],
745    [config_pthread_testcancel="no"]    [])
 )  
746  if test "$config_pthread_testcancel" = "yes"; then  if test "$config_pthread_testcancel" = "yes"; then
747    AC_DEFINE_UNQUOTED(CONFIG_PTHREAD_TESTCANCEL, 1, [Define to 1 to enable pthread_testcancel() calls.])    AC_DEFINE_UNQUOTED(CONFIG_PTHREAD_TESTCANCEL, 1, [Define to 1 to enable pthread_testcancel() calls.])
748  fi  fi
# Line 1235  AM_INIT_AUTOMAKE(linuxsampler, "$LINUXSA Line 1315  AM_INIT_AUTOMAKE(linuxsampler, "$LINUXSA
1315    
1316  AC_LANG_CPLUSPLUS  AC_LANG_CPLUSPLUS
1317    
 # some gcc 4.0 versions need -msse for SSE register allocations  
 if test "$config_asm" = "yes"; then  
   if test "$def_arch_x86" = 1; then  
     CXXFLAGS="$CXXFLAGS -msse"  
   fi  
 fi  
   
1318  # autoconf 2.59/libtool 1.5.12 bug? work-around. Without a check like  # autoconf 2.59/libtool 1.5.12 bug? work-around. Without a check like
1319  # this, the dlfcn.h check in am_prog_libtool may fail.  # this, the dlfcn.h check in am_prog_libtool may fail.
1320  AC_CHECK_HEADER(stdlib.h)  AC_CHECK_HEADER(stdlib.h)
# Line 1255  AC_OUTPUT( \ Line 1328  AC_OUTPUT( \
1328      src/network/Makefile \      src/network/Makefile \
1329      src/engines/Makefile \      src/engines/Makefile \
1330      src/engines/gig/Makefile \      src/engines/gig/Makefile \
1331        src/engines/sf2/Makefile \
1332        src/engines/sfz/Makefile \
1333      src/engines/common/Makefile \      src/engines/common/Makefile \
1334      src/effects/Makefile \      src/effects/Makefile \
1335      src/common/Makefile \      src/common/Makefile \
# Line 1266  AC_OUTPUT( \ Line 1341  AC_OUTPUT( \
1341      src/hostplugins/Makefile \      src/hostplugins/Makefile \
1342      src/hostplugins/dssi/Makefile \      src/hostplugins/dssi/Makefile \
1343      src/hostplugins/lv2/Makefile \      src/hostplugins/lv2/Makefile \
1344        src/hostplugins/lv2/manifest.ttl \
1345      src/hostplugins/vst/Makefile \      src/hostplugins/vst/Makefile \
1346      src/hostplugins/au/Makefile \      src/hostplugins/au/Makefile \
1347      linuxsampler.spec \      linuxsampler.spec \
# Line 1345  echo "#--------------------------------- Line 1421  echo "#---------------------------------
1421  echo "# Audio Output Drivers:"  echo "# Audio Output Drivers:"
1422  echo "# ALSA: ${config_have_alsa}, JACK: ${config_have_jack}, ARTS: ${config_have_arts}, CoreAudio: ${config_have_coreaudio}, ASIO: ${config_have_asio}"  echo "# ALSA: ${config_have_alsa}, JACK: ${config_have_jack}, ARTS: ${config_have_arts}, CoreAudio: ${config_have_coreaudio}, ASIO: ${config_have_asio}"
1423  echo "#-------------------------------------------------------------------"  echo "#-------------------------------------------------------------------"
1424    echo "# Sampler Engines:"
1425    echo "# GIG: yes, SF2: ${config_have_sf2}, SFZ: yes"
1426    echo "#-------------------------------------------------------------------"
1427    echo "# Effect plugin systems for internal effects:"
1428    echo "# LADSPA: yes"
1429    echo "#-------------------------------------------------------------------"
1430  echo "# Building sampler as plugin for following host standards:"  echo "# Building sampler as plugin for following host standards:"
1431  echo "# DSSI: ${config_have_dssi}, LV2: ${config_have_lv2}, VST: ${config_have_vst}, AU: ${config_have_au}"  echo "# DSSI: ${config_have_dssi}, LV2: ${config_have_lv2}, VST: ${config_have_vst}, AU: ${config_have_au}"
1432  echo "#-------------------------------------------------------------------#"  echo "#-------------------------------------------------------------------#"

Legend:
Removed from v.1895  
changed lines
  Added in v.2360

  ViewVC Help
Powered by ViewVC