make: do not compile XFS.cc if --without-libxfs

Signed-off-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
Kefu Chai 2015-08-29 21:33:31 +08:00
parent 8ef07420b1
commit 109e5b127b
2 changed files with 8 additions and 4 deletions

View File

@ -8,7 +8,6 @@ if ENABLE_SERVER
libos_la_SOURCES = \
os/chain_xattr.cc \
os/fs/FS.cc \
os/fs/XFS.cc \
os/DBObjectMap.cc \
os/GenericObjectMap.cc \
os/FileJournal.cc \
@ -31,7 +30,9 @@ libos_la_SOURCES += os/BtrfsFileStoreBackend.cc
endif
if WITH_LIBXFS
libos_la_SOURCES += os/XfsFileStoreBackend.cc
libos_la_SOURCES += \
os/fs/XFS.cc \
os/XfsFileStoreBackend.cc
endif
if WITH_LIBZFS

View File

@ -24,9 +24,12 @@
#include "FS.h"
#include "XFS.h"
#include "acconfig.h"
#ifdef HAVE_LIBXFS
#include "XFS.h"
#endif
#ifdef DARWIN
#include <sys/mount.h>
#else