[Mplayer-cvslog] CVS: main configure,1.161,1.162

Megyer Laszlo laaz at mplayer.dev.hu
Mon Sep 17 17:04:59 CEST 2001


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

Modified Files:
	configure 
Log Message:
Added X 4.0 DPMS support for configure script


Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.161
retrieving revision 1.162
diff -u -r1.161 -r1.162
--- configure	13 Sep 2001 07:28:11 -0000	1.161
+++ configure	17 Sep 2001 15:04:09 -0000	1.162
@@ -470,7 +470,8 @@
 _ggi=no
 _xv=no
 _vm=no
-_xdpms=no
+_xdpms_3=no
+_xdpms_4=no
 _3dfx=no
 _syncfb=no
 _mlib=no _mlibdir=/opt/SUNWmlib
@@ -853,7 +854,8 @@
 
 if [ $_x11 = yes ]; then
 
-$_cc $TMPC -o $TMPO $_x11libdir -lX11 -lXext -lXdpms $_socklib > /dev/null 2>&1 && _xdpms=yes
+$_cc $TMPC -o $TMPO $_x11libdir -lX11 -lXext -lXdpms $_socklib > /dev/null 2>&1 && _xdpms_3=yes
+nm `echo $_x11libdir|cut -b 3-`/libXext.a | grep -q DPMSQueryExtension && _xdpms_4=yes
 $_cc $TMPC -o $TMPO $_x11libdir -lX11 -lXext -lXv $_socklib > /dev/null 2>&1 && _xv=yes
 $_cc $TMPC -o $TMPO $_x11libdir -lX11 -lXext -lXxf86vm $_socklib > /dev/null 2>&1 && _vm=yes
 
@@ -1747,14 +1749,20 @@
 fi
 
 if [ $_x11 = yes ]; then
-  if [ $_xdpms = yes ]; then
+  if [ $_xdpms_3 = yes ]; then
     _x11lib='-lX11 -lXext -lXdpms'
     _have_xdpms='#define HAVE_XDPMS 1'
+  elif [ $_xdpms_4 = yes ]; then
+    _x11lib='-lX11 -lXext'
+    _have_xdpms='#define HAVE_XDPMS 1'
   else
     _x11lib='-lX11 -lXext'
     _have_xdpms='#undef HAVE_XDPMS'
   fi
 fi
+
+echo XXXXXXXXXX $_xdpms_3 $_xdpms_4
+
 
 if [ $_xv = yes ]; then
   _xvlib='-lXv'




More information about the MPlayer-cvslog mailing list