[Mesa-dev] [PATCH] configure.ac: Allowing building without shader cache without zlib.

Emil Velikov emil.l.velikov at gmail.com
Sat Mar 4 22:24:25 UTC 2017


On 4 March 2017 at 22:13, Vinson Lee <vlee at freedesktop.org> wrote:
> Fixes: 85a9b1b562b6 ("util/disk_cache: compress individual cache entries")
> Signed-off-by: Vinson Lee <vlee at freedesktop.org>
> ---
>  configure.ac | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/configure.ac b/configure.ac
> index 943bc05adcd6..3526849b6dd2 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -786,7 +786,7 @@ dnl See if posix_memalign is available
>  AC_CHECK_FUNC([posix_memalign], [DEFINES="$DEFINES -DHAVE_POSIX_MEMALIGN"])
>
>  dnl Check for zlib
> -PKG_CHECK_MODULES([ZLIB], [zlib >= $ZLIB_REQUIRED])
> +PKG_CHECK_MODULES([ZLIB], [zlib >= $ZLIB_REQUIRED], [DEFINES="$DEFINES -DENABLE_SHADER_CACHE"], [:])
>
Why - is it causing breakage or any system ?

Afaict we really want to have this tested thoroughly and silently
disabling it is a very bad idea.

-Emil


More information about the mesa-dev mailing list