diff options
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 31 |
1 files changed, 30 insertions, 1 deletions
diff --git a/configure.in b/configure.in index 8484f0885..35d6862e7 100644 --- a/configure.in +++ b/configure.in @@ -235,11 +235,40 @@ AC_ARG_ENABLE(glitz, [use_glitz=$enableval], [use_glitz=no]) if test "x$use_glitz" = "xyes"; then - PKG_CHECK_MODULES(GLITZ, glitz >= 0.5.0, [ + PKG_CHECK_MODULES(GLITZ, glitz >= 0.5.1, [ GLITZ_REQUIRES=glitz use_glitz=yes], [use_glitz="no (requires glitz http://freedesktop.org/Software/glitz)"]) fi +if test "x$use_glitz" = "xyes";then + PKG_CHECK_MODULES(GLITZ_AGL, glitz-agl >= 0.5.1, + [have_glitz_agl=yes], [have_glitz_agl=no]) + PKG_CHECK_MODULES(GLITZ_EGL, glitz-egl >= 0.5.1, + [have_glitz_egl=yes], [have_glitz_egl=no]) + PKG_CHECK_MODULES(GLITZ_GLX, glitz-glx >= 0.5.1, + [have_glitz_glx=yes], [have_glitz_glx=no]) + PKG_CHECK_MODULES(GLITZ_WGL, glitz-wgl >= 0.5.1, + [have_glitz_wgl=yes], [have_glitz_wgl=no]) + + if test "x$have_glitz_agl" = "xyes";then + AC_DEFINE(CAIRO_CAN_TEST_GLITZ_AGL_SURFACE, 1, [define if glitz backend can be tested against agl]) + fi + if test "x$have_glitz_egl" = "xyes";then + AC_DEFINE(CAIRO_CAN_TEST_GLITZ_EGL_SURFACE, 1, [define if glitz backend can be tested against egl]) + fi + if test "x$have_glitz_glx" = "xyes";then + AC_DEFINE(CAIRO_CAN_TEST_GLITZ_GLX_SURFACE, 1, [define if glitz backend can be tested against glx]) + fi + if test "x$have_glitz_wgl" = "xyes";then + AC_DEFINE(CAIRO_CAN_TEST_GLITZ_WGL_SURFACE, 1, [define if glitz backend can be tested against wgl]) + fi +fi + +AM_CONDITIONAL(CAIRO_CAN_TEST_GLITZ_AGL_SURFACE, test "x$have_glitz_agl" = "xyes") +AM_CONDITIONAL(CAIRO_CAN_TEST_GLITZ_EGL_SURFACE, test "x$have_glitz_egl" = "xyes") +AM_CONDITIONAL(CAIRO_CAN_TEST_GLITZ_GLX_SURFACE, test "x$have_glitz_glx" = "xyes") +AM_CONDITIONAL(CAIRO_CAN_TEST_GLITZ_WGL_SURFACE, test "x$have_glitz_wgl" = "xyes") + AM_CONDITIONAL(CAIRO_HAS_GLITZ_SURFACE, test "x$use_glitz" = "xyes") if test "x$use_glitz" = "xyes"; then GLITZ_SURFACE_FEATURE="#define CAIRO_HAS_GLITZ_SURFACE 1" |