From b4df3986015ed437e752f522533e9ddc7ad46211 Mon Sep 17 00:00:00 2001 From: "Reece H. Dunn" Date: Thu, 12 Sep 2013 11:31:00 +0100 Subject: [PATCH] autotools: Add a --with-sada argument (default: no) to enable Solaris SADA audio support. --- configure.ac | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/configure.ac b/configure.ac index b849f689..c096ee60 100644 --- a/configure.ac +++ b/configure.ac @@ -86,6 +86,16 @@ dnl ================================================================ dnl Audio checks. dnl ================================================================ +AC_ARG_WITH([sada], + [AS_HELP_STRING([--with-sada], [use the Solaris SADA audio API @<:@default=no@:>@])], + []) + +if test "$with_sada" = "yes" ; then + have_sada=yes +else + have_sada=no +fi + if test "$have_portaudio" = 18 -o "$have_portaudio" = 19 ; then if test "$have_pulseaudio" = yes ; then PKG_CHECK_MODULES(PULSEAUDIO_SIMPLE, [libpulse-simple >= 0.9], @@ -101,6 +111,8 @@ if test "$have_portaudio" = 18 -o "$have_portaudio" = 19 ; then fi elif test "$have_pulseaudio" = yes ; then AUDIO=pulseaudio +elif test "$have_sada" = yes ; then + AUDIO=sada else AUDIO=disabled fi @@ -147,5 +159,6 @@ AC_MSG_NOTICE([ wxWidgets: ${WX_VERSION} pulseaudio: ${have_pulseaudio} portaudio: ${have_portaudio} + sada: ${have_sada} audio configuration: ${AUDIO} ])