Set PORTAUDIO_CFLAGS and PORTAUDIO_LIBS for portmixer when using the local portaudio.

This commit is contained in:
benjamin.drung@gmail.com 2013-11-19 01:48:14 +00:00
parent 48b001d3d0
commit 20f5c717b8
2 changed files with 6 additions and 3 deletions

3
configure vendored
View File

@ -8346,7 +8346,8 @@ fi
PORTAUDIO_LOCAL_LIBS="libportaudio.a"
PORTAUDIO_LOCAL_CXXFLAGS='-I$(top_srcdir)/lib-src/portaudio-v19/include'
PORTAUDIO_LOCAL_CONFIGURE_ARGS="--with-pa-include=$(pwd)/lib-src/portaudio-v19/include"
portaudio_dir="$(pwd)/lib-src/portaudio-v19"
PORTAUDIO_LOCAL_CONFIGURE_ARGS="PORTAUDIO_CFLAGS=-I${portaudio_dir}/include PORTAUDIO_LIBS=${portaudio_dir}/lib/.libs/libportaudio.a"
{ $as_echo "$as_me:${as_lineno-$LINENO}: portaudio19 library is available in the local tree" >&5
$as_echo "$as_me: portaudio19 library is available in the local tree" >&6;}

View File

@ -43,8 +43,10 @@ AC_DEFUN([AUDACITY_CHECKLIB_PORTAUDIO], [
PORTAUDIO_LOCAL_LIBS="libportaudio.a"
PORTAUDIO_LOCAL_CXXFLAGS='-I$(top_srcdir)/lib-src/portaudio-v19/include'
dnl set up configuring portaudio
PORTAUDIO_LOCAL_CONFIGURE_ARGS="--with-pa-include=$(pwd)/lib-src/portaudio-v19/include"
dnl We need to override the pkg-config check for portmixer by passing
dnl PORTAUDIO_CFLAGS and PORTAUDIO_LIBS to the configure script of portmixer.
portaudio_dir="$(pwd)/lib-src/portaudio-v19"
PORTAUDIO_LOCAL_CONFIGURE_ARGS="PORTAUDIO_CFLAGS=-I${portaudio_dir}/include PORTAUDIO_LIBS=${portaudio_dir}/lib/.libs/libportaudio.a"
AC_MSG_NOTICE([portaudio19 library is available in the local tree])
else