summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorZoxc <zoxc32@gmail.com>2010-06-14 01:20:54 +0200
committerChris Wilson <chris@chris-wilson.co.uk>2010-06-14 12:46:26 +0100
commit505a0456d2498112155db7e7f275a14dc98f643e (patch)
treedf0b9fc3a851e9ca60c1f29d7bdb3da74af67ce6 /configure.ac
parentfd6c38b9e006feefa20ce4f54d3108dad51c828d (diff)
gl: Added WGL context and surface.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac9
1 files changed, 9 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index dc54b588b..fe262b20e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -348,6 +348,7 @@ CAIRO_ENABLE_SURFACE_BACKEND(gl, OpenGL, no, [
CAIRO_CFLAGS="$CAIRO_CFLAGS -I\$(top_srcdir)/src/glew"
fi
need_glx_functions=yes
+ need_wgl_functions=yes
need_egl_functions=yes
])
@@ -417,6 +418,14 @@ CAIRO_ENABLE_FUNCTIONS(glx, GLX, auto, [
fi
])
+CAIRO_ENABLE_FUNCTIONS(wgl, WGL, auto, [
+ if test "x$need_wgl_functions" = "xyes"; then
+ AC_CHECK_HEADER(windows.h,, [use_wgl="no (WGL headers not found)"])
+ else
+ use_wgl="no (not required by any backend)"
+ fi
+])
+
dnl ===========================================================================
any2ppm_cs=no