diff options
author | Pierre Ossman <ossman@cendio.se> | 2013-07-10 16:26:17 +0200 |
---|---|---|
committer | Tanu Kaskinen <tanu.kaskinen@linux.intel.com> | 2013-07-11 14:30:06 +0300 |
commit | e55f4edaadcd1d71d8d7635ada73439e9aa333c1 (patch) | |
tree | ae8eae002203c09d127a4754157dec9bad7a77b6 /configure.ac | |
parent | d90d99bd38be330c9800d40d4054b4135c4e9eb4 (diff) | |
download | pulseaudio-e55f4edaadcd1d71d8d7635ada73439e9aa333c1.tar.gz |
alsa: Support ALSA without a use case manager
The ALSA use case manager is a fairly recent addition,
so make sure the ALSA modules can be used on systems that
have an older version of ALSA.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 9cbcb6d7e..1d8e40a2e 100644 --- a/configure.ac +++ b/configure.ac @@ -762,15 +762,24 @@ AC_ARG_ENABLE([alsa], AS_HELP_STRING([--disable-alsa],[Disable optional ALSA support])) AS_IF([test "x$enable_alsa" != "xno"], - [PKG_CHECK_MODULES(ASOUNDLIB, [ alsa >= 1.0.24 ], HAVE_ALSA=1, HAVE_ALSA=0)], + [PKG_CHECK_MODULES(ASOUNDLIB, [ alsa >= 1.0.19 ], HAVE_ALSA=1, HAVE_ALSA=0)], HAVE_ALSA=0) AS_IF([test "x$enable_alsa" = "xyes" && test "x$HAVE_ALSA" = "x0"], - [AC_MSG_ERROR([*** Needed alsa >= 1.0.24 support not found])]) + [AC_MSG_ERROR([*** Needed alsa >= 1.0.19 support not found])]) + +AS_IF([test "x$HAVE_ALSA" = "x1"], + [ + save_CFLAGS="$CFLAGS"; CFLAGS="$CFLAGS $ASOUNDLIB_CFLAGS" + AC_CHECK_HEADERS([use-case.h], HAVE_ALSA_UCM=1, HAVE_ALSA_UCM=0) + CFLAGS="$save_CFLAGS" + ], + HAVE_ALSA_UCM=0) AC_SUBST(HAVE_ALSA) AM_CONDITIONAL([HAVE_ALSA], [test "x$HAVE_ALSA" = x1]) AS_IF([test "x$HAVE_ALSA" = "x1"], AC_DEFINE([HAVE_ALSA], 1, [Have ALSA?])) +AS_IF([test "x$HAVE_ALSA_UCM" = "x1"], AC_DEFINE([HAVE_ALSA_UCM], 1, [Have ALSA UCM?])) #### EsounD support (optional) #### |