Check for OSS by looking for its header. Win32 isn't the only platform

where OSS isn't supported.


git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/ossman@365 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
Pierre Ossman 2006-01-05 13:20:20 +00:00
parent 11a4c67a92
commit 70710e14d8
2 changed files with 8 additions and 2 deletions

View file

@ -223,6 +223,12 @@ PKG_CHECK_MODULES(LIBSNDFILE, [ sndfile >= 1.0.10 ])
AC_SUBST(LIBSNDFILE_CFLAGS) AC_SUBST(LIBSNDFILE_CFLAGS)
AC_SUBST(LIBSNDFILE_LIBS) 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) #### #### 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], [HAVE_ALSA=0])

View file

@ -478,7 +478,7 @@ modlib_LTLIBRARIES += \
libx11prop.la libx11prop.la
endif endif
if !OS_IS_WIN32 if HAVE_OSS
modlib_LTLIBRARIES += \ modlib_LTLIBRARIES += \
liboss-util.la liboss-util.la
endif endif
@ -662,7 +662,7 @@ modlib_LTLIBRARIES += \
module-x11-publish.la module-x11-publish.la
endif endif
if !OS_IS_WIN32 if HAVE_OSS
modlib_LTLIBRARIES += \ modlib_LTLIBRARIES += \
module-oss.la \ module-oss.la \
module-oss-mmap.la module-oss-mmap.la