mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-23 06:25:50 +00:00
Fixed attempting to dynamically load libsamplerate when shared object loading is disabled.
Thanks to Ozkan Sezer for pointing this out
This commit is contained in:
parent
9d9e92cf46
commit
25b47ea381
15
configure
vendored
15
configure
vendored
|
@ -18730,16 +18730,23 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
if test x$enable_libsamplerate_shared = xyes; then
|
|
||||||
samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
|
samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
|
||||||
if test x$samplerate_lib != x; then
|
|
||||||
echo "-- dynamic samplerate -> $samplerate_lib"
|
if test x$have_loadso != xyes && \
|
||||||
|
test x$enable_libsamplerate_shared = xyes; then
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
|
||||||
|
$as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
|
||||||
|
fi
|
||||||
|
if test x$have_loadso = xyes && \
|
||||||
|
test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
|
||||||
|
echo "-- dynamic libsamplerate -> $samplerate_lib"
|
||||||
|
|
||||||
cat >>confdefs.h <<_ACEOF
|
cat >>confdefs.h <<_ACEOF
|
||||||
#define SDL_LIBSAMPLERATE_DYNAMIC "$samplerate_lib"
|
#define SDL_LIBSAMPLERATE_DYNAMIC "$samplerate_lib"
|
||||||
_ACEOF
|
_ACEOF
|
||||||
|
|
||||||
fi
|
else
|
||||||
|
EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
14
configure.in
14
configure.in
|
@ -1144,12 +1144,18 @@ AC_HELP_STRING([--enable-libsamplerate], [use libsamplerate for audio rate conve
|
||||||
AC_HELP_STRING([--enable-libsamplerate-shared], [dynamically load libsamplerate [[default=yes]]]),
|
AC_HELP_STRING([--enable-libsamplerate-shared], [dynamically load libsamplerate [[default=yes]]]),
|
||||||
, enable_libsamplerate_shared=yes)
|
, enable_libsamplerate_shared=yes)
|
||||||
|
|
||||||
if test x$enable_libsamplerate_shared = xyes; then
|
|
||||||
samplerate_lib=[`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`]
|
samplerate_lib=[`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`]
|
||||||
if test x$samplerate_lib != x; then
|
|
||||||
echo "-- dynamic samplerate -> $samplerate_lib"
|
if test x$have_loadso != xyes && \
|
||||||
AC_DEFINE_UNQUOTED(SDL_LIBSAMPLERATE_DYNAMIC, "$samplerate_lib", [ ])
|
test x$enable_libsamplerate_shared = xyes; then
|
||||||
|
AC_MSG_WARN([You must have SDL_LoadObject() support for dynamic libsamplerate loading])
|
||||||
fi
|
fi
|
||||||
|
if test x$have_loadso = xyes && \
|
||||||
|
test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
|
||||||
|
echo "-- dynamic libsamplerate -> $samplerate_lib"
|
||||||
|
AC_DEFINE_UNQUOTED(SDL_LIBSAMPLERATE_DYNAMIC, "$samplerate_lib", [ ])
|
||||||
|
else
|
||||||
|
EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue