/[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 1956 by schoenebeck, Fri Jul 31 07:45:47 2009 UTC revision 2012 by iliev, Fri Oct 23 17:53:17 2009 UTC
# Line 5  AC_INIT(configure.in) Line 5  AC_INIT(configure.in)
5    
6  LINUXSAMPLER_RELEASE_MAJOR=1  LINUXSAMPLER_RELEASE_MAJOR=1
7  LINUXSAMPLER_RELEASE_MINOR=0  LINUXSAMPLER_RELEASE_MINOR=0
8  LINUXSAMPLER_RELEASE_BUILD=0  LINUXSAMPLER_RELEASE_BUILD=0.cvs1
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 563  fi Line 563  fi
563  AC_SUBST(GIG_CFLAGS)  AC_SUBST(GIG_CFLAGS)
564  AC_SUBST(GIG_LIBS)  AC_SUBST(GIG_LIBS)
565    
566    # SF2 Engine (requires libsf2)
567    AC_ARG_ENABLE(sf2-engine,
568      [  --disable-sf2-engine
569                              Disable compilation of the SF2 engine.
570                              You need to have libsf2 installed.],
571      [config_sf2_engine="$enableval"],
572      [config_sf2_engine="yes"]
573    )
574    HAVE_SF2=0;
575    if test "$config_sf2_engine" = "yes"; then
576        # Check presence of libsf2
577        libsf2_version="0.0.1"
578        PKG_CHECK_MODULES(SF2, sf2 >= $libsf2_version, HAVE_SF2=true, HAVE_SF2=false)
579        AC_SUBST(SF2_LIBS)
580        AC_SUBST(SF2_CFLAGS)
581        if test $HAVE_SF2 = false; then
582            HAVE_SF2=0
583            config_sf2_engine="no"
584            echo "*** Required libsf2 version not found!"
585            echo "*** You need to have libsf2 version ${libsf2_version} or higher"
586            echo "*** for SF2 engine to be enabled."
587            echo "*** Support for SF2 instruments will be disabled!"
588        else
589            HAVE_SF2=1
590        fi
591    else
592        echo "SF2 engine disabled by configure script parameter"
593    fi
594    AM_CONDITIONAL(HAVE_SF2, test $HAVE_SF2 = 1)
595    AC_DEFINE_UNQUOTED(HAVE_SF2,$HAVE_SF2,[Define to 1 if you want SF2 engine and have libsf2 installed.])
596    config_have_sf2="no"
597    if test $HAVE_SF2 = "1"; then
598        config_have_sf2="yes"
599    fi
600    
601    # Check presence of libsndfile
602    libsndfile_version="1.0"
603    PKG_CHECK_MODULES(SNDFILE, sndfile >= $libsndfile_version, HAVE_SNDFILE=true, HAVE_SNDFILE=false)
604    if test "$HAVE_SNDFILE" = "false"; then
605        echo "Required libsndfile version not found!"
606        echo "You need to have libsndfile version ${libsndfile_version} installed!"
607        exit -1;
608    else
609        echo "yes, found libsndfile $libsndfile_version"
610    fi
611    AC_SUBST(SNDFILE_CFLAGS)
612    AC_SUBST(SNDFILE_LIBS)
613    
614  # Instruments DB feature (requires SQLite 3.3)  # Instruments DB feature (requires SQLite 3.3)
615  AC_ARG_ENABLE(instruments-db,  AC_ARG_ENABLE(instruments-db,
616    [  --disable-instruments-db    [  --disable-instruments-db
# Line 1250  AC_OUTPUT( \ Line 1298  AC_OUTPUT( \
1298      src/network/Makefile \      src/network/Makefile \
1299      src/engines/Makefile \      src/engines/Makefile \
1300      src/engines/gig/Makefile \      src/engines/gig/Makefile \
1301        src/engines/sf2/Makefile \
1302        src/engines/sfz/Makefile \
1303      src/engines/common/Makefile \      src/engines/common/Makefile \
1304      src/effects/Makefile \      src/effects/Makefile \
1305      src/common/Makefile \      src/common/Makefile \
# Line 1340  echo "#--------------------------------- Line 1390  echo "#---------------------------------
1390  echo "# Audio Output Drivers:"  echo "# Audio Output Drivers:"
1391  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}"
1392  echo "#-------------------------------------------------------------------"  echo "#-------------------------------------------------------------------"
1393    echo "# Sampler Engines:"
1394    echo "# GIG: yes, SF2: ${config_have_sf2}, SFZ: yes"
1395    echo "#-------------------------------------------------------------------"
1396  echo "# Building sampler as plugin for following host standards:"  echo "# Building sampler as plugin for following host standards:"
1397  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}"
1398  echo "#-------------------------------------------------------------------#"  echo "#-------------------------------------------------------------------#"

Legend:
Removed from v.1956  
changed lines
  Added in v.2012

  ViewVC Help
Powered by ViewVC