It used to be that PKG_CHECK_MODULES would set foo_LDFLAGS; not it
just sets the foo_LIBS with the required -L and -l options. Fix this
up for fuse3 support.
This fixes support on MacOS using MacFuse.
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
if test "$FUSE_LIB" = "-lfuse3"
then
FUSE_USE_VERSION=35
- CFLAGS="$CFLAGS $fuse3_CFLAGS"
- LDFLAGS="$LDFLAGS $fuse3_LDFLAGS"
+ CFLAGS="$fuse3_CFLAGS $CFLAGS"
+ FUSE_LIB="$fuse3_LIBS"
for ac_header in pthread.h fuse.h
do :
as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
if test "$FUSE_LIB" = "-lfuse3"
then
FUSE_USE_VERSION=35
- CFLAGS="$CFLAGS $fuse3_CFLAGS"
- LDFLAGS="$LDFLAGS $fuse3_LDFLAGS"
+ CFLAGS="$fuse3_CFLAGS $CFLAGS"
+ FUSE_LIB="$fuse3_LIBS"
AC_CHECK_HEADERS([pthread.h fuse.h], [],
[AC_MSG_FAILURE([Cannot find fuse3 fuse2fs headers.])],
[#define _FILE_OFFSET_BITS 64