From: Miklos Szeredi Date: Mon, 4 Feb 2013 17:30:14 +0000 (+0100) Subject: libfuse: configure: detect new util-linux X-Git-Tag: fuse_2_9_3~7 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=f80f367815de08d7bf41939ee75e37909004d164;p=qemu-gpiodev%2Flibfuse.git libfuse: configure: detect new util-linux Apparently new versions of util-linux umount return with an exit status of 1 even if the "--fake" option is recognised (despite being documented otherwise). Check this condition and don't complain about util-linux version. --- diff --git a/ChangeLog b/ChangeLog index 5a648be..fa4ff2e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -6,6 +6,8 @@ initialized for the "/" path. This resulted in remove_node_lru() crashing on LOOKUP-DOTDOT. Patch by Madan Valluri + * libfuse: configure: detect new util-linux + 2012-10-01 Miklos Szeredi * Released 2.9.2 diff --git a/configure.in b/configure.in index 83878ad..671d670 100644 --- a/configure.in +++ b/configure.in @@ -103,8 +103,12 @@ if test "$arch" = linux -a "$cross_compiling" != "yes"; then AC_MSG_RESULT([yes]) else firstline=`umount --fake --no-canonicalize 2>&1 | head -1` - AC_MSG_RESULT([$firstline]) - util_linux_ok=no + if test "$firstline" = 'umount: only root can use "--fake" option'; then + AC_MSG_RESULT([yes]) + else + AC_MSG_RESULT([$firstline]) + util_linux_ok=no + fi fi fi