Skip to content

Commit

Permalink
Limit OSS to FreeBSD build
Browse files Browse the repository at this point in the history
  • Loading branch information
bsdcode authored and karlstav committed Dec 31, 2023
1 parent cde8d70 commit 1e3708a
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -231,13 +231,17 @@ AC_ARG_ENABLE([input_oss],
)

AS_IF([test "x$enable_input_oss" != "xno"], [
AC_CHECK_HEADERS(sys/soundcard.h, have_oss=yes, have_oss=no)
if [[ $have_oss = "yes" ]] ; then
CPPFLAGS="$CPPFLAGS -DOSS -D__BSD_VISIBLE"
fi
have_oss=no
if [[ $have_oss = "no" ]] ; then
AC_MSG_NOTICE([WARNING: No oss dev files found building without oss support])
if [[ $build_freebsd = "yes" ]] ; then
AC_CHECK_HEADERS(sys/soundcard.h, have_oss=yes, have_oss=no)
if [[ $have_oss = "yes" ]] ; then
CPPFLAGS="$CPPFLAGS -DOSS -D__BSD_VISIBLE"
fi
if [[ $have_oss = "no" ]] ; then
AC_MSG_NOTICE([WARNING: No oss dev files found building without oss support])
fi
fi],
[have_oss=no]
)
Expand Down

0 comments on commit 1e3708a

Please sign in to comment.