changeset 330:3c7ce767bb32

-lXdpms autodetection
author arpi_esp
date Tue, 10 Apr 2001 21:25:09 +0000
parents a476981431f7
children 0f1737e626fa
files configure
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Tue Apr 10 20:47:37 2001 +0000
+++ b/configure	Tue Apr 10 21:25:09 2001 +0000
@@ -172,6 +172,7 @@
 _svga=no
 _fbdev=no
 _lirc=no
+_xdpms=no
 
 _x=1
 _y=1
@@ -363,6 +364,7 @@
 $_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 @@
 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