Browse Source

fix configure.ac for ZITA-detection and enabling, so that zalsa is built by default if the required libraries are found

tags/0.124.0
Paul Davis 12 years ago
parent
commit
4b048d6d6e
1 changed files with 20 additions and 18 deletions
  1. +20
    -18
      configure.ac

+ 20
- 18
configure.ac View File

@@ -683,32 +683,34 @@ fi
HAVE_ZITA_BRIDGE_DEPS=false
HAVE_ZITA_RESAMPLE=false
HAVE_ZITA_ALSA_PCMI=false
case $build_os in
linux*)
AC_CHECK_LIB(zita-resampler, _Z28zita_resampler_major_versionv,
[
HAVE_ZITA_RESAMPLE=true
AC_MSG_RESULT(yes)
])
AC_CHECK_LIB(zita-alsa-pcmi, _Z28zita_alsa_pcmi_major_versionv,
[
HAVE_ZITA_ALSA_PCMI=true
AC_MSG_RESULT(yes)
])

AC_ARG_ENABLE(zalsa,
AC_HELP_STRING([--enable-zalsa],[Build clients based on Fons Adriensen\'s Zita libraries for access to multiple devices]),
AC_HELP_STRING([--enable-zalsa],[Build clients using Fons Adriensen\'s Zita libraries for access to multiple devices (default=yes if required libraries are present)]),
[
if test x$enable_zalsa != xno -a x$HAVE_ZITA_RESAMPLE = xtrue -a x$HAVE_ZITA_ALSA_PCMI = xtrue ; then
AC_DEFINE(HAVE_ZITA_BRIDGE_DEPS,1,"Whether we have the libs needed for Zita ALSA bridge support")
HAVE_ZITA_BRIDGE_DEPS=true
fi
],
[
if test x$enable_zalsa != xno ; then
HAVE_ZITA_RESAMPLE=false
HAVE_ZITA_ALSA_PCMI=false
AC_CHECK_LIB(zita-resampler, _Z28zita_resampler_major_versionv,
[
HAVE_ZITA_RESAMPLE=true
AC_MSG_RESULT(yes)
])
AC_CHECK_LIB(zita-alsa-pcmi, _Z28zita_alsa_pcmi_major_versionv,
[
HAVE_ZITA_ALSA_PCMI=true
AC_MSG_RESULT(yes)
])

if test x$HAVE_ZITA_RESAMPLE = xtrue -a x$HAVE_ZITA_ALSA_PCMI = xtrue ; then
AC_DEFINE(HAVE_ZITA_BRIDGE_DEPS,1,"Whether we have the libs needed for Zita ALSA bridge support")
HAVE_ZITA_BRIDGE_DEPS=true
fi
fi
]
]
)
;;
esac


Loading…
Cancel
Save