From 63e88a51c90a57d3277f213cfd4f06d4f0417982 Mon Sep 17 00:00:00 2001 From: Jon TURNEY Date: Fri, 3 Sep 2010 18:13:00 +0100 Subject: [PATCH] Cygwin: Add cygwin platform-specific settings for building -with-driver=dri Add Cygwin platform-specific settings and drivers to build for dri driver: - by default, disable direct rendering. - if direct rendering is enabled, only the swrast dridriver is sensible Signed-off-by: Jon TURNEY --- configure.ac | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/configure.ac b/configure.ac index d3597f6..dc72633 100644 --- a/configure.ac +++ b/configure.ac @@ -590,6 +590,10 @@ gnu*) dnl Disable by default on GNU/Hurd driglx_direct_default="no" ;; +cygwin*) + dnl Disable by default on cygwin + driglx_direct_default="no" + ;; *) driglx_direct_default="yes" ;; @@ -871,6 +875,16 @@ if test "$mesa_driver" = dri; then DEFINES="$DEFINES -DGLX_DIRECT_RENDERING" fi ;; + cygwin*) + DEFINES="$DEFINES -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER" + DEFINES="$DEFINES -DGLX_INDIRECT_RENDERING" + if test "x$driglx_direct" = xyes; then + DEFINES="$DEFINES -DGLX_DIRECT_RENDERING" + fi + if test "x$DRI_DIRS" = "xyes"; then + DRI_DIRS="swrast" + fi + ;; esac # default drivers -- 1.7.1