1 Use pkg-config to determine alsa link flags. This fixes static linking.
3 Signed-off-by: Baruch Siach <baruch@tkos.co.il>
5 diff -Nuar flite-1.4-release.orig/configure.in flite-1.4-release/configure.in
6 --- flite-1.4-release.orig/flite-1.4-release/configure.in 2009-08-14 23:46:38.000000000 +0300
7 +++ flite-1.4-release/flite-1.4-release/configure.in 2014-04-30 18:52:33.253297236 +0300
11 AUDIODEFS=-DCST_AUDIO_ALSA
12 - AUDIOLIBS=-lasound])
13 + AUDIOLIBS=`pkg-config --libs alsa`
14 + if test "$shared" = false; then
15 + AUDIOLIBS=`pkg-config --libs --static alsa`
17 AC_CHECK_HEADER(mmsystem.h,
19 AUDIODEFS=-DCST_AUDIO_WINCE