From: Kefu Chai Date: Sat, 29 Aug 2015 13:33:31 +0000 (+0800) Subject: make: do not compile XFS.cc if --without-libxfs X-Git-Tag: v9.1.0~259^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=109e5b127b1072989625e7f7c775cb900bee7d5a;p=ceph.git make: do not compile XFS.cc if --without-libxfs Signed-off-by: Kefu Chai --- diff --git a/src/os/Makefile.am b/src/os/Makefile.am index ba80fd356db83..f1c68431eb827 100644 --- a/src/os/Makefile.am +++ b/src/os/Makefile.am @@ -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 diff --git a/src/os/fs/FS.cc b/src/os/fs/FS.cc index 78392f6a30767..5df8adf7d79e3 100644 --- a/src/os/fs/FS.cc +++ b/src/os/fs/FS.cc @@ -24,9 +24,12 @@ #include "FS.h" +#include "acconfig.h" + +#ifdef HAVE_LIBXFS #include "XFS.h" +#endif -#include "acconfig.h" #ifdef DARWIN #include #else