RCS file: /cvsroot/scummvm/scummvm/configure,v
retrieving revision 1.70
diff -u -r1.70 configure
|
|
|
26 | 26 | |
27 | 27 | # default lib behaviour yes/no/auto |
28 | 28 | _vorbis=auto |
| 29 | _flac=auto |
29 | 30 | _mad=auto |
30 | 31 | _alsa=auto |
31 | 32 | _zlib=auto |
… |
… |
|
207 | 208 | |
208 | 209 | --with-mad-prefix=PFX Prefix where libmad is installed (optional) |
209 | 210 | --disable-mad disable libmad (MP3) support [autodetect] |
| 211 | |
| 212 | --with-flac-prefix=PFX Prefix where libFLAC is installed (optional) |
| 213 | --disable-flac disable FLAC support [autodetect] |
210 | 214 | |
211 | 215 | --with-zlib-prefix=PFX Prefix where zlib is installed (optional) |
212 | 216 | --disable-zlib disable zlib (compression) support [autodetect] |
… |
… |
|
243 | 247 | --disable-alsa) _alsa=no ;; |
244 | 248 | --enable-vorbis) _vorbis=yes ;; |
245 | 249 | --disable-vorbis) _vorbis=no ;; |
| 250 | --enable-flac) _flac=yes ;; |
| 251 | --disable-flac) _flac=no ;; |
246 | 252 | --enable-mad) _mad=yes ;; |
247 | 253 | --disable-mad) _mad=no ;; |
248 | 254 | --enable-zlib) _zlib=yes ;; |
… |
… |
|
269 | 275 | VORBIS_CFLAGS="-I$_prefix/include" |
270 | 276 | VORBIS_LIBS="-L$_prefix/lib" |
271 | 277 | ;; |
| 278 | --with-flac-prefix=*) |
| 279 | _prefix=`echo $ac_option | cut -d '=' -f 2` |
| 280 | FLAC_CFLAGS="-I$_prefix/include" |
| 281 | FLAC_LIBS="-L$_prefix/lib" |
| 282 | ;; |
272 | 283 | --with-mad-prefix=*) |
273 | 284 | _prefix=`echo $ac_option | cut -d '=' -f 2` |
274 | 285 | MAD_CFLAGS="-I$_prefix/include" |
… |
… |
|
622 | 633 | fi |
623 | 634 | echo "$_vorbis" |
624 | 635 | |
| 636 | echocheck "FLAC" |
| 637 | if test "$_flac" = auto ; then |
| 638 | _flac=no |
| 639 | cat > $TMPC << EOF |
| 640 | #include <FLAC/seekable_stream_decoder.h> |
| 641 | int main(void) { FLAC__seekable_stream_decoder_init( 0 ); return 0; } |
| 642 | EOF |
| 643 | cc_check $LDFLAGS $CXXFLAGS $FLAC_CFLAGS $FLAY_LIBS \ |
| 644 | -lFLAC -lm && _flac=yes |
| 645 | fi |
| 646 | if test "$_flac" = yes ; then |
| 647 | _def_flac='#define USE_FLAC' |
| 648 | LIBS="$LIBS $FLAC_LIBS -lFLAC" |
| 649 | INCLUDES="$INCLUDES $FLAC_CFLAGS" |
| 650 | else |
| 651 | _def_flac='#undef USE_FLAC' |
| 652 | fi |
| 653 | echo "$_flac" |
| 654 | |
625 | 655 | # |
626 | 656 | # Check for MAD (MP3 library) |
627 | 657 | # |
… |
… |
|
809 | 839 | |
810 | 840 | /* Libs */ |
811 | 841 | $_def_vorbis |
| 842 | $_def_flac |
812 | 843 | $_def_mad |
813 | 844 | $_def_alsa |
814 | 845 | $_def_zlib |