Mercurial > mplayer.hg
diff configure @ 6384:f0b933918a22
Support for playing audio cds using cdparanoia. Include a raw audio
demuxer wich can be used for other purpose.
author | albeu |
---|---|
date | Tue, 11 Jun 2002 14:29:51 +0000 |
parents | 48e3f3cc291a |
children | ce074b142a88 |
line wrap: on
line diff
--- a/configure Mon Jun 10 18:43:42 2002 +0000 +++ b/configure Tue Jun 11 14:29:51 2002 +0000 @@ -162,6 +162,7 @@ --disable-dvdnav Disable dvdnav support [autodetect] --disable-dvdread Disable libdvdread support [autodetect] --disable-mpdvdkit Disable mpdvdkit support [autodetect] + --disable-cdparanoia Disable cdparanoia support [autodetect] Video: --enable-gl build with OpenGL render support [autodetect] @@ -904,6 +905,7 @@ _i18n=no _sighandler=yes _libdv=auto +_cdparanoia=auto for ac_option do case "$ac_option" in @@ -1058,6 +1060,8 @@ --disable-select) _select=no ;; --enable-linux-devfs) _linux_devfs=yes ;; --disable-linux-devfs) _linux_devfs=no ;; + --enable-cdparanoia) _cdparanoia=yes ;; + --disable-cdparanoia) _cdparanoia=no ;; --enable-dga) _dga=auto ;; # as we don't know if it's 1 or 2 --enable-dga=*) _dga=`echo $ac_option | cut -d '=' -f 2` ;; @@ -1147,6 +1151,12 @@ --with-madlibdir=*) _ld_mad=-L`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -L,g'` ;; + --with-cdparanoiaincdir=*) + _inc_cdparanoia=-I`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -I,g'` + ;; + --with-cdparanoialibdir=*) + _ld_cdparanoia=-L`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -L,g'` + ;; --prefix=*) _prefix=`echo $ac_option | cut -d '=' -f 2` @@ -3005,6 +3015,25 @@ echores "no" fi +echocheck "cdparanoia" +if test "$_cdparanoia" = auto ; then + cat > $TMPC <<EOF +#include <cdda_interface.h> +#include <cdda_paranoia.h> +// This need a better test. How ? +int main(void) { return 1; } +EOF + _cdparanoia=no + cc_check $_inc_cdparnoia $_ld_cdparanoia -lcdda_interface -lcdda_paranoia && _cdparanoia=yes +fi +if test "$_cdparanoia" = yes ; then + _def_cdparanoia='#define HAVE_CDDA' + _ld_cdparanoia="$_ld_cdparanoia -lcdda_interface -lcdda_paranoia" +else + _def_cdparanoia='#undef HAVE_CDDA' +fi +echores "$_cdparanoia" + echocheck "zlib" cat > $TMPC << EOF #include <zlib.h> @@ -3966,6 +3995,8 @@ DIRECTFB_INC = $_inc_directfb DIRECTFB_LIB = $_ld_directfb NEW_INPUT_LIB = $_ld_new_input +CDPARANOIA_INC = $_inc_cdparnoia +CDPARANOIA_LIB = $_ld_cdparanoia # --- Some stuff for autoconfigure ---- $_target_arch @@ -4283,6 +4314,9 @@ /* enable streaming */ $_def_streaming +/* enables / disables cdparanoia support */ +$_def_cdparanoia + /* enables / disables vidix usage */ $_def_vidix