Commit f7ba98ab authored by Paweł Wegner's avatar Paweł Wegner
Browse files

Allow boost-filesystem to be explicitly disabled.

parent 0615eabf
......@@ -85,6 +85,11 @@ Optional dependency notes:
when not found, `IHttpServer` interface needs to be implemented, can be
explicitly disabled with `--with-microhttpd=no`
* `boost-filesystem`
when found, `LocalDrive` provider representing local directory will be
included, can be explicitly disabled with `--with-filesystem=no`
* `mega`
when not found, `mega` cloud provider will not be included, can be
......
......@@ -69,6 +69,17 @@ AS_IF([test "x$with_microhttpd" != "xno"], [
])
AM_CONDITIONAL([WITH_MICROHTTPD], [test "$HAVE_MICROHTTPD" -eq 1])
FILESYSTEM_LIBS=""
AC_ARG_WITH([filesystem], AS_HELP_STRING([--with-filesystem]))
AS_IF([test "x$with_filesystem" != "xno"], [
AC_CHECK_HEADERS(boost/filesystem.hpp, [
FILESYSTEM_LIBS="-lboost_filesystem"
], [
AS_IF([test "x$with_filesystem" = "xyes"], [AC_MSG_ERROR([boost-filesystem not found])])
])
])
AC_SUBST(FILESYSTEM_LIBS)
HAVE_FUSE=0
HAVE_LEGACY_FUSE=0
AC_ARG_WITH([fuse], AS_HELP_STRING([--with-fuse]))
......@@ -120,12 +131,6 @@ AS_IF([test "${SYS}" = "mingw32"], [
])
AC_SUBST(SOCKET_LIBS)
FILESYSTEM_LIBS=""
AC_CHECK_HEADERS(boost/filesystem.hpp, [
FILESYSTEM_LIBS="-lboost_filesystem"
])
AC_SUBST(FILESYSTEM_LIBS)
AC_ARG_WITH([examples], AS_HELP_STRING([--with-examples]))
AM_CONDITIONAL([EXAMPLES], [test "x$with_examples" = "xyes"])
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment