# HG changeset patch # User Ryan C. Gordon # Date 1129155214 0 # Node ID d0d381a6f2bb09d5edddc24f3a415e9cb2955280 # Parent 38b656ccd0293a7769a1a5dc4308ec80e68558aa Look for modplug headers in both include path and include path + "libmodplug". (thanks to Tyler for this one). diff -r 38b656ccd029 -r d0d381a6f2bb CHANGELOG --- a/CHANGELOG Sat Oct 01 15:35:53 2005 +0000 +++ b/CHANGELOG Wed Oct 12 22:13:34 2005 +0000 @@ -2,6 +2,7 @@ * CHANGELOG. */ +10122005 - Check for libmodplug headers in two possible places (thanks, Tyler!) 10012005 - Added playsound_simple.c. 05302005 - Backport from devtree: Fixed automake nonsense. 11122004 - Backport from devtree: fix .voc decoder crash on file open. diff -r 38b656ccd029 -r d0d381a6f2bb acconfig.h --- a/acconfig.h Sat Oct 01 15:35:53 2005 +0000 +++ b/acconfig.h Wed Oct 12 22:13:34 2005 +0000 @@ -18,4 +18,5 @@ #undef SOUND_SUPPORTS_QUICKTIME #undef SOUND_SUPPORTS_SPEEX #undef SOUND_USE_ALTCVT +#undef SOUND_MODPLUG_IN_OWN_PATH diff -r 38b656ccd029 -r d0d381a6f2bb configure.in --- a/configure.in Sat Oct 01 15:35:53 2005 +0000 +++ b/configure.in Wed Oct 12 22:13:34 2005 +0000 @@ -214,7 +214,16 @@ [ --enable-modplug enable MOD decoding via modplug [default=yes]], , enable_modplug=yes) if test x$enable_modplug = xyes; then + have_modplug_hdr=no AC_CHECK_HEADER(modplug.h, have_modplug_hdr=yes) + if test x$have_modplug_hdr = xno; then + AC_CHECK_HEADER(libmodplug/modplug.h, have_modplug_hdr=yes) + if test x$have_modplug_hdr = xyes; then + have_modplug_hdr=yes + AC_DEFINE(SOUND_MODPLUG_IN_OWN_PATH) + fi + fi + AC_CHECK_LIB(modplug, ModPlug_Load, have_modplug_lib=yes) if test x$have_modplug_hdr = xyes -a x$have_modplug_lib = xyes; then LIBS="$LIBS -lmodplug" diff -r 38b656ccd029 -r d0d381a6f2bb decoders/modplug.c --- a/decoders/modplug.c Sat Oct 01 15:35:53 2005 +0000 +++ b/decoders/modplug.c Wed Oct 12 22:13:34 2005 +0000 @@ -46,8 +46,11 @@ #define __SDL_SOUND_INTERNAL__ #include "SDL_sound_internal.h" +#if SOUND_MODPLUG_IN_OWN_PATH +#include "libmodplug/modplug.h" +#else #include "modplug.h" - +#endif static int MODPLUG_init(void); static void MODPLUG_quit(void);