From 75aca1c74d0df807603d1d113df36f4d4be3a89f Mon Sep 17 00:00:00 2001 From: runge Date: Tue, 21 Nov 2006 22:47:23 +0000 Subject: enable --without-fbpm and --without-dpms --- configure.ac | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'configure.ac') 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 ]) - AC_CHECK_HEADER(X11/extensions/fbpm.h, - [AC_DEFINE(HAVE_FBPM)], , - [#include + if test "x$with_fbpm" != "xno"; then + AC_CHECK_HEADER(X11/extensions/fbpm.h, + [AC_DEFINE(HAVE_FBPM)], , + [#include #include ]) + fi - AC_CHECK_HEADER(X11/extensions/dpms.h, - [AC_DEFINE(HAVE_DPMS)], , - [#include ]) + if test "x$with_dpms" != "xno"; then + AC_CHECK_HEADER(X11/extensions/dpms.h, + [AC_DEFINE(HAVE_DPMS)], , + [#include ]) + fi AC_CHECK_LIB(Xtst, XTestGrabControl, X_PRELIBS="-lXtst $X_PRELIBS" -- cgit v1.2.1