summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorMichal Ratajsky <[email protected]>2016-01-09 18:35:41 +0100
committerraveit65 <[email protected]>2017-02-21 11:55:59 +0100
commit21f2fbad0fb9e453adcb794eca3ab82f1a39bbf3 (patch)
treeb4fc0475fbed9d19d10ef2d3a4a60ef0390be962 /configure.ac
parent83c153286395c02433a7273f42e11ccbfa77d79e (diff)
downloadlibmatemixer-21f2fbad0fb9e453adcb794eca3ab82f1a39bbf3.tar.bz2
libmatemixer-21f2fbad0fb9e453adcb794eca3ab82f1a39bbf3.tar.xz
oss: Improve handling of default device and support sysctl on FreeBSD
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac6
1 files changed, 5 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index ad38dc4..44d61e9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -211,7 +211,11 @@ if test "x$enable_oss" != "xno"; then
# NetBSD/OpenBSD require -lossaudio, other OSS implementations do not have
# this library
AC_CHECK_LIB([ossaudio], [_oss_ioctl], [OSS_LIBS="-lossaudio"])
-
+ # FreeBSD allows getting/setting the default sound card and getting names
+ # of sound cards with sysctl
+ AC_CHECK_HEADERS([sys/sysctl.h], [
+ AC_CHECK_FUNCS([sysctlbyname])
+ ])
AC_DEFINE(HAVE_OSS, [], [Define if we have OSS support])
else
if test "x$enable_oss" = "xyes"; then