# HG changeset patch # User reimar # Date 1164566271 0 # Node ID aa706bcc07f09530cd006761ddfffc9127f99b65 # Parent a2e02e6b6379b7668e3166ff145e80f13d3a951d Move checking/defining HAVE_LINUX_DVD_STRUCT etc. to dvdcss check, since dvdread does not use them. Also seems to allow building with (external) dvdnav and internal dvdcss. diff -r a2e02e6b6379 -r aa706bcc07f0 configure --- a/configure Sun Nov 26 18:33:41 2006 +0000 +++ b/configure Sun Nov 26 18:37:51 2006 +0000 @@ -5170,15 +5170,6 @@ _def_dvdread='#define USE_DVDREAD 1' _inputmodules="dvdread $_inputmodules" _largefiles=yes - if linux || netbsd || openbsd || bsdos ; then - _def_dvd_linux='#define HAVE_LINUX_DVD_STRUCT 1' - openbsd && _dev_dvd_openbsd='#define HAVE_OPENBSD_DVD_STRUCT 1' - elif freebsd ; then - _def_dvd_bsd='#define HAVE_BSD_DVD_STRUCT 1' - elif darwin ; then - _def_dvd_darwin='#define DARWIN_DVD_IOCTL' - _ld_extra="$_ld_extra -framework IOKit" - fi elif test "$_dvdread" = yes; then _def_dvdread='#define USE_DVDREAD 1' _inputmodules="dvdread $_inputmodules" @@ -5198,6 +5189,15 @@ test "$_dvdread_internal" = yes && _libdvdcss_internal=yes fi if test "$_libdvdcss_internal" = yes ; then + if linux || netbsd || openbsd || bsdos ; then + _def_dvd_linux='#define HAVE_LINUX_DVD_STRUCT 1' + openbsd && _dev_dvd_openbsd='#define HAVE_OPENBSD_DVD_STRUCT 1' + elif freebsd ; then + _def_dvd_bsd='#define HAVE_BSD_DVD_STRUCT 1' + elif darwin ; then + _def_dvd_darwin='#define DARWIN_DVD_IOCTL' + _ld_extra="$_ld_extra -framework IOKit" + fi _inputmodules="libdvdcss $_inputmodules" else _noinputmodules="libdvdcss $_noinputmodules"