From adae75ef2f8a655a699e982ca8f26b934dbe950a Mon Sep 17 00:00:00 2001 From: Alan Hourihane Date: Fri, 13 Oct 2006 17:10:27 +0100 Subject: Make VIDEO_DEBUG into a configure option --- configure.ac | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'configure.ac') 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]) -- cgit v1.2.3