diff --git a/src/leveldb/CMakeLists.txt b/src/leveldb/CMakeLists.txt --- a/src/leveldb/CMakeLists.txt +++ b/src/leveldb/CMakeLists.txt @@ -13,27 +13,9 @@ add_c_compiler_flag(-Wno-strict-prototypes) remove_compiler_flags(-Wstrict-prototypes) -include(TestBigEndian) -test_big_endian(LEVELDB_IS_BIG_ENDIAN) - -include(CheckIncludeFile) -check_include_file("unistd.h" HAVE_UNISTD_H) - include(CheckIncludeFileCXX) check_include_file_cxx("atomic" LEVELDB_ATOMIC_PRESENT) -include(CheckLibraryExists) -check_library_exists(crc32c crc32c_value "" HAVE_CRC32C) -check_library_exists(snappy snappy_compress "" HAVE_SNAPPY) - -include(CheckSymbolExists) -check_symbol_exists(fdatasync "unistd.h" HAVE_FDATASYNC) - -configure_file( - port/port_config.h.cmake.in - include/port/port_config.h -) - include_directories(.) add_library(leveldb @@ -152,15 +134,6 @@ LEVELDB_PLATFORM_${LEVELDB_PLATFORM} ) -# Right now this is not used but the latest version of leveldb uses this -# so we might as well be ready for it. -if (HAVE_CRC32C) - target_link_libraries(leveldb crc32c) -endif (HAVE_CRC32C) -if (HAVE_SNAPPY) - target_link_libraries(leveldb snappy) -endif (HAVE_SNAPPY) - # The libmemenv library. add_library(memenv helpers/memenv/memenv.cc) target_include_directories(memenv PUBLIC include) diff --git a/src/leveldb/port/port_config.h.cmake.in b/src/leveldb/port/port_config.h.cmake.in deleted file mode 100644 --- a/src/leveldb/port/port_config.h.cmake.in +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright 2017 The LevelDB Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. See the AUTHORS file for names of contributors. - -#ifndef STORAGE_LEVELDB_PORT_PORT_CONFIG_H_ -#define STORAGE_LEVELDB_PORT_PORT_CONFIG_H_ - -// Define to 1 if you have a definition for fdatasync() in . -#if !defined(HAVE_FUNC_FDATASYNC) -#cmakedefine01 HAVE_FUNC_FDATASYNC -#endif // !defined(HAVE_FUNC_FDATASYNC) - -// Define to 1 if you have Google CRC32C. -#if !defined(HAVE_CRC32C) -#cmakedefine01 HAVE_CRC32C -#endif // !defined(HAVE_CRC32C) - -// Define to 1 if you have Google Snappy. -#if !defined(HAVE_SNAPPY) -#cmakedefine01 HAVE_SNAPPY -#endif // !defined(HAVE_SNAPPY) - -// Define to 1 if you have the header file. -#if !defined(HAVE_UNISTD_H) -#cmakedefine01 HAVE_UNISTD_H -#endif // !defined(HAVE_UNISTD_H) - -// Define to 1 if your processor stores words with the most significant byte -// first (like Motorola and SPARC, unlike Intel and VAX). -#if !defined(LEVELDB_IS_BIG_ENDIAN) -#cmakedefine01 LEVELDB_IS_BIG_ENDIAN -#endif // !defined(LEVELDB_IS_BIG_ENDIAN) - -#endif // STORAGE_LEVELDB_PORT_PORT_CONFIG_H_