summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorThomas Klausner <tk@giga.or.at>2022-04-18 09:12:39 (GMT)
committerGitHub <noreply@github.com>2022-04-18 09:12:39 (GMT)
commit2e7e3c4c109928870c1e33d8af36b78e92895594 (patch)
tree6167457c43e8bbd98d8ce4b40bd983296ce98946 /configure.ac
parent804ea2da97af68366cdeceb30d3987f6d9f3e797 (diff)
downloadcpython-2e7e3c4c109928870c1e33d8af36b78e92895594.zip
cpython-2e7e3c4c109928870c1e33d8af36b78e92895594.tar.gz
cpython-2e7e3c4c109928870c1e33d8af36b78e92895594.tar.bz2
bpo-46053: Fix OSS audio support on NetBSD (GH-30065)
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac9
1 files changed, 8 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 5c915d1..276718a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3553,6 +3553,12 @@ AS_VAR_IF([have_nis], [yes], [
])
])
+dnl On NetBSD, when using OSS audio, you need to link against libossaudio
+AS_CASE([$ac_sys_system],
+ [NetBSD*], [OSSAUDIODEV_LIBS="-lossaudio"],
+ [OSSAUDIODEV_LIBS=""]
+)
+
dnl Check for SQLite library. Use pkg-config if available.
PKG_CHECK_MODULES(
[LIBSQLITE3], [sqlite3 >= 3.7.15], [], [
@@ -6786,7 +6792,8 @@ PY_STDLIB_MOD([_socket],
dnl platform specific extensions
PY_STDLIB_MOD([grp], [], [test "$ac_cv_func_getgrgid" = yes -o "$ac_cv_func_getgrgid_r" = yes])
PY_STDLIB_MOD([ossaudiodev],
- [], [test "$ac_cv_header_linux_soundcard_h" = yes -o "$ac_cv_header_sys_soundcard_h" = yes])
+ [], [test "$ac_cv_header_linux_soundcard_h" = yes -o "$ac_cv_header_sys_soundcard_h" = yes],
+ [], [$OSSAUDIODEV_LIBS])
PY_STDLIB_MOD([pwd], [], [test "$ac_cv_func_getpwuid" = yes -o "$ac_cv_func_getpwuid_r" = yes])
PY_STDLIB_MOD([resource], [], [test "$ac_cv_header_sys_resource_h" = yes])
PY_STDLIB_MOD([_scproxy],