diff options
| author | Torbjörn Andersson | 2005-04-10 14:33:44 +0000 |
|---|---|---|
| committer | Torbjörn Andersson | 2005-04-10 14:33:44 +0000 |
| commit | 13dc149ded691e718905049990dd0220230c500e (patch) | |
| tree | 188daa35002ceb085c35778f63918e4b66365723 /configure | |
| parent | 53a64266c8963f46be68f54fcd1fb89432a02826 (diff) | |
| download | scummvm-rg350-13dc149ded691e718905049990dd0220230c500e.tar.gz scummvm-rg350-13dc149ded691e718905049990dd0220230c500e.tar.bz2 scummvm-rg350-13dc149ded691e718905049990dd0220230c500e.zip | |
Applied patch #1175374 ("FluidSynth MIDI driver"), with a few documentation
changes. There are a few things that could use a bit more work, and I've
only tested it on my Linux box. I have verified that ScummVM still compiles
when it's disabled, though, so it shouldn't break anything too badly.
svn-id: r17512
Diffstat (limited to 'configure')
| -rwxr-xr-x | configure | 33 |
1 files changed, 33 insertions, 0 deletions
@@ -20,6 +20,7 @@ _mad=auto _alsa=auto _zlib=auto _mpeg2=auto +_fluidsynth=auto _mt32emu=yes # default option behaviour yes/no _build_scumm=yes @@ -294,6 +295,9 @@ Optional Libraries: --with-mpeg2-prefix=DIR Prefix where libmpeg2 is installed (optional) --disable-mpeg2 disable mpeg2 codec for cutscenes [autodetect] + --with-fluidsynth-prefix=DIR Prefix where libfluidsynth is installed (optional) + --disable-fluidsynth disable fluidsynth MIDI driver [autodetect] + --with-sdl-prefix=DIR Prefix where the sdl-config script is installed (optional) --with-nasm-prefix=DIR Prefix where nasm executable is installed (optional) @@ -338,9 +342,15 @@ for ac_option in $@; do --enable-nasm) _nasm=yes ;; --disable-nasm) _nasm=no ;; --disable-mpeg2) _mpeg2=no ;; + --disable-fluidsynth) _fluidsynth=no ;; --enable-plugins) _build_plugins=yes ;; --enable-mt32emu) _mt32emu=yes ;; --disable-mt32emu) _mt32emu=no ;; + --with-fluidsynth-prefix=*) + _prefix=`echo $ac_option | cut -d '=' -f 2` + FLUIDSYNTH_CFLAGS="-I$_prefix/include" + FLUIDSYNTH_LIBS="-L$_prefix/lib" + ;; --with-mpeg2-prefix=*) _prefix=`echo $ac_option | cut -d '=' -f 2` MPEG2_CFLAGS="-I$_prefix/include" @@ -991,6 +1001,28 @@ echo "$_mpeg2" rm -f $TMPC $TMPO$EXEEXT # +# Check for libfluidsynth +# +echocheck "libfluidsynth" +if test "$_fluidsynth" = auto ; then + _fluidsynth=no + cat > $TMPC << EOF +#include <fluidsynth.h> +int main(void) { return 0; } +EOF + cc_check $LDFLAGS $CXXFLAGS $FLUIDSYNTH_CFLAGS $FLUIDSYNTH_LIBS -lfluidsynth && _fluidsynth=yes +fi +if test "$_fluidsynth" = yes ; then + _def_fluidsynth='#define USE_FLUIDSYNTH' + LIBS="$LIBS $FLUIDSYNTH_LIBS -lfluidsynth" + INCLUDE="$INCLUDES $FLUIDSYNTH_CFLAGS" +else + _def_fluidsynth='#undef USE_FLUIDSYNTH' +fi +echo "$_fluidsynth" +rm -f $TMPC $TMPO$EXEEXT + +# # Check for nasm # if test "$_have_x86" = yes ; then @@ -1126,6 +1158,7 @@ $_def_mad $_def_alsa $_def_zlib $_def_mpeg2 +$_def_fluidsynth $_def_mt32emu /* Whether we should use i386 assembly routines */ |
