summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorrunge <runge>2006-11-22 00:12:09 +0000
committerrunge <runge>2006-11-22 00:12:09 +0000
commit123cab092cc2a837ebccd30c18e6c138bdcbc2a8 (patch)
treed459adb1efbbe19adea36ddb37e711365cd38049 /configure.ac
parent75aca1c74d0df807603d1d113df36f4d4be3a89f (diff)
downloadlibtdevnc-123cab092cc2a837ebccd30c18e6c138bdcbc2a8.tar.gz
libtdevnc-123cab092cc2a837ebccd30c18e6c138bdcbc2a8.zip
use AC_CHECK_LIB for fbpm and dpms
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac9
1 files changed, 4 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac
index 1abd74e..b54cafd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -118,16 +118,15 @@ elif test "$X_CFLAGS" != "-DX_DISPLAY_MISSING"; then
[#include <X11/Xlib.h>])
if test "x$with_fbpm" != "xno"; then
- AC_CHECK_HEADER(X11/extensions/fbpm.h,
+ AC_CHECK_LIB(Xext, FBPMForceLevel,
[AC_DEFINE(HAVE_FBPM)], ,
- [#include <X11/Xlib.h>
-#include <X11/Xmd.h>])
+ $X_LIBS $X_PRELIBS -lX11 $X_EXTRA_LIBS)
fi
if test "x$with_dpms" != "xno"; then
- AC_CHECK_HEADER(X11/extensions/dpms.h,
+ AC_CHECK_LIB(Xext, DPMSForceLevel,
[AC_DEFINE(HAVE_DPMS)], ,
- [#include <X11/Xlib.h>])
+ $X_LIBS $X_PRELIBS -lX11 $X_EXTRA_LIBS)
fi
AC_CHECK_LIB(Xtst, XTestGrabControl,