Browse Source

configure.ac: Update the configure script to detect portaudio version (18 or 19).

master
Reece H. Dunn 11 years ago
parent
commit
d3ff1abbe9
1 changed files with 12 additions and 2 deletions
  1. 12
    2
      configure.ac

+ 12
- 2
configure.ac View File

@@ -58,7 +58,17 @@ if test "$with_portaudio" = "no"; then
else
AC_CHECK_HEADERS([portaudio.h],
[
have_portaudio=yes
AC_CHECK_LIB([portaudio], [Pa_IsStreamActive],
[
have_portaudio=19
],[
AC_CHECK_LIB([portaudio], [Pa_StreamActive],
[
have_portaudio=18
],[
have_portaudio=no
])
])
],[
have_portaudio=no
])
@@ -68,7 +78,7 @@ dnl ================================================================
dnl Audio checks.
dnl ================================================================

if test "$have_portaudio" = yes ; then
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],
[

Loading…
Cancel
Save