From 579b46f0977b43831639134589a07fa4b3e36e86 Mon Sep 17 00:00:00 2001 From: Amar Takhar Date: Sun, 12 Apr 2009 10:04:10 +0000 Subject: [PATCH] Update PortAudio v19 support. Originally committed to SVN as r2787. --- aegisub/configure.in | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/aegisub/configure.in b/aegisub/configure.in index ca4da50a8..239dff23e 100644 --- a/aegisub/configure.in +++ b/aegisub/configure.in @@ -413,13 +413,13 @@ AC_SUBST(ALSA_LDFLAGS) ################### AC_ARG_WITH(portaudio2,[ --without-portaudio2 build without PortAudio v19 audio provider. - (default: auto)], pulseaudio_disabled="(disabled)") + (default: auto)], pulseaudio2_disabled="(disabled)") if test "$with_portaudio2" != "no"; then PKG_CHECK_MODULES(PORTAUDIO2, portaudio-2.0 >= portaudio2_required_version, [with_portaudio2="yes"], [with_portaudio2="no"]) fi if test "$with_portaudio2" != "no"; then - AC_AGI_COMPILE([PortAudio2], [portaudio], [$LIBPORTAUDIO2_CFLAGS], [$LIBPORTAUDIO2_LIBS],[ + AC_AGI_COMPILE([PortAudio2], [portaudio2], [$PORTAUDIO2_CFLAGS], [$PORTAUDIO2_LIBS],[ #include int main(void) { PaError err = Pa_Initialize(); @@ -447,6 +447,11 @@ AM_CONDITIONAL([HAVE_PORTAUDIO2], [test "$with_portaudio2" != "no"]) AC_ARG_WITH(portaudio,[ --without-portaudio build without PortAudio audio provider. (default: auto)], portaudio_disabled="(disabled)") +if test "$with_portaudio2" = "yes"; then + with_portaudio="no" + portaudio_disabled="(disabled by v19)" +fi + if test -z "$PORTAUDIO_LDFLAGS"; then PORTAUDIO_LDFLAGS="$LDFLAGS -lportaudio" fi @@ -1373,6 +1378,7 @@ Audio Players ALSA: $with_alsa $alsa_disabled OpenAL: $with_openal $openal_disabled PortAudio: $with_portaudio $portaudio_disabled + PortAudio2 (v19): $with_portaudio2 $portaudio2_disabled PulseAudio: $with_pulseaudio $pulseaudio_disabled A/V Support