configure: use PKG_CHECK_MODULES to check fuse

fuse has fuse.pc file for pkg-config. this is more reliable.
This commit is contained in:
Koichiro IWAO 2015-03-18 02:40:15 +00:00
parent 9c2951fa6c
commit 67cad0d374

View File

@ -129,9 +129,8 @@ fi
# checking for fuse # checking for fuse
if test "x$enable_fuse" = "xyes" if test "x$enable_fuse" = "xyes"
then then
AC_CHECK_HEADER([fuse.h], [], PKG_CHECK_MODULES([FUSE], [fuse >= 2.6], [],
[AC_MSG_ERROR([please install libfuse-dev or fuse-devel])], [AC_MSG_ERROR([please install libfuse-dev or fuse-devel])])
[#define _FILE_OFFSET_BITS 64])
fi fi
# checking for opus # checking for opus