Fixes for macFUSE v4.x file locations

This commit is contained in:
mabam 2020-12-19 22:00:53 +01:00
parent ca11111a4b
commit 525141ed45
7 changed files with 13 additions and 13 deletions

View File

@ -33,7 +33,7 @@
/* Define to 1 if you have the <inttypes.h> header file. */
#undef HAVE_INTTYPES_H
/* Define to 1 if you have the `fuse' library (-losxfuse). */
/* Define to 1 if you have the `fuse' library (-lfuse). */
#undef HAVE_LIBFUSE
/* Define to 1 if you have the `gcrypt' library (-lgcrypt). */

10
configure vendored
View File

@ -21824,13 +21824,13 @@ echo "$as_me: error: FUSE is not installed. To build without fuse, configure wi
{ (exit 1); exit 1; }; }
fi
{ echo "$as_me:$LINENO: checking for fuse_main in /usr/local/lib/libosxfuse.la" >&5
echo $ECHO_N "checking for fuse_main in /usr/local/lib/libosxfuse.la... $ECHO_C" >&6; }
{ echo "$as_me:$LINENO: checking for fuse_main in /usr/local/lib/libfuse.la" >&5
echo $ECHO_N "checking for fuse_main in /usr/local/lib/libfuse.la... $ECHO_C" >&6; }
if test "${ac_cv_lib_fuse_fuse_main+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="/usr/local/lib/libosxfuse.la $LIBS"
LIBS="/usr/local/lib/libfuse.la $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
@ -21890,13 +21890,13 @@ if test $ac_cv_lib_fuse_fuse_main = yes; then
#define HAVE_LIBFUSE 1
_ACEOF
LIBS="/usr/local/lib/libosxfuse.la $LIBS"
LIBS="/usr/local/lib/libfuse.la $LIBS"
fi
CFLAGS=$old_cflags
CPPFLAGS=$old_cppflags
LIBFUSE_LDFLAGS="/usr/local/lib/libosxfuse.la"
LIBFUSE_LDFLAGS="/usr/local/lib/libfuse.la"
if true; then
HAVE_LIBFUSE_TRUE=

View File

@ -79,7 +79,7 @@ case $host in
AC_CHECK_LIB([fuse], [fuse_main])
CFLAGS=$old_cflags
CPPFLAGS=$old_cppflags
LIBFUSE_LDFLAGS="/usr/local/lib/libosxfuse.la"
LIBFUSE_LDFLAGS="/usr/local/lib/libfuse.la"
AC_SUBST(LIBFUSE_LDFLAGS)
AM_CONDITIONAL(HAVE_LIBFUSE, true)
fi

View File

@ -5,8 +5,8 @@ mount_afp2_CFLAGS = -I$(top_srcdir)/include -D_FILE_OFFSET_BITS=64 @CFLAGS@
mount_afp2_LDADD = $(top_builddir)/lib/libafpclient.la
afpfsd_SOURCES = commands.c daemon.c fuse_int.c fuse_error.c
afpfsd_LDADD = $(top_builddir)/lib/libafpclient.la /usr/local/lib/libosxfuse.la
afpfsd_LDFLAGS = -export-dynamic /usr/local/lib/libosxfuse.la
afpfsd_LDADD = $(top_builddir)/lib/libafpclient.la /usr/local/lib/libfuse.la
afpfsd_LDFLAGS = -export-dynamic /usr/local/lib/libfuse.la
afpfsd_CFLAGS = -I$(top_srcdir)/include -D_FILE_OFFSET_BITS=64 @CFLAGS@
install-data-hook:

View File

@ -187,8 +187,8 @@ mount_afp2_SOURCES = client.c
mount_afp2_CFLAGS = -I$(top_srcdir)/include -D_FILE_OFFSET_BITS=64 @CFLAGS@
mount_afp2_LDADD = $(top_builddir)/lib/libafpclient.la
afpfsd_SOURCES = commands.c daemon.c fuse_int.c fuse_error.c
afpfsd_LDADD = $(top_builddir)/lib/libafpclient.la /usr/local/lib/libosxfuse.la
afpfsd_LDFLAGS = -export-dynamic /usr/local/lib/libosxfuse.la
afpfsd_LDADD = $(top_builddir)/lib/libafpclient.la /usr/local/lib/libfuse.la
afpfsd_LDFLAGS = -export-dynamic /usr/local/lib/libfuse.la
afpfsd_CFLAGS = -I$(top_srcdir)/include -D_FILE_OFFSET_BITS=64 @CFLAGS@
all: all-am

View File

@ -35,7 +35,7 @@
#ifdef __linux
#define FUSE_DEVICE "/dev/fuse"
#else
#define FUSE_DEVICE "/dev/osxfuse0"
#define FUSE_DEVICE "/dev/macfuse0"
#endif

View File

@ -20,7 +20,7 @@
#include "afpfs-ng/afp.h"
#include </usr/local/include/osxfuse/fuse.h>
#include </usr/local/include/fuse.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>