From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1652) id 60667385829A; Mon, 7 Nov 2022 13:33:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 60667385829A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1667828027; bh=HySRz4/+Piif6iNf6AsmITa3tU6V0bmoLt7HGdcSoKk=; h=From:To:Subject:Date:From; b=azf6s3XaxJFISSFiz6xG4gWgPtCar9ZJvb0Nqm6x5rT8H2r6Jet2z5iipLTZ+BN2y eHJrA5bp9PBTFhYATSGMXmvIZwKZ60QZzI7yzjLpr7mP4AQ4mE/cBCRITVevGQn3Xl qbiLpIrceHiY+YSAat1FC93KAnkiDSeX/0TGK60c= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Christophe Lyon To: bfd-cvs@sourceware.org, gdb-cvs@sourceware.org Subject: [binutils-gdb] configure: require libzstd >= 1.4.0 X-Act-Checkin: binutils-gdb X-Git-Author: Christophe Lyon X-Git-Refname: refs/heads/master X-Git-Oldrev: 8bfb6941c358ee2da8320125644c59bf90842f6b X-Git-Newrev: 200164d46732f6a2fb9d81aa9650c006db4148e6 Message-Id: <20221107133347.60667385829A@sourceware.org> Date: Mon, 7 Nov 2022 13:33:47 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D200164d46732= f6a2fb9d81aa9650c006db4148e6 commit 200164d46732f6a2fb9d81aa9650c006db4148e6 Author: Christophe Lyon Date: Fri Nov 4 11:06:47 2022 +0100 configure: require libzstd >=3D 1.4.0 =20 gas uses ZSTD_compressStream2 which is only available with libzstd >=3D 1.4.0, leading to build errors when an older version is installed. =20 This patch updates the check libzstd presence to check its version is >=3D 1.4.0. However, since gas seems to be the only component requiring such a recent version this may imply that we disable ZSTD support for all components although some would still benefit from an older version. =20 I ran 'autoreconf -f' in all directories containing a configure.ac file, using vanilla autoconf-2.69 and automake-1.15.1. I noticed several errors from autoheader in readline, as well as warnings in intl, but they are unrelated to this patch. =20 This should fix some of the buildbots. =20 OK for trunk? =20 Thanks, =20 Christophe Diff: --- bfd/configure | 20 ++++++++++---------- binutils/configure | 20 ++++++++++---------- config/zstd.m4 | 2 +- gas/configure | 20 ++++++++++---------- gdb/configure | 20 ++++++++++---------- ld/configure | 20 ++++++++++---------- libctf/configure | 20 ++++++++++---------- 7 files changed, 61 insertions(+), 61 deletions(-) diff --git a/bfd/configure b/bfd/configure index 1c1760670cb..5c6e3821a13 100755 --- a/bfd/configure +++ b/bfd/configure @@ -13167,19 +13167,19 @@ fi if test "$with_zstd" !=3D no; then : =20 pkg_failed=3Dno -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzstd" >&5 -$as_echo_n "checking for libzstd... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzstd >=3D 1.4.0" = >&5 +$as_echo_n "checking for libzstd >=3D 1.4.0... " >&6; } =20 if test -n "$ZSTD_CFLAGS"; then pkg_cv_ZSTD_CFLAGS=3D"$ZSTD_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --pri= nt-errors \"libzstd\""; } >&5 - ($PKG_CONFIG --exists --print-errors "libzstd") 2>&5 + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --pri= nt-errors \"libzstd >=3D 1.4.0\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libzstd >=3D 1.4.0") 2>&5 ac_status=3D$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? =3D $ac_status" >&5 test $ac_status =3D 0; }; then - pkg_cv_ZSTD_CFLAGS=3D`$PKG_CONFIG --cflags "libzstd" 2>/dev/null` + pkg_cv_ZSTD_CFLAGS=3D`$PKG_CONFIG --cflags "libzstd >=3D 1.4.0" 2>/dev/n= ull` test "x$?" !=3D "x0" && pkg_failed=3Dyes else pkg_failed=3Dyes @@ -13191,12 +13191,12 @@ if test -n "$ZSTD_LIBS"; then pkg_cv_ZSTD_LIBS=3D"$ZSTD_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --pri= nt-errors \"libzstd\""; } >&5 - ($PKG_CONFIG --exists --print-errors "libzstd") 2>&5 + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --pri= nt-errors \"libzstd >=3D 1.4.0\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libzstd >=3D 1.4.0") 2>&5 ac_status=3D$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? =3D $ac_status" >&5 test $ac_status =3D 0; }; then - pkg_cv_ZSTD_LIBS=3D`$PKG_CONFIG --libs "libzstd" 2>/dev/null` + pkg_cv_ZSTD_LIBS=3D`$PKG_CONFIG --libs "libzstd >=3D 1.4.0" 2>/dev/null` test "x$?" !=3D "x0" && pkg_failed=3Dyes else pkg_failed=3Dyes @@ -13241,9 +13241,9 @@ else _pkg_short_errors_supported=3Dno fi if test $_pkg_short_errors_supported =3D yes; then - ZSTD_PKG_ERRORS=3D`$PKG_CONFIG --short-errors --print-errors --cf= lags --libs "libzstd" 2>&1` + ZSTD_PKG_ERRORS=3D`$PKG_CONFIG --short-errors --print-errors --cf= lags --libs "libzstd >=3D 1.4.0" 2>&1` else - ZSTD_PKG_ERRORS=3D`$PKG_CONFIG --print-errors --cflags --libs "li= bzstd" 2>&1` + ZSTD_PKG_ERRORS=3D`$PKG_CONFIG --print-errors --cflags --libs "li= bzstd >=3D 1.4.0" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$ZSTD_PKG_ERRORS" >&5 diff --git a/binutils/configure b/binutils/configure index 2e33584e548..6176d699e57 100755 --- a/binutils/configure +++ b/binutils/configure @@ -13536,19 +13536,19 @@ fi if test "$with_zstd" !=3D no; then : =20 pkg_failed=3Dno -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzstd" >&5 -$as_echo_n "checking for libzstd... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzstd >=3D 1.4.0" = >&5 +$as_echo_n "checking for libzstd >=3D 1.4.0... " >&6; } =20 if test -n "$ZSTD_CFLAGS"; then pkg_cv_ZSTD_CFLAGS=3D"$ZSTD_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --pri= nt-errors \"libzstd\""; } >&5 - ($PKG_CONFIG --exists --print-errors "libzstd") 2>&5 + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --pri= nt-errors \"libzstd >=3D 1.4.0\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libzstd >=3D 1.4.0") 2>&5 ac_status=3D$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? =3D $ac_status" >&5 test $ac_status =3D 0; }; then - pkg_cv_ZSTD_CFLAGS=3D`$PKG_CONFIG --cflags "libzstd" 2>/dev/null` + pkg_cv_ZSTD_CFLAGS=3D`$PKG_CONFIG --cflags "libzstd >=3D 1.4.0" 2>/dev/n= ull` test "x$?" !=3D "x0" && pkg_failed=3Dyes else pkg_failed=3Dyes @@ -13560,12 +13560,12 @@ if test -n "$ZSTD_LIBS"; then pkg_cv_ZSTD_LIBS=3D"$ZSTD_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --pri= nt-errors \"libzstd\""; } >&5 - ($PKG_CONFIG --exists --print-errors "libzstd") 2>&5 + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --pri= nt-errors \"libzstd >=3D 1.4.0\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libzstd >=3D 1.4.0") 2>&5 ac_status=3D$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? =3D $ac_status" >&5 test $ac_status =3D 0; }; then - pkg_cv_ZSTD_LIBS=3D`$PKG_CONFIG --libs "libzstd" 2>/dev/null` + pkg_cv_ZSTD_LIBS=3D`$PKG_CONFIG --libs "libzstd >=3D 1.4.0" 2>/dev/null` test "x$?" !=3D "x0" && pkg_failed=3Dyes else pkg_failed=3Dyes @@ -13610,9 +13610,9 @@ else _pkg_short_errors_supported=3Dno fi if test $_pkg_short_errors_supported =3D yes; then - ZSTD_PKG_ERRORS=3D`$PKG_CONFIG --short-errors --print-errors --cf= lags --libs "libzstd" 2>&1` + ZSTD_PKG_ERRORS=3D`$PKG_CONFIG --short-errors --print-errors --cf= lags --libs "libzstd >=3D 1.4.0" 2>&1` else - ZSTD_PKG_ERRORS=3D`$PKG_CONFIG --print-errors --cflags --libs "li= bzstd" 2>&1` + ZSTD_PKG_ERRORS=3D`$PKG_CONFIG --print-errors --cflags --libs "li= bzstd >=3D 1.4.0" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$ZSTD_PKG_ERRORS" >&5 diff --git a/config/zstd.m4 b/config/zstd.m4 index 6da4db68c58..eb34c0f36d7 100644 --- a/config/zstd.m4 +++ b/config/zstd.m4 @@ -12,7 +12,7 @@ AC_ARG_WITH(zstd, [], [with_zstd=3Dauto]) =20 AS_IF([test "$with_zstd" !=3D no], - [PKG_CHECK_MODULES(ZSTD, [libzstd], [ + [PKG_CHECK_MODULES(ZSTD, [libzstd >=3D 1.4.0], [ AC_DEFINE(HAVE_ZSTD, 1, [Define to 1 if zstd is enabled.]) ], [ if test "$with_zstd" =3D yes; then diff --git a/gas/configure b/gas/configure index cae14c066d2..d9800f8a53d 100755 --- a/gas/configure +++ b/gas/configure @@ -14135,19 +14135,19 @@ fi if test "$with_zstd" !=3D no; then : =20 pkg_failed=3Dno -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzstd" >&5 -$as_echo_n "checking for libzstd... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzstd >=3D 1.4.0" = >&5 +$as_echo_n "checking for libzstd >=3D 1.4.0... " >&6; } =20 if test -n "$ZSTD_CFLAGS"; then pkg_cv_ZSTD_CFLAGS=3D"$ZSTD_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --pri= nt-errors \"libzstd\""; } >&5 - ($PKG_CONFIG --exists --print-errors "libzstd") 2>&5 + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --pri= nt-errors \"libzstd >=3D 1.4.0\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libzstd >=3D 1.4.0") 2>&5 ac_status=3D$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? =3D $ac_status" >&5 test $ac_status =3D 0; }; then - pkg_cv_ZSTD_CFLAGS=3D`$PKG_CONFIG --cflags "libzstd" 2>/dev/null` + pkg_cv_ZSTD_CFLAGS=3D`$PKG_CONFIG --cflags "libzstd >=3D 1.4.0" 2>/dev/n= ull` test "x$?" !=3D "x0" && pkg_failed=3Dyes else pkg_failed=3Dyes @@ -14159,12 +14159,12 @@ if test -n "$ZSTD_LIBS"; then pkg_cv_ZSTD_LIBS=3D"$ZSTD_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --pri= nt-errors \"libzstd\""; } >&5 - ($PKG_CONFIG --exists --print-errors "libzstd") 2>&5 + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --pri= nt-errors \"libzstd >=3D 1.4.0\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libzstd >=3D 1.4.0") 2>&5 ac_status=3D$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? =3D $ac_status" >&5 test $ac_status =3D 0; }; then - pkg_cv_ZSTD_LIBS=3D`$PKG_CONFIG --libs "libzstd" 2>/dev/null` + pkg_cv_ZSTD_LIBS=3D`$PKG_CONFIG --libs "libzstd >=3D 1.4.0" 2>/dev/null` test "x$?" !=3D "x0" && pkg_failed=3Dyes else pkg_failed=3Dyes @@ -14209,9 +14209,9 @@ else _pkg_short_errors_supported=3Dno fi if test $_pkg_short_errors_supported =3D yes; then - ZSTD_PKG_ERRORS=3D`$PKG_CONFIG --short-errors --print-errors --cf= lags --libs "libzstd" 2>&1` + ZSTD_PKG_ERRORS=3D`$PKG_CONFIG --short-errors --print-errors --cf= lags --libs "libzstd >=3D 1.4.0" 2>&1` else - ZSTD_PKG_ERRORS=3D`$PKG_CONFIG --print-errors --cflags --libs "li= bzstd" 2>&1` + ZSTD_PKG_ERRORS=3D`$PKG_CONFIG --print-errors --cflags --libs "li= bzstd >=3D 1.4.0" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$ZSTD_PKG_ERRORS" >&5 diff --git a/gdb/configure b/gdb/configure index 33677262783..811a598bc8f 100755 --- a/gdb/configure +++ b/gdb/configure @@ -8283,19 +8283,19 @@ fi if test "$with_zstd" !=3D no; then : =20 pkg_failed=3Dno -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzstd" >&5 -$as_echo_n "checking for libzstd... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzstd >=3D 1.4.0" = >&5 +$as_echo_n "checking for libzstd >=3D 1.4.0... " >&6; } =20 if test -n "$ZSTD_CFLAGS"; then pkg_cv_ZSTD_CFLAGS=3D"$ZSTD_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --pri= nt-errors \"libzstd\""; } >&5 - ($PKG_CONFIG --exists --print-errors "libzstd") 2>&5 + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --pri= nt-errors \"libzstd >=3D 1.4.0\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libzstd >=3D 1.4.0") 2>&5 ac_status=3D$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? =3D $ac_status" >&5 test $ac_status =3D 0; }; then - pkg_cv_ZSTD_CFLAGS=3D`$PKG_CONFIG --cflags "libzstd" 2>/dev/null` + pkg_cv_ZSTD_CFLAGS=3D`$PKG_CONFIG --cflags "libzstd >=3D 1.4.0" 2>/dev/n= ull` test "x$?" !=3D "x0" && pkg_failed=3Dyes else pkg_failed=3Dyes @@ -8307,12 +8307,12 @@ if test -n "$ZSTD_LIBS"; then pkg_cv_ZSTD_LIBS=3D"$ZSTD_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --pri= nt-errors \"libzstd\""; } >&5 - ($PKG_CONFIG --exists --print-errors "libzstd") 2>&5 + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --pri= nt-errors \"libzstd >=3D 1.4.0\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libzstd >=3D 1.4.0") 2>&5 ac_status=3D$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? =3D $ac_status" >&5 test $ac_status =3D 0; }; then - pkg_cv_ZSTD_LIBS=3D`$PKG_CONFIG --libs "libzstd" 2>/dev/null` + pkg_cv_ZSTD_LIBS=3D`$PKG_CONFIG --libs "libzstd >=3D 1.4.0" 2>/dev/null` test "x$?" !=3D "x0" && pkg_failed=3Dyes else pkg_failed=3Dyes @@ -8357,9 +8357,9 @@ else _pkg_short_errors_supported=3Dno fi if test $_pkg_short_errors_supported =3D yes; then - ZSTD_PKG_ERRORS=3D`$PKG_CONFIG --short-errors --print-errors --cf= lags --libs "libzstd" 2>&1` + ZSTD_PKG_ERRORS=3D`$PKG_CONFIG --short-errors --print-errors --cf= lags --libs "libzstd >=3D 1.4.0" 2>&1` else - ZSTD_PKG_ERRORS=3D`$PKG_CONFIG --print-errors --cflags --libs "li= bzstd" 2>&1` + ZSTD_PKG_ERRORS=3D`$PKG_CONFIG --print-errors --cflags --libs "li= bzstd >=3D 1.4.0" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$ZSTD_PKG_ERRORS" >&5 diff --git a/ld/configure b/ld/configure index 7906f52aadf..79000452c95 100755 --- a/ld/configure +++ b/ld/configure @@ -17095,19 +17095,19 @@ fi if test "$with_zstd" !=3D no; then : =20 pkg_failed=3Dno -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzstd" >&5 -$as_echo_n "checking for libzstd... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzstd >=3D 1.4.0" = >&5 +$as_echo_n "checking for libzstd >=3D 1.4.0... " >&6; } =20 if test -n "$ZSTD_CFLAGS"; then pkg_cv_ZSTD_CFLAGS=3D"$ZSTD_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --pri= nt-errors \"libzstd\""; } >&5 - ($PKG_CONFIG --exists --print-errors "libzstd") 2>&5 + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --pri= nt-errors \"libzstd >=3D 1.4.0\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libzstd >=3D 1.4.0") 2>&5 ac_status=3D$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? =3D $ac_status" >&5 test $ac_status =3D 0; }; then - pkg_cv_ZSTD_CFLAGS=3D`$PKG_CONFIG --cflags "libzstd" 2>/dev/null` + pkg_cv_ZSTD_CFLAGS=3D`$PKG_CONFIG --cflags "libzstd >=3D 1.4.0" 2>/dev/n= ull` test "x$?" !=3D "x0" && pkg_failed=3Dyes else pkg_failed=3Dyes @@ -17119,12 +17119,12 @@ if test -n "$ZSTD_LIBS"; then pkg_cv_ZSTD_LIBS=3D"$ZSTD_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --pri= nt-errors \"libzstd\""; } >&5 - ($PKG_CONFIG --exists --print-errors "libzstd") 2>&5 + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --pri= nt-errors \"libzstd >=3D 1.4.0\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libzstd >=3D 1.4.0") 2>&5 ac_status=3D$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? =3D $ac_status" >&5 test $ac_status =3D 0; }; then - pkg_cv_ZSTD_LIBS=3D`$PKG_CONFIG --libs "libzstd" 2>/dev/null` + pkg_cv_ZSTD_LIBS=3D`$PKG_CONFIG --libs "libzstd >=3D 1.4.0" 2>/dev/null` test "x$?" !=3D "x0" && pkg_failed=3Dyes else pkg_failed=3Dyes @@ -17169,9 +17169,9 @@ else _pkg_short_errors_supported=3Dno fi if test $_pkg_short_errors_supported =3D yes; then - ZSTD_PKG_ERRORS=3D`$PKG_CONFIG --short-errors --print-errors --cf= lags --libs "libzstd" 2>&1` + ZSTD_PKG_ERRORS=3D`$PKG_CONFIG --short-errors --print-errors --cf= lags --libs "libzstd >=3D 1.4.0" 2>&1` else - ZSTD_PKG_ERRORS=3D`$PKG_CONFIG --print-errors --cflags --libs "li= bzstd" 2>&1` + ZSTD_PKG_ERRORS=3D`$PKG_CONFIG --print-errors --cflags --libs "li= bzstd >=3D 1.4.0" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$ZSTD_PKG_ERRORS" >&5 diff --git a/libctf/configure b/libctf/configure index 176b3d6b918..a5c58176b2c 100755 --- a/libctf/configure +++ b/libctf/configure @@ -13073,19 +13073,19 @@ fi if test "$with_zstd" !=3D no; then : =20 pkg_failed=3Dno -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzstd" >&5 -$as_echo_n "checking for libzstd... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzstd >=3D 1.4.0" = >&5 +$as_echo_n "checking for libzstd >=3D 1.4.0... " >&6; } =20 if test -n "$ZSTD_CFLAGS"; then pkg_cv_ZSTD_CFLAGS=3D"$ZSTD_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --pri= nt-errors \"libzstd\""; } >&5 - ($PKG_CONFIG --exists --print-errors "libzstd") 2>&5 + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --pri= nt-errors \"libzstd >=3D 1.4.0\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libzstd >=3D 1.4.0") 2>&5 ac_status=3D$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? =3D $ac_status" >&5 test $ac_status =3D 0; }; then - pkg_cv_ZSTD_CFLAGS=3D`$PKG_CONFIG --cflags "libzstd" 2>/dev/null` + pkg_cv_ZSTD_CFLAGS=3D`$PKG_CONFIG --cflags "libzstd >=3D 1.4.0" 2>/dev/n= ull` test "x$?" !=3D "x0" && pkg_failed=3Dyes else pkg_failed=3Dyes @@ -13097,12 +13097,12 @@ if test -n "$ZSTD_LIBS"; then pkg_cv_ZSTD_LIBS=3D"$ZSTD_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --pri= nt-errors \"libzstd\""; } >&5 - ($PKG_CONFIG --exists --print-errors "libzstd") 2>&5 + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --pri= nt-errors \"libzstd >=3D 1.4.0\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libzstd >=3D 1.4.0") 2>&5 ac_status=3D$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? =3D $ac_status" >&5 test $ac_status =3D 0; }; then - pkg_cv_ZSTD_LIBS=3D`$PKG_CONFIG --libs "libzstd" 2>/dev/null` + pkg_cv_ZSTD_LIBS=3D`$PKG_CONFIG --libs "libzstd >=3D 1.4.0" 2>/dev/null` test "x$?" !=3D "x0" && pkg_failed=3Dyes else pkg_failed=3Dyes @@ -13147,9 +13147,9 @@ else _pkg_short_errors_supported=3Dno fi if test $_pkg_short_errors_supported =3D yes; then - ZSTD_PKG_ERRORS=3D`$PKG_CONFIG --short-errors --print-errors --cf= lags --libs "libzstd" 2>&1` + ZSTD_PKG_ERRORS=3D`$PKG_CONFIG --short-errors --print-errors --cf= lags --libs "libzstd >=3D 1.4.0" 2>&1` else - ZSTD_PKG_ERRORS=3D`$PKG_CONFIG --print-errors --cflags --libs "li= bzstd" 2>&1` + ZSTD_PKG_ERRORS=3D`$PKG_CONFIG --print-errors --cflags --libs "li= bzstd >=3D 1.4.0" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$ZSTD_PKG_ERRORS" >&5