diff options
author | Dave Airlie <airlied@linux.ie> | 2008-10-20 18:46:49 -0700 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2008-10-20 18:46:49 -0700 |
commit | ee3df629eaa388f09bec33ad04d443359d63ea7f (patch) | |
tree | fae6af0a91ab982be366e9976869f328de355087 /configure.ac | |
parent | 55cb65c6fdcf932d09e97abfa5374ee574676798 (diff) |
Default kernel mode setting to off, add configure flag to enable
Should help avoid unpleasantness.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/configure.ac b/configure.ac index d5db3a94..b7a9cc85 100644 --- a/configure.ac +++ b/configure.ac @@ -75,6 +75,11 @@ AC_ARG_ENABLE(xvmc, AC_HELP_STRING([--disable-xvmc], [XVMC="$enableval"], [XVMC=auto]) +AC_ARG_ENABLE(kms, AC_HELP_STRING([--enable-kms], + [Enable kernel mode setting support [[default=no]]]), + [KMS="$enableval"], + [KMS=no]) + # Checks for extensions XORG_DRIVER_CHECK_EXT(XINERAMA, xineramaproto) XORG_DRIVER_CHECK_EXT(RANDR, randrproto) @@ -107,13 +112,15 @@ if test x$DRI != xno; then [have_dristruct_h="yes"], [have_dristruct_h="no"]) AC_CHECK_FILE([${sdkdir}/damage.h], [have_damage_h="yes"], [have_damage_h="no"]) - AC_CHECK_HEADER(xf86drmMode.h, - [DRM_MODE=yes],[DRM_MODE=no] - [#include "stdint.h"]) - dnl exaGetPixmapDriverPrivate required for DRM_MODE. - PKG_CHECK_MODULES(DRM_MODE, [xorg-server >= 1.5], [], [DRM_MODE=no]) - if test "x$DRM_MODE" = xyes; then - AC_DEFINE(XF86DRM_MODE,1,[DRM kernel modesetting]) + if test x$KMS != xno; then + AC_CHECK_HEADER(xf86drmMode.h, + [DRM_MODE=yes],[DRM_MODE=no] + [#include "stdint.h"]) + dnl exaGetPixmapDriverPrivate required for DRM_MODE. + PKG_CHECK_MODULES(DRM_MODE, [xorg-server >= 1.5], [], [DRM_MODE=no]) + if test "x$DRM_MODE" = xyes; then + AC_DEFINE(XF86DRM_MODE,1,[DRM kernel modesetting]) + fi fi fi AC_MSG_CHECKING([whether to include DRI support]) |