From: Harshavardhana <ha...@zr...> - 2008-03-12 09:47:11
|
Hi Miklos, I was trying to check for FUSE_VERSION information from fuse.h using something like following in our configure.ac file which is giving some problems AC_TRY_COMPILE([#define _FILE_OFFSET_BITS #include <fuse.h>], #if (FUSE_VERSION < 27) #error "Old version" #endif , [HAVE_FUSE_VERSION="yes"], [HAVE_FUSE_VERSION="no"]) Now this is throwing out error as "Old version" inside config.log during the ./configure is being run, observing this i saw FUSE_VERSION is actually set to 21. Even if i have installed the 2.7.0 version on my machine. This is notably because of the fact that we didn't set FUSE_USE_VERSION during compile. But i am sure that this should not be the case. I should be able to get the actual version installed on the system irrespective of FUSE_USE_VERSION being set to something else. As i see fuse_common.h inside /usr/include/fuse directory it says FUSE_MAJOR_VERSION -> 2 and FUSE_MINOR_VERSION -> 7. But if the FUSE_USE_VERSION is set to 21 then above MINOR version value changes to 1. Is there a way to get this working ?, i am aware of the pkg-config macro's in autoconf which can get what we want at the moment. But i wanted to just post my thoughts regarding the FUSE_VERSION check. Alike other libraries fuse is not providing the proper MAJOR, MINOR versions installed. But only provides it by adding a FUSE_USE_VERSION flag. Comments welcome. Regards -- Harshavardhana "Software gets slower faster as Hardware gets faster" |