*** empty log message ***
authorMiklos Szeredi <miklos@szeredi.hu>
Thu, 5 Apr 2007 17:39:58 +0000 (17:39 +0000)
committerMiklos Szeredi <miklos@szeredi.hu>
Thu, 5 Apr 2007 17:39:58 +0000 (17:39 +0000)
ChangeLog
configure.in
lib/Makefile.am
lib/mount.c
makeconf.sh

index 0c9408a3a33637b407098c3d658b6a569ede91f3..dc1cb57fb7873b0395a05141846b0494c005361c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,11 @@
-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>
index 1ea4edf87d94058ea2634fb496b58ac1aea5a272..d722d16fa87156a2c1087fda065ba365dbfc600e 100644 (file)
@@ -68,6 +68,16 @@ AC_SEARCH_LIBS(dlopen, [dl])
 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
index 983c01fb3d9712bfac9c225518cab0dbfec4af64..40f70145f63353455407a4277f81751d5e77fe59 100644 (file)
@@ -11,6 +11,12 @@ else
 mount_source = mount.c
 endif
 
+if ICONV
+iconv_source = modules/iconv.c
+else
+iconv_source =
+endif
+
 libfuse_la_SOURCES =           \
        fuse.c                  \
        fuse_i.h                \
@@ -25,7 +31,7 @@ libfuse_la_SOURCES =          \
        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 \
index cdfd7d232d0da07cbbbf869d24a92451ee4011f0..5232737ec7bac2138496894002486517d79b847d 100644 (file)
@@ -259,13 +259,13 @@ static int receive_fd(int fd)
 
 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;
@@ -277,6 +277,10 @@ void fuse_kern_unmount(const char *mountpoint, int fd)
             return;
     }
 
+    res = umount2(mountpoint, 2);
+    if (res == 0)
+        return;
+
     pid = fork();
     if(pid == -1)
         return;
index 99edae545fa116c1863da9b51ab45475374a758b..f21378d85bf6806e7c331436a0b1caafa53658ee 100755 (executable)
@@ -3,6 +3,8 @@
 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