configure.in
changeset 353 21fe62f9c4c6
parent 349 c87c1d5dfd08
child 357 d6d0cfdbea65
     1.1 --- a/configure.in	Sun Jul 15 01:04:29 2007 +0000
     1.2 +++ b/configure.in	Sun Jul 15 03:38:33 2007 +0000
     1.3 @@ -261,6 +261,26 @@
     1.4          fi
     1.5      fi
     1.6  fi
     1.7 +AC_ARG_ENABLE(music-ogg-tremor,
     1.8 +[  --enable-music-ogg-tremor   enable OGG music via libtremor [[default=no]]],
     1.9 +	      , enable_music_ogg_tremor=no)
    1.10 +if test x$enable_music_ogg_tremor = xyes; then
    1.11 +    AC_MSG_CHECKING(for libtremor headers)
    1.12 +    have_tremor=no
    1.13 +    AC_TRY_COMPILE([
    1.14 +     #include <tremor/ivorbiscodec.h>
    1.15 +     #include <tremor/ivorbisfile.h>
    1.16 +    ],[
    1.17 +    ],[
    1.18 +    have_tremor=yes
    1.19 +    ])
    1.20 +    AC_MSG_RESULT($have_tremor)
    1.21 +    if test x$have_tremor = xyes; then
    1.22 +        SOURCES="$SOURCES $srcdir/*_ogg.c"
    1.23 +        EXTRA_CFLAGS="$EXTRA_CFLAGS -DOGG_MUSIC -DOGG_USE_TREMOR"
    1.24 +	EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lvorbisidec"
    1.25 +    fi
    1.26 +fi
    1.27  AC_ARG_ENABLE(music-mp3,
    1.28  [  --enable-music-mp3      enable MP3 music via smpeg [[default=yes]]],
    1.29                , enable_music_mp3=yes)