diff -r 2e8a0b26d579 -r 4204db81cdbc configure.ac --- a/configure.ac Sat Jun 11 17:56:45 2016 +0100 +++ b/configure.ac Thu Jul 07 15:17:29 2016 +0100 @@ -205,6 +205,25 @@ AC_MSG_RESULT($have_gcc4) REQUIREMENTS="" +AC_ARG_WITH([libarchive], + [AS_HELP_STRING([--without-libarchive], + [disable support for libarchive])], + [], + [with_libarchive=yes]) + +LIBARCHIVE_CFLAGS= +LIBARCHIVE_LIBS= +AS_IF([test "x$with_libarchive" != xno], + [PKG_CHECK_MODULES(LIBARCHIVE, [libarchive]) + REQUIREMENTS="$REQUIREMENTS libarchive" + AC_DEFINE([HAVE_LIBARCHIVE], [1], [Define if you have libarchive])]) +AC_SUBST(LIBARCHIVE_CFLAGS) +AC_SUBST(LIBARCHIVE_LIBS) + +AS_IF([test "x$with_libarchive" != xno], + [AC_PATH_PROG(ZIP, [zip], [])]) +AM_CONDITIONAL([HAVE_ZIP], [test -n "$ZIP"]) + AC_ARG_WITH([curl], [AS_HELP_STRING([--without-curl], [disable support for curl])], [], @@ -217,6 +236,7 @@ AC_DEFINE([HAVE_CURL], [1], [Define if you have curl])]) AC_SUBST(CURL_CFLAGS) AC_SUBST(CURL_LIBS) +AM_CONDITIONAL([HAVE_CURL], [test "x$with_curl" != xno]) ZLIB_LIBS="" AC_ARG_WITH(zlib, [ --with-zlib=