You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
661 B
27 lines
661 B
dnl --------- ALSA CHECK BEGIN -------------
|
|
|
|
AC_DEFUN([KDE_CHECK_ALSA],
|
|
[
|
|
PKG_CHECK_MODULES([ALSA], [alsa >= 0.9], [have_alsa=yes], [have_alsa=no])
|
|
AC_SUBST([ALSA_CFLAGS])
|
|
AC_SUBST([ALSA_LIBS])
|
|
])
|
|
|
|
AC_ARG_WITH(alsa,
|
|
[AS_HELP_STRING(--with-alsa,
|
|
[enable support for ALSA output @<:@default=check@:>@])],
|
|
[], with_alsa=check)
|
|
|
|
have_alsa=no
|
|
if test "x$with_alsa" != xno; then
|
|
KDE_CHECK_ALSA
|
|
|
|
if test "x$with_alsa" != xcheck && test "x$have_alsa" != xyes; then
|
|
AC_MSG_FAILURE([--with-alsa was given, but test for ALSA failed])
|
|
fi
|
|
fi
|
|
|
|
AM_CONDITIONAL(include_ALSA, [test "x$have_alsa" = "xyes"])
|
|
|
|
dnl --------- ALSA CHECK END ---------------
|