aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorMax Horn2006-10-28 13:21:43 +0000
committerMax Horn2006-10-28 13:21:43 +0000
commit71763c3630523952f5e70ef72ac6bc7f1291cada (patch)
tree312c5193a1dbd71c4b0cc2def9667dc3265f78f4 /configure
parentdfd57406ff08deff0f15c9c6964c17d58d5a33f0 (diff)
downloadscummvm-rg350-71763c3630523952f5e70ef72ac6bc7f1291cada.tar.gz
scummvm-rg350-71763c3630523952f5e70ef72ac6bc7f1291cada.tar.bz2
scummvm-rg350-71763c3630523952f5e70ef72ac6bc7f1291cada.zip
Modified version of patch #1584720 (add support for FLAC-1.1.3)
svn-id: r24554
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure10
1 files changed, 5 insertions, 5 deletions
diff --git a/configure b/configure
index ffa7190c46..aad94072ae 100755
--- a/configure
+++ b/configure
@@ -1044,15 +1044,15 @@ echocheck "FLAC >= 1.0.1"
if test "$_flac" = auto ; then
_flac=no
cat > $TMPC << EOF
-#include <FLAC/seekable_stream_decoder.h>
-int main(void) { FLAC__seekable_stream_decoder_init( 0 ); return 0; }
+#include <FLAC/format.h>
+int main(void) { return FLAC__STREAM_SYNC_LEN >> 30; /* guaranteed to be 0 */ }
EOF
- cc_check $LDFLAGS $CXXFLAGS $FLAC_CFLAGS $FLAC_LIBS \
- -lFLAC -lm && _flac=yes
+ cc_check $LDFLAGS $CXXFLAGS $FLAC_CFLAGS $FLAC_LIBS $OGG_CFLAGS $OGG_LIBS \
+ -lFLAC -logg -lm && _flac=yes
fi
if test "$_flac" = yes ; then
_def_flac='#define USE_FLAC'
- LIBS="$LIBS $FLAC_LIBS -lFLAC"
+ LIBS="$LIBS $FLAC_LIBS $OGG_LIBS -lFLAC -logg"
INCLUDES="$INCLUDES $FLAC_CFLAGS"
else
_def_flac='#undef USE_FLAC'