autotools, cmake: fix the sys/audioio.h checks.

Reference issue: https://github.com/libsdl-org/SDL/issues/13405.
(cherry picked from commit 74df61530f)
This commit is contained in:
Ozkan Sezer committed 2025-07-28 17:01:20 +03:00
1 parent c438953aa2
commit 553ea4e4ee
3 files changed
+10 -9

No files matched your search

+3 -3
View File
@@ -3869,9 +3869,9 @@ case "$host" in
if test x$enable_audio = xyes; then
case $ARCH in
sysv5|solaris|hpux)
dnl Newer Solaris-based systems, like OpenIndiana, don't have this interface anymore. Check for the header first.
AC_CHECK_HEADER(audio/audiolib.h,have_sys_audiolib=yes,have_sys_audiolib=no)
if test x$have_sys_audiolib = xyes; then
# Newer Solaris-based systems, like OpenIndiana, don't have this interface anymore. Check for the header first.
AC_CHECK_HEADER(sys/audioio.h, have_sys_audioio_h=yes, have_sys_audioio_h=no)
if test x$have_sys_audioio_h = xyes; then
AC_DEFINE(SDL_AUDIO_DRIVER_SUNAUDIO, 1, [ ])
SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
SUMMARY_audio="${SUMMARY_audio} sun"