[FFmpeg-devel] [PATCH] configure: link flite against libasound

Stefano Sabatini stefasab at gmail.com
Fri Oct 12 12:15:09 CEST 2012


On date Thursday 2012-10-11 20:31:45 -0300, jamal encoded:
> On 11/10/12 6:23 AM, Stefano Sabatini wrote:
> > Tested, applied, and reverted.
> > 
> > See commit log for details.
> > 
> Check the attached diff file, it should work for every case regardless of libflite having ALSA support or not.
> 
> Regards

> diff --git a/configure b/configure
> index 5aa891b..4cd85b2 100755
> --- a/configure
> +++ b/configure
> @@ -3619,6 +3619,7 @@ fi
>  check_lib math.h sin -lm && LIBM="-lm"
>  disabled crystalhd || check_lib libcrystalhd/libcrystalhd_if.h DtsCrystalHDVersion -lcrystalhd || disable crystalhd
>  enabled vaapi && require vaapi va/va.h vaInitialize -lva
> +enabled_any alsa_indev alsa_outdev && check_lib2 alsa/asoundlib.h snd_pcm_htimestamp -lasound
>  
>  check_mathfunc cbrtf
>  check_mathfunc exp2
> @@ -3772,8 +3773,6 @@ EOF
>  fi
>  check_header soundcard.h
>  
> -enabled_any alsa_indev alsa_outdev && check_lib2 alsa/asoundlib.h snd_pcm_htimestamp -lasound
> -
>  enabled jack_indev && check_lib2 jack/jack.h jack_client_open -ljack && check_func sem_timedwait &&
>      check_func jack_port_get_latency_range -ljack

Unfortunately this doesn't work if --disable-indevs --disable-outdevs
and libflite was statically compiled with alsa support, the patch
might still be useful on its own and can't be hurtful.
-- 
FFmpeg = Freak and Forgiving Mythic Puristic Emblematic Governor


More information about the ffmpeg-devel mailing list