summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorarpi_esp <arpi_esp@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-04-10 21:25:09 +0000
committerarpi_esp <arpi_esp@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-04-10 21:25:09 +0000
commit3f35b04a4e5aa8df4e6682dde70ab0cb36b824c0 (patch)
tree24e4d0003655487d364aa0596179593d6f032a6d /configure
parent1a57110e1e9bef6a3d33ad770ab3c99af9d0576d (diff)
downloadmpv-3f35b04a4e5aa8df4e6682dde70ab0cb36b824c0.tar.bz2
mpv-3f35b04a4e5aa8df4e6682dde70ab0cb36b824c0.tar.xz
-lXdpms autodetection
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@331 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure8
1 files changed, 7 insertions, 1 deletions
diff --git a/configure b/configure
index ad023996bb..cb77f500dc 100755
--- a/configure
+++ b/configure
@@ -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