[cairo] [PATCH] configure.ac: configuration check to enable either gl or glesv2, not both at the same time

Bryce Harrington bryce at osg.samsung.com
Thu Aug 21 12:34:24 PDT 2014


On Wed, Aug 20, 2014 at 11:45:19AM +0530, Ravi Nanjundappa wrote:
> A proposed solution for the discussion in
> https://bugs.freedesktop.org/show_bug.cgi?id=57379#c12,
> to avoid muliple definition of cairo_gl_* symbols when
> both gl and glesv2 backends are enabled at the same time
> 
> Signed-off-by: Ravi Nanjundappa <nravi.n at samsung.com>

Thanks, merged.

> ---
>  configure.ac |    4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/configure.ac b/configure.ac
> index 23f2054..4e28adf 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -378,6 +378,10 @@ CAIRO_ENABLE_SURFACE_BACKEND(glesv2, OpenGLESv2, no, [
>      glesv2_LIBS="$glesv2_LIBS -ldl"
>    fi
>  
> +  if test "x$use_glesv2" = "xyes" -a "x$use_gl" = "xyes"; then
> +      AC_MSG_ERROR([use either --enable-gl=yes or --enable-glesv2=yes. Not both at the same time.])
> +  fi
> +
>    need_egl_functions=yes
>  ])
>  
> -- 
> 1.7.9.5
> 
> -- 
> cairo mailing list
> cairo at cairographics.org
> http://lists.cairographics.org/mailman/listinfo/cairo


More information about the cairo mailing list