mirror of
https://github.com/abraunegg/onedrive
synced 2026-03-14 14:35:46 +01:00
Add fuse library requirements to build process
* Add fuse library requirements to build process in preparation for 'on-demand' change
This commit is contained in:
parent
31d2887f71
commit
2deb03e7dc
5 changed files with 413 additions and 18 deletions
|
|
@ -28,7 +28,8 @@ NOTIFICATIONS = @NOTIFICATIONS@
|
|||
HAVE_SYSTEMD = @HAVE_SYSTEMD@
|
||||
systemduserunitdir = @systemduserunitdir@
|
||||
systemdsystemunitdir = @systemdsystemunitdir@
|
||||
all_libs = @curl_LIBS@ @sqlite_LIBS@ @dbus_LIBS@ @notify_LIBS@ @bsd_inotify_LIBS@ @dynamic_linker_LIBS@
|
||||
all_libs = @curl_LIBS@ @sqlite_LIBS@ @dbus_LIBS@ @notify_LIBS@ @bsd_inotify_LIBS@ @dynamic_linker_LIBS@ @FUSE_LIBS@
|
||||
|
||||
COMPLETIONS = @COMPLETIONS@
|
||||
BASH_COMPLETION_DIR = @BASH_COMPLETION_DIR@
|
||||
ZSH_COMPLETION_DIR = @ZSH_COMPLETION_DIR@
|
||||
|
|
@ -43,6 +44,7 @@ VERSION_DCFLAG = @VERSION_DCFLAG@
|
|||
LINKER_DCFLAG = @LINKER_DCFLAG@
|
||||
OUTPUT_DCFLAG = @OUTPUT_DCFLAG@
|
||||
WERROR_DCFLAG = @WERROR_DCFLAG@
|
||||
FUSE_CFLAGS = @FUSE_CFLAGS@
|
||||
|
||||
DCFLAGS += $(WERROR_DCFLAG)
|
||||
ifeq ($(DEBUG),yes)
|
||||
|
|
@ -109,7 +111,8 @@ onedrive: $(SOURCES)
|
|||
else \
|
||||
echo $(version) > version ; \
|
||||
fi
|
||||
$(DC) -J. $(GUI_NOTIFICATIONS) $(DCFLAGS) $^ $(addprefix $(LINKER_DCFLAG),$(all_libs)) $(OUTPUT_DCFLAG)$@
|
||||
$(DC) -J. $(GUI_NOTIFICATIONS) $(DCFLAGS) $(FUSE_CFLAGS) $^ $(addprefix $(LINKER_DCFLAG),$(all_libs)) $(OUTPUT_DCFLAG)$@
|
||||
|
||||
|
||||
install: all
|
||||
mkdir -p $(DESTDIR)$(bindir)
|
||||
|
|
|
|||
126
aclocal.m4
vendored
126
aclocal.m4
vendored
|
|
@ -12,9 +12,9 @@
|
|||
# PARTICULAR PURPOSE.
|
||||
|
||||
m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
|
||||
dnl pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
|
||||
dnl serial 11 (pkg-config-0.29)
|
||||
dnl
|
||||
# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
|
||||
# serial 11 (pkg-config-0.29.1)
|
||||
|
||||
dnl Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
|
||||
dnl Copyright © 2012-2015 Dan Nicholson <dbn.lists@gmail.com>
|
||||
dnl
|
||||
|
|
@ -55,7 +55,7 @@ dnl
|
|||
dnl See the "Since" comment for each macro you use to see what version
|
||||
dnl of the macros you require.
|
||||
m4_defun([PKG_PREREQ],
|
||||
[m4_define([PKG_MACROS_VERSION], [0.29])
|
||||
[m4_define([PKG_MACROS_VERSION], [0.29.1])
|
||||
m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1,
|
||||
[m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[ found])])
|
||||
])dnl PKG_PREREQ
|
||||
|
|
@ -288,3 +288,121 @@ AS_VAR_COPY([$1], [pkg_cv_][$1])
|
|||
AS_VAR_IF([$1], [""], [$5], [$4])dnl
|
||||
])dnl PKG_CHECK_VAR
|
||||
|
||||
dnl PKG_WITH_MODULES(VARIABLE-PREFIX, MODULES,
|
||||
dnl [ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND],
|
||||
dnl [DESCRIPTION], [DEFAULT])
|
||||
dnl ------------------------------------------
|
||||
dnl
|
||||
dnl Prepare a "--with-" configure option using the lowercase
|
||||
dnl [VARIABLE-PREFIX] name, merging the behaviour of AC_ARG_WITH and
|
||||
dnl PKG_CHECK_MODULES in a single macro.
|
||||
AC_DEFUN([PKG_WITH_MODULES],
|
||||
[
|
||||
m4_pushdef([with_arg], m4_tolower([$1]))
|
||||
|
||||
m4_pushdef([description],
|
||||
[m4_default([$5], [build with ]with_arg[ support])])
|
||||
|
||||
m4_pushdef([def_arg], [m4_default([$6], [auto])])
|
||||
m4_pushdef([def_action_if_found], [AS_TR_SH([with_]with_arg)=yes])
|
||||
m4_pushdef([def_action_if_not_found], [AS_TR_SH([with_]with_arg)=no])
|
||||
|
||||
m4_case(def_arg,
|
||||
[yes],[m4_pushdef([with_without], [--without-]with_arg)],
|
||||
[m4_pushdef([with_without],[--with-]with_arg)])
|
||||
|
||||
AC_ARG_WITH(with_arg,
|
||||
AS_HELP_STRING(with_without, description[ @<:@default=]def_arg[@:>@]),,
|
||||
[AS_TR_SH([with_]with_arg)=def_arg])
|
||||
|
||||
AS_CASE([$AS_TR_SH([with_]with_arg)],
|
||||
[yes],[PKG_CHECK_MODULES([$1],[$2],$3,$4)],
|
||||
[auto],[PKG_CHECK_MODULES([$1],[$2],
|
||||
[m4_n([def_action_if_found]) $3],
|
||||
[m4_n([def_action_if_not_found]) $4])])
|
||||
|
||||
m4_popdef([with_arg])
|
||||
m4_popdef([description])
|
||||
m4_popdef([def_arg])
|
||||
|
||||
])dnl PKG_WITH_MODULES
|
||||
|
||||
dnl PKG_HAVE_WITH_MODULES(VARIABLE-PREFIX, MODULES,
|
||||
dnl [DESCRIPTION], [DEFAULT])
|
||||
dnl -----------------------------------------------
|
||||
dnl
|
||||
dnl Convenience macro to trigger AM_CONDITIONAL after PKG_WITH_MODULES
|
||||
dnl check._[VARIABLE-PREFIX] is exported as make variable.
|
||||
AC_DEFUN([PKG_HAVE_WITH_MODULES],
|
||||
[
|
||||
PKG_WITH_MODULES([$1],[$2],,,[$3],[$4])
|
||||
|
||||
AM_CONDITIONAL([HAVE_][$1],
|
||||
[test "$AS_TR_SH([with_]m4_tolower([$1]))" = "yes"])
|
||||
])dnl PKG_HAVE_WITH_MODULES
|
||||
|
||||
dnl PKG_HAVE_DEFINE_WITH_MODULES(VARIABLE-PREFIX, MODULES,
|
||||
dnl [DESCRIPTION], [DEFAULT])
|
||||
dnl ------------------------------------------------------
|
||||
dnl
|
||||
dnl Convenience macro to run AM_CONDITIONAL and AC_DEFINE after
|
||||
dnl PKG_WITH_MODULES check. HAVE_[VARIABLE-PREFIX] is exported as make
|
||||
dnl and preprocessor variable.
|
||||
AC_DEFUN([PKG_HAVE_DEFINE_WITH_MODULES],
|
||||
[
|
||||
PKG_HAVE_WITH_MODULES([$1],[$2],[$3],[$4])
|
||||
|
||||
AS_IF([test "$AS_TR_SH([with_]m4_tolower([$1]))" = "yes"],
|
||||
[AC_DEFINE([HAVE_][$1], 1, [Enable ]m4_tolower([$1])[ support])])
|
||||
])dnl PKG_HAVE_DEFINE_WITH_MODULES
|
||||
|
||||
# AM_CONDITIONAL -*- Autoconf -*-
|
||||
|
||||
# Copyright (C) 1997-2018 Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
|
||||
# -------------------------------------
|
||||
# Define a conditional.
|
||||
AC_DEFUN([AM_CONDITIONAL],
|
||||
[AC_PREREQ([2.52])dnl
|
||||
m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
|
||||
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
|
||||
AC_SUBST([$1_TRUE])dnl
|
||||
AC_SUBST([$1_FALSE])dnl
|
||||
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
|
||||
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
|
||||
m4_define([_AM_COND_VALUE_$1], [$2])dnl
|
||||
if $2; then
|
||||
$1_TRUE=
|
||||
$1_FALSE='#'
|
||||
else
|
||||
$1_TRUE='#'
|
||||
$1_FALSE=
|
||||
fi
|
||||
AC_CONFIG_COMMANDS_PRE(
|
||||
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
|
||||
AC_MSG_ERROR([[conditional "$1" was never defined.
|
||||
Usually this means the macro was only invoked conditionally.]])
|
||||
fi])])
|
||||
|
||||
# Copyright (C) 2006-2018 Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# _AM_SUBST_NOTMAKE(VARIABLE)
|
||||
# ---------------------------
|
||||
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
|
||||
# This macro is traced by Automake.
|
||||
AC_DEFUN([_AM_SUBST_NOTMAKE])
|
||||
|
||||
# AM_SUBST_NOTMAKE(VARIABLE)
|
||||
# --------------------------
|
||||
# Public sister of _AM_SUBST_NOTMAKE.
|
||||
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
|
||||
|
||||
|
|
|
|||
250
configure
vendored
250
configure
vendored
|
|
@ -593,6 +593,10 @@ ZSH_COMPLETION_DIR
|
|||
BASH_COMPLETION_DIR
|
||||
bashcompdir
|
||||
COMPLETIONS
|
||||
BUILD_FUSE_FALSE
|
||||
BUILD_FUSE_TRUE
|
||||
FUSE_LIBS
|
||||
FUSE_CFLAGS
|
||||
dynamic_linker_LIBS
|
||||
bsd_inotify_LIBS
|
||||
NOTIFICATIONS
|
||||
|
|
@ -668,6 +672,7 @@ enable_version_check
|
|||
with_systemdsystemunitdir
|
||||
with_systemduserunitdir
|
||||
enable_notifications
|
||||
enable_fuse
|
||||
enable_completions
|
||||
with_bash_completion_dir
|
||||
with_zsh_completion_dir
|
||||
|
|
@ -690,6 +695,8 @@ dbus_CFLAGS
|
|||
dbus_LIBS
|
||||
notify_CFLAGS
|
||||
notify_LIBS
|
||||
FUSE_CFLAGS
|
||||
FUSE_LIBS
|
||||
bashcompdir'
|
||||
|
||||
|
||||
|
|
@ -1303,6 +1310,7 @@ Optional Features:
|
|||
--disable-version-check Disable checks of compiler version during configure
|
||||
time
|
||||
--enable-notifications Enable desktop notifications via libnotify
|
||||
--disable-fuse Disable FUSE on-demand support (default: enabled)
|
||||
--enable-completions Install shell completions for bash, zsh, and fish
|
||||
--enable-debug Pass debug option to the compiler
|
||||
|
||||
|
|
@ -1338,6 +1346,8 @@ Some influential environment variables:
|
|||
notify_CFLAGS
|
||||
C compiler flags for notify, overriding pkg-config
|
||||
notify_LIBS linker flags for notify, overriding pkg-config
|
||||
FUSE_CFLAGS C compiler flags for FUSE, overriding pkg-config
|
||||
FUSE_LIBS linker flags for FUSE, overriding pkg-config
|
||||
bashcompdir value of completionsdir for bash-completion, overriding
|
||||
pkg-config
|
||||
|
||||
|
|
@ -2673,7 +2683,12 @@ case "$(uname -s)" in
|
|||
bsd_inotify_LIBS=""
|
||||
;;
|
||||
FreeBSD)
|
||||
bsd_inotify_LIBS="-L/usr/local/lib -linotify"
|
||||
if test "$(uname -U)" -gt 1500060; then :
|
||||
bsd_inotify_LIBS=""
|
||||
else
|
||||
bsd_inotify_LIBS="-L/usr/local/lib -linotify"
|
||||
|
||||
fi
|
||||
;;
|
||||
OpenBSD)
|
||||
bsd_inotify_LIBS="-L/usr/local/lib/inotify -linotify"
|
||||
|
|
@ -2699,6 +2714,235 @@ esac
|
|||
|
||||
|
||||
|
||||
# Check whether --enable-fuse was given.
|
||||
if test "${enable_fuse+set}" = set; then :
|
||||
enableval=$enable_fuse; enable_fuse=$enableval
|
||||
else
|
||||
enable_fuse=yes
|
||||
fi
|
||||
|
||||
|
||||
have_fuse=no
|
||||
|
||||
if test "x$enable_fuse" = "xyes"; then :
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
|
||||
if test -n "$ac_tool_prefix"; then
|
||||
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
|
||||
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
||||
$as_echo_n "checking for $ac_word... " >&6; }
|
||||
if ${ac_cv_path_PKG_CONFIG+:} false; then :
|
||||
$as_echo_n "(cached) " >&6
|
||||
else
|
||||
case $PKG_CONFIG in
|
||||
[\\/]* | ?:[\\/]*)
|
||||
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
|
||||
;;
|
||||
*)
|
||||
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
||||
for as_dir in $PATH
|
||||
do
|
||||
IFS=$as_save_IFS
|
||||
test -z "$as_dir" && as_dir=.
|
||||
for ac_exec_ext in '' $ac_executable_extensions; do
|
||||
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
||||
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
|
||||
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
||||
break 2
|
||||
fi
|
||||
done
|
||||
done
|
||||
IFS=$as_save_IFS
|
||||
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
|
||||
if test -n "$PKG_CONFIG"; then
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
|
||||
$as_echo "$PKG_CONFIG" >&6; }
|
||||
else
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||
$as_echo "no" >&6; }
|
||||
fi
|
||||
|
||||
|
||||
fi
|
||||
if test -z "$ac_cv_path_PKG_CONFIG"; then
|
||||
ac_pt_PKG_CONFIG=$PKG_CONFIG
|
||||
# Extract the first word of "pkg-config", so it can be a program name with args.
|
||||
set dummy pkg-config; ac_word=$2
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
||||
$as_echo_n "checking for $ac_word... " >&6; }
|
||||
if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
|
||||
$as_echo_n "(cached) " >&6
|
||||
else
|
||||
case $ac_pt_PKG_CONFIG in
|
||||
[\\/]* | ?:[\\/]*)
|
||||
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
|
||||
;;
|
||||
*)
|
||||
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
||||
for as_dir in $PATH
|
||||
do
|
||||
IFS=$as_save_IFS
|
||||
test -z "$as_dir" && as_dir=.
|
||||
for ac_exec_ext in '' $ac_executable_extensions; do
|
||||
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
||||
ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
|
||||
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
||||
break 2
|
||||
fi
|
||||
done
|
||||
done
|
||||
IFS=$as_save_IFS
|
||||
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
|
||||
if test -n "$ac_pt_PKG_CONFIG"; then
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
|
||||
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
|
||||
else
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||
$as_echo "no" >&6; }
|
||||
fi
|
||||
|
||||
if test "x$ac_pt_PKG_CONFIG" = x; then
|
||||
PKG_CONFIG=""
|
||||
else
|
||||
case $cross_compiling:$ac_tool_warned in
|
||||
yes:)
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
||||
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
||||
ac_tool_warned=yes ;;
|
||||
esac
|
||||
PKG_CONFIG=$ac_pt_PKG_CONFIG
|
||||
fi
|
||||
else
|
||||
PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
|
||||
fi
|
||||
|
||||
fi
|
||||
if test -n "$PKG_CONFIG"; then
|
||||
_pkg_min_version=0.9.0
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
|
||||
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
|
||||
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
||||
$as_echo "yes" >&6; }
|
||||
else
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||
$as_echo "no" >&6; }
|
||||
PKG_CONFIG=""
|
||||
fi
|
||||
fi
|
||||
|
||||
# Require FUSE3 by default
|
||||
|
||||
pkg_failed=no
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FUSE" >&5
|
||||
$as_echo_n "checking for FUSE... " >&6; }
|
||||
|
||||
if test -n "$FUSE_CFLAGS"; then
|
||||
pkg_cv_FUSE_CFLAGS="$FUSE_CFLAGS"
|
||||
elif test -n "$PKG_CONFIG"; then
|
||||
if test -n "$PKG_CONFIG" && \
|
||||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fuse3\""; } >&5
|
||||
($PKG_CONFIG --exists --print-errors "fuse3") 2>&5
|
||||
ac_status=$?
|
||||
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
||||
test $ac_status = 0; }; then
|
||||
pkg_cv_FUSE_CFLAGS=`$PKG_CONFIG --cflags "fuse3" 2>/dev/null`
|
||||
test "x$?" != "x0" && pkg_failed=yes
|
||||
else
|
||||
pkg_failed=yes
|
||||
fi
|
||||
else
|
||||
pkg_failed=untried
|
||||
fi
|
||||
if test -n "$FUSE_LIBS"; then
|
||||
pkg_cv_FUSE_LIBS="$FUSE_LIBS"
|
||||
elif test -n "$PKG_CONFIG"; then
|
||||
if test -n "$PKG_CONFIG" && \
|
||||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fuse3\""; } >&5
|
||||
($PKG_CONFIG --exists --print-errors "fuse3") 2>&5
|
||||
ac_status=$?
|
||||
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
||||
test $ac_status = 0; }; then
|
||||
pkg_cv_FUSE_LIBS=`$PKG_CONFIG --libs "fuse3" 2>/dev/null`
|
||||
test "x$?" != "x0" && pkg_failed=yes
|
||||
else
|
||||
pkg_failed=yes
|
||||
fi
|
||||
else
|
||||
pkg_failed=untried
|
||||
fi
|
||||
|
||||
|
||||
|
||||
if test $pkg_failed = yes; then
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||
$as_echo "no" >&6; }
|
||||
|
||||
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
|
||||
_pkg_short_errors_supported=yes
|
||||
else
|
||||
_pkg_short_errors_supported=no
|
||||
fi
|
||||
if test $_pkg_short_errors_supported = yes; then
|
||||
FUSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fuse3" 2>&1`
|
||||
else
|
||||
FUSE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fuse3" 2>&1`
|
||||
fi
|
||||
# Put the nasty error message in config.log where it belongs
|
||||
echo "$FUSE_PKG_ERRORS" >&5
|
||||
|
||||
|
||||
as_fn_error $? "libfuse3 development files not found. Install fuse3 dev package (pkg-config: fuse3) or rerun with --disable-fuse" "$LINENO" 5
|
||||
|
||||
elif test $pkg_failed = untried; then
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||
$as_echo "no" >&6; }
|
||||
|
||||
as_fn_error $? "libfuse3 development files not found. Install fuse3 dev package (pkg-config: fuse3) or rerun with --disable-fuse" "$LINENO" 5
|
||||
|
||||
else
|
||||
FUSE_CFLAGS=$pkg_cv_FUSE_CFLAGS
|
||||
FUSE_LIBS=$pkg_cv_FUSE_LIBS
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
||||
$as_echo "yes" >&6; }
|
||||
|
||||
have_fuse=yes
|
||||
|
||||
$as_echo "#define HAVE_FUSE 1" >>confdefs.h
|
||||
|
||||
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
if test "x$have_fuse" = "xyes"; then
|
||||
BUILD_FUSE_TRUE=
|
||||
BUILD_FUSE_FALSE='#'
|
||||
else
|
||||
BUILD_FUSE_TRUE='#'
|
||||
BUILD_FUSE_FALSE=
|
||||
fi
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Check whether --enable-completions was given.
|
||||
if test "${enable_completions+set}" = set; then :
|
||||
enableval=$enable_completions;
|
||||
|
|
@ -2951,6 +3195,10 @@ LIBOBJS=$ac_libobjs
|
|||
LTLIBOBJS=$ac_ltlibobjs
|
||||
|
||||
|
||||
if test -z "${BUILD_FUSE_TRUE}" && test -z "${BUILD_FUSE_FALSE}"; then
|
||||
as_fn_error $? "conditional \"BUILD_FUSE\" was never defined.
|
||||
Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
||||
fi
|
||||
|
||||
: "${CONFIG_STATUS=./config.status}"
|
||||
ac_write_fail=0
|
||||
|
|
|
|||
26
configure.ac
26
configure.ac
|
|
@ -328,6 +328,32 @@ esac
|
|||
|
||||
AC_SUBST([dynamic_linker_LIBS])
|
||||
|
||||
dnl
|
||||
dnl FUSE Support for 'on-demand' support
|
||||
|
||||
AC_ARG_ENABLE([fuse],
|
||||
AS_HELP_STRING([--disable-fuse],[Disable FUSE on-demand support (default: enabled)]),
|
||||
[enable_fuse=$enableval],
|
||||
[enable_fuse=yes])
|
||||
|
||||
have_fuse=no
|
||||
|
||||
AS_IF([test "x$enable_fuse" = "xyes"], [
|
||||
PKG_PROG_PKG_CONFIG
|
||||
|
||||
# Require FUSE3 by default
|
||||
PKG_CHECK_MODULES([FUSE], [fuse3], [
|
||||
have_fuse=yes
|
||||
AC_DEFINE([HAVE_FUSE], [1], [Define if FUSE support is enabled])
|
||||
], [
|
||||
AC_MSG_ERROR([libfuse3 development files not found. Please install fuse3-devel (Red Hat | Fedora | CentOS), libfuse3-dev (Debian | Ubuntu), fuse3 (Arch | Manjaro) or rerun with --disable-fuse])
|
||||
])
|
||||
])
|
||||
|
||||
AM_CONDITIONAL([BUILD_FUSE], [test "x$have_fuse" = "xyes"])
|
||||
AC_SUBST([FUSE_CFLAGS])
|
||||
AC_SUBST([FUSE_LIBS])
|
||||
|
||||
|
||||
dnl
|
||||
dnl Completion support
|
||||
|
|
|
|||
|
|
@ -142,7 +142,7 @@ You will need at least GDC version 15. If your distribution's repositories inclu
|
|||
|
||||
#### Arch Linux | Manjaro Linux
|
||||
```text
|
||||
sudo pacman -S git make pkg-config curl sqlite dbus ldc
|
||||
sudo pacman -S git make pkg-config curl sqlite dbus fuse3 ldc
|
||||
```
|
||||
For GUI notifications the following is also necessary:
|
||||
```text
|
||||
|
|
@ -158,7 +158,7 @@ CentOS 7.x and RHEL 7.x reached End of Life status on June 30th 2024 and is no l
|
|||
#### CentOS Stream 8 | CentOS Stream 9 | CentOS Stream 10
|
||||
```text
|
||||
sudo dnf groupinstall 'Development Tools'
|
||||
sudo dnf install libcurl-devel sqlite-devel dbus-devel
|
||||
sudo dnf install libcurl-devel sqlite-devel dbus-devel fuse3-devel
|
||||
curl -fsS https://dlang.org/install.sh | bash -s dmd
|
||||
```
|
||||
For GUI notifications the following is also necessary:
|
||||
|
|
@ -175,7 +175,7 @@ Debian 10 reached the end of its five-year LTS window on September 10th 2022 and
|
|||
#### Debian 11 | Debian 12 | Debian 13 | Linux Mint Debian Edition 6 | Linux Mint Debian Edition 7 - x86_64
|
||||
```text
|
||||
sudo apt install build-essential
|
||||
sudo apt install libcurl4-openssl-dev libsqlite3-dev pkg-config git curl systemd-dev libdbus-1-dev
|
||||
sudo apt install libcurl4-openssl-dev libsqlite3-dev pkg-config git curl systemd-dev libdbus-1-dev libfuse3-dev
|
||||
curl -fsS https://dlang.org/install.sh | bash -s dmd
|
||||
```
|
||||
For GUI notifications the following is also necessary:
|
||||
|
|
@ -189,7 +189,7 @@ sudo apt install libnotify-dev
|
|||
|
||||
```text
|
||||
sudo apt install build-essential
|
||||
sudo apt install libcurl4-openssl-dev libsqlite3-dev pkg-config git curl ldc systemd-dev libdbus-1-dev
|
||||
sudo apt install libcurl4-openssl-dev libsqlite3-dev pkg-config git curl ldc systemd-dev libdbus-1-dev libfuse3-dev
|
||||
```
|
||||
For GUI notifications the following is also necessary:
|
||||
```text
|
||||
|
|
@ -202,7 +202,7 @@ sudo apt install libnotify-dev
|
|||
|
||||
```text
|
||||
sudo dnf group install development-tools
|
||||
sudo dnf install libcurl-devel sqlite-devel dbus-devel
|
||||
sudo dnf install libcurl-devel sqlite-devel dbus-devel fuse3-devel
|
||||
```
|
||||
Before running the dmd install you need to check for the option 'use-keyboxd' in your gnupg common.conf file and comment it out while running the install.
|
||||
```text
|
||||
|
|
@ -231,7 +231,7 @@ sudo dnf install libnotify-devel
|
|||
> For FreeBSD it is advisable to use the distribution provided 'ldc' package to ensure compiler consistency.
|
||||
|
||||
```text
|
||||
pkg install bash bash-completion gmake pkgconf autoconf automake logrotate libinotify git sqlite3 ldc
|
||||
pkg install bash bash-completion gmake pkgconf autoconf automake logrotate libinotify git sqlite3 ldc fusefs-libs3
|
||||
```
|
||||
For GUI notifications the following is also necessary:
|
||||
```text
|
||||
|
|
@ -246,7 +246,7 @@ sudo emerge --onlydeps net-misc/onedrive
|
|||
#### MX Linux 25
|
||||
```text
|
||||
sudo apt install build-essential
|
||||
sudo apt install libcurl4-openssl-dev libsqlite3-dev pkg-config git curl systemd-dev libdbus-1-dev
|
||||
sudo apt install libcurl4-openssl-dev libsqlite3-dev pkg-config git curl systemd-dev libdbus-1-dev libfuse3-dev
|
||||
curl -fsS https://dlang.org/install.sh | bash -s dmd
|
||||
```
|
||||
For GUI notifications the following is also necessary:
|
||||
|
|
@ -257,7 +257,7 @@ sudo apt install libnotify-dev
|
|||
#### OpenSUSE Leap | OpenSUSE Tumbleweed
|
||||
```text
|
||||
sudo zypper refresh
|
||||
sudo zypper install gcc git libcurl-devel sqlite3-devel dmd phobos-devel phobos-devel-static dbus-1-devel
|
||||
sudo zypper install gcc git libcurl-devel sqlite3-devel dmd phobos-devel phobos-devel-static dbus-1-devel fuse3-devel
|
||||
```
|
||||
For GUI notifications the following is also necessary:
|
||||
```text
|
||||
|
|
@ -276,7 +276,7 @@ sudo zypper install libnotify-devel
|
|||
|
||||
```text
|
||||
sudo apt install build-essential
|
||||
sudo apt install libcurl4-openssl-dev libsqlite3-dev pkg-config git curl ldc systemd-dev libdbus-1-dev
|
||||
sudo apt install libcurl4-openssl-dev libsqlite3-dev pkg-config git curl ldc systemd-dev libdbus-1-dev libfuse3-dev
|
||||
```
|
||||
For GUI notifications the following is also necessary:
|
||||
```text
|
||||
|
|
@ -287,7 +287,7 @@ sudo apt install libnotify-dev
|
|||
|
||||
```text
|
||||
sudo dnf groupinstall 'Development Tools'
|
||||
sudo dnf install libcurl-devel sqlite-devel dbus-devel
|
||||
sudo dnf install libcurl-devel sqlite-devel dbus-devel fuse3-devel
|
||||
curl -fsS https://dlang.org/install.sh | bash -s dmd
|
||||
```
|
||||
For GUI notifications the following is also necessary:
|
||||
|
|
@ -318,7 +318,7 @@ Ubuntu 20.x LTS reached the end of its five-year LTS window on May 31th 2025 and
|
|||
|
||||
```text
|
||||
sudo apt install build-essential
|
||||
sudo apt install libcurl4-openssl-dev libsqlite3-dev pkg-config git curl systemd-dev libdbus-1-dev
|
||||
sudo apt install libcurl4-openssl-dev libsqlite3-dev pkg-config git curl systemd-dev libdbus-1-dev libfuse3-dev
|
||||
curl -fsS https://dlang.org/install.sh | bash -s dmd
|
||||
```
|
||||
For GUI notifications the following is also necessary:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue