Do not error about missing zstd unless --with-zstd.

PR lto/94259
	* configure.ac: Report error only when --with-zstd
	is used.
	* configure: Regenerate.
This commit is contained in:
Martin Liska 2020-03-25 13:34:53 +01:00
parent 780f1cfd8e
commit 68c4570a4d
No known key found for this signature in database
GPG Key ID: 4DC182DC0FA73785
3 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,10 @@
2020-03-25 Martin Liska <mliska@suse.cz>
PR lto/94259
* configure.ac: Report error only when --with-zstd
is used.
* configure: Regenerate.
2020-03-25 Jakub Jelinek <jakub@redhat.com>
PR target/94308

2
gcc/configure vendored
View File

@ -10019,7 +10019,7 @@ if test $gcc_cv_header_zstd_h = yes; then
$as_echo "#define HAVE_ZSTD_H 1" >>confdefs.h
else
elif test "x$with_zstd" != x; then
as_fn_error $? "Unable to find zstd.h. See config.log for details." "$LINENO" 5
fi

View File

@ -1371,7 +1371,7 @@ AC_MSG_RESULT($gcc_cv_header_zstd_h)
if test $gcc_cv_header_zstd_h = yes; then
AC_DEFINE(HAVE_ZSTD_H, 1,
[Define if you have a working <zstd.h> header file.])
else
elif test "x$with_zstd" != x; then
as_fn_error $? "Unable to find zstd.h. See config.log for details." "$LINENO" 5
fi