[Mplayer-cvslog] CVS: main configure,1.512,1.513

Atmosfear atmos4 at mplayerhq.hu
Sun Jun 16 01:55:10 CEST 2002


Update of /cvsroot/mplayer/main
In directory mail:/var/tmp.root/cvs-serv1500

Modified Files:
	configure 
Log Message:
Support for dvdnav-config script, patch by Christian Ohm <chr.ohm at gmx.net>


Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.512
retrieving revision 1.513
diff -u -r1.512 -r1.513
--- configure	15 Jun 2002 10:08:33 -0000	1.512
+++ configure	15 Jun 2002 23:55:06 -0000	1.513
@@ -240,6 +240,7 @@
   --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 @@
   --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 @@
 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 @@
 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




More information about the MPlayer-cvslog mailing list