From 2c9bdd7e514a478d3dc17a6b85a12dec20c15fb0 Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Wed, 13 Jan 2010 16:28:15 +0000 Subject: Ticket #1025: Support for using different PortAudio installation/path - added --with-pa-path configure option - remove the use of PaUtil_SetDebugPrintFunction() since this is not always available across all PA versions (?) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3058 74dad513-b988-da41-8d7b-12977e46ad98 --- aconfigure.ac | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'aconfigure.ac') diff --git a/aconfigure.ac b/aconfigure.ac index 0eedcfc6..8e476c06 100644 --- a/aconfigure.ac +++ b/aconfigure.ac @@ -388,6 +388,30 @@ AC_ARG_ENABLE(sound, fi] ) +dnl # PortAudio path. If ac_pa_path is not empty, we're using PortAudio +dnl # in external location (not under third_party) +AC_SUBST(ac_pa_path) +AC_ARG_WITH(pa-path, + AC_HELP_STRING([--with-pa-path=DIR], + [Specify PortAudio alternate location (e.g. /usr). When this option is set, we will not use our copy of PortAudio in third_party directory.]), + [ + if test "x$with_pa_path" != "xno"; then + ac_pa_path=$with_pa_path + # Remove trailing backslash + ac_pa_path=`echo $ac_pa_path | sed 's/\/$//'` + # Test the path + #if test ! -f $ac_pa_path/include/portaudio.h; then + # AC_MSG_ERROR([Wrong --with-pa-path value, $ac_pa_path/include/portaudio.h does not exist]) + #fi + #if test ! -d $ac_pa_path/lib; then + # AC_MSG_ERROR([Wrong --with-pa-path value, $ac_pa_path/lib does not exist]) + #fi + AC_MSG_RESULT([** Using PortAudio in $ac_pa_path **]) + fi + ] + ) + + AC_SUBST(ac_pa_cflags) AC_CHECK_HEADER(sys/soundcard.h, [ac_pa_cflags="$ac_pa_cflags -DHAVE_SYS_SOUNDCARD_H"]) -- cgit v1.2.3