libfuse: fuse -> fuse3

Allow 2.X and 3.X to coexist.  Includes are now stored under
/usr/include/fuse3 and library is named libfuse3.*.  Invoke pkg-config with
"fuse3" as the first argument to build with version 3 of the library.
This commit is contained in:
Miklos Szeredi 2013-07-25 16:54:42 +02:00
parent 409b5b2386
commit 0cb2db32e7
16 changed files with 27 additions and 20 deletions

2
.gitignore vendored
View File

@ -30,7 +30,7 @@ config.*
/compile
/libtool
/INSTALL
/fuse.pc
/*.pc
/.pc
/patches*
/m4

View File

@ -1,3 +1,10 @@
2013-07-25 Miklos Szeredi <miklos@szeredi.hu>
* libfuse: fuse -> fuse3. Allow 2.X and 3.X to coexist. Includes
are now stored under /usr/include/fuse3 and library is named
libfuse3.*. Invoke pkg-config with "fuse3" as the first argument
to build with version 3 of the library.
2013-07-24 Miklos Szeredi <miklos@szeredi.hu>
* libfuse: remove "-D_FILE_OFFSET_BITS=64" from fuse.pc, add

View File

@ -5,12 +5,12 @@ ACLOCAL_AMFLAGS = -I m4
SUBDIRS = @subdirs2@ doc
EXTRA_DIST = \
fuse.pc.in \
fuse3.pc.in \
README* \
Filesystems \
FAQ
pkgconfigdir = @pkgconfigdir@
pkgconfig_DATA = fuse.pc
pkgconfig_DATA = fuse3.pc
$(pkgconfig_DATA): config.status

View File

@ -112,7 +112,7 @@ if test "$arch" = linux -a "$cross_compiling" != "yes"; then
fi
fi
AC_CONFIG_FILES([fuse.pc Makefile lib/Makefile util/Makefile example/Makefile include/Makefile doc/Makefile])
AC_CONFIG_FILES([fuse3.pc Makefile lib/Makefile util/Makefile example/Makefile include/Makefile doc/Makefile])
AC_OUTPUT
if test "$util_linux_ok" = no; then

View File

@ -5,8 +5,8 @@ noinst_HEADERS = fioc.h
noinst_PROGRAMS = fusexmp fusexmp_fh null hello hello_ll fioc fioclient \
fsel fselclient cusexmp
LDADD = ../lib/libfuse.la
fusexmp_fh_LDADD = ../lib/libfuse.la ../lib/libulockmgr.la
LDADD = ../lib/libfuse3.la
fusexmp_fh_LDADD = ../lib/libfuse3.la ../lib/libulockmgr.la
fioclient_CPPFLAGS =
fioclient_LDFLAGS =

View File

@ -15,7 +15,7 @@
*
* \section section_compile compiling this example
*
* gcc -Wall cusexmp.c `pkg-config fuse --cflags --libs` -o cusexmp
* gcc -Wall cusexmp.c `pkg-config fuse3 --cflags --libs` -o cusexmp
*
* \section section_source the complete source
* \include cusexmp.c

View File

@ -15,7 +15,7 @@
*
* \section section_compile compiling this example
*
* gcc -Wall fioc.c `pkg-config fuse --cflags --libs` -o fioc
* gcc -Wall fioc.c `pkg-config fuse3 --cflags --libs` -o fioc
*
* \section section_source the complete source
* \include fioc.c

View File

@ -15,7 +15,7 @@
*
* \section section_compile compiling this example
*
* gcc -Wall fsel.c `pkg-config fuse --cflags --libs` -o fsel
* gcc -Wall fsel.c `pkg-config fuse3 --cflags --libs` -o fsel
*
* \section section_source the complete source
* \include fsel.c

View File

@ -14,7 +14,7 @@
*
* \section section_compile compiling this example
*
* gcc -Wall fusexmp.c `pkg-config fuse --cflags --libs` -o fusexmp
* gcc -Wall fusexmp.c `pkg-config fuse3 --cflags --libs` -o fusexmp
*
* \section section_source the complete source
* \include fusexmp.c

View File

@ -14,7 +14,7 @@
*
* \section section_compile compiling this example
*
* gcc -Wall fusexmp_fh.c `pkg-config fuse --cflags --libs` -lulockmgr -o fusexmp_fh
* gcc -Wall fusexmp_fh.c `pkg-config fuse3 --cflags --libs` -lulockmgr -o fusexmp_fh
*
* \section section_source the complete source
* \include fusexmp_fh.c

View File

@ -12,7 +12,7 @@
*
* \section section_compile compiling this example
*
* gcc -Wall hello.c `pkg-config fuse --cflags --libs` -o hello
* gcc -Wall hello.c `pkg-config fuse3 --cflags --libs` -o hello
*
* \section section_usage usage
\verbatim

View File

@ -15,7 +15,7 @@
*
* \section section_compile compiling this example
*
* gcc -Wall hello_ll.c `pkg-config fuse --cflags --libs` -o hello_ll
* gcc -Wall hello_ll.c `pkg-config fuse3 --cflags --libs` -o hello_ll
*
* \section section_usage usage
\verbatim

View File

@ -12,7 +12,7 @@
*
* \section section_compile compiling this example
*
* gcc -Wall null.c `pkg-config fuse --cflags --libs` -o null
* gcc -Wall null.c `pkg-config fuse3 --cflags --libs` -o null
*
* \section section_source the complete source
* \include null.c

View File

@ -8,4 +8,4 @@ Description: Filesystem in Userspace
Version: @VERSION@
Libs: -L${libdir} -lfuse -pthread
Libs.private: @libfuse_libs@
Cflags: -I${includedir}/fuse
Cflags: -I${includedir}/fuse3

View File

@ -1,6 +1,6 @@
## Process this file with automake to produce Makefile.in
fuseincludedir=$(includedir)/fuse
fuseincludedir=$(includedir)/fuse3
fuseinclude_HEADERS = \
fuse.h \

View File

@ -3,7 +3,7 @@
AM_CPPFLAGS = -I$(top_srcdir)/include -DFUSERMOUNT_DIR=\"$(bindir)\" \
-D_REENTRANT -DFUSE_USE_VERSION=30
lib_LTLIBRARIES = libfuse.la libulockmgr.la
lib_LTLIBRARIES = libfuse3.la libulockmgr.la
if BSD
mount_source = mount_bsd.c
@ -17,7 +17,7 @@ else
iconv_source =
endif
libfuse_la_SOURCES = \
libfuse3_la_SOURCES = \
fuse.c \
fuse_i.h \
fuse_loop.c \
@ -35,11 +35,11 @@ libfuse_la_SOURCES = \
$(iconv_source) \
$(mount_source)
libfuse_la_LDFLAGS = -pthread @libfuse_libs@ -version-number 3:0:0 \
libfuse3_la_LDFLAGS = -pthread @libfuse_libs@ -version-number 0:0:0 \
-Wl,--version-script,$(srcdir)/fuse_versionscript
if NETBSD
libfuse_la_LIBADD = -lperfuse -lpuffs
libfuse3_la_LIBADD = -lperfuse -lpuffs
endif
libulockmgr_la_SOURCES = ulockmgr.c