configure.in
changeset 481 286c27f54ea1
parent 477 c44842cb1d90
child 482 7b0c54eed938
equal deleted inserted replaced
480:30976a327fd3 481:286c27f54ea1
   269         else
   269         else
   270             EXTRA_LDFLAGS="$EXTRA_LDFLAGS `$LIBMIKMOD_CONFIG --libs`"
   270             EXTRA_LDFLAGS="$EXTRA_LDFLAGS `$LIBMIKMOD_CONFIG --libs`"
   271         fi
   271         fi
   272     else
   272     else
   273         AC_MSG_WARN([*** Unable to find MikMod library (http://mikmod.raphnet.net/)])
   273         AC_MSG_WARN([*** Unable to find MikMod library (http://mikmod.raphnet.net/)])
   274         AC_MSG_WARN([MOD support disabled])
   274     fi
   275     fi
   275 fi
       
   276 
       
   277 AC_ARG_ENABLE([music-mod-modplug],
       
   278 AC_HELP_STRING([--enable-music-mod-modplug], [enable MOD music via modplug [[default=no]]]),
       
   279               [], [enable_music_mod_modplug=no])
       
   280 if test x$enable_music_mod_modplug = xyes; then
       
   281 	PKG_CHECK_MODULES([MODPLUG], [libmodplug >= 0.8.7])
       
   282 	EXTRA_CFLAGS="$EXTRA_CFLAGS -DMODPLUG_MUSIC  $MODPLUG_CFLAGS"
       
   283 	EXTRA_LDFLAGS="$EXTRA_LDFLAGS $MODPLUG_LIBS"
       
   284 dnl	AC_TRY_COMPILE([
       
   285 dnl     #include "modplug.h"
       
   286 dnl    ],[
       
   287 dnl    ],[
       
   288     have_libmodplug=yes
       
   289 dnl    ])
       
   290 else
       
   291 	have_libmodplug=no
       
   292 fi
       
   293 
       
   294 if test x$have_libmikmod != xyes -a x$have_libmodplug != xyes ; then
       
   295 	AC_MSG_WARN([MOD support disabled])
   276 fi
   296 fi
   277 
   297 
   278 AC_ARG_ENABLE([music-midi],
   298 AC_ARG_ENABLE([music-midi],
   279 AC_HELP_STRING([--enable-music-midi], [enable MIDI music via timidity [[default=yes]]]),
   299 AC_HELP_STRING([--enable-music-midi], [enable MIDI music via timidity [[default=yes]]]),
   280               [], [enable_music_midi=yes])
   300               [], [enable_music_midi=yes])
   517     AC_MSG_RESULT($have_libmad)
   537     AC_MSG_RESULT($have_libmad)
   518     if test x$have_libmad = xyes; then
   538     if test x$have_libmad = xyes; then
   519         SOURCES="$SOURCES $srcdir/music_mad.c"
   539         SOURCES="$SOURCES $srcdir/music_mad.c"
   520         EXTRA_CFLAGS="$EXTRA_CFLAGS -DMP3_MAD_MUSIC"
   540         EXTRA_CFLAGS="$EXTRA_CFLAGS -DMP3_MAD_MUSIC"
   521         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lmad"
   541         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lmad"
       
   542         SOURCES="$SOURCES $srcdir/music_modplug.c"
   522     else
   543     else
   523         AC_MSG_WARN([*** Unable to find MAD library (http://www.underbit.com/products/mad/)])
   544         AC_MSG_WARN([*** Unable to find MAD library (http://www.underbit.com/products/mad/)])
   524     fi
   545     fi
   525 fi
   546 fi
   526 
   547