From: Juan Quintela Date: Tue, 10 Mar 2020 11:14:31 +0000 (+0100) Subject: configure: Improve zstd test X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=297254c71b302abf9f4f37c41e274b5722e1a5da;p=qemu.git configure: Improve zstd test There were one error on the test (missing an s for --exists). But we really need a recent zstd (1.4.0). Thanks to Michal Privoznik to provide the right vension. Signed-off-by: Juan Quintela Reported-by: Richard Henderson Message-Id: <20200310111431.173151-1-quintela@redhat.com> Reviewed-by: Dr. David Alan Gilbert Signed-off-by: Dr. David Alan Gilbert --- diff --git a/configure b/configure index 3c7470096f..eb49bb6680 100755 --- a/configure +++ b/configure @@ -2475,7 +2475,8 @@ fi # zstd check if test "$zstd" != "no" ; then - if $pkg_config --exist libzstd ; then + libzstd_minver="1.4.0" + if $pkg_config --atleast-version=$libzstd_minver libzstd ; then zstd_cflags="$($pkg_config --cflags libzstd)" zstd_libs="$($pkg_config --libs libzstd)" LIBS="$zstd_libs $LIBS"