mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-23 10:03:47 +08:00
200164d467
gas uses ZSTD_compressStream2 which is only available with libzstd >= 1.4.0, leading to build errors when an older version is installed. This patch updates the check libzstd presence to check its version is >= 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. 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. This should fix some of the buildbots. OK for trunk? Thanks, Christophe
24 lines
891 B
Plaintext
24 lines
891 B
Plaintext
dnl Copyright (C) 2022 Free Software Foundation, Inc.
|
|
dnl This file is free software, distributed under the terms of the GNU
|
|
dnl General Public License. As a special exception to the GNU General
|
|
dnl Public License, this file may be distributed as part of a program
|
|
dnl that contains a configuration script generated by Autoconf, under
|
|
dnl the same distribution terms as the rest of that program.
|
|
|
|
dnl Enable features using the zstd library.
|
|
AC_DEFUN([AC_ZSTD], [
|
|
AC_ARG_WITH(zstd,
|
|
[AS_HELP_STRING([--with-zstd], [support zstd compressed debug sections (default=auto)])],
|
|
[], [with_zstd=auto])
|
|
|
|
AS_IF([test "$with_zstd" != no],
|
|
[PKG_CHECK_MODULES(ZSTD, [libzstd >= 1.4.0], [
|
|
AC_DEFINE(HAVE_ZSTD, 1, [Define to 1 if zstd is enabled.])
|
|
], [
|
|
if test "$with_zstd" = yes; then
|
|
AC_MSG_ERROR([--with-zstd was given, but pkgconfig/libzstd.pc is not found])
|
|
fi
|
|
])
|
|
])
|
|
])
|