-lXdpms autodetection

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@331 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi_esp
2001-04-10 21:25:09 +00:00
parent 1a57110e1e
commit 3f35b04a4e
Vendored
+7 -1
View File
@@ -172,6 +172,7 @@ _dga2=no
_svga=no
_fbdev=no
_lirc=no
_xdpms=no
_x=1
_y=1
@@ -363,6 +364,7 @@ $_cc $TMPC -o $TMPO $_x11libdir/ -lGL &> /dev/null && _gl=yes
$_cc $TMPC -o $TMPO $_x11libdir/ -lXxf86vm &> /dev/null && _vm=yes
$_cc $TMPC -o $TMPO -lvgagl -lvga &> /dev/null && _svga=yes
$_cc $TMPC -o $TMPO $_x11libdir -lX11 -lXext &> /dev/null && _x11=yes
$_cc $TMPC -o $TMPO $_x11libdir -lX11 -lXext -lXdpms &> /dev/null && _xdpms=yes
$_cc $TMPC -o $TMPO $_x11libdir -lXv &> /dev/null && _xv=yes
$_cc $TMPC -o $TMPO $_x11libdir -L/usr/local/lib/ -lpthread &> /dev/null || \
{ echo "Lib pthread not found."; rm -f $TMPC $TMPO ; exit 1; }
@@ -594,7 +596,11 @@ if [ $_gl = yes ]; then
fi
if [ $_x11 = yes ]; then
_x11lib='-lX11 -lXext -lXdpms'
if [ $_xdpms = yes ]; then
_x11lib='-lX11 -lXext -lXdpms'
else
_x11lib='-lX11 -lXext'
fi
fi
if [ $_xv = yes ]; then