configure: Improve zstd test
authorJuan Quintela <quintela@redhat.com>
Tue, 10 Mar 2020 11:14:31 +0000 (12:14 +0100)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Fri, 13 Mar 2020 09:36:30 +0000 (09:36 +0000)
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 <quintela@redhat.com>
Reported-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20200310111431.173151-1-quintela@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
configure

index 3c7470096ffb4fc9b68475c2eb8b306027c8cf30..eb49bb6680c1863afe74505c42ccc1e71885186a 100755 (executable)
--- 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"