@nxtedition/rocksdb 5.2.39 → 6.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/binding.cc +68 -34
  2. package/deps/rocksdb/rocksdb.gyp +34 -10
  3. package/package.json +1 -1
  4. package/prebuilds/darwin-arm64/node.napi.node +0 -0
  5. package/prebuilds/darwin-x64/node.napi.node +0 -0
  6. package/prebuilds/{prebuilds/linux-x64 → linux-arm64}/node.napi.node +0 -0
  7. package/prebuilds/linux-x64/node.napi.node +0 -0
  8. package/deps/snappy/freebsd/config.h +0 -135
  9. package/deps/snappy/freebsd/snappy-stubs-public.h +0 -100
  10. package/deps/snappy/linux/config.h +0 -135
  11. package/deps/snappy/linux/snappy-stubs-public.h +0 -100
  12. package/deps/snappy/mac/config.h +0 -137
  13. package/deps/snappy/mac/snappy-stubs-public.h +0 -100
  14. package/deps/snappy/openbsd/config.h +0 -135
  15. package/deps/snappy/openbsd/snappy-stubs-public.h +0 -100
  16. package/deps/snappy/snappy-1.1.7/COPYING +0 -54
  17. package/deps/snappy/snappy-1.1.7/README.md +0 -149
  18. package/deps/snappy/snappy-1.1.7/cmake/SnappyConfig.cmake +0 -1
  19. package/deps/snappy/snappy-1.1.7/cmake/config.h.in +0 -62
  20. package/deps/snappy/snappy-1.1.7/snappy-c.cc +0 -90
  21. package/deps/snappy/snappy-1.1.7/snappy-c.h +0 -138
  22. package/deps/snappy/snappy-1.1.7/snappy-internal.h +0 -224
  23. package/deps/snappy/snappy-1.1.7/snappy-sinksource.cc +0 -104
  24. package/deps/snappy/snappy-1.1.7/snappy-sinksource.h +0 -182
  25. package/deps/snappy/snappy-1.1.7/snappy-stubs-internal.cc +0 -42
  26. package/deps/snappy/snappy-1.1.7/snappy-stubs-internal.h +0 -561
  27. package/deps/snappy/snappy-1.1.7/snappy-stubs-public.h.in +0 -94
  28. package/deps/snappy/snappy-1.1.7/snappy-test.cc +0 -612
  29. package/deps/snappy/snappy-1.1.7/snappy-test.h +0 -573
  30. package/deps/snappy/snappy-1.1.7/snappy.cc +0 -1515
  31. package/deps/snappy/snappy-1.1.7/snappy.h +0 -203
  32. package/deps/snappy/snappy-1.1.7/snappy_unittest.cc +0 -1410
  33. package/deps/snappy/snappy.gyp +0 -93
  34. package/deps/snappy/solaris/config.h +0 -135
  35. package/deps/snappy/solaris/snappy-stubs-public.h +0 -100
  36. package/deps/snappy/win32/config.h +0 -29
  37. package/deps/snappy/win32/snappy-stubs-public.h +0 -100
package/binding.cc CHANGED
@@ -18,8 +18,8 @@
18
18
  #include <optional>
19
19
  #include <set>
20
20
  #include <string>
21
- #include <vector>
22
21
  #include <thread>
22
+ #include <vector>
23
23
 
24
24
  class NullLogger : public rocksdb::Logger {
25
25
  public:
@@ -598,11 +598,18 @@ NAPI_METHOD(db_open) {
598
598
  const auto location = ToString(env, argv[1]);
599
599
  options.create_if_missing = BooleanProperty(env, argv[2], "createIfMissing").value_or(true);
600
600
  options.error_if_exists = BooleanProperty(env, argv[2], "errorIfExists").value_or(false);
601
- options.compression = BooleanProperty(env, argv[2], "compression").value_or((true)) ? rocksdb::kSnappyCompression
601
+ options.compression = BooleanProperty(env, argv[2], "compression").value_or((true)) ? rocksdb::kZSTD
602
602
  : rocksdb::kNoCompression;
603
- options.use_adaptive_mutex = true;
604
- options.enable_pipelined_write = true;
605
- options.max_background_jobs = std::thread::hardware_concurrency() / 4;
603
+ if (options.compression == rocksdb::kZSTD) {
604
+ options.compression_opts.max_dict_bytes = 16 * 1024;
605
+ options.compression_opts.zstd_max_train_bytes = 16 * 1024 * 100;
606
+ // options.compression_opts.parallel_threads
607
+ }
608
+
609
+ options.use_adaptive_mutex = BooleanProperty(env, argv[2], "useAdaptiveMutex").value_or(true);
610
+ options.enable_pipelined_write = BooleanProperty(env, argv[2], "enablePipelinedWrite").value_or(true);
611
+ options.max_background_jobs =
612
+ Uint32Property(env, argv[2], "maxBackgroundJobs").value_or(std::thread::hardware_concurrency() / 4);
606
613
 
607
614
  // TODO: Consider direct IO (https://github.com/facebook/rocksdb/wiki/Direct-IO) once
608
615
  // secondary compressed cache is stable.
@@ -641,7 +648,8 @@ NAPI_METHOD(db_open) {
641
648
 
642
649
  if (cacheSize) {
643
650
  tableOptions.block_cache = rocksdb::NewLRUCache(cacheSize);
644
- tableOptions.cache_index_and_filter_blocks = BooleanProperty(env, argv[2], "cacheIndexAndFilterBlocks").value_or(true);
651
+ tableOptions.cache_index_and_filter_blocks =
652
+ BooleanProperty(env, argv[2], "cacheIndexAndFilterBlocks").value_or(true);
645
653
  } else {
646
654
  tableOptions.no_block_cache = true;
647
655
  tableOptions.cache_index_and_filter_blocks = false;
@@ -909,46 +917,72 @@ NAPI_METHOD(db_clear) {
909
917
  const auto lte = StringProperty(env, argv[1], "lte");
910
918
  const auto gt = StringProperty(env, argv[1], "gt");
911
919
  const auto gte = StringProperty(env, argv[1], "gte");
920
+
921
+ if (!reverse && limit == -1 && (lte || lt)) {
922
+ rocksdb::Slice begin;
923
+ if (gte) {
924
+ begin = *gte;
925
+ } else if (gt) {
926
+ begin = *gt + '\0';
927
+ }
912
928
 
913
- // TODO (perf): Use DeleteRange.
929
+ rocksdb::Slice end;
930
+ if (lte) {
931
+ end = *lte + '\0';
932
+ } else if (lt) {
933
+ end = *lt;
934
+ } else {
935
+ assert(false);
936
+ }
914
937
 
915
- BaseIterator it(database, reverse, lt, lte, gt, gte, limit, false);
938
+ if (begin.compare(end) > 0) {
939
+ return ToError(env, rocksdb::Status::OK());
940
+ }
916
941
 
917
- it.SeekToRange();
942
+ rocksdb::WriteOptions options;
943
+ const auto status = database->db_->DeleteRange(options, database->db_->DefaultColumnFamily(), begin, end);
944
+ return ToError(env, status);
945
+ } else {
946
+ // TODO (perf): Use DeleteRange.
918
947
 
919
- // TODO: add option
920
- const uint32_t hwm = 16 * 1024;
948
+ BaseIterator it(database, reverse, lt, lte, gt, gte, limit, false);
921
949
 
922
- rocksdb::WriteBatch batch;
923
- rocksdb::WriteOptions options;
924
- rocksdb::Status status;
950
+ it.SeekToRange();
925
951
 
926
- while (true) {
927
- size_t bytesRead = 0;
952
+ // TODO: add option
953
+ const uint32_t hwm = 16 * 1024;
928
954
 
929
- while (bytesRead <= hwm && it.Valid() && it.Increment()) {
930
- const auto key = it.CurrentKey();
931
- batch.Delete(key);
932
- bytesRead += key.size();
933
- it.Next();
934
- }
955
+ rocksdb::WriteBatch batch;
956
+ rocksdb::WriteOptions options;
957
+ rocksdb::Status status;
935
958
 
936
- status = it.Status();
937
- if (!status.ok() || bytesRead == 0) {
938
- break;
939
- }
959
+ while (true) {
960
+ size_t bytesRead = 0;
940
961
 
941
- status = database->db_->Write(options, &batch);
942
- if (!status.ok()) {
943
- break;
944
- }
962
+ while (bytesRead <= hwm && it.Valid() && it.Increment()) {
963
+ const auto key = it.CurrentKey();
964
+ batch.Delete(key);
965
+ bytesRead += key.size();
966
+ it.Next();
967
+ }
945
968
 
946
- batch.Clear();
947
- }
969
+ status = it.Status();
970
+ if (!status.ok() || bytesRead == 0) {
971
+ break;
972
+ }
948
973
 
949
- it.Close();
974
+ status = database->db_->Write(options, &batch);
975
+ if (!status.ok()) {
976
+ break;
977
+ }
950
978
 
951
- return ToError(env, status);
979
+ batch.Clear();
980
+ }
981
+
982
+ it.Close();
983
+
984
+ return ToError(env, status);
985
+ }
952
986
  }
953
987
 
954
988
  NAPI_METHOD(db_get_property) {
@@ -5,16 +5,24 @@
5
5
  "target_name": "rocksdb",
6
6
  "type": "static_library",
7
7
  "standalone_static_library": 1,
8
- "dependencies": ["../snappy/snappy.gyp:snappy"],
9
- "direct_dependent_settings": { "include_dirs": ["rocksdb/include/"] },
8
+ "direct_dependent_settings": {
9
+ "include_dirs": ["rocksdb/include/"]
10
+ },
10
11
  "defines": [
11
- "SNAPPY=1",
12
+ "ZSTD=1",
13
+ # "ZSTD_STATIC_LINKING_ONLY=1",
14
+ # "ROCKSDB_JEMALLOC=1",
15
+ # "JEMALLOC_NO_DEMANGLE=1",
12
16
  "ROCKSDB_BACKTRACE=1",
13
17
  "ROCKSDB_SUPPORT_THREAD_LOCAL=1",
14
18
  "NIOSTATS_CONTEXT=1",
15
19
  "NPERF_CONTEXT=1"
16
20
  ],
17
- "include_dirs": ["rocksdb/", "rocksdb/include/"],
21
+ "include_dirs": [
22
+ "rocksdb/",
23
+ "rocksdb/include/",
24
+ "deps/zstd/zstd/lib"
25
+ ],
18
26
  "conditions": [
19
27
  [
20
28
  "OS == 'win'",
@@ -84,8 +92,6 @@
84
92
  "ROCKSDB_RANGESYNC_PRESENT=1",
85
93
  "ROCKSDB_SCHED_GETCPU_PRESENT=1",
86
94
  "ROCKSDB_IOURING_PRESENT=1",
87
- # "ROCKSDB_JEMALLOC=1",
88
- # "JEMALLOC_NO_DEMANGLE=1",
89
95
  "HAVE_SSE42=1",
90
96
  "HAVE_BMI=1",
91
97
  "HAVE_LZCNT=1",
@@ -97,7 +103,15 @@
97
103
  # "NUMA=1",
98
104
  # "TBB=1",
99
105
  ],
100
- "dependencies": ["../liburing/liburing.gyp:liburing"],
106
+ "direct_dependent_settings": {
107
+ "libraries": [
108
+ "/usr/lib/x86_64-linux-gnu/libzstd_pic.a",
109
+ # "/usr/lib/x86_64-linux-gnu/libjemalloc_pic.a",
110
+ ],
111
+ },
112
+ "dependencies": [
113
+ "../liburing/liburing.gyp:liburing"
114
+ ],
101
115
  "cflags": [
102
116
  "-msse4.2",
103
117
  "-mpclmul",
@@ -109,13 +123,19 @@
109
123
  "ccflags": ["-flto"],
110
124
  "cflags!": ["-fno-exceptions"],
111
125
  "cflags_cc!": ["-fno-exceptions"],
112
- "ldflags": ["-flto", "-fuse-linker-plugin"]
113
- }
126
+ "ldflags": ["-flto", "-fuse-linker-plugin"],
127
+ },
114
128
  ],
115
129
  [
116
130
  "OS == 'mac'",
117
131
  {
118
132
  "defines": ["OS_MACOSX=1"],
133
+ "direct_dependent_settings": {
134
+ "libraries": [
135
+ "/opt/homebrew/Cellar/zstd/1.5.2/lib/libzstd.dylib",
136
+ # "/opt/homebrew/Cellar/jemalloc/5.3.0/lib/libjemalloc.dylib"
137
+ ],
138
+ },
119
139
  "xcode_settings": {
120
140
  "OTHER_CPLUSPLUSFLAGS": [
121
141
  "-mmacosx-version-min=10.15",
@@ -128,7 +148,11 @@
128
148
  "GCC_ENABLE_CPP_RTTI": "YES",
129
149
  "GCC_ENABLE_CPP_EXCEPTIONS": "YES",
130
150
  "MACOSX_DEPLOYMENT_TARGET": "10.15"
131
- }
151
+ },
152
+ "include_dirs": [
153
+ "/opt/homebrew/Cellar/zstd/1.5.2/include",
154
+ # "/opt/homebrew/Cellar/jemalloc/5.3.0/include"
155
+ ],
132
156
  }
133
157
  ]
134
158
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/rocksdb",
3
- "version": "5.2.39",
3
+ "version": "6.0.0",
4
4
  "description": "A low-level Node.js RocksDB binding",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
Binary file
Binary file
@@ -1,135 +0,0 @@
1
- /* config.h. Generated from config.h.in by configure. */
2
- /* config.h.in. Generated from configure.ac by autoheader. */
3
-
4
- /* Define if building universal (internal helper macro) */
5
- /* #undef AC_APPLE_UNIVERSAL_BUILD */
6
-
7
- /* Define to 1 if the compiler supports __builtin_ctz and friends. */
8
- #define HAVE_BUILTIN_CTZ 1
9
-
10
- /* Define to 1 if the compiler supports __builtin_expect. */
11
- #define HAVE_BUILTIN_EXPECT 1
12
-
13
- /* Define to 1 if you have the <byteswap.h> header file. */
14
- /* #undef HAVE_BYTESWAP_H */
15
-
16
- /* Define to 1 if you have the <dlfcn.h> header file. */
17
- #define HAVE_DLFCN_H 1
18
-
19
- /* Use the gflags package for command-line parsing. */
20
- /* #undef HAVE_GFLAGS */
21
-
22
- /* Defined when Google Test is available. */
23
- /* #undef HAVE_GTEST */
24
-
25
- /* Define to 1 if you have the <inttypes.h> header file. */
26
- #define HAVE_INTTYPES_H 1
27
-
28
- /* Define to 1 if you have the `fastlz' library (-lfastlz). */
29
- /* #undef HAVE_LIBFASTLZ */
30
-
31
- /* Define to 1 if you have the `lzf' library (-llzf). */
32
- /* #undef HAVE_LIBLZF */
33
-
34
- /* Define to 1 if you have the `lzo2' library (-llzo2). */
35
- /* #undef HAVE_LIBLZO2 */
36
-
37
- /* Define to 1 if you have the `quicklz' library (-lquicklz). */
38
- /* #undef HAVE_LIBQUICKLZ */
39
-
40
- /* Define to 1 if you have the `z' library (-lz). */
41
- #define HAVE_LIBZ 1
42
-
43
- /* Define to 1 if you have the <memory.h> header file. */
44
- #define HAVE_MEMORY_H 1
45
-
46
- /* Define to 1 if you have the <stddef.h> header file. */
47
- #define HAVE_STDDEF_H 1
48
-
49
- /* Define to 1 if you have the <stdint.h> header file. */
50
- #define HAVE_STDINT_H 1
51
-
52
- /* Define to 1 if you have the <stdlib.h> header file. */
53
- #define HAVE_STDLIB_H 1
54
-
55
- /* Define to 1 if you have the <strings.h> header file. */
56
- #define HAVE_STRINGS_H 1
57
-
58
- /* Define to 1 if you have the <string.h> header file. */
59
- #define HAVE_STRING_H 1
60
-
61
- /* Define to 1 if you have the <sys/byteswap.h> header file. */
62
- /* #undef HAVE_SYS_BYTESWAP_H */
63
-
64
- /* Define to 1 if you have the <sys/endian.h> header file. */
65
- #define HAVE_SYS_ENDIAN_H 1
66
-
67
- /* Define to 1 if you have the <sys/mman.h> header file. */
68
- #define HAVE_SYS_MMAN_H 1
69
-
70
- /* Define to 1 if you have the <sys/resource.h> header file. */
71
- #define HAVE_SYS_RESOURCE_H 1
72
-
73
- /* Define to 1 if you have the <sys/stat.h> header file. */
74
- #define HAVE_SYS_STAT_H 1
75
-
76
- /* Define to 1 if you have the <sys/time.h> header file. */
77
- #define HAVE_SYS_TIME_H 1
78
-
79
- /* Define to 1 if you have the <sys/types.h> header file. */
80
- #define HAVE_SYS_TYPES_H 1
81
-
82
- /* Define to 1 if you have the <sys/uio.h> header file. */
83
- #define HAVE_SYS_UIO_H 1
84
-
85
- /* Define to 1 if you have the <unistd.h> header file. */
86
- #define HAVE_UNISTD_H 1
87
-
88
- /* Define to 1 if you have the <windows.h> header file. */
89
- /* #undef HAVE_WINDOWS_H */
90
-
91
- /* Define to the sub-directory in which libtool stores uninstalled libraries.
92
- */
93
- #define LT_OBJDIR ".libs/"
94
-
95
- /* Name of package */
96
- #define PACKAGE "snappy"
97
-
98
- /* Define to the address where bug reports for this package should be sent. */
99
- #define PACKAGE_BUGREPORT ""
100
-
101
- /* Define to the full name of this package. */
102
- #define PACKAGE_NAME "snappy"
103
-
104
- /* Define to the full name and version of this package. */
105
- #define PACKAGE_STRING "snappy 1.1.4"
106
-
107
- /* Define to the one symbol short name of this package. */
108
- #define PACKAGE_TARNAME "snappy"
109
-
110
- /* Define to the version of this package. */
111
- #define PACKAGE_VERSION "1.1.4"
112
-
113
- /* Define to 1 if you have the ANSI C header files. */
114
- #define STDC_HEADERS 1
115
-
116
- /* Version number of package */
117
- #define VERSION "1.1.4"
118
-
119
- /* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
120
- significant byte first (like Motorola and SPARC, unlike Intel). */
121
- #if defined AC_APPLE_UNIVERSAL_BUILD
122
- # if defined __BIG_ENDIAN__
123
- # define WORDS_BIGENDIAN 1
124
- # endif
125
- #else
126
- # ifndef WORDS_BIGENDIAN
127
- /* # undef WORDS_BIGENDIAN */
128
- # endif
129
- #endif
130
-
131
- /* Define to `unsigned int' if <sys/types.h> does not define. */
132
- /* #undef size_t */
133
-
134
- /* Define to `int' if <sys/types.h> does not define. */
135
- /* #undef ssize_t */
@@ -1,100 +0,0 @@
1
- // Copyright 2011 Google Inc. All Rights Reserved.
2
- // Author: sesse@google.com (Steinar H. Gunderson)
3
- //
4
- // Redistribution and use in source and binary forms, with or without
5
- // modification, are permitted provided that the following conditions are
6
- // met:
7
- //
8
- // * Redistributions of source code must retain the above copyright
9
- // notice, this list of conditions and the following disclaimer.
10
- // * Redistributions in binary form must reproduce the above
11
- // copyright notice, this list of conditions and the following disclaimer
12
- // in the documentation and/or other materials provided with the
13
- // distribution.
14
- // * Neither the name of Google Inc. nor the names of its
15
- // contributors may be used to endorse or promote products derived from
16
- // this software without specific prior written permission.
17
- //
18
- // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19
- // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20
- // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21
- // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22
- // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23
- // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24
- // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25
- // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26
- // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27
- // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28
- // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29
- //
30
- // Various type stubs for the open-source version of Snappy.
31
- //
32
- // This file cannot include config.h, as it is included from snappy.h,
33
- // which is a public header. Instead, snappy-stubs-public.h is generated by
34
- // from snappy-stubs-public.h.in at configure time.
35
-
36
- #ifndef THIRD_PARTY_SNAPPY_OPENSOURCE_SNAPPY_STUBS_PUBLIC_H_
37
- #define THIRD_PARTY_SNAPPY_OPENSOURCE_SNAPPY_STUBS_PUBLIC_H_
38
-
39
- #if 1
40
- #include <stdint.h>
41
- #endif
42
-
43
- #if 1
44
- #include <stddef.h>
45
- #endif
46
-
47
- #if 1
48
- #include <sys/uio.h>
49
- #endif
50
-
51
- #define SNAPPY_MAJOR 1
52
- #define SNAPPY_MINOR 1
53
- #define SNAPPY_PATCHLEVEL 4
54
- #define SNAPPY_VERSION \
55
- ((SNAPPY_MAJOR << 16) | (SNAPPY_MINOR << 8) | SNAPPY_PATCHLEVEL)
56
-
57
- #include <string>
58
-
59
- namespace snappy {
60
-
61
- #if 1
62
- typedef int8_t int8;
63
- typedef uint8_t uint8;
64
- typedef int16_t int16;
65
- typedef uint16_t uint16;
66
- typedef int32_t int32;
67
- typedef uint32_t uint32;
68
- typedef int64_t int64;
69
- typedef uint64_t uint64;
70
- #else
71
- typedef signed char int8;
72
- typedef unsigned char uint8;
73
- typedef short int16;
74
- typedef unsigned short uint16;
75
- typedef int int32;
76
- typedef unsigned int uint32;
77
- typedef long long int64;
78
- typedef unsigned long long uint64;
79
- #endif
80
-
81
- typedef std::string string;
82
-
83
- #ifndef DISALLOW_COPY_AND_ASSIGN
84
- #define DISALLOW_COPY_AND_ASSIGN(TypeName) \
85
- TypeName(const TypeName&); \
86
- void operator=(const TypeName&)
87
- #endif
88
-
89
- #if !1
90
- // Windows does not have an iovec type, yet the concept is universally useful.
91
- // It is simple to define it ourselves, so we put it inside our own namespace.
92
- struct iovec {
93
- void* iov_base;
94
- size_t iov_len;
95
- };
96
- #endif
97
-
98
- } // namespace snappy
99
-
100
- #endif // THIRD_PARTY_SNAPPY_OPENSOURCE_SNAPPY_STUBS_PUBLIC_H_
@@ -1,135 +0,0 @@
1
- /* config.h. Generated from config.h.in by configure. */
2
- /* config.h.in. Generated from configure.ac by autoheader. */
3
-
4
- /* Define if building universal (internal helper macro) */
5
- /* #undef AC_APPLE_UNIVERSAL_BUILD */
6
-
7
- /* Define to 1 if the compiler supports __builtin_ctz and friends. */
8
- #define HAVE_BUILTIN_CTZ 1
9
-
10
- /* Define to 1 if the compiler supports __builtin_expect. */
11
- #define HAVE_BUILTIN_EXPECT 1
12
-
13
- /* Define to 1 if you have the <byteswap.h> header file. */
14
- #define HAVE_BYTESWAP_H 1
15
-
16
- /* Define to 1 if you have the <dlfcn.h> header file. */
17
- #define HAVE_DLFCN_H 1
18
-
19
- /* Use the gflags package for command-line parsing. */
20
- /* #undef HAVE_GFLAGS */
21
-
22
- /* Defined when Google Test is available. */
23
- /* #undef HAVE_GTEST */
24
-
25
- /* Define to 1 if you have the <inttypes.h> header file. */
26
- #define HAVE_INTTYPES_H 1
27
-
28
- /* Define to 1 if you have the `fastlz' library (-lfastlz). */
29
- /* #undef HAVE_LIBFASTLZ */
30
-
31
- /* Define to 1 if you have the `lzf' library (-llzf). */
32
- /* #undef HAVE_LIBLZF */
33
-
34
- /* Define to 1 if you have the `lzo2' library (-llzo2). */
35
- /* #undef HAVE_LIBLZO2 */
36
-
37
- /* Define to 1 if you have the `quicklz' library (-lquicklz). */
38
- /* #undef HAVE_LIBQUICKLZ */
39
-
40
- /* Define to 1 if you have the `z' library (-lz). */
41
- #define HAVE_LIBZ 1
42
-
43
- /* Define to 1 if you have the <memory.h> header file. */
44
- #define HAVE_MEMORY_H 1
45
-
46
- /* Define to 1 if you have the <stddef.h> header file. */
47
- #define HAVE_STDDEF_H 1
48
-
49
- /* Define to 1 if you have the <stdint.h> header file. */
50
- #define HAVE_STDINT_H 1
51
-
52
- /* Define to 1 if you have the <stdlib.h> header file. */
53
- #define HAVE_STDLIB_H 1
54
-
55
- /* Define to 1 if you have the <strings.h> header file. */
56
- #define HAVE_STRINGS_H 1
57
-
58
- /* Define to 1 if you have the <string.h> header file. */
59
- #define HAVE_STRING_H 1
60
-
61
- /* Define to 1 if you have the <sys/byteswap.h> header file. */
62
- /* #undef HAVE_SYS_BYTESWAP_H */
63
-
64
- /* Define to 1 if you have the <sys/endian.h> header file. */
65
- /* #undef HAVE_SYS_ENDIAN_H */
66
-
67
- /* Define to 1 if you have the <sys/mman.h> header file. */
68
- #define HAVE_SYS_MMAN_H 1
69
-
70
- /* Define to 1 if you have the <sys/resource.h> header file. */
71
- #define HAVE_SYS_RESOURCE_H 1
72
-
73
- /* Define to 1 if you have the <sys/stat.h> header file. */
74
- #define HAVE_SYS_STAT_H 1
75
-
76
- /* Define to 1 if you have the <sys/time.h> header file. */
77
- #define HAVE_SYS_TIME_H 1
78
-
79
- /* Define to 1 if you have the <sys/types.h> header file. */
80
- #define HAVE_SYS_TYPES_H 1
81
-
82
- /* Define to 1 if you have the <sys/uio.h> header file. */
83
- #define HAVE_SYS_UIO_H 1
84
-
85
- /* Define to 1 if you have the <unistd.h> header file. */
86
- #define HAVE_UNISTD_H 1
87
-
88
- /* Define to 1 if you have the <windows.h> header file. */
89
- /* #undef HAVE_WINDOWS_H */
90
-
91
- /* Define to the sub-directory in which libtool stores uninstalled libraries.
92
- */
93
- #define LT_OBJDIR ".libs/"
94
-
95
- /* Name of package */
96
- #define PACKAGE "snappy"
97
-
98
- /* Define to the address where bug reports for this package should be sent. */
99
- #define PACKAGE_BUGREPORT ""
100
-
101
- /* Define to the full name of this package. */
102
- #define PACKAGE_NAME "snappy"
103
-
104
- /* Define to the full name and version of this package. */
105
- #define PACKAGE_STRING "snappy 1.1.4"
106
-
107
- /* Define to the one symbol short name of this package. */
108
- #define PACKAGE_TARNAME "snappy"
109
-
110
- /* Define to the version of this package. */
111
- #define PACKAGE_VERSION "1.1.4"
112
-
113
- /* Define to 1 if you have the ANSI C header files. */
114
- #define STDC_HEADERS 1
115
-
116
- /* Version number of package */
117
- #define VERSION "1.1.4"
118
-
119
- /* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
120
- significant byte first (like Motorola and SPARC, unlike Intel). */
121
- #if defined AC_APPLE_UNIVERSAL_BUILD
122
- # if defined __BIG_ENDIAN__
123
- # define WORDS_BIGENDIAN 1
124
- # endif
125
- #else
126
- # ifndef WORDS_BIGENDIAN
127
- /* # undef WORDS_BIGENDIAN */
128
- # endif
129
- #endif
130
-
131
- /* Define to `unsigned int' if <sys/types.h> does not define. */
132
- /* #undef size_t */
133
-
134
- /* Define to `int' if <sys/types.h> does not define. */
135
- /* #undef ssize_t */