Browse Source

configure.ac: Improve the checks to ensure that portaudio.h and -lportaudio refer to the same version of PortAudio.

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

+ 10
- 2
configure.ac View File

else else
AC_CHECK_HEADERS([portaudio.h], AC_CHECK_HEADERS([portaudio.h],
[ [
AC_CHECK_LIB([portaudio], [Pa_IsStreamActive],
# Check the portaudio library.
AC_CHECK_LIB([portaudio], [Pa_IsStreamActive]) # portaudio 19
AC_CHECK_LIB([portaudio], [Pa_StreamActive]) # portaudio 18

# Then use the headers to determine the portaudio version.
# This is because on some systems with both libportaudio0 and
# libportaudio2 installed, portaudio.h and -lportaudio refer
# to different versions.
AC_CHECK_FUNC([Pa_IsStreamActive],
[ [
have_portaudio=19 have_portaudio=19
],[ ],[
AC_CHECK_LIB([portaudio], [Pa_StreamActive],
AC_CHECK_FUNC([Pa_StreamActive],
[ [
have_portaudio=18 have_portaudio=18
],[ ],[

Loading…
Cancel
Save