[virglrenderer-devel] [PATCH] Make GBM optional at configure time.

Joe Kniss djmk at google.com
Thu Nov 9 23:22:38 UTC 2017


Hi, sorry but this patch is incomplete.  Please ignore. I'll have a
complete patch shortly.

-j

On Wed, Nov 8, 2017 at 2:34 PM, Joe M. Kniss <djmk at chromium.org> wrote:
> Make GBM optional since it isn't always available with drivers
> on linux, for example nVidia does not provide a GBM implementation
> with their linux drivers.
>
> Signed-off-by: Joe M. Kniss <djmk at google.com>
> ---
>  configure.ac | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/configure.ac b/configure.ac
> index 5ffd448..09231d3 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -95,9 +95,13 @@ AM_CONDITIONAL(BUILD_TESTS, [test "x$build_tests" = "xyes"])
>
>  LIBDRM_REQUIRED=2.4.50
>
> +AC_ARG_ENABLE([gbm], AS_HELP_STRING([--disable-gbm], [Disable GBM]))
> +
>  if test "x$os_win32" = xno; then
>      PKG_CHECK_MODULES([LIBDRM], [libdrm >= $LIBDRM_REQUIRED])
> -    PKG_CHECK_MODULES([GBM], [gbm])
> +    AS_IF([test "x$enable_gbm" != "xno"], [
> +        PKG_CHECK_MODULES([GBM], [gbm])
> +    ])
>  fi
>
>  PKG_CHECK_MODULES([EPOXY], [epoxy])
> --
> 2.15.0.448.gf294e3d99a-goog
>


More information about the virglrenderer-devel mailing list