Commit 7e95f9a7 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

ALSA: require alsa-lib on Linux by default if PulseAudio is missing

This ensures that at least either ALSA or PulseAudio will be compiled
by default (on Linux).
parent 5d562483
...@@ -3498,14 +3498,19 @@ dnl ...@@ -3498,14 +3498,19 @@ dnl
dnl ALSA module dnl ALSA module
dnl dnl
AC_ARG_ENABLE(alsa, AC_ARG_ENABLE(alsa,
[ --enable-alsa Advanced Linux Sound Architecture (default auto)]) [AS_HELP_STRING([--enable-alsa],
[support the Advanced Linux Sound Architecture (default auto)])],, [
AS_IF([test "$SYS" = "linux" -a "${have_pulse}" = "no"], [
enable_alsa="yes"
])
])
have_alsa="no" have_alsa="no"
AS_IF([test "${enable_alsa}" != "no"], [ AS_IF([test "${enable_alsa}" != "no"], [
PKG_CHECK_MODULES([ALSA], [alsa >= 1.0.16], [ PKG_CHECK_MODULES([ALSA], [alsa >= 1.0.16], [
have_alsa="yes" have_alsa="yes"
], [ ], [
AS_IF([test "x${enable_alsa}" != "x"], [ AS_IF([test "x${enable_alsa}" != "x"], [
AC_MSG_ERROR([alsa-lib version 1.0.16 or later not found]) AC_MSG_ERROR([$ALSA_PKG_ERRORS. alsa-lib 1.0.16 or later required.])
]) ])
]) ])
]) ])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment