summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authoratmos4 <atmos4@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-06-15 23:55:06 +0000
committeratmos4 <atmos4@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-06-15 23:55:06 +0000
commit56d5ebb2fc8fe00ce2261fa8bc6a50fee7fff223 (patch)
treebe3e59097d26667d6083aca14c8b3208ed710bf5 /configure
parent29043c589c397e87c3cc42d73e5131886481c6bb (diff)
downloadmpv-56d5ebb2fc8fe00ce2261fa8bc6a50fee7fff223.tar.bz2
mpv-56d5ebb2fc8fe00ce2261fa8bc6a50fee7fff223.tar.xz
Support for dvdnav-config script, patch by Christian Ohm <chr.ohm@gmx.net>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6439 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure18
1 files changed, 17 insertions, 1 deletions
diff --git a/configure b/configure
index 0650aff704..c8304230ba 100755
--- a/configure
+++ b/configure
@@ -240,6 +240,7 @@ Use these options if autodetection fails:
--with-sdl-config=PATH path to sdl*-config (e.g.: /opt/bin/sdl-config)
--with-gtk-config=PATH path to gtk*-config (e.g.: /opt/bin/gtk-config)
--with-glib-config=PATH path to glib*-config (e.g.: /opt/bin/glib-config)
+ --with-dvdnav-config=PATH path to dvdnav-config
EOF
exit 0
@@ -1209,6 +1210,9 @@ for ac_option do
--with-glib-config=*)
_glibconfig=`echo $ac_option | cut -d '=' -f 2`
;;
+ --with-dvdnav-config=*)
+ _dvdnavconfig=`echo $ac_option | cut -d '=' -f 2`
+ ;;
--with-madlibdir=*)
_ld_mad=-L`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -L,g'`
;;
@@ -3057,6 +3061,12 @@ int main(void) { dvdnav_t *dvd=0; return 0; }
EOF
_dvdnav=no
test -n "$_dvdnavdir" && _legal_dvdnavdir=-L$_dvdnavdir/.libs
+ if test -z "$_dvdnavconfig" ; then
+ if ( dvdnav-config --version ) >/dev/null 2>&1 ; then
+ _dvdnavconfig="dvdnav-config"
+ fi
+ fi
+ test -z "$_dvdnavdir" && test -n "$_dvdnavconfig" && _dvdnavdir=`$_dvdnavconfig --cflags`
_used_css=
test "$_dvdkit" = no && _used_css=$_ld_css
cc_check $_inc_extra -I$_dvdnavdir $_legal_dvdnavdir -ldvdnav $_used_css $_ld_dl && _dvdnav=yes
@@ -3064,7 +3074,13 @@ fi
if test "$_dvdnav" = yes ; then
_largefiles=yes
_def_dvdnav='#define USE_DVDNAV 1'
- _ld_css="$_ld_css $_legal_dvdnavdir -ldvdnav"
+ if test -n "$_legal_dvdnavdir" ; then
+ _ld_css="$_ld_css $_legal_dvdnavdir -ldvdnav"
+ elif test -n "$_dvdnavconfig" ; then
+ _ld_css="$_ld_css `$_dvdnavconfig --libs`"
+ else
+ _ld_css="$_ld_css -ldvdnav"
+ fi
if test -n "$_dvdnavdir" ; then
_inc_extra="$_inc_extra -I$_dvdnavdir"
fi