autoheader
automake -a --add-missing -Wall
( cd src/gtest && autoreconf -fvi; )
-( cd src/leveldb && mkdir -p m4 && autoreconf -fvi; )
exit
Requires: librados2 = %{version}-%{release}
Requires: libcephfs1 = %{version}-%{release}
Requires: python
+Requires: leveldb > 1.2
Requires(post): binutils
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: gcc-c++
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_SUBDIRS([src/gtest])
-AC_CONFIG_SUBDIRS([src/leveldb])
# Environment
AC_CANONICAL_HOST
[with_ocf=no])
AM_CONDITIONAL(WITH_OCF, [ test "$with_ocf" = "yes" ])
-# use system leveldb?
-AC_ARG_WITH([system-leveldb],
- [AS_HELP_STRING([--with-system-leveldb], [use system leveldb])],
- ,
- [with_system_leveldb=no])
-AS_IF([test "x$with_system_leveldb" = xyes],
- [AC_CHECK_LIB([leveldb], [leveldb_open], [], [AC_MSG_FAILURE([libleveldb not found])], [-lsnappy -lpthread])])
-AS_IF([test "x$with_system_leveldb" = xcheck],
- [AC_CHECK_LIB([leveldb], [leveldb_open], [with_system_leveldb=yes], [], [-lsnappy -lpthread])])
-AM_CONDITIONAL(WITH_SYSTEM_LEVELDB, [ test "$with_system_leveldb" = "yes" ])
+# use system leveldb
+AC_CHECK_LIB([leveldb], [leveldb_open], [], [AC_MSG_FAILURE([libleveldb not found])], [-lsnappy -lpthread])
# use system libs3?
AC_ARG_WITH([system-libs3],
Package: ceph
Architecture: linux-any
-Depends: ${shlibs:Depends}, ${misc:Depends}, sdparm | hdparm, binutils, ceph-common, uuid-runtime, python, xfsprogs, gdisk, parted
+Depends: ${shlibs:Depends}, ${misc:Depends}, sdparm | hdparm, binutils, ceph-common, uuid-runtime, python, xfsprogs, gdisk, parted, libleveldb1 (> 1.2)
Recommends: ceph-mds, librados2, librbd1, btrfs-tools
Description: distributed storage and file system
Ceph is a distributed storage system designed to provide excellent
AUTOMAKE_OPTIONS = gnu
SUBDIRS = ocf java
-DIST_SUBDIRS = gtest ocf leveldb libs3 java
+DIST_SUBDIRS = gtest ocf libs3 java
EXTRA_DIST = \
libs3/COPYING \
LIBOS_LDA += -laio
endif
-if WITH_SYSTEM_LEVELDB
+# use system leveldb
LIBOS_LDA += -lleveldb -lsnappy
LEVELDB_INCLUDE =
-else
-LIBOS_LDA += leveldb/libleveldb.a
-SUBDIRS += leveldb
-LEVELDB_INCLUDE = -I$(top_srcdir)/src/leveldb/include
-endif
# monitor
ceph_mon_SOURCES = ceph_mon.cc