mirror of https://github.com/odrling/Aegisub
Fix ALSA block (remove legacy code)
Originally committed to SVN as r2695.
This commit is contained in:
parent
c37e33e29c
commit
0035436eff
15
configure.in
15
configure.in
|
@ -375,16 +375,19 @@ AC_SUBST(ICONV_CFLAGS)
|
|||
## ALSA
|
||||
#######
|
||||
AC_ARG_WITH(alsa, [ --without-alsa build without ALSA audio provider. (default: auto)], alsa_disabled="(disabled)")
|
||||
if test "x$with_alsa" != xno; then
|
||||
AC_CHECK_LIB([asound], [snd_pcm_open], [ALSA_LDFLAGS="-lasound"; found_audio=yes; with_alsa=yes], [with_alsa=no])
|
||||
fi
|
||||
if test "$with_alsa" = "yes"; then
|
||||
AC_DEFINE(WITH_ALSA, 1, [Enable ALSA Support])
|
||||
if test "$with_alsa" != "no"; then
|
||||
AC_CHECK_LIB([asound], [snd_pcm_open], [ALSA_LDFLAGS="-lasound"; with_alsa="yes"], [with_alsa="no"])
|
||||
fi
|
||||
|
||||
if test "$with_alsa" != "no"; then
|
||||
AC_DEFINE(WITH_ALSA, 1, [Enable ALSA Support])
|
||||
AC_SUBST(ALSA_LDFLAGS)
|
||||
found_audio="yes"
|
||||
fi
|
||||
|
||||
AC_SUBST(ALSA_LDFLAGS)
|
||||
AM_CONDITIONAL([HAVE_ALSA], [test "$with_alsa" != "no"])
|
||||
|
||||
|
||||
############
|
||||
## PortAudio
|
||||
############
|
||||
|
|
Loading…
Reference in New Issue