Fix some sdl_sound linking and detection issues
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2030
This commit is contained in:
parent
96be257ed3
commit
512c2bde93
1 changed files with 9 additions and 4 deletions
13
configure.in
13
configure.in
|
@ -179,10 +179,15 @@ fi
|
|||
|
||||
AH_TEMPLATE(C_SDL_SOUND,[Define to 1 to enable SDL_sound support])
|
||||
AC_CHECK_HEADER(SDL/SDL_sound.h,have_SDL_sound_h=yes,)
|
||||
AC_CHECK_LIB(SDL_sound, Sound_Init, have_SDL_sound_lib=yes,,)
|
||||
if test x$have_SDL_sound_h = xyes -a x$have_SDL_sound_lib = xyes ; then
|
||||
LIBS="$LIBS -lSDL_sound"
|
||||
AC_DEFINE(C_SDL_SOUND,1)
|
||||
AC_CHECK_LIB(SDL_sound, Sound_Init, have_SDL_sound_init=yes,,)
|
||||
AC_CHECK_LIB(SDL_sound, Sound_Seek, have_SDL_sound_seek=yes,,)
|
||||
if test x$have_SDL_sound_h = xyes -a x$have_SDL_sound_init = xyes ; then
|
||||
if test x$have_SDL_sound_seek = xyes ; then
|
||||
LIBS="-lSDL_sound $LIBS"
|
||||
AC_DEFINE(C_SDL_SOUND,1)
|
||||
else
|
||||
AC_MSG_WARN([Can't find SoundSeek in libSDL_Sound, libSDL_sound support disabled])
|
||||
fi
|
||||
else
|
||||
AC_MSG_WARN([Can't find libSDL_sound, libSDL_sound support disabled])
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue