Check for OSS by looking for its header. Win32 isn't the only platform
authorPierre Ossman <ossman@cendio.se>
Thu, 5 Jan 2006 13:20:20 +0000 (13:20 +0000)
committerPierre Ossman <ossman@cendio.se>
Thu, 5 Jan 2006 13:20:20 +0000 (13:20 +0000)
where OSS isn't supported.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/ossman@365 fefdeb5f-60dc-0310-8127-8f9354f1896f

configure.ac
polyp/Makefile.am

index 0027339..c851164 100644 (file)
@@ -223,6 +223,12 @@ PKG_CHECK_MODULES(LIBSNDFILE, [ sndfile >= 1.0.10 ])
 AC_SUBST(LIBSNDFILE_CFLAGS)
 AC_SUBST(LIBSNDFILE_LIBS)
 
+#### OSS support (optional) ####
+
+AC_CHECK_HEADERS([sys/soundcard.h], [HAVE_OSS=1], [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])
index 847be9a..2cd2a1f 100644 (file)
@@ -478,7 +478,7 @@ modlib_LTLIBRARIES += \
                libx11prop.la
 endif
 
-if !OS_IS_WIN32
+if HAVE_OSS
 modlib_LTLIBRARIES += \
                liboss-util.la
 endif
@@ -662,7 +662,7 @@ modlib_LTLIBRARIES += \
                module-x11-publish.la
 endif
 
-if !OS_IS_WIN32
+if HAVE_OSS
 modlib_LTLIBRARIES += \
                module-oss.la \
                module-oss-mmap.la