mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-06 13:29:56 -05:00
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:
parent
11a4c67a92
commit
70710e14d8
2 changed files with 8 additions and 2 deletions
|
|
@ -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])
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue