Mercurial > mplayer.hg
comparison configure @ 17191:6ac0b5f0d1ed
fix compilation when dvdkit and dvdread are not available
author | nicodvb |
---|---|
date | Wed, 14 Dec 2005 21:52:41 +0000 |
parents | ad0147f764d1 |
children | 3c172cd21575 |
comparison
equal
deleted
inserted
replaced
17190:d31af70c564e | 17191:6ac0b5f0d1ed |
---|---|
1491 _faad_internal=auto | 1491 _faad_internal=auto |
1492 _faad_external=auto | 1492 _faad_external=auto |
1493 _faac=auto | 1493 _faac=auto |
1494 _ladspa=auto | 1494 _ladspa=auto |
1495 _xmms=no | 1495 _xmms=no |
1496 _have_dvd=no | |
1496 # dvdnav disabled, it does not work | 1497 # dvdnav disabled, it does not work |
1497 #_dvdnav=no | 1498 #_dvdnav=no |
1498 _dvdread=auto | 1499 _dvdread=auto |
1499 _dvdkit=auto | 1500 _dvdkit=auto |
1500 _xanim=auto | 1501 _xanim=auto |
4946 fi | 4947 fi |
4947 else | 4948 else |
4948 _noinputmodules="mpdvdkit $_noinputmodules" | 4949 _noinputmodules="mpdvdkit $_noinputmodules" |
4949 fi | 4950 fi |
4950 if test "$_dvdkit" = yes || test "$_dvdkit2" = yes; then | 4951 if test "$_dvdkit" = yes || test "$_dvdkit2" = yes; then |
4952 _have_dvd=yes | |
4951 echores "yes" | 4953 echores "yes" |
4952 else | 4954 else |
4953 echores "no" | 4955 echores "no" |
4954 fi | 4956 fi |
4955 | 4957 |
4975 yes) | 4977 yes) |
4976 _largefiles=yes | 4978 _largefiles=yes |
4977 _def_dvdread='#define USE_DVDREAD 1' | 4979 _def_dvdread='#define USE_DVDREAD 1' |
4978 _ld_dvdread='-ldvdread' | 4980 _ld_dvdread='-ldvdread' |
4979 _inputmodules="dvdread $_inputmodules" | 4981 _inputmodules="dvdread $_inputmodules" |
4982 _have_dvd=yes | |
4980 echores "yes" | 4983 echores "yes" |
4981 ;; | 4984 ;; |
4982 no) | 4985 no) |
4983 _def_dvdread='#undef USE_DVDREAD' | 4986 _def_dvdread='#undef USE_DVDREAD' |
4984 _noinputmodules="dvdread $_noinputmodules" | 4987 _noinputmodules="dvdread $_noinputmodules" |
4988 _largefiles=yes | 4991 _largefiles=yes |
4989 _def_dvdread='#define USE_DVDREAD 1' | 4992 _def_dvdread='#define USE_DVDREAD 1' |
4990 _ld_dvdread='-Llibmpdvdkit -lmpdvdkit' | 4993 _ld_dvdread='-Llibmpdvdkit -lmpdvdkit' |
4991 _noinputmodules="dvdread $_noinputmodules" | 4994 _noinputmodules="dvdread $_noinputmodules" |
4992 _def_mpdvdkit="#define USE_MPDVDKIT 1" | 4995 _def_mpdvdkit="#define USE_MPDVDKIT 1" |
4996 _have_dvd=yes | |
4993 echores "disabled by libmpdvdkit" | 4997 echores "disabled by libmpdvdkit" |
4994 ;; | 4998 ;; |
4995 libmpdvdkit2) | 4999 libmpdvdkit2) |
4996 _largefiles=yes | 5000 _largefiles=yes |
4997 _def_dvdread='#define USE_DVDREAD 1' | 5001 _def_dvdread='#define USE_DVDREAD 1' |
4998 _ld_dvdread='-Llibmpdvdkit2 -lmpdvdkit' | 5002 _ld_dvdread='-Llibmpdvdkit2 -lmpdvdkit' |
4999 _noinputmodules="dvdread $_noinputmodules" | 5003 _noinputmodules="dvdread $_noinputmodules" |
5000 _def_mpdvdkit="#define USE_MPDVDKIT 2" | 5004 _def_mpdvdkit="#define USE_MPDVDKIT 2" |
5005 _have_dvd=yes | |
5001 echores "disabled by libmpdvdkit2" | 5006 echores "disabled by libmpdvdkit2" |
5002 ;; | 5007 ;; |
5003 esac | 5008 esac |
5009 | |
5010 if test "$_have_dvd" = yes ; then | |
5011 _def_have_dvd='#define HAVE_DVD 1' | |
5012 else | |
5013 _def_have_dvd='#undef HAVE_DVD' | |
5014 fi | |
5004 | 5015 |
5005 # dvdnav disabled, it does not work | 5016 # dvdnav disabled, it does not work |
5006 # echocheck "DVD support (libdvdnav)" | 5017 # echocheck "DVD support (libdvdnav)" |
5007 # if test "$_dvdnav" = yes ; then | 5018 # if test "$_dvdnav" = yes ; then |
5008 # cat > $TMPC <<EOF | 5019 # cat > $TMPC <<EOF |
7114 | 7125 |
7115 # input/demuxer/codecs | 7126 # input/demuxer/codecs |
7116 TERMCAP_LIB = $_ld_termcap | 7127 TERMCAP_LIB = $_ld_termcap |
7117 LIRC_LIB = $_ld_lirc | 7128 LIRC_LIB = $_ld_lirc |
7118 LIRCC_LIB = $_ld_lircc | 7129 LIRCC_LIB = $_ld_lircc |
7130 HAVE_DVD = $_have_dvd | |
7131 DVDREAD = $_dvdread | |
7119 DVDREAD_LIB = $_ld_dvdread | 7132 DVDREAD_LIB = $_ld_dvdread |
7120 DVDKIT = $_dvdkit | 7133 DVDKIT = $_dvdkit |
7121 DVDKIT2 = $_dvdkit2 | 7134 DVDKIT2 = $_dvdkit2 |
7122 DVDKIT_SHARED = no | 7135 DVDKIT_SHARED = no |
7123 SDL_INC = $_inc_sdl | 7136 SDL_INC = $_inc_sdl |
7288 $_dev_dvd_openbsd | 7301 $_dev_dvd_openbsd |
7289 $_def_dvd_darwin | 7302 $_def_dvd_darwin |
7290 $_def_sol_scsi_h | 7303 $_def_sol_scsi_h |
7291 $_def_hpux_scsi_h | 7304 $_def_hpux_scsi_h |
7292 $_def_stddef | 7305 $_def_stddef |
7306 $_def_have_dvd | |
7293 | 7307 |
7294 /* Common data directory (for fonts, etc) */ | 7308 /* Common data directory (for fonts, etc) */ |
7295 #define MPLAYER_DATADIR "$_datadir" | 7309 #define MPLAYER_DATADIR "$_datadir" |
7296 #define MPLAYER_CONFDIR "$_confdir" | 7310 #define MPLAYER_CONFDIR "$_confdir" |
7297 #define MPLAYER_LIBDIR "$_libdir" | 7311 #define MPLAYER_LIBDIR "$_libdir" |