From df4afa947aee85599735fa4139ee9d5997c69501 Mon Sep 17 00:00:00 2001 From: szaka Date: Mon, 11 Jun 2007 20:36:27 +0000 Subject: [PATCH] warn if FUSE is not installed on the root file system --- configure.ac | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 097e120f..9280af29 100644 --- a/configure.ac +++ b/configure.ac @@ -96,7 +96,7 @@ AC_PROG_LIBTOOL # Libraries often install their metadata .pc files in directories not searched # by pkg-config. Let's workaround this. -export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:/usr/lib/pkgconfig:/opt/gnome/lib/pkgconfig:/usr/share/pkgconfig:/usr/local/lib/pkgconfig:$prefix/lib/pkgconfig:/opt/gnome/share/pkgconfig:/usr/local/share/pkgconfig +export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:/lib/pkgconfig:/usr/lib/pkgconfig:/opt/gnome/lib/pkgconfig:/usr/share/pkgconfig:/usr/local/lib/pkgconfig:$prefix/lib/pkgconfig:/opt/gnome/share/pkgconfig:/usr/local/share/pkgconfig # Enable large file support. AC_SYS_LARGEFILE @@ -124,6 +124,8 @@ libfuse_libs="$libfuse_libs $LIBS" LIBS= AC_SUBST(libfuse_libs) +FUSE_LIB_PATH=`$PKG_CONFIG --libs-only-L fuse | sed -e 's,/[/]*,/,g' -e 's,[ ]*$,,'` + # add --with-extra-includes and --with-extra-libs switch to ./configure all_libraries="$all_libraries $USER_LDFLAGS" all_includes="$all_includes $USER_INCLUDES" @@ -203,3 +205,19 @@ AC_CONFIG_FILES([ src/ntfs-3g.8 ]) AC_OUTPUT + +if test "x$FUSE_LIB_PATH" != "x-L/lib"; then +cat <