summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorrunge <runge>2006-11-21 22:47:23 +0000
committerrunge <runge>2006-11-21 22:47:23 +0000
commit75aca1c74d0df807603d1d113df36f4d4be3a89f (patch)
treed268aaf1bd2a6f315d5ff057b3e3e644fe38268b /configure.ac
parent27a884d2f3775cf4d97ea8f3d7433cbe2deebbfc (diff)
downloadlibtdevnc-75aca1c74d0df807603d1d113df36f4d4be3a89f.tar.gz
libtdevnc-75aca1c74d0df807603d1d113df36f4d4be3a89f.zip
enable --without-fbpm and --without-dpms
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac18
1 files changed, 12 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac
index a4705d8..1abd74e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -84,6 +84,8 @@ AC_ARG_WITH(xrecord,
[ --without-xrecord disable xrecord extension support],,)
AC_ARG_WITH(fbpm,
[ --without-fbpm disable fbpm extension support],,)
+AC_ARG_WITH(dpms,
+[ --without-dpms disable dpms extension support],,)
AC_ARG_WITH(v4l,
[ --without-v4l disable video4linux support],,)
AC_ARG_WITH(fbdev,
@@ -115,14 +117,18 @@ elif test "$X_CFLAGS" != "-DX_DISPLAY_MISSING"; then
[AC_DEFINE(HAVE_IRIX_XREADDISPLAY)], ,
[#include <X11/Xlib.h>])
- AC_CHECK_HEADER(X11/extensions/fbpm.h,
- [AC_DEFINE(HAVE_FBPM)], ,
- [#include <X11/Xlib.h>
+ if test "x$with_fbpm" != "xno"; then
+ AC_CHECK_HEADER(X11/extensions/fbpm.h,
+ [AC_DEFINE(HAVE_FBPM)], ,
+ [#include <X11/Xlib.h>
#include <X11/Xmd.h>])
+ fi
- AC_CHECK_HEADER(X11/extensions/dpms.h,
- [AC_DEFINE(HAVE_DPMS)], ,
- [#include <X11/Xlib.h>])
+ if test "x$with_dpms" != "xno"; then
+ AC_CHECK_HEADER(X11/extensions/dpms.h,
+ [AC_DEFINE(HAVE_DPMS)], ,
+ [#include <X11/Xlib.h>])
+ fi
AC_CHECK_LIB(Xtst, XTestGrabControl,
X_PRELIBS="-lXtst $X_PRELIBS"