diff options
author | Martin Matuska <martin@matuska.org> | 2018-10-06 21:43:30 +0200 |
---|---|---|
committer | Martin Matuska <martin@matuska.org> | 2018-10-06 22:05:07 +0200 |
commit | c5013112229053d438cfd722497220742a146db6 (patch) | |
tree | d9f47f0a6d8dffb3e24b8811180b98dcaa70dbca /configure.ac | |
parent | cd43985f51fef3b2d88a93103f695ac30377a0e5 (diff) | |
download | libarchive-c5013112229053d438cfd722497220742a146db6.tar.gz |
archive_read_support_format_rar5: enable blake2 support via libb2
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 17d66418..64f77a67 100644 --- a/configure.ac +++ b/configure.ac @@ -340,6 +340,16 @@ if test "x$with_bz2lib" != "xno"; then esac fi +AC_ARG_WITH([libb2], + AS_HELP_STRING([--without-libb2], [Don't build support for BLAKE2 through libb2])) + +if test "x$with_libb2" != "xno"; then + AC_CHECK_HEADERS([blake2.h]) + AC_CHECK_LIB(b2,blake2sp_init) +fi + +AM_CONDITIONAL([INC_BLAKE2], [test "x$ac_cv_lib_b2_blake2sp_init" != "xyes"]) + AC_ARG_WITH([iconv], AS_HELP_STRING([--without-iconv], [Don't try to link against iconv])) |