|
@@ -818,8 +818,12 @@ enable_nas
|
|
|
enable_nas_shared
|
|
|
enable_sndio
|
|
|
enable_sndio_shared
|
|
|
+enable_fusionsound
|
|
|
+enable_fusionsound_shared
|
|
|
enable_diskaudio
|
|
|
enable_dummyaudio
|
|
|
+enable_libsamplerate
|
|
|
+enable_libsamplerate_shared
|
|
|
enable_video_wayland
|
|
|
enable_video_wayland_qt_touch
|
|
|
enable_wayland_shared
|
|
@@ -840,8 +844,6 @@ enable_video_vivante
|
|
|
enable_video_cocoa
|
|
|
enable_video_directfb
|
|
|
enable_directfb_shared
|
|
|
-enable_fusionsound
|
|
|
-enable_fusionsound_shared
|
|
|
enable_video_dummy
|
|
|
enable_video_opengl
|
|
|
enable_video_opengles
|
|
@@ -1544,8 +1546,16 @@ Optional Features:
|
|
|
--enable-nas-shared dynamically load NAS audio support [[default=yes]]
|
|
|
--enable-sndio support the sndio audio API [[default=yes]]
|
|
|
--enable-sndio-shared dynamically load sndio audio support [[default=yes]]
|
|
|
+ --enable-fusionsound use FusionSound audio driver [[default=no]]
|
|
|
+ --enable-fusionsound-shared
|
|
|
+ dynamically load fusionsound audio support
|
|
|
+ [[default=yes]]
|
|
|
--enable-diskaudio support the disk writer audio driver [[default=yes]]
|
|
|
--enable-dummyaudio support the dummy audio driver [[default=yes]]
|
|
|
+ --enable-libsamplerate use libsamplerate for audio rate conversion
|
|
|
+ [[default=yes]]
|
|
|
+ --enable-libsamplerate-shared
|
|
|
+ dynamically load libsamplerate [[default=yes]]
|
|
|
--enable-video-wayland use Wayland video driver [[default=yes]]
|
|
|
--enable-video-wayland-qt-touch
|
|
|
QtWayland server support for Wayland video driver
|
|
@@ -1576,10 +1586,6 @@ Optional Features:
|
|
|
--enable-video-directfb use DirectFB video driver [[default=no]]
|
|
|
--enable-directfb-shared
|
|
|
dynamically load directfb support [[default=yes]]
|
|
|
- --enable-fusionsound use FusionSound audio driver [[default=no]]
|
|
|
- --enable-fusionsound-shared
|
|
|
- dynamically load fusionsound audio support
|
|
|
- [[default=yes]]
|
|
|
--enable-video-dummy use dummy video driver [[default=yes]]
|
|
|
--enable-video-opengl include OpenGL support [[default=yes]]
|
|
|
--enable-video-opengles include OpenGL ES support [[default=yes]]
|
|
@@ -18547,6 +18553,116 @@ $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
|
|
|
fi
|
|
|
}
|
|
|
|
|
|
+CheckFusionSound()
|
|
|
+{
|
|
|
+ # Check whether --enable-fusionsound was given.
|
|
|
+if test "${enable_fusionsound+set}" = set; then :
|
|
|
+ enableval=$enable_fusionsound;
|
|
|
+else
|
|
|
+ enable_fusionsound=no
|
|
|
+fi
|
|
|
+
|
|
|
+ if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
|
|
|
+ fusionsound=no
|
|
|
+
|
|
|
+ FUSIONSOUND_REQUIRED_VERSION=1.1.1
|
|
|
+
|
|
|
+ # Extract the first word of "pkg-config", so it can be a program name with args.
|
|
|
+set dummy pkg-config; ac_word=$2
|
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
|
+$as_echo_n "checking for $ac_word... " >&6; }
|
|
|
+if ${ac_cv_path_PKG_CONFIG+:} false; then :
|
|
|
+ $as_echo_n "(cached) " >&6
|
|
|
+else
|
|
|
+ case $PKG_CONFIG in
|
|
|
+ [\\/]* | ?:[\\/]*)
|
|
|
+ ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
|
|
|
+ ;;
|
|
|
+ *)
|
|
|
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
|
+for as_dir in $PATH
|
|
|
+do
|
|
|
+ IFS=$as_save_IFS
|
|
|
+ test -z "$as_dir" && as_dir=.
|
|
|
+ for ac_exec_ext in '' $ac_executable_extensions; do
|
|
|
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
|
+ ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
|
|
|
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
|
+ break 2
|
|
|
+ fi
|
|
|
+done
|
|
|
+ done
|
|
|
+IFS=$as_save_IFS
|
|
|
+
|
|
|
+ test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
|
|
|
+ ;;
|
|
|
+esac
|
|
|
+fi
|
|
|
+PKG_CONFIG=$ac_cv_path_PKG_CONFIG
|
|
|
+if test -n "$PKG_CONFIG"; then
|
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
|
|
|
+$as_echo "$PKG_CONFIG" >&6; }
|
|
|
+else
|
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
|
+$as_echo "no" >&6; }
|
|
|
+fi
|
|
|
+
|
|
|
+
|
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support" >&5
|
|
|
+$as_echo_n "checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support... " >&6; }
|
|
|
+ if test x$PKG_CONFIG != xno; then
|
|
|
+ if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $FUSIONSOUND_REQUIRED_VERSION fusionsound; then
|
|
|
+ FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags fusionsound`
|
|
|
+ FUSIONSOUND_LIBS=`$PKG_CONFIG --libs fusionsound`
|
|
|
+ fusionsound=yes
|
|
|
+ fi
|
|
|
+ fi
|
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound" >&5
|
|
|
+$as_echo "$fusionsound" >&6; }
|
|
|
+
|
|
|
+ if test x$fusionsound = xyes; then
|
|
|
+
|
|
|
+$as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
|
|
|
+
|
|
|
+ SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
|
|
|
+ EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
|
|
|
+
|
|
|
+ # Check whether --enable-fusionsound-shared was given.
|
|
|
+if test "${enable_fusionsound_shared+set}" = set; then :
|
|
|
+ enableval=$enable_fusionsound_shared;
|
|
|
+else
|
|
|
+ enable_fusionsound_shared=yes
|
|
|
+fi
|
|
|
+
|
|
|
+ fusionsound_shared=no
|
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
|
|
|
+$as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
|
|
|
+ if test x$have_loadso != xyes && \
|
|
|
+ test x$enable_fusionsound_shared = xyes; then
|
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
|
|
|
+$as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
|
|
|
+ fi
|
|
|
+ if test x$have_loadso = xyes && \
|
|
|
+ test x$enable_fusionsound_shared = xyes; then
|
|
|
+
|
|
|
+cat >>confdefs.h <<_ACEOF
|
|
|
+#define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
|
|
|
+_ACEOF
|
|
|
+
|
|
|
+ fusionsound_shared=yes
|
|
|
+ SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
|
|
|
+ else
|
|
|
+ EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
|
|
|
+ SUMMARY_audio="${SUMMARY_audio} fusionsound"
|
|
|
+ fi
|
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
|
|
|
+$as_echo "$fusionsound_shared" >&6; }
|
|
|
+
|
|
|
+ have_audio=yes
|
|
|
+ fi
|
|
|
+ fi
|
|
|
+}
|
|
|
+
|
|
|
CheckDiskAudio()
|
|
|
{
|
|
|
# Check whether --enable-diskaudio was given.
|
|
@@ -18583,6 +18699,52 @@ $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
|
|
|
fi
|
|
|
}
|
|
|
|
|
|
+CheckLibSampleRate()
|
|
|
+{
|
|
|
+ # Check whether --enable-libsamplerate was given.
|
|
|
+if test "${enable_libsamplerate+set}" = set; then :
|
|
|
+ enableval=$enable_libsamplerate;
|
|
|
+else
|
|
|
+ enable_libsamplerate=yes
|
|
|
+fi
|
|
|
+
|
|
|
+ if test x$enable_libsamplerate = xyes; then
|
|
|
+ ac_fn_c_check_header_mongrel "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
|
|
|
+if test "x$ac_cv_header_samplerate_h" = xyes; then :
|
|
|
+ have_samplerate_h_hdr=yes
|
|
|
+else
|
|
|
+ have_samplerate_h_hdr=no
|
|
|
+fi
|
|
|
+
|
|
|
+
|
|
|
+ if test x$have_samplerate_h_hdr = xyes; then
|
|
|
+
|
|
|
+$as_echo "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
|
|
|
+
|
|
|
+
|
|
|
+ # Check whether --enable-libsamplerate-shared was given.
|
|
|
+if test "${enable_libsamplerate_shared+set}" = set; then :
|
|
|
+ enableval=$enable_libsamplerate_shared;
|
|
|
+else
|
|
|
+ enable_libsamplerate_shared=yes
|
|
|
+fi
|
|
|
+
|
|
|
+
|
|
|
+ if test x$enable_libsamplerate_shared = xyes; then
|
|
|
+ samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
|
|
|
+ if test x$samplerate_lib != x; then
|
|
|
+ echo "-- dynamic samplerate -> $samplerate_lib"
|
|
|
+
|
|
|
+cat >>confdefs.h <<_ACEOF
|
|
|
+#define SDL_LIBSAMPLERATE_DYNAMIC "$samplerate_lib"
|
|
|
+_ACEOF
|
|
|
+
|
|
|
+ fi
|
|
|
+ fi
|
|
|
+ fi
|
|
|
+ fi
|
|
|
+}
|
|
|
+
|
|
|
CheckVisibilityHidden()
|
|
|
{
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
|
|
@@ -20959,116 +21121,6 @@ $as_echo "$directfb_shared" >&6; }
|
|
|
fi
|
|
|
}
|
|
|
|
|
|
-CheckFusionSound()
|
|
|
-{
|
|
|
- # Check whether --enable-fusionsound was given.
|
|
|
-if test "${enable_fusionsound+set}" = set; then :
|
|
|
- enableval=$enable_fusionsound;
|
|
|
-else
|
|
|
- enable_fusionsound=no
|
|
|
-fi
|
|
|
-
|
|
|
- if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
|
|
|
- fusionsound=no
|
|
|
-
|
|
|
- FUSIONSOUND_REQUIRED_VERSION=1.1.1
|
|
|
-
|
|
|
- # Extract the first word of "pkg-config", so it can be a program name with args.
|
|
|
-set dummy pkg-config; ac_word=$2
|
|
|
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
|
-$as_echo_n "checking for $ac_word... " >&6; }
|
|
|
-if ${ac_cv_path_PKG_CONFIG+:} false; then :
|
|
|
- $as_echo_n "(cached) " >&6
|
|
|
-else
|
|
|
- case $PKG_CONFIG in
|
|
|
- [\\/]* | ?:[\\/]*)
|
|
|
- ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
|
|
|
- ;;
|
|
|
- *)
|
|
|
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
|
-for as_dir in $PATH
|
|
|
-do
|
|
|
- IFS=$as_save_IFS
|
|
|
- test -z "$as_dir" && as_dir=.
|
|
|
- for ac_exec_ext in '' $ac_executable_extensions; do
|
|
|
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
|
- ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
|
|
|
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
|
- break 2
|
|
|
- fi
|
|
|
-done
|
|
|
- done
|
|
|
-IFS=$as_save_IFS
|
|
|
-
|
|
|
- test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
|
|
|
- ;;
|
|
|
-esac
|
|
|
-fi
|
|
|
-PKG_CONFIG=$ac_cv_path_PKG_CONFIG
|
|
|
-if test -n "$PKG_CONFIG"; then
|
|
|
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
|
|
|
-$as_echo "$PKG_CONFIG" >&6; }
|
|
|
-else
|
|
|
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
|
-$as_echo "no" >&6; }
|
|
|
-fi
|
|
|
-
|
|
|
-
|
|
|
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support" >&5
|
|
|
-$as_echo_n "checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support... " >&6; }
|
|
|
- if test x$PKG_CONFIG != xno; then
|
|
|
- if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $FUSIONSOUND_REQUIRED_VERSION fusionsound; then
|
|
|
- FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags fusionsound`
|
|
|
- FUSIONSOUND_LIBS=`$PKG_CONFIG --libs fusionsound`
|
|
|
- fusionsound=yes
|
|
|
- fi
|
|
|
- fi
|
|
|
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound" >&5
|
|
|
-$as_echo "$fusionsound" >&6; }
|
|
|
-
|
|
|
- if test x$fusionsound = xyes; then
|
|
|
-
|
|
|
-$as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
|
|
|
-
|
|
|
- SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
|
|
|
- EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
|
|
|
-
|
|
|
- # Check whether --enable-fusionsound-shared was given.
|
|
|
-if test "${enable_fusionsound_shared+set}" = set; then :
|
|
|
- enableval=$enable_fusionsound_shared;
|
|
|
-else
|
|
|
- enable_fusionsound_shared=yes
|
|
|
-fi
|
|
|
-
|
|
|
- fusionsound_shared=no
|
|
|
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
|
|
|
-$as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
|
|
|
- if test x$have_loadso != xyes && \
|
|
|
- test x$enable_fusionsound_shared = xyes; then
|
|
|
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
|
|
|
-$as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
|
|
|
- fi
|
|
|
- if test x$have_loadso = xyes && \
|
|
|
- test x$enable_fusionsound_shared = xyes; then
|
|
|
-
|
|
|
-cat >>confdefs.h <<_ACEOF
|
|
|
-#define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
|
|
|
-_ACEOF
|
|
|
-
|
|
|
- fusionsound_shared=yes
|
|
|
- SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
|
|
|
- else
|
|
|
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
|
|
|
- SUMMARY_audio="${SUMMARY_audio} fusionsound"
|
|
|
- fi
|
|
|
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
|
|
|
-$as_echo "$fusionsound_shared" >&6; }
|
|
|
-
|
|
|
- have_audio=yes
|
|
|
- fi
|
|
|
- fi
|
|
|
-}
|
|
|
-
|
|
|
CheckDummyVideo()
|
|
|
{
|
|
|
# Check whether --enable-video-dummy was given.
|
|
@@ -23144,9 +23196,10 @@ case "$host" in
|
|
|
CheckESD
|
|
|
CheckNAS
|
|
|
CheckSNDIO
|
|
|
+ CheckFusionSound
|
|
|
+ CheckLibSampleRate
|
|
|
CheckX11
|
|
|
CheckDirectFB
|
|
|
- CheckFusionSound
|
|
|
CheckOpenGLX11
|
|
|
CheckOpenGLESX11
|
|
|
CheckMir
|