Browse Source

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

master
Reece H. Dunn 12 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

else else
AC_CHECK_HEADERS([portaudio.h], 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 have_portaudio=no
]) ])
dnl Audio checks. dnl Audio checks.
dnl ================================================================ dnl ================================================================


if test "$have_portaudio" = yes ; then
if test "$have_portaudio" = 18 -o "$have_portaudio" = 19 ; then
if test "$have_pulseaudio" = yes ; then if test "$have_pulseaudio" = yes ; then
PKG_CHECK_MODULES(PULSEAUDIO_SIMPLE, [libpulse-simple >= 0.9], PKG_CHECK_MODULES(PULSEAUDIO_SIMPLE, [libpulse-simple >= 0.9],
[ [

Loading…
Cancel
Save