mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2026-02-12 04:27:45 -05:00
support building w/out System V shared memory
Some systems, like Android/Bionic, do not support SysV at all. Let the configure script detect if the header is available, and if not, automatically disable the pieces that require it. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
7e90867487
commit
561df6fda0
3 changed files with 34 additions and 3 deletions
13
configure.ac
13
configure.ac
|
|
@ -295,7 +295,7 @@ fi
|
|||
AC_SUBST(ALSA_DEPLIBS)
|
||||
|
||||
dnl Check for headers
|
||||
AC_CHECK_HEADERS([wordexp.h endian.h sys/endian.h])
|
||||
AC_CHECK_HEADERS([wordexp.h endian.h sys/endian.h sys/shm.h])
|
||||
|
||||
dnl Check for resmgr support...
|
||||
AC_MSG_CHECKING(for resmgr support)
|
||||
|
|
@ -508,6 +508,13 @@ if test "$gcc_have_atomics" != "yes"; then
|
|||
build_pcm_meter="no"
|
||||
fi
|
||||
|
||||
if test "$ac_cv_header_sys_shm_h" != "yes"; then
|
||||
build_pcm_dmix="no"
|
||||
build_pcm_dshare="no"
|
||||
build_pcm_dsnoop="no"
|
||||
build_pcm_shm="no"
|
||||
fi
|
||||
|
||||
AM_CONDITIONAL([BUILD_PCM_PLUGIN], [test x$build_pcm_plugin = xyes])
|
||||
AM_CONDITIONAL([BUILD_PCM_PLUGIN_COPY], [test x$build_pcm_copy = xyes])
|
||||
AM_CONDITIONAL([BUILD_PCM_PLUGIN_LINEAR], [test x$build_pcm_linear = xyes])
|
||||
|
|
@ -594,6 +601,10 @@ for p in $ctl_plugins; do
|
|||
done
|
||||
done
|
||||
|
||||
if test "$ac_cv_header_sys_shm_h" != "yes"; then
|
||||
build_ctl_shm="no"
|
||||
fi
|
||||
|
||||
AM_CONDITIONAL([BUILD_CTL_PLUGIN], [test x$build_ctl_plugin = xyes])
|
||||
AM_CONDITIONAL([BUILD_CTL_PLUGIN_SHM], [test x$build_ctl_shm = xyes])
|
||||
AM_CONDITIONAL([BUILD_CTL_PLUGIN_EXT], [test x$build_ctl_ext = xyes])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue