summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Hourihane <alanh@fairlite.demon.co.uk>2006-10-13 17:10:27 +0100
committerAlan Hourihane <alanh@fairlite.demon.co.uk>2006-10-13 17:10:27 +0100
commitadae75ef2f8a655a699e982ca8f26b934dbe950a (patch)
tree2b97cac8ba533c7af218f4735b02e4d3cad54eee
parent1d4cfaa391ac41099de11b8f3b21e5eb56543909 (diff)
Make VIDEO_DEBUG into a configure option
-rw-r--r--configure.ac10
-rw-r--r--src/i830_video.c1
2 files changed, 10 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 042d67da..c91b1df7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -65,6 +65,11 @@ AC_ARG_ENABLE(dri, AC_HELP_STRING([--disable-dri],
[DRI="$enableval"],
[DRI=auto])
+AC_ARG_ENABLE(video-debug, AC_HELP_STRING([--enable-video-debug],
+ [Enable video debugging support [[default=no]]]),
+ [VIDEO_DEBUG="$enableval"],
+ [VIDEO_DEBUG=no])
+
# Checks for extensions
XORG_DRIVER_CHECK_EXT(XINERAMA, xineramaproto)
@@ -122,6 +127,11 @@ if test "$DRI" = yes; then
AC_DEFINE(XF86DRI_DEVEL,1,[Enable developmental DRI driver support])
fi
+AM_CONDITIONAL(VIDEO_DEBUG, test x$VIDEO_DEBUG = xyes)
+if test "$VIDEO_DEBUG" = yes; then
+ AC_DEFINE(VIDEO_DEBUG,1,[Enable debug support])
+fi
+
AC_SUBST([DRI_CFLAGS])
AC_SUBST([XORG_CFLAGS])
AC_SUBST([moduledir])
diff --git a/src/i830_video.c b/src/i830_video.c
index db21d872..054d26bb 100644
--- a/src/i830_video.c
+++ b/src/i830_video.c
@@ -1,4 +1,3 @@
-#define VIDEO_DEBUG 0
/***************************************************************************
Copyright 2000 Intel Corporation. All Rights Reserved.