|
@@ -706,20 +706,10 @@ RPI_LIBS
|
|
|
RPI_CFLAGS
|
|
|
DECOR_LIBS
|
|
|
DECOR_CFLAGS
|
|
|
-FUSIONSOUND_LIBS
|
|
|
-FUSIONSOUND_CFLAGS
|
|
|
-SNDIO_LIBS
|
|
|
-SNDIO_CFLAGS
|
|
|
-ARTSCONFIG
|
|
|
PULSEAUDIO_LIBS
|
|
|
PULSEAUDIO_CFLAGS
|
|
|
PIPEWIRE_LIBS
|
|
|
PIPEWIRE_CFLAGS
|
|
|
-ESD_CONFIG
|
|
|
-ESD_LIBS
|
|
|
-ESD_CFLAGS
|
|
|
-JACK_LIBS
|
|
|
-JACK_CFLAGS
|
|
|
ALSA_LIBS
|
|
|
ALSA_CFLAGS
|
|
|
ALLOCA
|
|
@@ -878,25 +868,10 @@ with_alsa_prefix
|
|
|
with_alsa_inc_prefix
|
|
|
enable_alsatest
|
|
|
enable_alsa_shared
|
|
|
-enable_jack
|
|
|
-enable_jack_shared
|
|
|
-enable_esd
|
|
|
-with_esd_prefix
|
|
|
-with_esd_exec_prefix
|
|
|
-enable_esdtest
|
|
|
-enable_esd_shared
|
|
|
enable_pipewire
|
|
|
enable_pipewire_shared
|
|
|
enable_pulseaudio
|
|
|
enable_pulseaudio_shared
|
|
|
-enable_arts
|
|
|
-enable_arts_shared
|
|
|
-enable_nas
|
|
|
-enable_nas_shared
|
|
|
-enable_sndio
|
|
|
-enable_sndio_shared
|
|
|
-enable_fusionsound
|
|
|
-enable_fusionsound_shared
|
|
|
enable_diskaudio
|
|
|
enable_dummyaudio
|
|
|
enable_libsamplerate
|
|
@@ -974,18 +949,10 @@ PKG_CONFIG
|
|
|
PKG_CONFIG_PATH
|
|
|
PKG_CONFIG_LIBDIR
|
|
|
CPP
|
|
|
-JACK_CFLAGS
|
|
|
-JACK_LIBS
|
|
|
-ESD_CFLAGS
|
|
|
-ESD_LIBS
|
|
|
PIPEWIRE_CFLAGS
|
|
|
PIPEWIRE_LIBS
|
|
|
PULSEAUDIO_CFLAGS
|
|
|
PULSEAUDIO_LIBS
|
|
|
-SNDIO_CFLAGS
|
|
|
-SNDIO_LIBS
|
|
|
-FUSIONSOUND_CFLAGS
|
|
|
-FUSIONSOUND_LIBS
|
|
|
DECOR_CFLAGS
|
|
|
DECOR_LIBS
|
|
|
RPI_CFLAGS
|
|
@@ -1676,28 +1643,12 @@ Optional Features:
|
|
|
--enable-alsa support the ALSA audio API [default=yes]
|
|
|
--disable-alsatest Do not try to compile and run a test Alsa program
|
|
|
--enable-alsa-shared dynamically load ALSA audio support [default=yes]
|
|
|
- --enable-jack use JACK audio [default=yes]
|
|
|
- --enable-jack-shared dynamically load JACK audio support [default=yes]
|
|
|
- --enable-esd support the Enlightened Sound Daemon [default=yes]
|
|
|
- --disable-esdtest Do not try to compile and run a test ESD program
|
|
|
- --enable-esd-shared dynamically load ESD audio support [default=yes]
|
|
|
--enable-pipewire use Pipewire audio [default=yes]
|
|
|
--enable-pipewire-shared
|
|
|
dynamically load Pipewire support [default=yes]
|
|
|
--enable-pulseaudio use PulseAudio [default=yes]
|
|
|
--enable-pulseaudio-shared
|
|
|
dynamically load PulseAudio support [default=yes]
|
|
|
- --enable-arts support the Analog Real Time Synthesizer
|
|
|
- [default=yes]
|
|
|
- --enable-arts-shared dynamically load aRts audio support [default=yes]
|
|
|
- --enable-nas support the NAS audio API [default=yes]
|
|
|
- --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
|
|
@@ -1799,8 +1750,6 @@ Optional Packages:
|
|
|
compiler's sysroot if not specified).
|
|
|
--with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
|
|
|
--with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
|
|
|
- --with-esd-prefix=PFX Prefix where ESD is installed (optional)
|
|
|
- --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
|
|
|
--with-x use the X Window System
|
|
|
|
|
|
Some influential environment variables:
|
|
@@ -1822,10 +1771,6 @@ Some influential environment variables:
|
|
|
PKG_CONFIG_LIBDIR
|
|
|
path overriding pkg-config's built-in search path
|
|
|
CPP C preprocessor
|
|
|
- JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
|
|
|
- JACK_LIBS linker flags for JACK, overriding pkg-config
|
|
|
- ESD_CFLAGS C compiler flags for ESD, overriding pkg-config
|
|
|
- ESD_LIBS linker flags for ESD, overriding pkg-config
|
|
|
PIPEWIRE_CFLAGS
|
|
|
C compiler flags for PIPEWIRE, overriding pkg-config
|
|
|
PIPEWIRE_LIBS
|
|
@@ -1834,13 +1779,6 @@ Some influential environment variables:
|
|
|
C compiler flags for PULSEAUDIO, overriding pkg-config
|
|
|
PULSEAUDIO_LIBS
|
|
|
linker flags for PULSEAUDIO, overriding pkg-config
|
|
|
- SNDIO_CFLAGS
|
|
|
- C compiler flags for SNDIO, overriding pkg-config
|
|
|
- SNDIO_LIBS linker flags for SNDIO, overriding pkg-config
|
|
|
- FUSIONSOUND_CFLAGS
|
|
|
- C compiler flags for FUSIONSOUND, overriding pkg-config
|
|
|
- FUSIONSOUND_LIBS
|
|
|
- linker flags for FUSIONSOUND, overriding pkg-config
|
|
|
DECOR_CFLAGS
|
|
|
C compiler flags for DECOR, overriding pkg-config
|
|
|
DECOR_LIBS linker flags for DECOR, overriding pkg-config
|
|
@@ -21326,32 +21264,32 @@ printf "%s\n" "#define SDL_AUDIO_DRIVER_ALSA_DYNAMIC \"$alsa_lib\"" >>confdefs.h
|
|
|
fi
|
|
|
}
|
|
|
|
|
|
-CheckJACK()
|
|
|
+CheckPipewire()
|
|
|
{
|
|
|
- # Check whether --enable-jack was given.
|
|
|
-if test ${enable_jack+y}
|
|
|
+ # Check whether --enable-pipewire was given.
|
|
|
+if test ${enable_pipewire+y}
|
|
|
then :
|
|
|
- enableval=$enable_jack;
|
|
|
+ enableval=$enable_pipewire;
|
|
|
else $as_nop
|
|
|
- enable_jack=yes
|
|
|
+ enable_pipewire=yes
|
|
|
fi
|
|
|
|
|
|
- if test x$enable_audio = xyes -a x$enable_jack = xyes; then
|
|
|
+ if test x$enable_audio = xyes -a x$enable_pipewire = xyes; then
|
|
|
|
|
|
pkg_failed=no
|
|
|
-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for jack >= 0.125" >&5
|
|
|
-printf %s "checking for jack >= 0.125... " >&6; }
|
|
|
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpipewire-0.3 >= 0.3.20" >&5
|
|
|
+printf %s "checking for libpipewire-0.3 >= 0.3.20... " >&6; }
|
|
|
|
|
|
-if test -n "$JACK_CFLAGS"; then
|
|
|
- pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
|
|
|
+if test -n "$PIPEWIRE_CFLAGS"; then
|
|
|
+ pkg_cv_PIPEWIRE_CFLAGS="$PIPEWIRE_CFLAGS"
|
|
|
elif test -n "$PKG_CONFIG"; then
|
|
|
if test -n "$PKG_CONFIG" && \
|
|
|
- { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
|
|
|
- ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
|
|
|
+ { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
|
|
|
+ ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
|
|
|
ac_status=$?
|
|
|
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
|
test $ac_status = 0; }; then
|
|
|
- pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.125" 2>/dev/null`
|
|
|
+ pkg_cv_PIPEWIRE_CFLAGS=`$PKG_CONFIG --cflags "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
|
|
|
test "x$?" != "x0" && pkg_failed=yes
|
|
|
else
|
|
|
pkg_failed=yes
|
|
@@ -21359,16 +21297,16 @@ fi
|
|
|
else
|
|
|
pkg_failed=untried
|
|
|
fi
|
|
|
-if test -n "$JACK_LIBS"; then
|
|
|
- pkg_cv_JACK_LIBS="$JACK_LIBS"
|
|
|
+if test -n "$PIPEWIRE_LIBS"; then
|
|
|
+ pkg_cv_PIPEWIRE_LIBS="$PIPEWIRE_LIBS"
|
|
|
elif test -n "$PKG_CONFIG"; then
|
|
|
if test -n "$PKG_CONFIG" && \
|
|
|
- { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
|
|
|
- ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
|
|
|
+ { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
|
|
|
+ ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
|
|
|
ac_status=$?
|
|
|
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
|
test $ac_status = 0; }; then
|
|
|
- pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.125" 2>/dev/null`
|
|
|
+ pkg_cv_PIPEWIRE_LIBS=`$PKG_CONFIG --libs "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
|
|
|
test "x$?" != "x0" && pkg_failed=yes
|
|
|
else
|
|
|
pkg_failed=yes
|
|
@@ -21389,97 +21327,89 @@ else
|
|
|
_pkg_short_errors_supported=no
|
|
|
fi
|
|
|
if test $_pkg_short_errors_supported = yes; then
|
|
|
- JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jack >= 0.125" 2>&1`
|
|
|
+ PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
|
|
|
else
|
|
|
- JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jack >= 0.125" 2>&1`
|
|
|
+ PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
|
|
|
fi
|
|
|
# Put the nasty error message in config.log where it belongs
|
|
|
- echo "$JACK_PKG_ERRORS" >&5
|
|
|
+ echo "$PIPEWIRE_PKG_ERRORS" >&5
|
|
|
|
|
|
- audio_jack=no
|
|
|
+ audio_pipewire=no
|
|
|
elif test $pkg_failed = untried; then
|
|
|
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
|
printf "%s\n" "no" >&6; }
|
|
|
- audio_jack=no
|
|
|
+ audio_pipewire=no
|
|
|
else
|
|
|
- JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
|
|
|
- JACK_LIBS=$pkg_cv_JACK_LIBS
|
|
|
+ PIPEWIRE_CFLAGS=$pkg_cv_PIPEWIRE_CFLAGS
|
|
|
+ PIPEWIRE_LIBS=$pkg_cv_PIPEWIRE_LIBS
|
|
|
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
|
printf "%s\n" "yes" >&6; }
|
|
|
- audio_jack=yes
|
|
|
+ audio_pipewire=yes
|
|
|
fi
|
|
|
|
|
|
- if test x$audio_jack = xyes; then
|
|
|
- # Check whether --enable-jack-shared was given.
|
|
|
-if test ${enable_jack_shared+y}
|
|
|
+ if test x$audio_pipewire = xyes; then
|
|
|
+ # Check whether --enable-pipewire-shared was given.
|
|
|
+if test ${enable_pipewire_shared+y}
|
|
|
then :
|
|
|
- enableval=$enable_jack_shared;
|
|
|
+ enableval=$enable_pipewire_shared;
|
|
|
else $as_nop
|
|
|
- enable_jack_shared=yes
|
|
|
+ enable_pipewire_shared=yes
|
|
|
fi
|
|
|
|
|
|
- jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
|
|
|
+ pipewire_lib=`find_lib "libpipewire-0.3.so.*" "$PIPEWIRE_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
|
|
|
|
|
|
|
|
|
-printf "%s\n" "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
|
|
|
+printf "%s\n" "#define SDL_AUDIO_DRIVER_PIPEWIRE 1" >>confdefs.h
|
|
|
|
|
|
- SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
|
|
|
- EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
|
|
|
+ SOURCES="$SOURCES $srcdir/src/audio/pipewire/*.c"
|
|
|
+ EXTRA_CFLAGS="$EXTRA_CFLAGS $PIPEWIRE_CFLAGS"
|
|
|
if test x$have_loadso != xyes && \
|
|
|
- test x$enable_jack_shared = xyes; then
|
|
|
- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
|
|
|
-printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
|
|
|
+ test x$enable_pipewire_shared = xyes; then
|
|
|
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&5
|
|
|
+printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&2;}
|
|
|
fi
|
|
|
if test x$have_loadso = xyes && \
|
|
|
- test x$enable_jack_shared = xyes && test x$jack_lib != x; then
|
|
|
- echo "-- dynamic libjack -> $jack_lib"
|
|
|
-
|
|
|
-printf "%s\n" "#define SDL_AUDIO_DRIVER_JACK_DYNAMIC \"$jack_lib\"" >>confdefs.h
|
|
|
+ test x$enable_pipewire_shared = xyes && test x$pipewire_lib != x; then
|
|
|
+ echo "-- dynamic libpipewire-0.3 -> $pipewire_lib"
|
|
|
|
|
|
- SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
|
|
|
+printf "%s\n" "#define SDL_AUDIO_DRIVER_PIPEWIRE_DYNAMIC \"$pipewire_lib\"" >>confdefs.h
|
|
|
|
|
|
- case "$host" in
|
|
|
- # On Solaris, jack must be linked deferred explicitly
|
|
|
- # to prevent undefined symbol failures.
|
|
|
- *-*-solaris*)
|
|
|
- JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
|
|
|
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
|
|
|
- esac
|
|
|
+ SUMMARY_audio="${SUMMARY_audio} pipewire(dynamic)"
|
|
|
else
|
|
|
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
|
|
|
- SUMMARY_audio="${SUMMARY_audio} jack"
|
|
|
+ EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PIPEWIRE_LIBS"
|
|
|
+ SUMMARY_audio="${SUMMARY_audio} pipewire"
|
|
|
fi
|
|
|
have_audio=yes
|
|
|
fi
|
|
|
fi
|
|
|
}
|
|
|
|
|
|
-CheckESD()
|
|
|
+CheckPulseAudio()
|
|
|
{
|
|
|
- # Check whether --enable-esd was given.
|
|
|
-if test ${enable_esd+y}
|
|
|
+ # Check whether --enable-pulseaudio was given.
|
|
|
+if test ${enable_pulseaudio+y}
|
|
|
then :
|
|
|
- enableval=$enable_esd;
|
|
|
+ enableval=$enable_pulseaudio;
|
|
|
else $as_nop
|
|
|
- enable_esd=yes
|
|
|
+ enable_pulseaudio=yes
|
|
|
fi
|
|
|
|
|
|
- if test x$enable_audio = xyes -a x$enable_esd = xyes; then
|
|
|
+ if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
|
|
|
|
|
|
pkg_failed=no
|
|
|
-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for esound >= 0.2.8" >&5
|
|
|
-printf %s "checking for esound >= 0.2.8... " >&6; }
|
|
|
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpulse-simple >= 0.9" >&5
|
|
|
+printf %s "checking for libpulse-simple >= 0.9... " >&6; }
|
|
|
|
|
|
-if test -n "$ESD_CFLAGS"; then
|
|
|
- pkg_cv_ESD_CFLAGS="$ESD_CFLAGS"
|
|
|
+if test -n "$PULSEAUDIO_CFLAGS"; then
|
|
|
+ pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
|
|
|
elif test -n "$PKG_CONFIG"; then
|
|
|
if test -n "$PKG_CONFIG" && \
|
|
|
- { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"esound >= 0.2.8\""; } >&5
|
|
|
- ($PKG_CONFIG --exists --print-errors "esound >= 0.2.8") 2>&5
|
|
|
+ { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
|
|
|
+ ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
|
|
|
ac_status=$?
|
|
|
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
|
test $ac_status = 0; }; then
|
|
|
- pkg_cv_ESD_CFLAGS=`$PKG_CONFIG --cflags "esound >= 0.2.8" 2>/dev/null`
|
|
|
+ pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple >= 0.9" 2>/dev/null`
|
|
|
test "x$?" != "x0" && pkg_failed=yes
|
|
|
else
|
|
|
pkg_failed=yes
|
|
@@ -21487,16 +21417,16 @@ fi
|
|
|
else
|
|
|
pkg_failed=untried
|
|
|
fi
|
|
|
-if test -n "$ESD_LIBS"; then
|
|
|
- pkg_cv_ESD_LIBS="$ESD_LIBS"
|
|
|
+if test -n "$PULSEAUDIO_LIBS"; then
|
|
|
+ pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
|
|
|
elif test -n "$PKG_CONFIG"; then
|
|
|
if test -n "$PKG_CONFIG" && \
|
|
|
- { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"esound >= 0.2.8\""; } >&5
|
|
|
- ($PKG_CONFIG --exists --print-errors "esound >= 0.2.8") 2>&5
|
|
|
+ { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
|
|
|
+ ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
|
|
|
ac_status=$?
|
|
|
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
|
test $ac_status = 0; }; then
|
|
|
- pkg_cv_ESD_LIBS=`$PKG_CONFIG --libs "esound >= 0.2.8" 2>/dev/null`
|
|
|
+ pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse-simple >= 0.9" 2>/dev/null`
|
|
|
test "x$?" != "x0" && pkg_failed=yes
|
|
|
else
|
|
|
pkg_failed=yes
|
|
@@ -21517,1155 +21447,178 @@ else
|
|
|
_pkg_short_errors_supported=no
|
|
|
fi
|
|
|
if test $_pkg_short_errors_supported = yes; then
|
|
|
- ESD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "esound >= 0.2.8" 2>&1`
|
|
|
+ PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
|
|
|
else
|
|
|
- ESD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "esound >= 0.2.8" 2>&1`
|
|
|
+ PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
|
|
|
fi
|
|
|
# Put the nasty error message in config.log where it belongs
|
|
|
- echo "$ESD_PKG_ERRORS" >&5
|
|
|
+ echo "$PULSEAUDIO_PKG_ERRORS" >&5
|
|
|
|
|
|
- have_esd=no
|
|
|
+ audio_pulseaudio=no
|
|
|
elif test $pkg_failed = untried; then
|
|
|
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
|
printf "%s\n" "no" >&6; }
|
|
|
- have_esd=no
|
|
|
+ audio_pulseaudio=no
|
|
|
else
|
|
|
- ESD_CFLAGS=$pkg_cv_ESD_CFLAGS
|
|
|
- ESD_LIBS=$pkg_cv_ESD_LIBS
|
|
|
+ PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
|
|
|
+ PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
|
|
|
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
|
printf "%s\n" "yes" >&6; }
|
|
|
- have_esd=yes
|
|
|
+ audio_pulseaudio=yes
|
|
|
fi
|
|
|
- if test x$have_esd = xno; then
|
|
|
|
|
|
-# Check whether --with-esd-prefix was given.
|
|
|
-if test ${with_esd_prefix+y}
|
|
|
+ if test x$audio_pulseaudio = xyes; then
|
|
|
+ # Check whether --enable-pulseaudio-shared was given.
|
|
|
+if test ${enable_pulseaudio_shared+y}
|
|
|
then :
|
|
|
- withval=$with_esd_prefix; esd_prefix="$withval"
|
|
|
+ enableval=$enable_pulseaudio_shared;
|
|
|
else $as_nop
|
|
|
- esd_prefix=""
|
|
|
+ enable_pulseaudio_shared=yes
|
|
|
fi
|
|
|
|
|
|
+ pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
|
|
|
+
|
|
|
+
|
|
|
+printf "%s\n" "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
|
|
|
+
|
|
|
+ SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
|
|
|
+ EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
|
|
|
+ if test x$have_loadso != xyes && \
|
|
|
+ test x$enable_pulseaudio_shared = xyes; then
|
|
|
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
|
|
|
+printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
|
|
|
+ fi
|
|
|
+ if test x$have_loadso = xyes && \
|
|
|
+ test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
|
|
|
+ echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
|
|
|
+
|
|
|
+printf "%s\n" "#define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC \"$pulseaudio_lib\"" >>confdefs.h
|
|
|
+
|
|
|
+ SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
|
|
|
+
|
|
|
+ case "$host" in
|
|
|
+ # On Solaris, pulseaudio must be linked deferred explicitly
|
|
|
+ # to prevent undefined symbol failures.
|
|
|
+ *-*-solaris*)
|
|
|
+ PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
|
|
|
+ EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
|
|
|
+ esac
|
|
|
+ else
|
|
|
+ EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
|
|
|
+ SUMMARY_audio="${SUMMARY_audio} pulse"
|
|
|
+ fi
|
|
|
+ have_audio=yes
|
|
|
+ fi
|
|
|
+ fi
|
|
|
+}
|
|
|
|
|
|
-# Check whether --with-esd-exec-prefix was given.
|
|
|
-if test ${with_esd_exec_prefix+y}
|
|
|
+CheckDiskAudio()
|
|
|
+{
|
|
|
+ # Check whether --enable-diskaudio was given.
|
|
|
+if test ${enable_diskaudio+y}
|
|
|
then :
|
|
|
- withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
|
|
|
+ enableval=$enable_diskaudio;
|
|
|
else $as_nop
|
|
|
- esd_exec_prefix=""
|
|
|
+ enable_diskaudio=yes
|
|
|
fi
|
|
|
|
|
|
-# Check whether --enable-esdtest was given.
|
|
|
-if test ${enable_esdtest+y}
|
|
|
+ if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
|
|
|
+
|
|
|
+printf "%s\n" "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
|
|
|
+
|
|
|
+ SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
|
|
|
+ SUMMARY_audio="${SUMMARY_audio} disk"
|
|
|
+ have_audio=yes
|
|
|
+ fi
|
|
|
+}
|
|
|
+
|
|
|
+CheckDummyAudio()
|
|
|
+{
|
|
|
+ # Check whether --enable-dummyaudio was given.
|
|
|
+if test ${enable_dummyaudio+y}
|
|
|
then :
|
|
|
- enableval=$enable_esdtest;
|
|
|
+ enableval=$enable_dummyaudio;
|
|
|
else $as_nop
|
|
|
- enable_esdtest=yes
|
|
|
+ enable_dummyaudio=yes
|
|
|
fi
|
|
|
|
|
|
+ if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
|
|
|
|
|
|
- if test x$esd_exec_prefix != x ; then
|
|
|
- esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
|
|
|
- if test x${ESD_CONFIG+set} != xset ; then
|
|
|
- ESD_CONFIG=$esd_exec_prefix/bin/esd-config
|
|
|
- fi
|
|
|
- fi
|
|
|
- if test x$esd_prefix != x ; then
|
|
|
- esd_args="$esd_args --prefix=$esd_prefix"
|
|
|
- if test x${ESD_CONFIG+set} != xset ; then
|
|
|
- ESD_CONFIG=$esd_prefix/bin/esd-config
|
|
|
- fi
|
|
|
- fi
|
|
|
+printf "%s\n" "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
|
|
|
|
|
|
- # Extract the first word of "esd-config", so it can be a program name with args.
|
|
|
-set dummy esd-config; ac_word=$2
|
|
|
-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
|
-printf %s "checking for $ac_word... " >&6; }
|
|
|
-if test ${ac_cv_path_ESD_CONFIG+y}
|
|
|
+ SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
|
|
|
+ SUMMARY_audio="${SUMMARY_audio} dummy"
|
|
|
+ have_audio=yes
|
|
|
+ fi
|
|
|
+}
|
|
|
+
|
|
|
+CheckLibSampleRate()
|
|
|
+{
|
|
|
+ # Check whether --enable-libsamplerate was given.
|
|
|
+if test ${enable_libsamplerate+y}
|
|
|
then :
|
|
|
- printf %s "(cached) " >&6
|
|
|
+ enableval=$enable_libsamplerate;
|
|
|
else $as_nop
|
|
|
- case $ESD_CONFIG in
|
|
|
- [\\/]* | ?:[\\/]*)
|
|
|
- ac_cv_path_ESD_CONFIG="$ESD_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
|
|
|
- case $as_dir in #(((
|
|
|
- '') as_dir=./ ;;
|
|
|
- */) ;;
|
|
|
- *) as_dir=$as_dir/ ;;
|
|
|
- esac
|
|
|
- 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_ESD_CONFIG="$as_dir$ac_word$ac_exec_ext"
|
|
|
- printf "%s\n" "$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_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
|
|
|
- ;;
|
|
|
-esac
|
|
|
+ enable_libsamplerate=yes
|
|
|
fi
|
|
|
-ESD_CONFIG=$ac_cv_path_ESD_CONFIG
|
|
|
-if test -n "$ESD_CONFIG"; then
|
|
|
- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
|
|
|
-printf "%s\n" "$ESD_CONFIG" >&6; }
|
|
|
-else
|
|
|
- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
|
-printf "%s\n" "no" >&6; }
|
|
|
+
|
|
|
+ if test x$enable_libsamplerate = xyes; then
|
|
|
+ ac_fn_c_check_header_compile "$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 $as_nop
|
|
|
+ have_samplerate_h_hdr=no
|
|
|
fi
|
|
|
|
|
|
+ if test x$have_samplerate_h_hdr = xyes; then
|
|
|
|
|
|
- min_esd_version=0.2.8
|
|
|
- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
|
|
|
-printf %s "checking for ESD - version >= $min_esd_version... " >&6; }
|
|
|
- no_esd=""
|
|
|
- if test "$ESD_CONFIG" = "no" ; then
|
|
|
- no_esd=yes
|
|
|
- else
|
|
|
- ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
|
|
|
- ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
|
|
|
+printf "%s\n" "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
|
|
|
|
|
|
- esd_major_version=`$ESD_CONFIG $esd_args --version | \
|
|
|
- sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
|
|
|
- esd_minor_version=`$ESD_CONFIG $esd_args --version | \
|
|
|
- sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
|
|
|
- esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
|
|
|
- sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
|
|
|
- if test "x$enable_esdtest" = "xyes" ; then
|
|
|
- ac_ext=c
|
|
|
-ac_cpp='$CPP $CPPFLAGS'
|
|
|
-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
|
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
|
-ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
|
|
|
|
- ac_save_CFLAGS="$CFLAGS"
|
|
|
- ac_save_LIBS="$LIBS"
|
|
|
- CFLAGS="$CFLAGS $ESD_CFLAGS"
|
|
|
- LIBS="$LIBS $ESD_LIBS"
|
|
|
- rm -f conf.esdtest
|
|
|
- if test "$cross_compiling" = yes
|
|
|
+ # Check whether --enable-libsamplerate-shared was given.
|
|
|
+if test ${enable_libsamplerate_shared+y}
|
|
|
then :
|
|
|
- echo $ac_n "cross compiling; assumed OK... $ac_c"
|
|
|
+ enableval=$enable_libsamplerate_shared;
|
|
|
else $as_nop
|
|
|
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
|
-/* end confdefs.h. */
|
|
|
+ enable_libsamplerate_shared=yes
|
|
|
+fi
|
|
|
|
|
|
-#include <stdio.h>
|
|
|
-#include <stdlib.h>
|
|
|
-#include <esd.h>
|
|
|
|
|
|
-int main (void)
|
|
|
-{
|
|
|
- int major, minor, micro;
|
|
|
- FILE *fp = fopen("conf.esdtest", "w");
|
|
|
+ samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
|
|
|
|
|
|
- if (fp) fclose(fp);
|
|
|
+ if test x$have_loadso != xyes && \
|
|
|
+ test x$enable_libsamplerate_shared = xyes; then
|
|
|
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
|
|
|
+printf "%s\n" "$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"
|
|
|
|
|
|
- if (sscanf("$min_esd_version", "%d.%d.%d", &major, &minor, µ) != 3) {
|
|
|
- printf("%s, bad version string\n", "$min_esd_version");
|
|
|
- exit(1);
|
|
|
- }
|
|
|
+printf "%s\n" "#define SDL_LIBSAMPLERATE_DYNAMIC \"$samplerate_lib\"" >>confdefs.h
|
|
|
|
|
|
- if (($esd_major_version > major) ||
|
|
|
- (($esd_major_version == major) && ($esd_minor_version > minor)) ||
|
|
|
- (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
|
|
|
- {
|
|
|
- return 0;
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
|
|
|
- printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
|
|
|
- printf("*** best to upgrade to the required version.\n");
|
|
|
- printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
|
|
|
- printf("*** to point to the correct copy of esd-config, and remove the file\n");
|
|
|
- printf("*** config.cache before re-running configure\n");
|
|
|
- return 1;
|
|
|
- }
|
|
|
+ else
|
|
|
+ EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
|
|
|
+ fi
|
|
|
+ fi
|
|
|
+ fi
|
|
|
}
|
|
|
|
|
|
-_ACEOF
|
|
|
-if ac_fn_c_try_run "$LINENO"
|
|
|
+CheckARM()
|
|
|
+{
|
|
|
+ # Check whether --enable-arm-simd was given.
|
|
|
+if test ${enable_arm_simd+y}
|
|
|
then :
|
|
|
-
|
|
|
+ enableval=$enable_arm_simd; enable_arm_simd=$enableval
|
|
|
else $as_nop
|
|
|
- no_esd=yes
|
|
|
-fi
|
|
|
-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
|
|
- conftest.$ac_objext conftest.beam conftest.$ac_ext
|
|
|
+ enable_arm_simd=no
|
|
|
fi
|
|
|
|
|
|
- CFLAGS="$ac_save_CFLAGS"
|
|
|
- LIBS="$ac_save_LIBS"
|
|
|
- ac_ext=c
|
|
|
-ac_cpp='$CPP $CPPFLAGS'
|
|
|
-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
|
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
|
-ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
|
-
|
|
|
- fi
|
|
|
- fi
|
|
|
- if test "x$no_esd" = x ; then
|
|
|
- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
|
-printf "%s\n" "yes" >&6; }
|
|
|
- have_esd=yes
|
|
|
- else
|
|
|
- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
|
-printf "%s\n" "no" >&6; }
|
|
|
- if test "$ESD_CONFIG" = "no" ; then
|
|
|
- :
|
|
|
- else
|
|
|
- if test -f conf.esdtest ; then
|
|
|
- :
|
|
|
- else
|
|
|
- echo "*** Could not run ESD test program, checking why..."
|
|
|
- CFLAGS="$CFLAGS $ESD_CFLAGS"
|
|
|
- LIBS="$LIBS $ESD_LIBS"
|
|
|
- ac_ext=c
|
|
|
-ac_cpp='$CPP $CPPFLAGS'
|
|
|
-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
|
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
|
-ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
|
-
|
|
|
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
|
-/* end confdefs.h. */
|
|
|
-
|
|
|
-#include <stdio.h>
|
|
|
-#include <esd.h>
|
|
|
-
|
|
|
-int
|
|
|
-main (void)
|
|
|
-{
|
|
|
- return 0;
|
|
|
- ;
|
|
|
- return 0;
|
|
|
-}
|
|
|
-_ACEOF
|
|
|
-if ac_fn_c_try_link "$LINENO"
|
|
|
-then :
|
|
|
- echo "*** The test program compiled, but did not run. This usually means"
|
|
|
- echo "*** that the run-time linker is not finding ESD or finding the wrong"
|
|
|
- echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
|
|
|
- echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
|
|
|
- echo "*** to the installed location Also, make sure you have run ldconfig if that"
|
|
|
- echo "*** is required on your system"
|
|
|
- echo "***"
|
|
|
- echo "*** If you have an old version installed, it is best to remove it, although"
|
|
|
- echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
|
|
|
-else $as_nop
|
|
|
- echo "*** The test program failed to compile or link. See the file config.log for the"
|
|
|
- echo "*** exact error that occured. This usually means ESD was incorrectly installed"
|
|
|
- echo "*** or that you have moved ESD since it was installed. In the latter case, you"
|
|
|
- echo "*** may want to edit the esd-config script: $ESD_CONFIG"
|
|
|
-fi
|
|
|
-rm -f core conftest.err conftest.$ac_objext conftest.beam \
|
|
|
- conftest$ac_exeext conftest.$ac_ext
|
|
|
- CFLAGS="$ac_save_CFLAGS"
|
|
|
- LIBS="$ac_save_LIBS"
|
|
|
- ac_ext=c
|
|
|
-ac_cpp='$CPP $CPPFLAGS'
|
|
|
-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
|
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
|
-ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
|
-
|
|
|
- fi
|
|
|
- fi
|
|
|
- ESD_CFLAGS=""
|
|
|
- ESD_LIBS=""
|
|
|
- have_esd=no
|
|
|
- fi
|
|
|
-
|
|
|
-
|
|
|
- rm -f conf.esdtest
|
|
|
-
|
|
|
- fi
|
|
|
- if test x$have_esd = xyes; then
|
|
|
- # Check whether --enable-esd-shared was given.
|
|
|
-if test ${enable_esd_shared+y}
|
|
|
-then :
|
|
|
- enableval=$enable_esd_shared;
|
|
|
-else $as_nop
|
|
|
- enable_esd_shared=yes
|
|
|
-fi
|
|
|
-
|
|
|
- esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
|
|
|
-
|
|
|
-
|
|
|
-printf "%s\n" "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
|
|
|
-
|
|
|
- SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
|
|
|
- EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
|
|
|
- if test x$have_loadso != xyes && \
|
|
|
- test x$enable_esd_shared = xyes; then
|
|
|
- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
|
|
|
-printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
|
|
|
- fi
|
|
|
- if test x$have_loadso = xyes && \
|
|
|
- test x$enable_esd_shared = xyes && test x$esd_lib != x; then
|
|
|
- echo "-- dynamic libesd -> $esd_lib"
|
|
|
-
|
|
|
-printf "%s\n" "#define SDL_AUDIO_DRIVER_ESD_DYNAMIC \"$esd_lib\"" >>confdefs.h
|
|
|
-
|
|
|
- SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
|
|
|
- else
|
|
|
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
|
|
|
- SUMMARY_audio="${SUMMARY_audio} esd"
|
|
|
- fi
|
|
|
- have_audio=yes
|
|
|
- fi
|
|
|
- fi
|
|
|
-}
|
|
|
-
|
|
|
-CheckPipewire()
|
|
|
-{
|
|
|
- # Check whether --enable-pipewire was given.
|
|
|
-if test ${enable_pipewire+y}
|
|
|
-then :
|
|
|
- enableval=$enable_pipewire;
|
|
|
-else $as_nop
|
|
|
- enable_pipewire=yes
|
|
|
-fi
|
|
|
-
|
|
|
- if test x$enable_audio = xyes -a x$enable_pipewire = xyes; then
|
|
|
-
|
|
|
-pkg_failed=no
|
|
|
-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpipewire-0.3 >= 0.3.20" >&5
|
|
|
-printf %s "checking for libpipewire-0.3 >= 0.3.20... " >&6; }
|
|
|
-
|
|
|
-if test -n "$PIPEWIRE_CFLAGS"; then
|
|
|
- pkg_cv_PIPEWIRE_CFLAGS="$PIPEWIRE_CFLAGS"
|
|
|
- elif test -n "$PKG_CONFIG"; then
|
|
|
- if test -n "$PKG_CONFIG" && \
|
|
|
- { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
|
|
|
- ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
|
|
|
- ac_status=$?
|
|
|
- printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
|
- test $ac_status = 0; }; then
|
|
|
- pkg_cv_PIPEWIRE_CFLAGS=`$PKG_CONFIG --cflags "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
|
|
|
- test "x$?" != "x0" && pkg_failed=yes
|
|
|
-else
|
|
|
- pkg_failed=yes
|
|
|
-fi
|
|
|
- else
|
|
|
- pkg_failed=untried
|
|
|
-fi
|
|
|
-if test -n "$PIPEWIRE_LIBS"; then
|
|
|
- pkg_cv_PIPEWIRE_LIBS="$PIPEWIRE_LIBS"
|
|
|
- elif test -n "$PKG_CONFIG"; then
|
|
|
- if test -n "$PKG_CONFIG" && \
|
|
|
- { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
|
|
|
- ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
|
|
|
- ac_status=$?
|
|
|
- printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
|
- test $ac_status = 0; }; then
|
|
|
- pkg_cv_PIPEWIRE_LIBS=`$PKG_CONFIG --libs "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
|
|
|
- test "x$?" != "x0" && pkg_failed=yes
|
|
|
-else
|
|
|
- pkg_failed=yes
|
|
|
-fi
|
|
|
- else
|
|
|
- pkg_failed=untried
|
|
|
-fi
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-if test $pkg_failed = yes; then
|
|
|
- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
|
-printf "%s\n" "no" >&6; }
|
|
|
-
|
|
|
-if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
|
|
|
- _pkg_short_errors_supported=yes
|
|
|
-else
|
|
|
- _pkg_short_errors_supported=no
|
|
|
-fi
|
|
|
- if test $_pkg_short_errors_supported = yes; then
|
|
|
- PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
|
|
|
- else
|
|
|
- PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
|
|
|
- fi
|
|
|
- # Put the nasty error message in config.log where it belongs
|
|
|
- echo "$PIPEWIRE_PKG_ERRORS" >&5
|
|
|
-
|
|
|
- audio_pipewire=no
|
|
|
-elif test $pkg_failed = untried; then
|
|
|
- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
|
-printf "%s\n" "no" >&6; }
|
|
|
- audio_pipewire=no
|
|
|
-else
|
|
|
- PIPEWIRE_CFLAGS=$pkg_cv_PIPEWIRE_CFLAGS
|
|
|
- PIPEWIRE_LIBS=$pkg_cv_PIPEWIRE_LIBS
|
|
|
- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
|
-printf "%s\n" "yes" >&6; }
|
|
|
- audio_pipewire=yes
|
|
|
-fi
|
|
|
-
|
|
|
- if test x$audio_pipewire = xyes; then
|
|
|
- # Check whether --enable-pipewire-shared was given.
|
|
|
-if test ${enable_pipewire_shared+y}
|
|
|
-then :
|
|
|
- enableval=$enable_pipewire_shared;
|
|
|
-else $as_nop
|
|
|
- enable_pipewire_shared=yes
|
|
|
-fi
|
|
|
-
|
|
|
- pipewire_lib=`find_lib "libpipewire-0.3.so.*" "$PIPEWIRE_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
|
|
|
-
|
|
|
-
|
|
|
-printf "%s\n" "#define SDL_AUDIO_DRIVER_PIPEWIRE 1" >>confdefs.h
|
|
|
-
|
|
|
- SOURCES="$SOURCES $srcdir/src/audio/pipewire/*.c"
|
|
|
- EXTRA_CFLAGS="$EXTRA_CFLAGS $PIPEWIRE_CFLAGS"
|
|
|
- if test x$have_loadso != xyes && \
|
|
|
- test x$enable_pipewire_shared = xyes; then
|
|
|
- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&5
|
|
|
-printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&2;}
|
|
|
- fi
|
|
|
- if test x$have_loadso = xyes && \
|
|
|
- test x$enable_pipewire_shared = xyes && test x$pipewire_lib != x; then
|
|
|
- echo "-- dynamic libpipewire-0.3 -> $pipewire_lib"
|
|
|
-
|
|
|
-printf "%s\n" "#define SDL_AUDIO_DRIVER_PIPEWIRE_DYNAMIC \"$pipewire_lib\"" >>confdefs.h
|
|
|
-
|
|
|
- SUMMARY_audio="${SUMMARY_audio} pipewire(dynamic)"
|
|
|
- else
|
|
|
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PIPEWIRE_LIBS"
|
|
|
- SUMMARY_audio="${SUMMARY_audio} pipewire"
|
|
|
- fi
|
|
|
- have_audio=yes
|
|
|
- fi
|
|
|
- fi
|
|
|
-}
|
|
|
-
|
|
|
-CheckPulseAudio()
|
|
|
-{
|
|
|
- # Check whether --enable-pulseaudio was given.
|
|
|
-if test ${enable_pulseaudio+y}
|
|
|
-then :
|
|
|
- enableval=$enable_pulseaudio;
|
|
|
-else $as_nop
|
|
|
- enable_pulseaudio=yes
|
|
|
-fi
|
|
|
-
|
|
|
- if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
|
|
|
-
|
|
|
-pkg_failed=no
|
|
|
-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpulse-simple >= 0.9" >&5
|
|
|
-printf %s "checking for libpulse-simple >= 0.9... " >&6; }
|
|
|
-
|
|
|
-if test -n "$PULSEAUDIO_CFLAGS"; then
|
|
|
- pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
|
|
|
- elif test -n "$PKG_CONFIG"; then
|
|
|
- if test -n "$PKG_CONFIG" && \
|
|
|
- { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
|
|
|
- ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
|
|
|
- ac_status=$?
|
|
|
- printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
|
- test $ac_status = 0; }; then
|
|
|
- pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple >= 0.9" 2>/dev/null`
|
|
|
- test "x$?" != "x0" && pkg_failed=yes
|
|
|
-else
|
|
|
- pkg_failed=yes
|
|
|
-fi
|
|
|
- else
|
|
|
- pkg_failed=untried
|
|
|
-fi
|
|
|
-if test -n "$PULSEAUDIO_LIBS"; then
|
|
|
- pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
|
|
|
- elif test -n "$PKG_CONFIG"; then
|
|
|
- if test -n "$PKG_CONFIG" && \
|
|
|
- { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
|
|
|
- ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
|
|
|
- ac_status=$?
|
|
|
- printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
|
- test $ac_status = 0; }; then
|
|
|
- pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse-simple >= 0.9" 2>/dev/null`
|
|
|
- test "x$?" != "x0" && pkg_failed=yes
|
|
|
-else
|
|
|
- pkg_failed=yes
|
|
|
-fi
|
|
|
- else
|
|
|
- pkg_failed=untried
|
|
|
-fi
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-if test $pkg_failed = yes; then
|
|
|
- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
|
-printf "%s\n" "no" >&6; }
|
|
|
-
|
|
|
-if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
|
|
|
- _pkg_short_errors_supported=yes
|
|
|
-else
|
|
|
- _pkg_short_errors_supported=no
|
|
|
-fi
|
|
|
- if test $_pkg_short_errors_supported = yes; then
|
|
|
- PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
|
|
|
- else
|
|
|
- PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
|
|
|
- fi
|
|
|
- # Put the nasty error message in config.log where it belongs
|
|
|
- echo "$PULSEAUDIO_PKG_ERRORS" >&5
|
|
|
-
|
|
|
- audio_pulseaudio=no
|
|
|
-elif test $pkg_failed = untried; then
|
|
|
- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
|
-printf "%s\n" "no" >&6; }
|
|
|
- audio_pulseaudio=no
|
|
|
-else
|
|
|
- PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
|
|
|
- PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
|
|
|
- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
|
-printf "%s\n" "yes" >&6; }
|
|
|
- audio_pulseaudio=yes
|
|
|
-fi
|
|
|
-
|
|
|
- if test x$audio_pulseaudio = xyes; then
|
|
|
- # Check whether --enable-pulseaudio-shared was given.
|
|
|
-if test ${enable_pulseaudio_shared+y}
|
|
|
-then :
|
|
|
- enableval=$enable_pulseaudio_shared;
|
|
|
-else $as_nop
|
|
|
- enable_pulseaudio_shared=yes
|
|
|
-fi
|
|
|
-
|
|
|
- pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
|
|
|
-
|
|
|
-
|
|
|
-printf "%s\n" "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
|
|
|
-
|
|
|
- SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
|
|
|
- EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
|
|
|
- if test x$have_loadso != xyes && \
|
|
|
- test x$enable_pulseaudio_shared = xyes; then
|
|
|
- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
|
|
|
-printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
|
|
|
- fi
|
|
|
- if test x$have_loadso = xyes && \
|
|
|
- test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
|
|
|
- echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
|
|
|
-
|
|
|
-printf "%s\n" "#define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC \"$pulseaudio_lib\"" >>confdefs.h
|
|
|
-
|
|
|
- SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
|
|
|
-
|
|
|
- case "$host" in
|
|
|
- # On Solaris, pulseaudio must be linked deferred explicitly
|
|
|
- # to prevent undefined symbol failures.
|
|
|
- *-*-solaris*)
|
|
|
- PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
|
|
|
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
|
|
|
- esac
|
|
|
- else
|
|
|
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
|
|
|
- SUMMARY_audio="${SUMMARY_audio} pulse"
|
|
|
- fi
|
|
|
- have_audio=yes
|
|
|
- fi
|
|
|
- fi
|
|
|
-}
|
|
|
-
|
|
|
-CheckARTSC()
|
|
|
-{
|
|
|
- # Check whether --enable-arts was given.
|
|
|
-if test ${enable_arts+y}
|
|
|
-then :
|
|
|
- enableval=$enable_arts;
|
|
|
-else $as_nop
|
|
|
- enable_arts=yes
|
|
|
-fi
|
|
|
-
|
|
|
- if test x$enable_audio = xyes -a x$enable_arts = xyes; then
|
|
|
- # Extract the first word of "artsc-config", so it can be a program name with args.
|
|
|
-set dummy artsc-config; ac_word=$2
|
|
|
-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
|
-printf %s "checking for $ac_word... " >&6; }
|
|
|
-if test ${ac_cv_path_ARTSCONFIG+y}
|
|
|
-then :
|
|
|
- printf %s "(cached) " >&6
|
|
|
-else $as_nop
|
|
|
- case $ARTSCONFIG in
|
|
|
- [\\/]* | ?:[\\/]*)
|
|
|
- ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # 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
|
|
|
- case $as_dir in #(((
|
|
|
- '') as_dir=./ ;;
|
|
|
- */) ;;
|
|
|
- *) as_dir=$as_dir/ ;;
|
|
|
- esac
|
|
|
- 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_ARTSCONFIG="$as_dir$ac_word$ac_exec_ext"
|
|
|
- printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
|
|
- break 2
|
|
|
- fi
|
|
|
-done
|
|
|
- done
|
|
|
-IFS=$as_save_IFS
|
|
|
-
|
|
|
- ;;
|
|
|
-esac
|
|
|
-fi
|
|
|
-ARTSCONFIG=$ac_cv_path_ARTSCONFIG
|
|
|
-if test -n "$ARTSCONFIG"; then
|
|
|
- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
|
|
|
-printf "%s\n" "$ARTSCONFIG" >&6; }
|
|
|
-else
|
|
|
- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
|
-printf "%s\n" "no" >&6; }
|
|
|
-fi
|
|
|
-
|
|
|
-
|
|
|
- if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
|
|
|
- : # arts isn't installed
|
|
|
- else
|
|
|
- ARTS_CFLAGS=`$ARTSCONFIG --cflags`
|
|
|
- ARTS_LIBS=`$ARTSCONFIG --libs`
|
|
|
- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
|
|
|
-printf %s "checking for aRts development environment... " >&6; }
|
|
|
- audio_arts=no
|
|
|
- save_CFLAGS="$CFLAGS"
|
|
|
- CFLAGS="$CFLAGS $ARTS_CFLAGS"
|
|
|
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
|
-/* end confdefs.h. */
|
|
|
-
|
|
|
- #include <artsc.h>
|
|
|
-
|
|
|
-int
|
|
|
-main (void)
|
|
|
-{
|
|
|
-
|
|
|
- arts_stream_t stream;
|
|
|
-
|
|
|
- ;
|
|
|
- return 0;
|
|
|
-}
|
|
|
-_ACEOF
|
|
|
-if ac_fn_c_try_compile "$LINENO"
|
|
|
-then :
|
|
|
- audio_arts=yes
|
|
|
-fi
|
|
|
-rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
|
|
|
- CFLAGS="$save_CFLAGS"
|
|
|
- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
|
|
|
-printf "%s\n" "$audio_arts" >&6; }
|
|
|
- if test x$audio_arts = xyes; then
|
|
|
- # Check whether --enable-arts-shared was given.
|
|
|
-if test ${enable_arts_shared+y}
|
|
|
-then :
|
|
|
- enableval=$enable_arts_shared;
|
|
|
-else $as_nop
|
|
|
- enable_arts_shared=yes
|
|
|
-fi
|
|
|
-
|
|
|
- arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
|
|
|
-
|
|
|
-
|
|
|
-printf "%s\n" "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
|
|
|
-
|
|
|
- SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
|
|
|
- EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
|
|
|
- if test x$have_loadso != xyes && \
|
|
|
- test x$enable_arts_shared = xyes; then
|
|
|
- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
|
|
|
-printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
|
|
|
- fi
|
|
|
- if test x$have_loadso = xyes && \
|
|
|
- test x$enable_arts_shared = xyes && test x$arts_lib != x; then
|
|
|
- echo "-- dynamic libartsc -> $arts_lib"
|
|
|
-
|
|
|
-printf "%s\n" "#define SDL_AUDIO_DRIVER_ARTS_DYNAMIC \"$arts_lib\"" >>confdefs.h
|
|
|
-
|
|
|
- SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
|
|
|
- else
|
|
|
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
|
|
|
- SUMMARY_audio="${SUMMARY_audio} arts"
|
|
|
- fi
|
|
|
- have_audio=yes
|
|
|
- fi
|
|
|
- fi
|
|
|
- fi
|
|
|
-}
|
|
|
-
|
|
|
-CheckNAS()
|
|
|
-{
|
|
|
- # Check whether --enable-nas was given.
|
|
|
-if test ${enable_nas+y}
|
|
|
-then :
|
|
|
- enableval=$enable_nas;
|
|
|
-else $as_nop
|
|
|
- enable_nas=yes
|
|
|
-fi
|
|
|
-
|
|
|
- if test x$enable_audio = xyes -a x$enable_nas = xyes; then
|
|
|
- ac_fn_c_check_header_compile "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
|
|
|
-if test "x$ac_cv_header_audio_audiolib_h" = xyes
|
|
|
-then :
|
|
|
- have_nas_hdr=yes
|
|
|
-fi
|
|
|
-
|
|
|
- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
|
|
|
-printf %s "checking for AuOpenServer in -laudio... " >&6; }
|
|
|
-if test ${ac_cv_lib_audio_AuOpenServer+y}
|
|
|
-then :
|
|
|
- printf %s "(cached) " >&6
|
|
|
-else $as_nop
|
|
|
- ac_check_lib_save_LIBS=$LIBS
|
|
|
-LIBS="-laudio $LIBS"
|
|
|
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
|
-/* end confdefs.h. */
|
|
|
-
|
|
|
-/* Override any GCC internal prototype to avoid an error.
|
|
|
- Use char because int might match the return type of a GCC
|
|
|
- builtin and then its argument prototype would still apply. */
|
|
|
-char AuOpenServer ();
|
|
|
-int
|
|
|
-main (void)
|
|
|
-{
|
|
|
-return AuOpenServer ();
|
|
|
- ;
|
|
|
- return 0;
|
|
|
-}
|
|
|
-_ACEOF
|
|
|
-if ac_fn_c_try_link "$LINENO"
|
|
|
-then :
|
|
|
- ac_cv_lib_audio_AuOpenServer=yes
|
|
|
-else $as_nop
|
|
|
- ac_cv_lib_audio_AuOpenServer=no
|
|
|
-fi
|
|
|
-rm -f core conftest.err conftest.$ac_objext conftest.beam \
|
|
|
- conftest$ac_exeext conftest.$ac_ext
|
|
|
-LIBS=$ac_check_lib_save_LIBS
|
|
|
-fi
|
|
|
-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
|
|
|
-printf "%s\n" "$ac_cv_lib_audio_AuOpenServer" >&6; }
|
|
|
-if test "x$ac_cv_lib_audio_AuOpenServer" = xyes
|
|
|
-then :
|
|
|
- have_nas_lib=yes
|
|
|
-fi
|
|
|
-
|
|
|
-
|
|
|
- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
|
|
|
-printf %s "checking for NAS audio support... " >&6; }
|
|
|
- have_nas=no
|
|
|
-
|
|
|
- if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
|
|
|
- have_nas=yes
|
|
|
- NAS_LIBS="-laudio"
|
|
|
-
|
|
|
- elif test -r /usr/X11R6/include/audio/audiolib.h; then
|
|
|
- have_nas=yes
|
|
|
- NAS_CFLAGS="-I/usr/X11R6/include/"
|
|
|
- NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
|
|
|
-
|
|
|
- fi
|
|
|
-
|
|
|
- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
|
|
|
-printf "%s\n" "$have_nas" >&6; }
|
|
|
-
|
|
|
- if test x$have_nas = xyes; then
|
|
|
- # Check whether --enable-nas-shared was given.
|
|
|
-if test ${enable_nas_shared+y}
|
|
|
-then :
|
|
|
- enableval=$enable_nas_shared;
|
|
|
-else $as_nop
|
|
|
- enable_nas_shared=yes
|
|
|
-fi
|
|
|
-
|
|
|
- nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
|
|
|
-
|
|
|
- if test x$have_loadso != xyes && \
|
|
|
- test x$enable_nas_shared = xyes; then
|
|
|
- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
|
|
|
-printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
|
|
|
- fi
|
|
|
- if test x$have_loadso = xyes && \
|
|
|
- test x$enable_nas_shared = xyes && test x$nas_lib != x; then
|
|
|
- echo "-- dynamic libaudio -> $nas_lib"
|
|
|
-
|
|
|
-printf "%s\n" "#define SDL_AUDIO_DRIVER_NAS_DYNAMIC \"$nas_lib\"" >>confdefs.h
|
|
|
-
|
|
|
- SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
|
|
|
- else
|
|
|
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
|
|
|
- SUMMARY_audio="${SUMMARY_audio} nas"
|
|
|
- fi
|
|
|
-
|
|
|
-
|
|
|
-printf "%s\n" "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
|
|
|
-
|
|
|
- SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
|
|
|
- EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
|
|
|
- have_audio=yes
|
|
|
- fi
|
|
|
- fi
|
|
|
-}
|
|
|
-
|
|
|
-CheckSNDIO()
|
|
|
-{
|
|
|
- # Check whether --enable-sndio was given.
|
|
|
-if test ${enable_sndio+y}
|
|
|
-then :
|
|
|
- enableval=$enable_sndio;
|
|
|
-else $as_nop
|
|
|
- enable_sndio=yes
|
|
|
-fi
|
|
|
-
|
|
|
- if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
|
|
|
-
|
|
|
-pkg_failed=no
|
|
|
-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sndio" >&5
|
|
|
-printf %s "checking for sndio... " >&6; }
|
|
|
-
|
|
|
-if test -n "$SNDIO_CFLAGS"; then
|
|
|
- pkg_cv_SNDIO_CFLAGS="$SNDIO_CFLAGS"
|
|
|
- elif test -n "$PKG_CONFIG"; then
|
|
|
- if test -n "$PKG_CONFIG" && \
|
|
|
- { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndio\""; } >&5
|
|
|
- ($PKG_CONFIG --exists --print-errors "sndio") 2>&5
|
|
|
- ac_status=$?
|
|
|
- printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
|
- test $ac_status = 0; }; then
|
|
|
- pkg_cv_SNDIO_CFLAGS=`$PKG_CONFIG --cflags "sndio" 2>/dev/null`
|
|
|
- test "x$?" != "x0" && pkg_failed=yes
|
|
|
-else
|
|
|
- pkg_failed=yes
|
|
|
-fi
|
|
|
- else
|
|
|
- pkg_failed=untried
|
|
|
-fi
|
|
|
-if test -n "$SNDIO_LIBS"; then
|
|
|
- pkg_cv_SNDIO_LIBS="$SNDIO_LIBS"
|
|
|
- elif test -n "$PKG_CONFIG"; then
|
|
|
- if test -n "$PKG_CONFIG" && \
|
|
|
- { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndio\""; } >&5
|
|
|
- ($PKG_CONFIG --exists --print-errors "sndio") 2>&5
|
|
|
- ac_status=$?
|
|
|
- printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
|
- test $ac_status = 0; }; then
|
|
|
- pkg_cv_SNDIO_LIBS=`$PKG_CONFIG --libs "sndio" 2>/dev/null`
|
|
|
- test "x$?" != "x0" && pkg_failed=yes
|
|
|
-else
|
|
|
- pkg_failed=yes
|
|
|
-fi
|
|
|
- else
|
|
|
- pkg_failed=untried
|
|
|
-fi
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-if test $pkg_failed = yes; then
|
|
|
- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
|
-printf "%s\n" "no" >&6; }
|
|
|
-
|
|
|
-if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
|
|
|
- _pkg_short_errors_supported=yes
|
|
|
-else
|
|
|
- _pkg_short_errors_supported=no
|
|
|
-fi
|
|
|
- if test $_pkg_short_errors_supported = yes; then
|
|
|
- SNDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sndio" 2>&1`
|
|
|
- else
|
|
|
- SNDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sndio" 2>&1`
|
|
|
- fi
|
|
|
- # Put the nasty error message in config.log where it belongs
|
|
|
- echo "$SNDIO_PKG_ERRORS" >&5
|
|
|
-
|
|
|
- audio_sndio=no
|
|
|
-elif test $pkg_failed = untried; then
|
|
|
- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
|
-printf "%s\n" "no" >&6; }
|
|
|
- audio_sndio=no
|
|
|
-else
|
|
|
- SNDIO_CFLAGS=$pkg_cv_SNDIO_CFLAGS
|
|
|
- SNDIO_LIBS=$pkg_cv_SNDIO_LIBS
|
|
|
- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
|
-printf "%s\n" "yes" >&6; }
|
|
|
- audio_sndio=yes
|
|
|
-fi
|
|
|
-
|
|
|
- if test x$audio_sndio = xyes; then
|
|
|
- # Check whether --enable-sndio-shared was given.
|
|
|
-if test ${enable_sndio_shared+y}
|
|
|
-then :
|
|
|
- enableval=$enable_sndio_shared;
|
|
|
-else $as_nop
|
|
|
- enable_sndio_shared=yes
|
|
|
-fi
|
|
|
-
|
|
|
- sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
|
|
|
-
|
|
|
- if test x$have_loadso != xyes && \
|
|
|
- test x$enable_sndio_shared = xyes; then
|
|
|
- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
|
|
|
-printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
|
|
|
- fi
|
|
|
- if test x$have_loadso = xyes && \
|
|
|
- test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
|
|
|
- echo "-- dynamic libsndio -> $sndio_lib"
|
|
|
-
|
|
|
-printf "%s\n" "#define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC \"$sndio_lib\"" >>confdefs.h
|
|
|
-
|
|
|
- SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
|
|
|
- else
|
|
|
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
|
|
|
- SUMMARY_audio="${SUMMARY_audio} sndio"
|
|
|
- fi
|
|
|
-
|
|
|
-
|
|
|
-printf "%s\n" "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
|
|
|
-
|
|
|
- SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
|
|
|
- EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
|
|
|
- have_audio=yes
|
|
|
- fi
|
|
|
- fi
|
|
|
-}
|
|
|
-
|
|
|
-CheckFusionSound()
|
|
|
-{
|
|
|
- # Check whether --enable-fusionsound was given.
|
|
|
-if test ${enable_fusionsound+y}
|
|
|
-then :
|
|
|
- enableval=$enable_fusionsound;
|
|
|
-else $as_nop
|
|
|
- enable_fusionsound=no
|
|
|
-fi
|
|
|
-
|
|
|
- if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
|
|
|
-
|
|
|
-pkg_failed=no
|
|
|
-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fusionsound >= 1.1.1" >&5
|
|
|
-printf %s "checking for fusionsound >= 1.1.1... " >&6; }
|
|
|
-
|
|
|
-if test -n "$FUSIONSOUND_CFLAGS"; then
|
|
|
- pkg_cv_FUSIONSOUND_CFLAGS="$FUSIONSOUND_CFLAGS"
|
|
|
- elif test -n "$PKG_CONFIG"; then
|
|
|
- if test -n "$PKG_CONFIG" && \
|
|
|
- { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
|
|
|
- ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
|
|
|
- ac_status=$?
|
|
|
- printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
|
- test $ac_status = 0; }; then
|
|
|
- pkg_cv_FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags "fusionsound >= 1.1.1" 2>/dev/null`
|
|
|
- test "x$?" != "x0" && pkg_failed=yes
|
|
|
-else
|
|
|
- pkg_failed=yes
|
|
|
-fi
|
|
|
- else
|
|
|
- pkg_failed=untried
|
|
|
-fi
|
|
|
-if test -n "$FUSIONSOUND_LIBS"; then
|
|
|
- pkg_cv_FUSIONSOUND_LIBS="$FUSIONSOUND_LIBS"
|
|
|
- elif test -n "$PKG_CONFIG"; then
|
|
|
- if test -n "$PKG_CONFIG" && \
|
|
|
- { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
|
|
|
- ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
|
|
|
- ac_status=$?
|
|
|
- printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
|
- test $ac_status = 0; }; then
|
|
|
- pkg_cv_FUSIONSOUND_LIBS=`$PKG_CONFIG --libs "fusionsound >= 1.1.1" 2>/dev/null`
|
|
|
- test "x$?" != "x0" && pkg_failed=yes
|
|
|
-else
|
|
|
- pkg_failed=yes
|
|
|
-fi
|
|
|
- else
|
|
|
- pkg_failed=untried
|
|
|
-fi
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-if test $pkg_failed = yes; then
|
|
|
- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
|
-printf "%s\n" "no" >&6; }
|
|
|
-
|
|
|
-if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
|
|
|
- _pkg_short_errors_supported=yes
|
|
|
-else
|
|
|
- _pkg_short_errors_supported=no
|
|
|
-fi
|
|
|
- if test $_pkg_short_errors_supported = yes; then
|
|
|
- FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
|
|
|
- else
|
|
|
- FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
|
|
|
- fi
|
|
|
- # Put the nasty error message in config.log where it belongs
|
|
|
- echo "$FUSIONSOUND_PKG_ERRORS" >&5
|
|
|
-
|
|
|
- fusionsound=no
|
|
|
-elif test $pkg_failed = untried; then
|
|
|
- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
|
-printf "%s\n" "no" >&6; }
|
|
|
- fusionsound=no
|
|
|
-else
|
|
|
- FUSIONSOUND_CFLAGS=$pkg_cv_FUSIONSOUND_CFLAGS
|
|
|
- FUSIONSOUND_LIBS=$pkg_cv_FUSIONSOUND_LIBS
|
|
|
- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
|
-printf "%s\n" "yes" >&6; }
|
|
|
- fusionsound=yes
|
|
|
-fi
|
|
|
-
|
|
|
- if test x$fusionsound = xyes; then
|
|
|
-
|
|
|
-printf "%s\n" "#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+y}
|
|
|
-then :
|
|
|
- enableval=$enable_fusionsound_shared;
|
|
|
-else $as_nop
|
|
|
- enable_fusionsound_shared=yes
|
|
|
-fi
|
|
|
-
|
|
|
- fusionsound_shared=no
|
|
|
- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
|
|
|
-printf %s "checking for FusionSound dynamic loading support... " >&6; }
|
|
|
- if test x$have_loadso != xyes && \
|
|
|
- test x$enable_fusionsound_shared = xyes; then
|
|
|
- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
|
|
|
-printf "%s\n" "$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
|
|
|
-
|
|
|
-printf "%s\n" "#define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC \"libfusionsound.so\"" >>confdefs.h
|
|
|
-
|
|
|
- fusionsound_shared=yes
|
|
|
- SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
|
|
|
- else
|
|
|
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
|
|
|
- SUMMARY_audio="${SUMMARY_audio} fusionsound"
|
|
|
- fi
|
|
|
- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
|
|
|
-printf "%s\n" "$fusionsound_shared" >&6; }
|
|
|
-
|
|
|
- have_audio=yes
|
|
|
- fi
|
|
|
- fi
|
|
|
-}
|
|
|
-
|
|
|
-CheckDiskAudio()
|
|
|
-{
|
|
|
- # Check whether --enable-diskaudio was given.
|
|
|
-if test ${enable_diskaudio+y}
|
|
|
-then :
|
|
|
- enableval=$enable_diskaudio;
|
|
|
-else $as_nop
|
|
|
- enable_diskaudio=yes
|
|
|
-fi
|
|
|
-
|
|
|
- if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
|
|
|
-
|
|
|
-printf "%s\n" "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
|
|
|
-
|
|
|
- SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
|
|
|
- SUMMARY_audio="${SUMMARY_audio} disk"
|
|
|
- have_audio=yes
|
|
|
- fi
|
|
|
-}
|
|
|
-
|
|
|
-CheckDummyAudio()
|
|
|
-{
|
|
|
- # Check whether --enable-dummyaudio was given.
|
|
|
-if test ${enable_dummyaudio+y}
|
|
|
-then :
|
|
|
- enableval=$enable_dummyaudio;
|
|
|
-else $as_nop
|
|
|
- enable_dummyaudio=yes
|
|
|
-fi
|
|
|
-
|
|
|
- if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
|
|
|
-
|
|
|
-printf "%s\n" "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
|
|
|
-
|
|
|
- SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
|
|
|
- SUMMARY_audio="${SUMMARY_audio} dummy"
|
|
|
- have_audio=yes
|
|
|
- fi
|
|
|
-}
|
|
|
-
|
|
|
-CheckLibSampleRate()
|
|
|
-{
|
|
|
- # Check whether --enable-libsamplerate was given.
|
|
|
-if test ${enable_libsamplerate+y}
|
|
|
-then :
|
|
|
- enableval=$enable_libsamplerate;
|
|
|
-else $as_nop
|
|
|
- enable_libsamplerate=yes
|
|
|
-fi
|
|
|
-
|
|
|
- if test x$enable_libsamplerate = xyes; then
|
|
|
- ac_fn_c_check_header_compile "$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 $as_nop
|
|
|
- have_samplerate_h_hdr=no
|
|
|
-fi
|
|
|
-
|
|
|
- if test x$have_samplerate_h_hdr = xyes; then
|
|
|
-
|
|
|
-printf "%s\n" "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
|
|
|
-
|
|
|
-
|
|
|
- # Check whether --enable-libsamplerate-shared was given.
|
|
|
-if test ${enable_libsamplerate_shared+y}
|
|
|
-then :
|
|
|
- enableval=$enable_libsamplerate_shared;
|
|
|
-else $as_nop
|
|
|
- enable_libsamplerate_shared=yes
|
|
|
-fi
|
|
|
-
|
|
|
-
|
|
|
- samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
|
|
|
-
|
|
|
- if test x$have_loadso != xyes && \
|
|
|
- test x$enable_libsamplerate_shared = xyes; then
|
|
|
- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
|
|
|
-printf "%s\n" "$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"
|
|
|
-
|
|
|
-printf "%s\n" "#define SDL_LIBSAMPLERATE_DYNAMIC \"$samplerate_lib\"" >>confdefs.h
|
|
|
-
|
|
|
- else
|
|
|
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
|
|
|
- fi
|
|
|
- fi
|
|
|
- fi
|
|
|
-}
|
|
|
-
|
|
|
-CheckARM()
|
|
|
-{
|
|
|
- # Check whether --enable-arm-simd was given.
|
|
|
-if test ${enable_arm_simd+y}
|
|
|
-then :
|
|
|
- enableval=$enable_arm_simd; enable_arm_simd=$enableval
|
|
|
-else $as_nop
|
|
|
- enable_arm_simd=no
|
|
|
-fi
|
|
|
-
|
|
|
- if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_simd = xyes; then
|
|
|
- save_CFLAGS="$CFLAGS"
|
|
|
- have_arm_simd=no
|
|
|
- CFLAGS="-x assembler-with-cpp $CFLAGS"
|
|
|
+ if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_simd = xyes; then
|
|
|
+ save_CFLAGS="$CFLAGS"
|
|
|
+ have_arm_simd=no
|
|
|
+ CFLAGS="-x assembler-with-cpp $CFLAGS"
|
|
|
|
|
|
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARM SIMD" >&5
|
|
|
printf %s "checking for ARM SIMD... " >&6; }
|
|
@@ -28356,12 +27309,6 @@ printf "%s\n" "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
|
|
|
CheckALSA
|
|
|
CheckPipewire
|
|
|
CheckPulseAudio
|
|
|
- CheckJACK
|
|
|
- CheckARTSC
|
|
|
- CheckESD
|
|
|
- CheckNAS
|
|
|
- CheckSNDIO
|
|
|
- CheckFusionSound
|
|
|
CheckLibSampleRate
|
|
|
# Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
|
|
|
CheckRPI
|
|
@@ -28414,14 +27361,6 @@ printf "%s\n" "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
|
|
|
# Set up files for the audio library
|
|
|
if test x$enable_audio = xyes; then
|
|
|
case $ARCH in
|
|
|
- sysv5|solaris|hpux)
|
|
|
-
|
|
|
-printf "%s\n" "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
|
|
|
-
|
|
|
- SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
|
|
|
- SUMMARY_audio="${SUMMARY_audio} sun"
|
|
|
- have_audio=yes
|
|
|
- ;;
|
|
|
netbsd) # Don't use this on OpenBSD, it's busted.
|
|
|
|
|
|
printf "%s\n" "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
|
|
@@ -28430,14 +27369,6 @@ printf "%s\n" "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
|
|
|
SUMMARY_audio="${SUMMARY_audio} netbsd"
|
|
|
have_audio=yes
|
|
|
;;
|
|
|
- aix)
|
|
|
-
|
|
|
-printf "%s\n" "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
|
|
|
-
|
|
|
- SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
|
|
|
- SUMMARY_audio="${SUMMARY_audio} paudio"
|
|
|
- have_audio=yes
|
|
|
- ;;
|
|
|
android)
|
|
|
|
|
|
printf "%s\n" "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
|
|
@@ -28673,11 +27604,6 @@ printf "%s\n" "#define SDL_VIDEO_RENDER_D3D12 1" >>confdefs.h
|
|
|
fi
|
|
|
# Set up files for the audio library
|
|
|
if test x$enable_audio = xyes; then
|
|
|
-
|
|
|
-printf "%s\n" "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
|
|
|
-
|
|
|
- SUMMARY_audio="${SUMMARY_audio} winmm"
|
|
|
- SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
|
|
|
if test x$have_dsound = xyes; then
|
|
|
|
|
|
printf "%s\n" "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
|