summaryrefslogtreecommitdiffstats
path: root/plugins/audiooutput/alsa/configure.in.in
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/audiooutput/alsa/configure.in.in')
-rw-r--r--plugins/audiooutput/alsa/configure.in.in26
1 files changed, 26 insertions, 0 deletions
diff --git a/plugins/audiooutput/alsa/configure.in.in b/plugins/audiooutput/alsa/configure.in.in
new file mode 100644
index 0000000..244dce4
--- /dev/null
+++ b/plugins/audiooutput/alsa/configure.in.in
@@ -0,0 +1,26 @@
+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 ---------------