summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2006-02-16 01:16:39 +0000
committerLennart Poettering <lennart@poettering.net>2006-02-16 01:16:39 +0000
commit6ad876efa803de188eaa8e9ffdedb68fd8c9423f (patch)
tree601bb38816fcfc58d451e2483474491b0377c729
parent61fbafcb9495744d7ef82fe7dcb56610c8063888 (diff)
Add HAVE_ALSA and HAVE_OSS defines
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@485 fefdeb5f-60dc-0310-8127-8f9354f1896f
-rw-r--r--configure.ac11
1 files changed, 9 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 710f205b..03663590 100644
--- a/configure.ac
+++ b/configure.ac
@@ -288,13 +288,20 @@ AC_SUBST(LIBSNDFILE_LIBS)
#### OSS support (optional) ####
-AC_CHECK_HEADERS([sys/soundcard.h], [HAVE_OSS=1], [HAVE_OSS=0])
+AC_CHECK_HEADERS([sys/soundcard.h], [
+HAVE_OSS=1
+AC_DEFINE([HAVE_OSS], 1, [Have OSS?])
+], [HAVE_OSS=0])
AC_SUBST(HAVE_OSS)
AM_CONDITIONAL([HAVE_OSS], [test "x$HAVE_OSS" = x1])
+
#### ALSA support (optional) ####
-PKG_CHECK_MODULES(ASOUNDLIB, [ alsa >= 1.0.0 ], [HAVE_ALSA=1], [HAVE_ALSA=0])
+PKG_CHECK_MODULES(ASOUNDLIB, [ alsa >= 1.0.0 ], [
+HAVE_ALSA=1
+AC_DEFINE([HAVE_ALSA], 1, [Have ALSA?])
+], [HAVE_ALSA=0])
AC_SUBST(ASOUNDLIB_CFLAGS)
AC_SUBST(ASOUNDLIB_LIBS)
AC_SUBST(HAVE_ALSA)