Fix GCC 10+ build failure with zstd version 1.2.0 or older.
authorJim Wilson <jimw@sifive.com>
Tue, 29 Sep 2020 00:13:40 +0000 (17:13 -0700)
committerJim Wilson <jimw@sifive.com>
Tue, 29 Sep 2020 22:27:16 +0000 (15:27 -0700)
commit6649df18f98d5baf89b56a09b816b5eeb5f67bcb
tree2467e755fc026372252559eff3164811a97fdce3
parent0eef5eea2b42d892df52b655e55458f27ac3fb81
Fix GCC 10+ build failure with zstd version 1.2.0 or older.

Extends the configure check for zstd.h to also verify the zstd version,
since gcc requires features that only exist in 1.3.0 and newer.  Without
this patch we get a build error for lto-compress.c when using an old zstd
version.

gcc/
PR bootstrap/97183
* configure.ac (gcc_cv_header_zstd_h): Check ZSTD_VERISON_NUMBER.
* configure: Regenerated.
gcc/configure
gcc/configure.ac