mirror of https://github.com/odrling/Aegisub
Add a run test for PortAudio
Originally committed to SVN as r2124.
This commit is contained in:
parent
1a68069ee2
commit
7a423e02b3
14
configure.in
14
configure.in
|
@ -234,6 +234,19 @@ if test "x$with_portaudio" != xno; then
|
|||
CPPFLAGS="$aegisub_save_CPPFLAGS"
|
||||
fi
|
||||
|
||||
AC_AGI_COMPILE([PortAudio], [portaudio], [$CFLAGS $PTHREAD_CFLAGS], [$LDFLAGS $PORTAUDIO_LDFLAGS],[
|
||||
#include <portaudio.h>
|
||||
int main(void) {
|
||||
PaError err = Pa_Initialize();
|
||||
if (err != paNoError) return 1;
|
||||
return 0;
|
||||
}])
|
||||
|
||||
if test "$agi_with_portaudio" = "no" && test "$with_portaudio" = "yes"; then
|
||||
AC_MSG_WARN([PortAudio detected, but it doesn't work..])
|
||||
with_portaudio="no"
|
||||
fi
|
||||
|
||||
if test "$with_portaudio" = "yes"; then
|
||||
AC_DEFINE(WITH_PORTAUDIO, 1, [Enable PortAudio Audio Provider])
|
||||
fi
|
||||
|
@ -241,6 +254,7 @@ fi
|
|||
AC_SUBST(PORTAUDIO_LDFLAGS)
|
||||
AM_CONDITIONAL([HAVE_PORTAUDIO], [test "$with_portaudio" != "no"])
|
||||
|
||||
|
||||
#############
|
||||
## PulseAudio
|
||||
#############
|
||||
|
|
Loading…
Reference in New Issue