-2006-04-01 Csaba Henk <csaba.henk@creo.hu>
+2007-04-05 Miklos Szeredi <miklos@szeredi.hu>
+
+ * Check for iconv. Patch by Csaba Henk
+
+ * Add direct umounting
+
+2007-04-01 Csaba Henk <csaba.henk@creo.hu>
+
* Fix some FreeBSD related macros.
2007-03-30 Miklos Szeredi <miklos@szeredi.hu>
AC_SEARCH_LIBS(clock_gettime, [rt])
libfuse_libs="$libfuse_libs $LIBS"
LIBS=
+AC_ARG_WITH([libiconv-prefix],
+[ --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib], [
+ for dir in `echo "$withval" | tr : ' '`; do
+ if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
+ if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
+ done
+ ])
+AM_ICONV
+libfuse_libs="$libfuse_libs $LIBICONV"
+AM_CONDITIONAL(ICONV, test "$am_cv_func_iconv" = yes)
AC_SUBST(libfuse_libs)
if test -z "$MOUNT_FUSE_PATH"; then
mount_source = mount.c
endif
+if ICONV
+iconv_source = modules/iconv.c
+else
+iconv_source =
+endif
+
libfuse_la_SOURCES = \
fuse.c \
fuse_i.h \
fuse_signals.c \
helper.c \
modules/subdir.c \
- modules/iconv.c \
+ $(iconv_source) \
$(mount_source)
libfuse_la_LDFLAGS = @libfuse_libs@ -version-number 2:7:0 \
void fuse_kern_unmount(const char *mountpoint, int fd)
{
+ int res;
int pid;
if (!mountpoint)
return;
if (fd != -1) {
- int res;
struct pollfd pfd;
pfd.fd = fd;
return;
}
+ res = umount2(mountpoint, 2);
+ if (res == 0)
+ return;
+
pid = fork();
if(pid == -1)
return;
echo Running libtoolize...
libtoolize --automake -c -f
+cp /usr/share/gettext/config.rpath .
+
if test ! -z "`which autoreconf`"; then
echo Running autoreconf...
autoreconf -i -f