diff --git a/.bazelrc b/.bazelrc index acfc7bdda..ed60cb771 100644 --- a/.bazelrc +++ b/.bazelrc @@ -15,6 +15,7 @@ # This macro is needed in order for mlmd to build with ZetaSQL which can only # be compiled upon c++17 or higher. build --cxxopt="-std=c++17" +build --host_cxxopt="-std=c++17" # Needed to avoid zetasql proto error. build --protocopt=--experimental_allow_proto3_optional @@ -23,5 +24,7 @@ build --protocopt=--experimental_allow_proto3_optional # parameter 'user_link_flags' is deprecated and will be removed soon. # It may be temporarily re-enabled by setting --incompatible_require_linker_input_cc_api=false build --incompatible_require_linker_input_cc_api=false + +# Support for Apple M1. build:macos --apple_platform_type=macos build:macos_arm64 --cpu=darwin_arm64 diff --git a/WORKSPACE b/WORKSPACE index dbb9951bd..24cfc6fed 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -14,6 +14,7 @@ http_archive( ], ) + #Install bazel platform version 0.0.6 http_archive( name = "platforms", @@ -41,19 +42,24 @@ http_archive( load("@rules_foreign_cc//foreign_cc:repositories.bzl", "rules_foreign_cc_dependencies") rules_foreign_cc_dependencies() +# lts_20230125.3 +ABSL_COMMIT = "c2435f8342c2d0ed8101cb43adfd605fdc52dca2" http_archive( name = "com_google_absl", - urls = ["https://github.com/abseil/abseil-cpp/archive/940c06c25d2953f44310b68eb8aab6114dba11fb.zip"], - strip_prefix = "abseil-cpp-940c06c25d2953f44310b68eb8aab6114dba11fb", - sha256 = "0e800799aa64d0b4d354f3ff317bbd5fbf42f3a522ab0456bb749fc8d3b67415", + sha256 = "9892836ab0d3f099b8c15076c6f4168144f452d097bd49da215fe0df36a2d48c", + strip_prefix = "abseil-cpp-%s" % ABSL_COMMIT, + urls = [ + "https://github.com/abseil/abseil-cpp/archive/%s.tar.gz" % ABSL_COMMIT, + ], ) +BORINGSSL_COMMIT = "adde128bd706c6caf26dd595e631871b09f40bf6" http_archive( name = "boringssl", - sha256 = "1188e29000013ed6517168600fc35a010d58c5d321846d6a6dfee74e4c788b45", - strip_prefix = "boringssl-7f634429a04abc48e2eb041c81c5235816c96514", + sha256 = "7fc7632ce455575025be2cac610a23377753b01a4932d94a452cf831a5b32e9e", + strip_prefix = "boringssl-%s" % BORINGSSL_COMMIT, urls = [ - "https://github.com/google/boringssl/archive/7f634429a04abc48e2eb041c81c5235816c96514.tar.gz", + "https://github.com/google/boringssl/archive/%s.tar.gz" % BORINGSSL_COMMIT, ], ) @@ -69,10 +75,10 @@ http_archive( http_archive( name = "com_google_googletest", - sha256 = "ff7a82736e158c077e76188232eac77913a15dac0b22508c390ab3f88e6d6d86", - strip_prefix = "googletest-b6cd405286ed8635ece71c72f118e659f4ade3fb", + sha256 = "b976cf4fd57b318afdb1bdb27fc708904b3e4bed482859eb94ba2b4bdd077fe2", + strip_prefix = "googletest-f8d7d77c06936315286eb55f8de22cd23c188571", urls = [ - "https://github.com/google/googletest/archive/b6cd405286ed8635ece71c72f118e659f4ade3fb.zip", + "https://github.com/google/googletest/archive/f8d7d77c06936315286eb55f8de22cd23c188571.zip", ], ) @@ -88,10 +94,10 @@ http_archive( http_archive( name = "bazel_skylib", - sha256 = "97e70364e9249702246c0e9444bccdc4b847bed1eb03c5a3ece4f83dfe6abc44", + sha256 = "74d544d96f4a5bb630d465ca8bbcfe231e3594e5aae57e1edbf17a6eb3ca2506", urls = [ - "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.0.2/bazel-skylib-1.0.2.tar.gz", - "https://github.com/bazelbuild/bazel-skylib/releases/download/1.0.2/bazel-skylib-1.0.2.tar.gz", + "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz", + "https://github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz", ], ) @@ -99,34 +105,14 @@ http_archive( http_archive( name = "six_archive", urls = [ - "http://mirror.bazel.build/pypi.python.org/packages/source/s/six/six-1.10.0.tar.gz", - "https://pypi.python.org/packages/source/s/six/six-1.10.0.tar.gz", + "http://mirror.bazel.build/pypi.python.org/packages/source/s/six/six-1.16.0.tar.gz", + "https://pypi.python.org/packages/source/s/six/six-1.16.0.tar.gz", ], - sha256 = "105f8d68616f8248e24bf0e9372ef04d3cc10104f1980f54d57b2ce73a5ad56a", - strip_prefix = "six-1.10.0", + sha256 = "1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926", + strip_prefix = "six-1.16.0", build_file = "//ml_metadata/third_party:six.BUILD" ) -http_archive( - name = "com_google_protobuf", - sha256 = "930c2c3b5ecc6c9c12615cf5ad93f1cd6e12d0aba862b572e076259970ac3a53", - strip_prefix = "protobuf-3.21.12", - urls = ["https://github.com/protocolbuffers/protobuf/archive/v3.21.12.tar.gz"], -) - -load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps") - -protobuf_deps() - -# Needed by Protobuf. -http_archive( - name = "zlib", - build_file = "@com_google_protobuf//:third_party/zlib.BUILD", - sha256 = "d8688496ea40fb61787500e863cc63c9afcbc524468cedeb478068924eb54932", - strip_prefix = "zlib-1.2.12", - urls = ["https://github.com/madler/zlib/archive/v1.2.12.tar.gz"], -) - http_archive( name = "pybind11_bazel", strip_prefix = "pybind11_bazel-faf56fb3df11287f26dbc66fdedf60a2fc2c6631", @@ -146,12 +132,6 @@ http_archive( load("@pybind11_bazel//:python_configure.bzl", "python_configure") python_configure(name = "local_config_python") -# Needed by @com_google_protobuf. -bind( - name = "python_headers", - actual = "@local_config_python//:python_headers", -) - # Note - use @com_github_google_re2 instead of more canonical # @com_google_re2 for consistency with dependency grpc # which uses @com_github_google_re2. @@ -166,11 +146,12 @@ http_archive( ], ) +# gRPC. Official release 1.50.0. Name is required by Google APIs. http_archive( name = "com_github_grpc_grpc", - urls = ["https://github.com/grpc/grpc/archive/v1.46.3.tar.gz"], - sha256 = "d6cbf22cb5007af71b61c6be316a79397469c58c82a942552a62e708bce60964", - strip_prefix = "grpc-1.46.3", + sha256 = "76900ab068da86378395a8e125b5cc43dfae671e09ff6462ddfef18676e2165a", + strip_prefix = "grpc-1.50.0", + urls = ["https://github.com/grpc/grpc/archive/v1.50.0.tar.gz"], ) load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps") @@ -191,34 +172,8 @@ bind( actual = "@com_github_grpc_grpc//:grpc++", ) -# Needed by gRPC. -http_archive( - name = "build_bazel_rules_swift", - sha256 = "d0833bc6dad817a367936a5f902a0c11318160b5e80a20ece35fb85a5675c886", - strip_prefix = "rules_swift-3eeeb53cebda55b349d64c9fc144e18c5f7c0eb8", - urls = ["https://github.com/bazelbuild/rules_swift/archive/3eeeb53cebda55b349d64c9fc144e18c5f7c0eb8.tar.gz"], -) - -http_archive( - name = "io_bazel_rules_go", - urls = [ - "https://storage.googleapis.com/bazel-mirror/github.com/bazelbuild/rules_go/releases/download/v0.20.3/rules_go-v0.20.3.tar.gz", - "https://github.com/bazelbuild/rules_go/releases/download/v0.20.3/rules_go-v0.20.3.tar.gz", - ], - sha256 = "e88471aea3a3a4f19ec1310a55ba94772d087e9ce46e41ae38ecebe17935de7b", -) - +# pulled in transitively by gRPC. load("@io_bazel_rules_go//go:deps.bzl", "go_rules_dependencies", "go_register_toolchains") - -http_archive( - name = "bazel_gazelle", - urls = [ - "https://storage.googleapis.com/bazel-mirror/github.com/bazelbuild/bazel-gazelle/releases/download/v0.19.1/bazel-gazelle-v0.19.1.tar.gz", - "https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.19.1/bazel-gazelle-v0.19.1.tar.gz", - ], - sha256 = "86c6d481b3f7aedc1d60c1c211c6f76da282ae197c3b3160f54bd3a8f847896f", -) - load("@bazel_gazelle//:deps.bzl", "go_repository", "gazelle_dependencies") go_repository( diff --git a/ml_metadata/.bazelversion b/ml_metadata/.bazelversion index 24ef18e66..4a6685b9f 100644 --- a/ml_metadata/.bazelversion +++ b/ml_metadata/.bazelversion @@ -11,4 +11,4 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -5.3.0 \ No newline at end of file +5.3.2 diff --git a/ml_metadata/libmysqlclient.BUILD b/ml_metadata/libmysqlclient.BUILD index 6b2b00d8c..596feda11 100644 --- a/ml_metadata/libmysqlclient.BUILD +++ b/ml_metadata/libmysqlclient.BUILD @@ -34,8 +34,10 @@ genrule( ) config_setting( - name = "darwin", - values = {"cpu": "darwin"}, + name = "macos", + constraint_values = [ + "@platforms//os:osx", + ], visibility = ["//visibility:public"], ) @@ -45,13 +47,14 @@ cc_library( # plugins. "plugins/auth/my_auth.c", "plugins/auth/old_password.c", + "plugins/compress/c_zlib.c", "plugins/pvio/pvio_socket.c", # ssl. "libmariadb/secure/openssl.c", # core libmariadb "libmariadb/ma_array.c", "libmariadb/ma_charset.c", - "libmariadb/ma_hash.c", + "libmariadb/ma_hashtbl.c", "libmariadb/ma_net.c", "libmariadb/mariadb_charset.c", "libmariadb/ma_time.c", @@ -91,7 +94,10 @@ cc_library( "-DLIBICONV_PLUG", "-DHAVE_OPENSSL", "-DHAVE_TLS", - ], + ] + select({ + ":macos": ["-D_XOPEN_SOURCE"], + "//conditions:default": [], + }), includes = [ "build/include/", "include/", @@ -102,7 +108,7 @@ cc_library( "-ldl", "-lm", ] + select({ - ":darwin": ["-liconv"], + ":macos": ["-liconv"], "//conditions:default": [], }), visibility = ["//visibility:public"], diff --git a/ml_metadata/metadata_store/BUILD b/ml_metadata/metadata_store/BUILD index b923b295b..69a7dfa9a 100644 --- a/ml_metadata/metadata_store/BUILD +++ b/ml_metadata/metadata_store/BUILD @@ -71,7 +71,7 @@ cc_library( ":metadata_access_object_base", ":query_executor", "@com_google_protobuf//:protobuf", - + "@com_google_absl//absl/algorithm:container", "@com_google_absl//absl/container:flat_hash_map", "@com_google_absl//absl/container:flat_hash_set", diff --git a/ml_metadata/metadata_store/pywrap/BUILD b/ml_metadata/metadata_store/pywrap/BUILD index 5927e93fe..2a0374ae4 100644 --- a/ml_metadata/metadata_store/pywrap/BUILD +++ b/ml_metadata/metadata_store/pywrap/BUILD @@ -37,6 +37,7 @@ ml_metadata_pybind_extension( "//ml_metadata/proto:metadata_store_proto", "//ml_metadata/simple_types/proto:simple_types_proto", "@pybind11", + "@local_config_python//:python_headers", ], ) diff --git a/ml_metadata/ml_metadata.bzl b/ml_metadata/ml_metadata.bzl index a851cfbbd..b5052bd33 100644 --- a/ml_metadata/ml_metadata.bzl +++ b/ml_metadata/ml_metadata.bzl @@ -262,6 +262,7 @@ def ml_metadata_pybind_extension( "-Wl,-exported_symbols_list,$(location %s)" % exported_symbols_file, ], "//conditions:default": [ + "-Wl,-Bsymbolic", "-Wl,--version-script", "$(location %s)" % version_script_file, ], @@ -270,7 +271,7 @@ def ml_metadata_pybind_extension( exported_symbols_file, version_script_file, ], - features = ["-use_header_modules"], + features = ["-use_header_modules", "-parse_headers"], linkshared = 1, visibility = visibility, ) diff --git a/ml_metadata/move_generated_files.sh b/ml_metadata/move_generated_files.sh index 37923da9e..f86e983a1 100755 --- a/ml_metadata/move_generated_files.sh +++ b/ml_metadata/move_generated_files.sh @@ -44,10 +44,11 @@ function mlmd::move_generated_files() { cp -f ${BUILD_WORKSPACE_DIRECTORY}/${bazel_genfiles}/ml_metadata/simple_types/proto/simple_types_pb2.py \ ${BUILD_WORKSPACE_DIRECTORY}/ml_metadata/simple_types/proto - MLMD_EXTENSION="ml_metadata/metadata_store/pywrap/metadata_store_extension.so" - cp -f ${BUILD_WORKSPACE_DIRECTORY}/bazel-bin/${MLMD_EXTENSION} \ - ${BUILD_WORKSPACE_DIRECTORY}/${MLMD_EXTENSION} + DEST_FILE="${BUILD_WORKSPACE_DIRECTORY}/${MLMD_EXTENSION}" + # remove old .so file first to avoid catastrophic failure on macOS due to codesign. + rm -f "$DEST_FILE" + cp -f ${BUILD_WORKSPACE_DIRECTORY}/bazel-bin/${MLMD_EXTENSION} "${DEST_FILE}" chmod +w "${BUILD_WORKSPACE_DIRECTORY}/${MLMD_EXTENSION}" } diff --git a/ml_metadata/mysql_configure.bzl b/ml_metadata/mysql_configure.bzl index 457f650e5..a1afa5f50 100644 --- a/ml_metadata/mysql_configure.bzl +++ b/ml_metadata/mysql_configure.bzl @@ -25,7 +25,7 @@ def mysql_configure(): name = "libmysqlclient", build_file = "//ml_metadata:libmysqlclient.BUILD", workspace_file = "//ml_metadata:libmysqlclient.WORKSPACE", + patches = ["//ml_metadata/third_party:mariadbconnector.patch"], remote = "https://github.com/MariaDB/mariadb-connector-c.git", - tag = "v3.0.8-release", - patches = ["//ml_metadata/third_party:libmysqlclient.patch"], + tag = "v3.3.2", ) diff --git a/ml_metadata/postgresql.BUILD b/ml_metadata/postgresql.BUILD index 42e2f811b..9bd803e00 100644 --- a/ml_metadata/postgresql.BUILD +++ b/ml_metadata/postgresql.BUILD @@ -108,6 +108,11 @@ cc_library( "_GNU_SOURCE", "HAVE_STRCHRNUL=1", ], + }) + select({ + "@//ml_metadata:macos_arm64": [], + "//conditions:default": [ + "HAVE__GET_CPUID=1", + ] }), includes = [ "config", @@ -354,1057 +359,1052 @@ genrule( # - HAVE_STRLCPY (in defines) # - HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN (in defines) # - HAVE_SYS_UCRED_H (in defines) +# - macOS arm64 machines do not have __get_cpuid +# - HAVE__GET_CPUID (in defines) genrule( name = "pg_config_h", - srcs = select({ - "//conditions:default": [ - "src/include/pg_config.h.in", - ], - }), + srcs = [ + "src/include/pg_config.h.in", + ], outs = [ "config/pg_config.h", ], - cmd = select({ - "//conditions:default": "\n".join([ - "cat <<'EOF' >$@", - "/* src/include/pg_config.h. Generated from pg_config.h.in by configure. */", - "/* src/include/pg_config.h.in. Generated from configure.in by autoheader. */", - "", - "/* Define to the type of arg 1 of 'accept' */", - "#define ACCEPT_TYPE_ARG1 int", - "", - "/* Define to the type of arg 2 of 'accept' */", - "#define ACCEPT_TYPE_ARG2 struct sockaddr *", - "", - "/* Define to the type of arg 3 of 'accept' */", - "#define ACCEPT_TYPE_ARG3 socklen_t", - "", - "/* Define to the return type of 'accept' */", - "#define ACCEPT_TYPE_RETURN int", - "", - "/* Define if building universal (internal helper macro) */", - "/* #undef AC_APPLE_UNIVERSAL_BUILD */", - "", - "/* The normal alignment of `double', in bytes. */", - "#define ALIGNOF_DOUBLE 8", - "", - "/* The normal alignment of `int', in bytes. */", - "#define ALIGNOF_INT 4", - "", - "/* The normal alignment of `long', in bytes. */", - "#define ALIGNOF_LONG 8", - "", - "/* The normal alignment of `long long int', in bytes. */", - "/* #undef ALIGNOF_LONG_LONG_INT */", - "", - "/* The normal alignment of `PG_INT128_TYPE', in bytes. */", - "#define ALIGNOF_PG_INT128_TYPE 16", - "", - "/* The normal alignment of `short', in bytes. */", - "#define ALIGNOF_SHORT 2", - "", - "/* Size of a disk block --- this also limits the size of a tuple. You can set", - " it bigger if you need bigger tuples (although TOAST should reduce the need", - " to have large tuples, since fields can be spread across multiple tuples).", - " BLCKSZ must be a power of 2. The maximum possible value of BLCKSZ is", - " currently 2^15 (32768). This is determined by the 15-bit widths of the", - " lp_off and lp_len fields in ItemIdData (see include/storage/itemid.h).", - " Changing BLCKSZ requires an initdb. */", - "#define BLCKSZ 8192", - "", - "/* Define to the default TCP port number on which the server listens and to", - " which clients will try to connect. This can be overridden at run-time, but", - " it's convenient if your clients have the right default compiled in.", - " (--with-pgport=PORTNUM) */", - "#define DEF_PGPORT 5432", - "", - "/* Define to the default TCP port number as a string constant. */", - "#define DEF_PGPORT_STR \"5432\"", - "", - "/* Define to build with GSSAPI support. (--with-gssapi) */", - "/* #undef ENABLE_GSS */", - "", - "/* Define to 1 if you want National Language Support. (--enable-nls) */", - "/* #undef ENABLE_NLS */", - "", - "/* Define to 1 to build client libraries as thread-safe code.", - " (--enable-thread-safety) */", - "#define ENABLE_THREAD_SAFETY 1", - "", - "/* Define to nothing if C supports flexible array members, and to 1 if it does", - " not. That way, with a declaration like `struct s { int n; double", - " d[FLEXIBLE_ARRAY_MEMBER]; };', the struct hack can be used with pre-C99", - " compilers. When computing the size of such an object, don't use 'sizeof", - " (struct s)' as it overestimates the size. Use 'offsetof (struct s, d)'", - " instead. Don't use 'offsetof (struct s, d[0])', as this doesn't work with", - " MSVC and with C++ compilers. */", - "#define FLEXIBLE_ARRAY_MEMBER /**/", - "", - "/* float4 values are passed by value if 'true', by reference if 'false' */", - "#define FLOAT4PASSBYVAL true", - "", - "/* float8, int8, and related values are passed by value if 'true', by", - " reference if 'false' */", - "#define FLOAT8PASSBYVAL true", - "", - "/* Define to 1 if gettimeofday() takes only 1 argument. */", - "/* #undef GETTIMEOFDAY_1ARG */", - "", - "#ifdef GETTIMEOFDAY_1ARG", - "# define gettimeofday(a,b) gettimeofday(a)", - "#endif", - "", - "/* Define to 1 if you have the `append_history' function. */", - "/* #undef HAVE_APPEND_HISTORY */", - "", - "/* Define to 1 if you have the `ASN1_STRING_get0_data' function. */", - "/* #undef HAVE_ASN1_STRING_GET0_DATA */", - "", - "/* Define to 1 if you want to use atomics if available. */", - "#define HAVE_ATOMICS 1", - "", - "/* Define to 1 if you have the header file. */", - "/* #undef HAVE_ATOMIC_H */", - "", - "/* Define to 1 if you have the `BIO_get_data' function. */", - "/* #undef HAVE_BIO_GET_DATA */", - "", - "/* Define to 1 if you have the `BIO_meth_new' function. */", - "/* #undef HAVE_BIO_METH_NEW */", - "", - "/* Define to 1 if you have the `cbrt' function. */", - "#define HAVE_CBRT 1", - "", - "/* Define to 1 if you have the `class' function. */", - "/* #undef HAVE_CLASS */", - "", - "/* Define to 1 if you have the `clock_gettime' function. */", - "#define HAVE_CLOCK_GETTIME 1", - "", - "/* Define to 1 if your compiler handles computed gotos. */", - "#define HAVE_COMPUTED_GOTO 1", - "", - "/* Define to 1 if you have the `copyfile' function. */", - "#define HAVE_COPYFILE 1", - "", - "/* Define to 1 if you have the header file. */", - "#define HAVE_COPYFILE_H 1", - "", - "/* Define to 1 if you have the header file. */", - "/* #undef HAVE_CRTDEFS_H */", - "", - "/* Define to 1 if you have the `crypt' function. */", - "#define HAVE_CRYPT 1", - "", - "/* Define to 1 if you have the `CRYPTO_lock' function. */", - "/* #undef HAVE_CRYPTO_LOCK */", - "", - "/* Define to 1 if you have the header file. */", - "/* #undef HAVE_CRYPT_H */", - "", - "/* Define to 1 if you have the declaration of `fdatasync', and to 0 if you", - " don't. */", - "#define HAVE_DECL_FDATASYNC 0", - "", - "/* Define to 1 if you have the declaration of `F_FULLFSYNC', and to 0 if you", - " don't. */", - "#define HAVE_DECL_F_FULLFSYNC 1", - "", - "/* Define to 1 if you have the declaration of", - " `LLVMCreateGDBRegistrationListener', and to 0 if you don't. */", - "/* #undef HAVE_DECL_LLVMCREATEGDBREGISTRATIONLISTENER */", - "", - "/* Define to 1 if you have the declaration of", - " `LLVMCreatePerfJITEventListener', and to 0 if you don't. */", - "/* #undef HAVE_DECL_LLVMCREATEPERFJITEVENTLISTENER */", - "", - "/* Define to 1 if you have the declaration of `LLVMGetHostCPUFeatures', and to", - " 0 if you don't. */", - "/* #undef HAVE_DECL_LLVMGETHOSTCPUFEATURES */", - "", - "/* Define to 1 if you have the declaration of `LLVMGetHostCPUName', and to 0", - " if you don't. */", - "/* #undef HAVE_DECL_LLVMGETHOSTCPUNAME */", - "", - "/* Define to 1 if you have the declaration of `LLVMOrcGetSymbolAddressIn', and", - " to 0 if you don't. */", - "/* #undef HAVE_DECL_LLVMORCGETSYMBOLADDRESSIN */", - "", - "/* Define to 1 if you have the declaration of `posix_fadvise', and to 0 if you", - " don't. */", - "#define HAVE_DECL_POSIX_FADVISE 0", - "", - "/* Define to 1 if you have the declaration of `RTLD_GLOBAL', and to 0 if you", - " don't. */", - "#define HAVE_DECL_RTLD_GLOBAL 1", - "", - "/* Define to 1 if you have the declaration of `RTLD_NOW', and to 0 if you", - " don't. */", - "#define HAVE_DECL_RTLD_NOW 1", - "", - "/* Define to 1 if you have the declaration of `strlcat', and to 0 if you", - " don't. */", - "#define HAVE_DECL_STRLCAT 1", - "", - "/* Define to 1 if you have the declaration of `strlcpy', and to 0 if you", - " don't. */", - "/* #undef HAVE_DECL_STRLCPY */", - "", - "/* Define to 1 if you have the declaration of `strnlen', and to 0 if you", - " don't. */", - "#define HAVE_DECL_STRNLEN 1", - "", - "/* Define to 1 if you have the declaration of `strtoll', and to 0 if you", - " don't. */", - "#define HAVE_DECL_STRTOLL 1", - "", - "/* Define to 1 if you have the declaration of `strtoull', and to 0 if you", - " don't. */", - "#define HAVE_DECL_STRTOULL 1", - "", - "/* Define to 1 if you have the `dlopen' function. */", - "#define HAVE_DLOPEN 1", - "", - "/* Define to 1 if you have the header file. */", - "/* #undef HAVE_EDITLINE_HISTORY_H */", - "", - "/* Define to 1 if you have the header file. */", - "/* #undef HAVE_EDITLINE_READLINE_H */", - "", - "/* Define to 1 if you have the `fdatasync' function. */", - "#define HAVE_FDATASYNC 1", - "", - "/* Define to 1 if you have the `fls' function. */", - "#define HAVE_FLS 1", - "", - "/* Define to 1 if you have the `fpclass' function. */", - "/* #undef HAVE_FPCLASS */", - "", - "/* Define to 1 if you have the `fp_class' function. */", - "/* #undef HAVE_FP_CLASS */", - "", - "/* Define to 1 if you have the `fp_class_d' function. */", - "/* #undef HAVE_FP_CLASS_D */", - "", - "/* Define to 1 if you have the header file. */", - "/* #undef HAVE_FP_CLASS_H */", - "", - "/* Define to 1 if fseeko (and presumably ftello) exists and is declared. */", - "#define HAVE_FSEEKO 1", - "", - "/* Define to 1 if your compiler understands __func__. */", - "#define HAVE_FUNCNAME__FUNC 1", - "", - "/* Define to 1 if your compiler understands __FUNCTION__. */", - "/* #undef HAVE_FUNCNAME__FUNCTION */", - "", - "/* Define to 1 if you have __atomic_compare_exchange_n(int *, int *, int). */", - "#define HAVE_GCC__ATOMIC_INT32_CAS 1", - "", - "/* Define to 1 if you have __atomic_compare_exchange_n(int64 *, int64 *,", - " int64). */", - "#define HAVE_GCC__ATOMIC_INT64_CAS 1", - "", - "/* Define to 1 if you have __sync_lock_test_and_set(char *) and friends. */", - "#define HAVE_GCC__SYNC_CHAR_TAS 1", - "", - "/* Define to 1 if you have __sync_val_compare_and_swap(int *, int, int). */", - "#define HAVE_GCC__SYNC_INT32_CAS 1", - "", - "/* Define to 1 if you have __sync_lock_test_and_set(int *) and friends. */", - "#define HAVE_GCC__SYNC_INT32_TAS 1", - "", - "/* Define to 1 if you have __sync_val_compare_and_swap(int64 *, int64, int64).", - " */", - "#define HAVE_GCC__SYNC_INT64_CAS 1", - "", - "/* Define to 1 if you have the `getaddrinfo' function. */", - "#define HAVE_GETADDRINFO 1", - "", - "/* Define to 1 if you have the `gethostbyname_r' function. */", - "/* #undef HAVE_GETHOSTBYNAME_R */", - "", - "/* Define to 1 if you have the `getifaddrs' function. */", - "#define HAVE_GETIFADDRS 1", - "", - "/* Define to 1 if you have the `getopt' function. */", - "#define HAVE_GETOPT 1", - "", - "/* Define to 1 if you have the header file. */", - "#define HAVE_GETOPT_H 1", - "", - "/* Define to 1 if you have the `getopt_long' function. */", - "#define HAVE_GETOPT_LONG 1", - "", - "/* Define to 1 if you have the `getpeereid' function. */", - "#define HAVE_GETPEEREID 1", - "", - "/* Define to 1 if you have the `getpeerucred' function. */", - "/* #undef HAVE_GETPEERUCRED */", - "", - "/* Define to 1 if you have the `getpwuid_r' function. */", - "#define HAVE_GETPWUID_R 1", - "", - "/* Define to 1 if you have the `getrlimit' function. */", - "#define HAVE_GETRLIMIT 1", - "", - "/* Define to 1 if you have the `getrusage' function. */", - "#define HAVE_GETRUSAGE 1", - "", - "/* Define to 1 if you have the `gettimeofday' function. */", - "/* #undef HAVE_GETTIMEOFDAY */", - "", - "/* Define to 1 if you have the header file. */", - "/* #undef HAVE_GSSAPI_GSSAPI_H */", - "", - "/* Define to 1 if you have the header file. */", - "/* #undef HAVE_GSSAPI_H */", - "", - "/* Define to 1 if you have the header file. */", - "/* #undef HAVE_HISTORY_H */", - "", - "/* Define to 1 if you have the `history_truncate_file' function. */", - "#define HAVE_HISTORY_TRUNCATE_FILE 1", - "", - "/* Define to 1 if you have the header file. */", - "/* #undef HAVE_IEEEFP_H */", - "", - "/* Define to 1 if you have the header file. */", - "#define HAVE_IFADDRS_H 1", - "", - "/* Define to 1 if you have the `inet_aton' function. */", - "#define HAVE_INET_ATON 1", - "", - "/* Define to 1 if the system has the type `int64'. */", - "/* #undef HAVE_INT64 */", - "", - "/* Define to 1 if the system has the type `int8'. */", - "/* #undef HAVE_INT8 */", - "", - "/* Define to 1 if the system has the type `intptr_t'. */", - "#define HAVE_INTPTR_T 1", - "", - "/* Define to 1 if you have the header file. */", - "#define HAVE_INTTYPES_H 1", - "", - "/* Define to 1 if you have the global variable 'int opterr'. */", - "#define HAVE_INT_OPTERR 1", - "", - "/* Define to 1 if you have the global variable 'int optreset'. */", - "#define HAVE_INT_OPTRESET 1", - "", - "/* Define to 1 if you have the global variable 'int timezone'. */", - "#define HAVE_INT_TIMEZONE 1", - "", - "/* Define to 1 if you have support for IPv6. */", - "#define HAVE_IPV6 1", - "", - "/* Define to 1 if you have isinf(). */", - "#define HAVE_ISINF 1", - "", - "/* Define to 1 if you have the header file. */", - "#define HAVE_LANGINFO_H 1", - "", - "/* Define to 1 if you have the header file. */", - "/* #undef HAVE_LDAP_H */", - "", - "/* Define to 1 if you have the `ldap_initialize' function. */", - "/* #undef HAVE_LDAP_INITIALIZE */", - "", - "/* Define to 1 if you have the `crypto' library (-lcrypto). */", - "/* #undef HAVE_LIBCRYPTO */", - "", - "/* Define to 1 if you have the `ldap' library (-lldap). */", - "/* #undef HAVE_LIBLDAP */", - "", - "/* Define to 1 if you have the `ldap_r' library (-lldap_r). */", - "/* #undef HAVE_LIBLDAP_R */", - "", - "/* Define to 1 if you have the `m' library (-lm). */", - "#define HAVE_LIBM 1", - "", - "/* Define to 1 if you have the `pam' library (-lpam). */", - "/* #undef HAVE_LIBPAM */", - "", - "/* Define if you have a function readline library */", - "#define HAVE_LIBREADLINE 1", - "", - "/* Define to 1 if you have the `selinux' library (-lselinux). */", - "/* #undef HAVE_LIBSELINUX */", - "", - "/* Define to 1 if you have the `ssl' library (-lssl). */", - "/* #undef HAVE_LIBSSL */", - "", - "/* Define to 1 if you have the `wldap32' library (-lwldap32). */", - "/* #undef HAVE_LIBWLDAP32 */", - "", - "/* Define to 1 if you have the `xml2' library (-lxml2). */", - "/* #undef HAVE_LIBXML2 */", - "", - "/* Define to 1 if you have the `xslt' library (-lxslt). */", - "/* #undef HAVE_LIBXSLT */", - "", - "/* Define to 1 if you have the `z' library (-lz). */", - "#define HAVE_LIBZ 1", - "", - "/* Define to 1 if the system has the type `locale_t'. */", - "#define HAVE_LOCALE_T 1", - "", - "/* Define to 1 if `long int' works and is 64 bits. */", - "#define HAVE_LONG_INT_64 1", - "", - "/* Define to 1 if the system has the type `long long int'. */", - "#define HAVE_LONG_LONG_INT 1", - "", - "/* Define to 1 if `long long int' works and is 64 bits. */", - "/* #undef HAVE_LONG_LONG_INT_64 */", - "", - "/* Define to 1 if you have the header file. */", - "/* #undef HAVE_MBARRIER_H */", - "", - "/* Define to 1 if you have the `mbstowcs_l' function. */", - "#define HAVE_MBSTOWCS_L 1", - "", - "/* Define to 1 if you have the `memmove' function. */", - "#define HAVE_MEMMOVE 1", - "", - "/* Define to 1 if you have the header file. */", - "#define HAVE_MEMORY_H 1", - "", - "/* Define to 1 if the system has the type `MINIDUMP_TYPE'. */", - "/* #undef HAVE_MINIDUMP_TYPE */", - "", - "/* Define to 1 if you have the `mkdtemp' function. */", - "#define HAVE_MKDTEMP 1", - "", - "/* Define to 1 if you have the header file. */", - "#define HAVE_NETINET_TCP_H 1", - "", - "/* Define to 1 if you have the header file. */", - "#define HAVE_NET_IF_H 1", - "", - "/* Define to 1 if you have the `OPENSSL_init_ssl' function. */", - "/* #undef HAVE_OPENSSL_INIT_SSL */", - "", - "/* Define to 1 if you have the header file. */", - "/* #undef HAVE_OSSP_UUID_H */", - "", - "/* Define to 1 if you have the header file. */", - "/* #undef HAVE_PAM_PAM_APPL_H */", - "", - "/* Define to 1 if you have the `poll' function. */", - "#define HAVE_POLL 1", - "", - "/* Define to 1 if you have the header file. */", - "#define HAVE_POLL_H 1", - "", - "/* Define to 1 if you have the `posix_fadvise' function. */", - "/* #undef HAVE_POSIX_FADVISE */", - "", - "/* Define to 1 if you have the `posix_fallocate' function. */", - "/* #undef HAVE_POSIX_FALLOCATE */", - "", - "/* Define to 1 if the assembler supports PPC's LWARX mutex hint bit. */", - "/* #undef HAVE_PPC_LWARX_MUTEX_HINT */", - "", - "/* Define to 1 if you have the `ppoll' function. */", - "/* #undef HAVE_PPOLL */", - "", - "/* Define to 1 if you have the `pread' function. */", - "#define HAVE_PREAD 1", - "", - "/* Define to 1 if you have the `pstat' function. */", - "/* #undef HAVE_PSTAT */", - "", - "/* Define to 1 if the PS_STRINGS thing exists. */", - "/* #undef HAVE_PS_STRINGS */", - "", - "/* Define if you have POSIX threads libraries and header files. */", - "#define HAVE_PTHREAD 1", - "", - "/* Define to 1 if you have the `pthread_is_threaded_np' function. */", - "#define HAVE_PTHREAD_IS_THREADED_NP 1", - "", - "/* Have PTHREAD_PRIO_INHERIT. */", - "#define HAVE_PTHREAD_PRIO_INHERIT 1", - "", - "/* Define to 1 if you have the `pwrite' function. */", - "#define HAVE_PWRITE 1", - "", - "/* Define to 1 if you have the `random' function. */", - "#define HAVE_RANDOM 1", - "", - "/* Define to 1 if you have the header file. */", - "/* #undef HAVE_READLINE_H */", - "", - "/* Define to 1 if you have the header file. */", - "#define HAVE_READLINE_HISTORY_H 1", - "", - "/* Define to 1 if you have the header file. */", - "#define HAVE_READLINE_READLINE_H 1", - "", - "/* Define to 1 if you have the `readlink' function. */", - "#define HAVE_READLINK 1", - "", - "/* Define to 1 if you have the `rint' function. */", - "#define HAVE_RINT 1", - "", - "/* Define to 1 if you have the global variable", - " 'rl_completion_append_character'. */", - "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1", - "", - "/* Define to 1 if you have the `rl_completion_matches' function. */", - "#define HAVE_RL_COMPLETION_MATCHES 1", - "", - "/* Define to 1 if you have the `rl_filename_completion_function' function. */", - "#define HAVE_RL_FILENAME_COMPLETION_FUNCTION 1", - "", - "/* Define to 1 if you have the `rl_reset_screen_size' function. */", - "/* #undef HAVE_RL_RESET_SCREEN_SIZE */", - "", - "/* Define to 1 if you have the header file. */", - "/* #undef HAVE_SECURITY_PAM_APPL_H */", - "", - "/* Define to 1 if you have the `setproctitle' function. */", - "/* #undef HAVE_SETPROCTITLE */", - "", - "/* Define to 1 if you have the `setproctitle_fast' function. */", - "/* #undef HAVE_SETPROCTITLE_FAST */", - "", - "/* Define to 1 if you have the `setsid' function. */", - "#define HAVE_SETSID 1", - "", - "/* Define to 1 if you have the `shm_open' function. */", - "#define HAVE_SHM_OPEN 1", - "", - "/* Define to 1 if you have spinlocks. */", - "#define HAVE_SPINLOCKS 1", - "", - "/* Define to 1 if you have the `srandom' function. */", - "#define HAVE_SRANDOM 1", - "", - "/* Define to 1 if you have the `SSL_clear_options' function. */", - "/* #undef HAVE_SSL_CLEAR_OPTIONS */", - "", - "/* Define to 1 if you have the `SSL_get_current_compression' function. */", - "/* #undef HAVE_SSL_GET_CURRENT_COMPRESSION */", - "", - "/* Define to 1 if stdbool.h conforms to C99. */", - "#define HAVE_STDBOOL_H 1", - "", - "/* Define to 1 if you have the header file. */", - "#define HAVE_STDINT_H 1", - "", - "/* Define to 1 if you have the header file. */", - "#define HAVE_STDLIB_H 1", - "", - "/* Define to 1 if you have the `strchrnul' function. */", - "/* #undef HAVE_STRCHRNUL */", - "", - "/* Define to 1 if you have the `strerror_r' function. */", - "#define HAVE_STRERROR_R 1", - "", - "/* Define to 1 if you have the header file. */", - "#define HAVE_STRINGS_H 1", - "", - "/* Define to 1 if you have the header file. */", - "#define HAVE_STRING_H 1", - "", - "/* Define to 1 if you have the `strlcat' function. */", - "#define HAVE_STRLCAT 1", - "", - "/* Define to 1 if you have the `strlcpy' function. */", - "/* #undef HAVE_STRLCPY */", - "", - "/* Define to 1 if you have the `strnlen' function. */", - "#define HAVE_STRNLEN 1", - "", - "/* Define to 1 if you have the `strsignal' function. */", - "#define HAVE_STRSIGNAL 1", - "", - "/* Define to 1 if you have the `strtof' function. */", - "#define HAVE_STRTOF 1", - "", - "/* Define to 1 if you have the `strtoll' function. */", - "#define HAVE_STRTOLL 1", - "", - "/* Define to 1 if you have the `strtoq' function. */", - "/* #undef HAVE_STRTOQ */", - "", - "/* Define to 1 if you have the `strtoull' function. */", - "#define HAVE_STRTOULL 1", - "", - "/* Define to 1 if you have the `strtouq' function. */", - "/* #undef HAVE_STRTOUQ */", - "", - "/* Define to 1 if the system has the type `struct addrinfo'. */", - "#define HAVE_STRUCT_ADDRINFO 1", - "", - "/* Define to 1 if the system has the type `struct cmsgcred'. */", - "/* #undef HAVE_STRUCT_CMSGCRED */", - "", - "/* Define to 1 if the system has the type `struct option'. */", - "#define HAVE_STRUCT_OPTION 1", - "", - "/* Define to 1 if `sa_len' is a member of `struct sockaddr'. */", - "#define HAVE_STRUCT_SOCKADDR_SA_LEN 1", - "", - "/* Define to 1 if the system has the type `struct sockaddr_storage'. */", - "#define HAVE_STRUCT_SOCKADDR_STORAGE 1", - "", - "/* Define to 1 if `ss_family' is a member of `struct sockaddr_storage'. */", - "#define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1", - "", - "/* Define to 1 if `ss_len' is a member of `struct sockaddr_storage'. */", - "/* #undef HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN */", - "", - "/* Define to 1 if `__ss_family' is a member of `struct sockaddr_storage'. */", - "/* #undef HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY */", - "", - "/* Define to 1 if `__ss_len' is a member of `struct sockaddr_storage'. */", - "/* #undef HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN */", - "", - "/* Define to 1 if `tm_zone' is a member of `struct tm'. */", - "#define HAVE_STRUCT_TM_TM_ZONE 1", - "", - "/* Define to 1 if you have the `symlink' function. */", - "#define HAVE_SYMLINK 1", - "", - "/* Define to 1 if you have the `sync_file_range' function. */", - "/* #undef HAVE_SYNC_FILE_RANGE */", - "", - "/* Define to 1 if you have the syslog interface. */", - "#define HAVE_SYSLOG 1", - "", - "/* Define to 1 if you have the header file. */", - "/* #undef HAVE_SYS_EPOLL_H */", - "", - "/* Define to 1 if you have the header file. */", - "#define HAVE_SYS_IPC_H 1", - "", - "/* Define to 1 if you have the header file. */", - "/* #undef HAVE_SYS_PRCTL_H */", - "", - "/* Define to 1 if you have the header file. */", - "/* #undef HAVE_SYS_PROCCTL_H */", - "", - "/* Define to 1 if you have the header file. */", - "/* #undef HAVE_SYS_PSTAT_H */", - "", - "/* Define to 1 if you have the header file. */", - "#define HAVE_SYS_RESOURCE_H 1", - "", - "/* Define to 1 if you have the header file. */", - "#define HAVE_SYS_SELECT_H 1", - "", - "/* Define to 1 if you have the header file. */", - "#define HAVE_SYS_SEM_H 1", - "", - "/* Define to 1 if you have the header file. */", - "#define HAVE_SYS_SHM_H 1", - "", - "/* Define to 1 if you have the header file. */", - "#define HAVE_SYS_SOCKIO_H 1", - "", - "/* Define to 1 if you have the header file. */", - "#define HAVE_SYS_STAT_H 1", - "", - "/* Define to 1 if you have the header file. */", - "/* #undef HAVE_SYS_TAS_H */", - "", - "/* Define to 1 if you have the header file. */", - "#define HAVE_SYS_TYPES_H 1", - "", - "/* Define to 1 if you have the header file. */", - "/* #undef HAVE_SYS_UCRED_H */", - "", - "/* Define to 1 if you have the header file. */", - "#define HAVE_SYS_UN_H 1", - "", - "/* Define to 1 if you have the header file. */", - "#define HAVE_TERMIOS_H 1", - "", - "/* Define to 1 if your `struct tm' has `tm_zone'. Deprecated, use", - " `HAVE_STRUCT_TM_TM_ZONE' instead. */", - "#define HAVE_TM_ZONE 1", - "", - "/* Define to 1 if your compiler understands `typeof' or something similar. */", - "#define HAVE_TYPEOF 1", - "", - "/* Define to 1 if you have the external array `tzname'. */", - "#define HAVE_TZNAME 1", - "", - "/* Define to 1 if you have the header file. */", - "/* #undef HAVE_UCRED_H */", - "", - "/* Define to 1 if the system has the type `uint64'. */", - "/* #undef HAVE_UINT64 */", - "", - "/* Define to 1 if the system has the type `uint8'. */", - "/* #undef HAVE_UINT8 */", - "", - "/* Define to 1 if the system has the type `uintptr_t'. */", - "#define HAVE_UINTPTR_T 1", - "", - "/* Define to 1 if the system has the type `union semun'. */", - "#define HAVE_UNION_SEMUN 1", - "", - "/* Define to 1 if you have the header file. */", - "#define HAVE_UNISTD_H 1", - "", - "/* Define to 1 if you have unix sockets. */", - "#define HAVE_UNIX_SOCKETS 1", - "", - "/* Define to 1 if you have the `unsetenv' function. */", - "#define HAVE_UNSETENV 1", - "", - "/* Define to 1 if the system has the type `unsigned long long int'. */", - "#define HAVE_UNSIGNED_LONG_LONG_INT 1", - "", - "/* Define to 1 if you have the `uselocale' function. */", - "#define HAVE_USELOCALE 1", - "", - "/* Define to 1 if you have the `utime' function. */", - "#define HAVE_UTIME 1", - "", - "/* Define to 1 if you have the `utimes' function. */", - "#define HAVE_UTIMES 1", - "", - "/* Define to 1 if you have the header file. */", - "#define HAVE_UTIME_H 1", - "", - "/* Define to 1 if you have BSD UUID support. */", - "/* #undef HAVE_UUID_BSD */", - "", - "/* Define to 1 if you have E2FS UUID support. */", - "/* #undef HAVE_UUID_E2FS */", - "", - "/* Define to 1 if you have the header file. */", - "/* #undef HAVE_UUID_H */", - "", - "/* Define to 1 if you have OSSP UUID support. */", - "/* #undef HAVE_UUID_OSSP */", - "", - "/* Define to 1 if you have the header file. */", - "/* #undef HAVE_UUID_UUID_H */", - "", - "/* Define to 1 if you have the header file. */", - "#define HAVE_WCHAR_H 1", - "", - "/* Define to 1 if you have the `wcstombs_l' function. */", - "#define HAVE_WCSTOMBS_L 1", - "", - "/* Define to 1 if you have the header file. */", - "#define HAVE_WCTYPE_H 1", - "", - "/* Define to 1 if you have the header file. */", - "/* #undef HAVE_WINLDAP_H */", - "", - "/* Define to 1 if you have the `X509_get_signature_nid' function. */", - "/* #undef HAVE_X509_GET_SIGNATURE_NID */", - "", - "/* Define to 1 if the assembler supports X86_64's POPCNTQ instruction. */", - "#define HAVE_X86_64_POPCNTQ 1", - "", - "/* Define to 1 if the system has the type `_Bool'. */", - "#define HAVE__BOOL 1", - "", - "/* Define to 1 if your compiler understands __builtin_bswap16. */", - "#define HAVE__BUILTIN_BSWAP16 1", - "", - "/* Define to 1 if your compiler understands __builtin_bswap32. */", - "#define HAVE__BUILTIN_BSWAP32 1", - "", - "/* Define to 1 if your compiler understands __builtin_bswap64. */", - "#define HAVE__BUILTIN_BSWAP64 1", - "", - "/* Define to 1 if your compiler understands __builtin_clz. */", - "#define HAVE__BUILTIN_CLZ 1", - "", - "/* Define to 1 if your compiler understands __builtin_constant_p. */", - "#define HAVE__BUILTIN_CONSTANT_P 1", - "", - "/* Define to 1 if your compiler understands __builtin_ctz. */", - "#define HAVE__BUILTIN_CTZ 1", - "", - "/* Define to 1 if your compiler understands __builtin_$$op_overflow. */", - "#define HAVE__BUILTIN_OP_OVERFLOW 1", - "", - "/* Define to 1 if your compiler understands __builtin_popcount. */", - "#define HAVE__BUILTIN_POPCOUNT 1", - "", - "/* Define to 1 if your compiler understands __builtin_types_compatible_p. */", - "#define HAVE__BUILTIN_TYPES_COMPATIBLE_P 1", - "", - "/* Define to 1 if your compiler understands __builtin_unreachable. */", - "#define HAVE__BUILTIN_UNREACHABLE 1", - "", - "/* Define to 1 if you have the `_configthreadlocale' function. */", - "/* #undef HAVE__CONFIGTHREADLOCALE */", - "", - "/* Define to 1 if you have __cpuid. */", - "/* #undef HAVE__CPUID */", - "", - "/* Define to 1 if you have __get_cpuid. */", - "#define HAVE__GET_CPUID 1", - "", - "/* Define to 1 if your compiler understands _Static_assert. */", - "#define HAVE__STATIC_ASSERT 1", - "", - "/* Define to 1 if you have the `__strtoll' function. */", - "/* #undef HAVE___STRTOLL */", - "", - "/* Define to 1 if you have the `__strtoull' function. */", - "/* #undef HAVE___STRTOULL */", - "", - "/* Define to the appropriate printf length modifier for 64-bit ints. */", - "#define INT64_MODIFIER \"l\"", - "", - "/* Define to 1 if `locale_t' requires . */", - "#define LOCALE_T_IN_XLOCALE 1", - "", - "/* Define as the maximum alignment requirement of any C data type. */", - "#define MAXIMUM_ALIGNOF 8", - "", - "/* Define bytes to use libc memset(). */", - "#define MEMSET_LOOP_LIMIT 1024", - "", - "/* Define to the address where bug reports for this package should be sent. */", - "#define PACKAGE_BUGREPORT \"pgsql-bugs@lists.postgresql.org\"", - "", - "/* Define to the full name of this package. */", - "#define PACKAGE_NAME \"PostgreSQL\"", - "", - "/* Define to the full name and version of this package. */", - "#define PACKAGE_STRING \"PostgreSQL 12.1\"", - "", - "/* Define to the one symbol short name of this package. */", - "#define PACKAGE_TARNAME \"postgresql\"", - "", - "/* Define to the home page for this package. */", - "#define PACKAGE_URL \"\"", - "", - "/* Define to the version of this package. */", - "#define PACKAGE_VERSION \"12.1\"", - "", - "/* Define to the name of a signed 128-bit integer type. */", - "#define PG_INT128_TYPE __int128", - "", - "/* Define to the name of a signed 64-bit integer type. */", - "#define PG_INT64_TYPE long int", - "", - "/* Define to the name of the default PostgreSQL service principal in Kerberos", - " (GSSAPI). (--with-krb-srvnam=NAME) */", - "#define PG_KRB_SRVNAM \"postgres\"", - "", - "/* PostgreSQL major version as a string */", - "#define PG_MAJORVERSION \"12\"", - "", - "/* Define to best printf format archetype, usually gnu_printf if available. */", - "#define PG_PRINTF_ATTRIBUTE printf", - "", - "/* PostgreSQL version as a string */", - "#define PG_VERSION \"12.1\"", - "", - "/* PostgreSQL version as a number */", - "#define PG_VERSION_NUM 120001", - "", - "/* A string containing the version number, platform, and C compiler */", - "#define PG_VERSION_STR \"PostgreSQL 12.1 on x86_64-apple-darwin19.2.0, compiled by Apple clang version 11.0.0 (clang-1100.0.33.17), 64-bit\"", - "", - "/* Define to 1 to allow profiling output to be saved separately for each", - " process. */", - "/* #undef PROFILE_PID_DIR */", - "", - "/* Define to necessary symbol if this constant uses a non-standard name on", - " your system. */", - "/* #undef PTHREAD_CREATE_JOINABLE */", - "", - "/* RELSEG_SIZE is the maximum number of blocks allowed in one disk file. Thus,", - " the maximum size of a single file is RELSEG_SIZE * BLCKSZ; relations bigger", - " than that are divided into multiple files. RELSEG_SIZE * BLCKSZ must be", - " less than your OS' limit on file size. This is often 2 GB or 4GB in a", - " 32-bit operating system, unless you have large file support enabled. By", - " default, we make the limit 1 GB to avoid any possible integer-overflow", - " problems within the OS. A limit smaller than necessary only means we divide", - " a large relation into more chunks than necessary, so it seems best to err", - " in the direction of a small limit. A power-of-2 value is recommended to", - " save a few cycles in md.c, but is not absolutely required. Changing", - " RELSEG_SIZE requires an initdb. */", - "#define RELSEG_SIZE 131072", - "", - "/* The size of `bool', as computed by sizeof. */", - "#define SIZEOF_BOOL 1", - "", - "/* The size of `long', as computed by sizeof. */", - "#define SIZEOF_LONG 8", - "", - "/* The size of `off_t', as computed by sizeof. */", - "#define SIZEOF_OFF_T 8", - "", - "/* The size of `size_t', as computed by sizeof. */", - "#define SIZEOF_SIZE_T 8", - "", - "/* The size of `void *', as computed by sizeof. */", - "#define SIZEOF_VOID_P 8", - "", - "/* Define to 1 if you have the ANSI C header files. */", - "#define STDC_HEADERS 1", - "", - "/* Define to 1 if strerror_r() returns int. */", - "#define STRERROR_R_INT 1", - "", - "/* Define to 1 if your declares `struct tm'. */", - "/* #undef TM_IN_SYS_TIME */", - "", - "/* Define to 1 to use ARMv8 CRC Extension. */", - "/* #undef USE_ARMV8_CRC32C */", - "", - "/* Define to 1 to use ARMv8 CRC Extension with a runtime check. */", - "/* #undef USE_ARMV8_CRC32C_WITH_RUNTIME_CHECK */", - "", - "/* Define to 1 to build with assertion checks. (--enable-cassert) */", - "/* #undef USE_ASSERT_CHECKING */", - "", - "/* Define to 1 to build with Bonjour support. (--with-bonjour) */", - "/* #undef USE_BONJOUR */", - "", - "/* Define to 1 to build with BSD Authentication support. (--with-bsd-auth) */", - "/* #undef USE_BSD_AUTH */", - "", - "/* Define to use /dev/urandom for random number generation */", - "#define USE_DEV_URANDOM 1", - "", - "/* Define to 1 if you want float4 values to be passed by value.", - " (--enable-float4-byval) */", - "#define USE_FLOAT4_BYVAL 1", - "", - "/* Define to 1 if you want float8, int8, etc values to be passed by value.", - " (--enable-float8-byval) */", - "#define USE_FLOAT8_BYVAL 1", - "", - "/* Define to build with ICU support. (--with-icu) */", - "/* #undef USE_ICU */", - "", - "/* Define to 1 to build with LDAP support. (--with-ldap) */", - "/* #undef USE_LDAP */", - "", - "/* Define to 1 to build with XML support. (--with-libxml) */", - "/* #undef USE_LIBXML */", - "", - "/* Define to 1 to use XSLT support when building contrib/xml2.", - " (--with-libxslt) */", - "/* #undef USE_LIBXSLT */", - "", - "/* Define to 1 to build with LLVM based JIT support. (--with-llvm) */", - "/* #undef USE_LLVM */", - "", - "/* Define to select named POSIX semaphores. */", - "/* #undef USE_NAMED_POSIX_SEMAPHORES */", - "", - "/* Define to build with OpenSSL support. (--with-openssl) */", - "/* #undef USE_OPENSSL */", - "", - "/* Define to use OpenSSL for random number generation */", - "/* #undef USE_OPENSSL_RANDOM */", - "", - "/* Define to 1 to build with PAM support. (--with-pam) */", - "/* #undef USE_PAM */", - "", - "/* Define to 1 to use software CRC-32C implementation (slicing-by-8). */", - # Force usage of sb8 algorithm of crc32c - "#define USE_SLICING_BY_8_CRC32C 1", - "", - "/* Define to 1 use Intel SSE 4.2 CRC instructions. */", - "/* #undef USE_SSE42_CRC32C */", - "", - "/* Define to 1 to use Intel SSE 4.2 CRC instructions with a runtime check. */", - # Do not check at runtime but force usage of sb8 algorithm of crc32c - "/* #undef USE_SSE42_CRC32C_WITH_RUNTIME_CHECK */", - "", - "/* Define to build with systemd support. (--with-systemd) */", - "/* #undef USE_SYSTEMD */", - "", - "/* Define to select SysV-style semaphores. */", - "#define USE_SYSV_SEMAPHORES 1", - "", - "/* Define to select SysV-style shared memory. */", - "#define USE_SYSV_SHARED_MEMORY 1", - "", - "/* Define to select unnamed POSIX semaphores. */", - "/* #undef USE_UNNAMED_POSIX_SEMAPHORES */", - "", - "/* Define to 1 if `wcstombs_l' requires . */", - "#define WCSTOMBS_L_IN_XLOCALE 1", - "", - "/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most", - " significant byte first (like Motorola and SPARC, unlike Intel). */", - "#if defined AC_APPLE_UNIVERSAL_BUILD", - "# if defined __BIG_ENDIAN__", - "# define WORDS_BIGENDIAN 1", - "# endif", - "#else", - "# ifndef WORDS_BIGENDIAN", - "/* # undef WORDS_BIGENDIAN */", - "# endif", - "#endif", - "", - "/* Size of a WAL file block. This need have no particular relation to BLCKSZ.", - " XLOG_BLCKSZ must be a power of 2, and if your system supports O_DIRECT I/O,", - " XLOG_BLCKSZ must be a multiple of the alignment requirement for direct-I/O", - " buffers, else direct I/O may fail. Changing XLOG_BLCKSZ requires an initdb.", - " */", - "#define XLOG_BLCKSZ 8192", - "", - "", - "", - "/* Number of bits in a file offset, on hosts where this is settable. */", - "/* #undef _FILE_OFFSET_BITS */", - "", - "/* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */", - "/* #undef _LARGEFILE_SOURCE */", - "", - "/* Define for large files, on AIX-style hosts. */", - "/* #undef _LARGE_FILES */", - "", - "/* Define to `__inline__' or `__inline' if that's what the C compiler", - " calls it, or to nothing if 'inline' is not supported under any name. */", - "#ifndef __cplusplus", - "/* #undef inline */", - "#endif", - "", - "/* Define to the type of a signed integer type wide enough to hold a pointer,", - " if such a type exists, and if the system does not define it. */", - "/* #undef intptr_t */", - "", - "/* Define to keyword to use for C99 restrict support, or to nothing if not", - " supported */", - "#define pg_restrict __restrict", - "", - "/* Define to the equivalent of the C99 'restrict' keyword, or to", - " nothing if this is not supported. Do not define if restrict is", - " supported directly. */", - "#define restrict __restrict", - "/* Work around a bug in Sun C++: it does not support _Restrict or", - " __restrict__, even though the corresponding Sun C compiler ends up with", - " \"#define restrict _Restrict\" or \"#define restrict __restrict__\" in the", - " previous line. Perhaps some future version of Sun C++ will work with", - " restrict; if so, hopefully it defines __RESTRICT like Sun C does. */", - "#if defined __SUNPRO_CC && !defined __RESTRICT", - "# define _Restrict", - "# define __restrict__", - "#endif", - "", - "/* Define to empty if the C compiler does not understand signed types. */", - "/* #undef signed */", - "", - "/* Define to how the compiler spells `typeof'. */", - "/* #undef typeof */", - "", - "/* Define to the type of an unsigned integer type wide enough to hold a", - " pointer, if such a type exists, and if the system does not define it. */", - "/* #undef uintptr_t */", - "EOF", - ]), - }), + cmd = "\n".join([ + "cat <<'EOF' >$@", + "/* src/include/pg_config.h. Generated from pg_config.h.in by configure. */", + "/* src/include/pg_config.h.in. Generated from configure.in by autoheader. */", + "", + "/* Define to the type of arg 1 of 'accept' */", + "#define ACCEPT_TYPE_ARG1 int", + "", + "/* Define to the type of arg 2 of 'accept' */", + "#define ACCEPT_TYPE_ARG2 struct sockaddr *", + "", + "/* Define to the type of arg 3 of 'accept' */", + "#define ACCEPT_TYPE_ARG3 socklen_t", + "", + "/* Define to the return type of 'accept' */", + "#define ACCEPT_TYPE_RETURN int", + "", + "/* Define if building universal (internal helper macro) */", + "/* #undef AC_APPLE_UNIVERSAL_BUILD */", + "", + "/* The normal alignment of `double', in bytes. */", + "#define ALIGNOF_DOUBLE 8", + "", + "/* The normal alignment of `int', in bytes. */", + "#define ALIGNOF_INT 4", + "", + "/* The normal alignment of `long', in bytes. */", + "#define ALIGNOF_LONG 8", + "", + "/* The normal alignment of `long long int', in bytes. */", + "/* #undef ALIGNOF_LONG_LONG_INT */", + "", + "/* The normal alignment of `PG_INT128_TYPE', in bytes. */", + "#define ALIGNOF_PG_INT128_TYPE 16", + "", + "/* The normal alignment of `short', in bytes. */", + "#define ALIGNOF_SHORT 2", + "", + "/* Size of a disk block --- this also limits the size of a tuple. You can set", + " it bigger if you need bigger tuples (although TOAST should reduce the need", + " to have large tuples, since fields can be spread across multiple tuples).", + " BLCKSZ must be a power of 2. The maximum possible value of BLCKSZ is", + " currently 2^15 (32768). This is determined by the 15-bit widths of the", + " lp_off and lp_len fields in ItemIdData (see include/storage/itemid.h).", + " Changing BLCKSZ requires an initdb. */", + "#define BLCKSZ 8192", + "", + "/* Define to the default TCP port number on which the server listens and to", + " which clients will try to connect. This can be overridden at run-time, but", + " it's convenient if your clients have the right default compiled in.", + " (--with-pgport=PORTNUM) */", + "#define DEF_PGPORT 5432", + "", + "/* Define to the default TCP port number as a string constant. */", + "#define DEF_PGPORT_STR \"5432\"", + "", + "/* Define to build with GSSAPI support. (--with-gssapi) */", + "/* #undef ENABLE_GSS */", + "", + "/* Define to 1 if you want National Language Support. (--enable-nls) */", + "/* #undef ENABLE_NLS */", + "", + "/* Define to 1 to build client libraries as thread-safe code.", + " (--enable-thread-safety) */", + "#define ENABLE_THREAD_SAFETY 1", + "", + "/* Define to nothing if C supports flexible array members, and to 1 if it does", + " not. That way, with a declaration like `struct s { int n; double", + " d[FLEXIBLE_ARRAY_MEMBER]; };', the struct hack can be used with pre-C99", + " compilers. When computing the size of such an object, don't use 'sizeof", + " (struct s)' as it overestimates the size. Use 'offsetof (struct s, d)'", + " instead. Don't use 'offsetof (struct s, d[0])', as this doesn't work with", + " MSVC and with C++ compilers. */", + "#define FLEXIBLE_ARRAY_MEMBER /**/", + "", + "/* float4 values are passed by value if 'true', by reference if 'false' */", + "#define FLOAT4PASSBYVAL true", + "", + "/* float8, int8, and related values are passed by value if 'true', by", + " reference if 'false' */", + "#define FLOAT8PASSBYVAL true", + "", + "/* Define to 1 if gettimeofday() takes only 1 argument. */", + "/* #undef GETTIMEOFDAY_1ARG */", + "", + "#ifdef GETTIMEOFDAY_1ARG", + "# define gettimeofday(a,b) gettimeofday(a)", + "#endif", + "", + "/* Define to 1 if you have the `append_history' function. */", + "/* #undef HAVE_APPEND_HISTORY */", + "", + "/* Define to 1 if you have the `ASN1_STRING_get0_data' function. */", + "/* #undef HAVE_ASN1_STRING_GET0_DATA */", + "", + "/* Define to 1 if you want to use atomics if available. */", + "#define HAVE_ATOMICS 1", + "", + "/* Define to 1 if you have the header file. */", + "/* #undef HAVE_ATOMIC_H */", + "", + "/* Define to 1 if you have the `BIO_get_data' function. */", + "/* #undef HAVE_BIO_GET_DATA */", + "", + "/* Define to 1 if you have the `BIO_meth_new' function. */", + "/* #undef HAVE_BIO_METH_NEW */", + "", + "/* Define to 1 if you have the `cbrt' function. */", + "#define HAVE_CBRT 1", + "", + "/* Define to 1 if you have the `class' function. */", + "/* #undef HAVE_CLASS */", + "", + "/* Define to 1 if you have the `clock_gettime' function. */", + "#define HAVE_CLOCK_GETTIME 1", + "", + "/* Define to 1 if your compiler handles computed gotos. */", + "#define HAVE_COMPUTED_GOTO 1", + "", + "/* Define to 1 if you have the `copyfile' function. */", + "#define HAVE_COPYFILE 1", + "", + "/* Define to 1 if you have the header file. */", + "#define HAVE_COPYFILE_H 1", + "", + "/* Define to 1 if you have the header file. */", + "/* #undef HAVE_CRTDEFS_H */", + "", + "/* Define to 1 if you have the `crypt' function. */", + "#define HAVE_CRYPT 1", + "", + "/* Define to 1 if you have the `CRYPTO_lock' function. */", + "/* #undef HAVE_CRYPTO_LOCK */", + "", + "/* Define to 1 if you have the header file. */", + "/* #undef HAVE_CRYPT_H */", + "", + "/* Define to 1 if you have the declaration of `fdatasync', and to 0 if you", + " don't. */", + "#define HAVE_DECL_FDATASYNC 0", + "", + "/* Define to 1 if you have the declaration of `F_FULLFSYNC', and to 0 if you", + " don't. */", + "#define HAVE_DECL_F_FULLFSYNC 1", + "", + "/* Define to 1 if you have the declaration of", + " `LLVMCreateGDBRegistrationListener', and to 0 if you don't. */", + "/* #undef HAVE_DECL_LLVMCREATEGDBREGISTRATIONLISTENER */", + "", + "/* Define to 1 if you have the declaration of", + " `LLVMCreatePerfJITEventListener', and to 0 if you don't. */", + "/* #undef HAVE_DECL_LLVMCREATEPERFJITEVENTLISTENER */", + "", + "/* Define to 1 if you have the declaration of `LLVMGetHostCPUFeatures', and to", + " 0 if you don't. */", + "/* #undef HAVE_DECL_LLVMGETHOSTCPUFEATURES */", + "", + "/* Define to 1 if you have the declaration of `LLVMGetHostCPUName', and to 0", + " if you don't. */", + "/* #undef HAVE_DECL_LLVMGETHOSTCPUNAME */", + "", + "/* Define to 1 if you have the declaration of `LLVMOrcGetSymbolAddressIn', and", + " to 0 if you don't. */", + "/* #undef HAVE_DECL_LLVMORCGETSYMBOLADDRESSIN */", + "", + "/* Define to 1 if you have the declaration of `posix_fadvise', and to 0 if you", + " don't. */", + "#define HAVE_DECL_POSIX_FADVISE 0", + "", + "/* Define to 1 if you have the declaration of `RTLD_GLOBAL', and to 0 if you", + " don't. */", + "#define HAVE_DECL_RTLD_GLOBAL 1", + "", + "/* Define to 1 if you have the declaration of `RTLD_NOW', and to 0 if you", + " don't. */", + "#define HAVE_DECL_RTLD_NOW 1", + "", + "/* Define to 1 if you have the declaration of `strlcat', and to 0 if you", + " don't. */", + "#define HAVE_DECL_STRLCAT 1", + "", + "/* Define to 1 if you have the declaration of `strlcpy', and to 0 if you", + " don't. */", + "/* #undef HAVE_DECL_STRLCPY */", + "", + "/* Define to 1 if you have the declaration of `strnlen', and to 0 if you", + " don't. */", + "#define HAVE_DECL_STRNLEN 1", + "", + "/* Define to 1 if you have the declaration of `strtoll', and to 0 if you", + " don't. */", + "#define HAVE_DECL_STRTOLL 1", + "", + "/* Define to 1 if you have the declaration of `strtoull', and to 0 if you", + " don't. */", + "#define HAVE_DECL_STRTOULL 1", + "", + "/* Define to 1 if you have the `dlopen' function. */", + "#define HAVE_DLOPEN 1", + "", + "/* Define to 1 if you have the header file. */", + "/* #undef HAVE_EDITLINE_HISTORY_H */", + "", + "/* Define to 1 if you have the header file. */", + "/* #undef HAVE_EDITLINE_READLINE_H */", + "", + "/* Define to 1 if you have the `fdatasync' function. */", + "#define HAVE_FDATASYNC 1", + "", + "/* Define to 1 if you have the `fls' function. */", + "#define HAVE_FLS 1", + "", + "/* Define to 1 if you have the `fpclass' function. */", + "/* #undef HAVE_FPCLASS */", + "", + "/* Define to 1 if you have the `fp_class' function. */", + "/* #undef HAVE_FP_CLASS */", + "", + "/* Define to 1 if you have the `fp_class_d' function. */", + "/* #undef HAVE_FP_CLASS_D */", + "", + "/* Define to 1 if you have the header file. */", + "/* #undef HAVE_FP_CLASS_H */", + "", + "/* Define to 1 if fseeko (and presumably ftello) exists and is declared. */", + "#define HAVE_FSEEKO 1", + "", + "/* Define to 1 if your compiler understands __func__. */", + "#define HAVE_FUNCNAME__FUNC 1", + "", + "/* Define to 1 if your compiler understands __FUNCTION__. */", + "/* #undef HAVE_FUNCNAME__FUNCTION */", + "", + "/* Define to 1 if you have __atomic_compare_exchange_n(int *, int *, int). */", + "#define HAVE_GCC__ATOMIC_INT32_CAS 1", + "", + "/* Define to 1 if you have __atomic_compare_exchange_n(int64 *, int64 *,", + " int64). */", + "#define HAVE_GCC__ATOMIC_INT64_CAS 1", + "", + "/* Define to 1 if you have __sync_lock_test_and_set(char *) and friends. */", + "#define HAVE_GCC__SYNC_CHAR_TAS 1", + "", + "/* Define to 1 if you have __sync_val_compare_and_swap(int *, int, int). */", + "#define HAVE_GCC__SYNC_INT32_CAS 1", + "", + "/* Define to 1 if you have __sync_lock_test_and_set(int *) and friends. */", + "#define HAVE_GCC__SYNC_INT32_TAS 1", + "", + "/* Define to 1 if you have __sync_val_compare_and_swap(int64 *, int64, int64).", + " */", + "#define HAVE_GCC__SYNC_INT64_CAS 1", + "", + "/* Define to 1 if you have the `getaddrinfo' function. */", + "#define HAVE_GETADDRINFO 1", + "", + "/* Define to 1 if you have the `gethostbyname_r' function. */", + "/* #undef HAVE_GETHOSTBYNAME_R */", + "", + "/* Define to 1 if you have the `getifaddrs' function. */", + "#define HAVE_GETIFADDRS 1", + "", + "/* Define to 1 if you have the `getopt' function. */", + "#define HAVE_GETOPT 1", + "", + "/* Define to 1 if you have the header file. */", + "#define HAVE_GETOPT_H 1", + "", + "/* Define to 1 if you have the `getopt_long' function. */", + "#define HAVE_GETOPT_LONG 1", + "", + "/* Define to 1 if you have the `getpeereid' function. */", + "#define HAVE_GETPEEREID 1", + "", + "/* Define to 1 if you have the `getpeerucred' function. */", + "/* #undef HAVE_GETPEERUCRED */", + "", + "/* Define to 1 if you have the `getpwuid_r' function. */", + "#define HAVE_GETPWUID_R 1", + "", + "/* Define to 1 if you have the `getrlimit' function. */", + "#define HAVE_GETRLIMIT 1", + "", + "/* Define to 1 if you have the `getrusage' function. */", + "#define HAVE_GETRUSAGE 1", + "", + "/* Define to 1 if you have the `gettimeofday' function. */", + "/* #undef HAVE_GETTIMEOFDAY */", + "", + "/* Define to 1 if you have the header file. */", + "/* #undef HAVE_GSSAPI_GSSAPI_H */", + "", + "/* Define to 1 if you have the header file. */", + "/* #undef HAVE_GSSAPI_H */", + "", + "/* Define to 1 if you have the header file. */", + "/* #undef HAVE_HISTORY_H */", + "", + "/* Define to 1 if you have the `history_truncate_file' function. */", + "#define HAVE_HISTORY_TRUNCATE_FILE 1", + "", + "/* Define to 1 if you have the header file. */", + "/* #undef HAVE_IEEEFP_H */", + "", + "/* Define to 1 if you have the header file. */", + "#define HAVE_IFADDRS_H 1", + "", + "/* Define to 1 if you have the `inet_aton' function. */", + "#define HAVE_INET_ATON 1", + "", + "/* Define to 1 if the system has the type `int64'. */", + "/* #undef HAVE_INT64 */", + "", + "/* Define to 1 if the system has the type `int8'. */", + "/* #undef HAVE_INT8 */", + "", + "/* Define to 1 if the system has the type `intptr_t'. */", + "#define HAVE_INTPTR_T 1", + "", + "/* Define to 1 if you have the header file. */", + "#define HAVE_INTTYPES_H 1", + "", + "/* Define to 1 if you have the global variable 'int opterr'. */", + "#define HAVE_INT_OPTERR 1", + "", + "/* Define to 1 if you have the global variable 'int optreset'. */", + "#define HAVE_INT_OPTRESET 1", + "", + "/* Define to 1 if you have the global variable 'int timezone'. */", + "#define HAVE_INT_TIMEZONE 1", + "", + "/* Define to 1 if you have support for IPv6. */", + "#define HAVE_IPV6 1", + "", + "/* Define to 1 if you have isinf(). */", + "#define HAVE_ISINF 1", + "", + "/* Define to 1 if you have the header file. */", + "#define HAVE_LANGINFO_H 1", + "", + "/* Define to 1 if you have the header file. */", + "/* #undef HAVE_LDAP_H */", + "", + "/* Define to 1 if you have the `ldap_initialize' function. */", + "/* #undef HAVE_LDAP_INITIALIZE */", + "", + "/* Define to 1 if you have the `crypto' library (-lcrypto). */", + "/* #undef HAVE_LIBCRYPTO */", + "", + "/* Define to 1 if you have the `ldap' library (-lldap). */", + "/* #undef HAVE_LIBLDAP */", + "", + "/* Define to 1 if you have the `ldap_r' library (-lldap_r). */", + "/* #undef HAVE_LIBLDAP_R */", + "", + "/* Define to 1 if you have the `m' library (-lm). */", + "#define HAVE_LIBM 1", + "", + "/* Define to 1 if you have the `pam' library (-lpam). */", + "/* #undef HAVE_LIBPAM */", + "", + "/* Define if you have a function readline library */", + "#define HAVE_LIBREADLINE 1", + "", + "/* Define to 1 if you have the `selinux' library (-lselinux). */", + "/* #undef HAVE_LIBSELINUX */", + "", + "/* Define to 1 if you have the `ssl' library (-lssl). */", + "/* #undef HAVE_LIBSSL */", + "", + "/* Define to 1 if you have the `wldap32' library (-lwldap32). */", + "/* #undef HAVE_LIBWLDAP32 */", + "", + "/* Define to 1 if you have the `xml2' library (-lxml2). */", + "/* #undef HAVE_LIBXML2 */", + "", + "/* Define to 1 if you have the `xslt' library (-lxslt). */", + "/* #undef HAVE_LIBXSLT */", + "", + "/* Define to 1 if you have the `z' library (-lz). */", + "#define HAVE_LIBZ 1", + "", + "/* Define to 1 if the system has the type `locale_t'. */", + "#define HAVE_LOCALE_T 1", + "", + "/* Define to 1 if `long int' works and is 64 bits. */", + "#define HAVE_LONG_INT_64 1", + "", + "/* Define to 1 if the system has the type `long long int'. */", + "#define HAVE_LONG_LONG_INT 1", + "", + "/* Define to 1 if `long long int' works and is 64 bits. */", + "/* #undef HAVE_LONG_LONG_INT_64 */", + "", + "/* Define to 1 if you have the header file. */", + "/* #undef HAVE_MBARRIER_H */", + "", + "/* Define to 1 if you have the `mbstowcs_l' function. */", + "#define HAVE_MBSTOWCS_L 1", + "", + "/* Define to 1 if you have the `memmove' function. */", + "#define HAVE_MEMMOVE 1", + "", + "/* Define to 1 if you have the header file. */", + "#define HAVE_MEMORY_H 1", + "", + "/* Define to 1 if the system has the type `MINIDUMP_TYPE'. */", + "/* #undef HAVE_MINIDUMP_TYPE */", + "", + "/* Define to 1 if you have the `mkdtemp' function. */", + "#define HAVE_MKDTEMP 1", + "", + "/* Define to 1 if you have the header file. */", + "#define HAVE_NETINET_TCP_H 1", + "", + "/* Define to 1 if you have the header file. */", + "#define HAVE_NET_IF_H 1", + "", + "/* Define to 1 if you have the `OPENSSL_init_ssl' function. */", + "/* #undef HAVE_OPENSSL_INIT_SSL */", + "", + "/* Define to 1 if you have the header file. */", + "/* #undef HAVE_OSSP_UUID_H */", + "", + "/* Define to 1 if you have the header file. */", + "/* #undef HAVE_PAM_PAM_APPL_H */", + "", + "/* Define to 1 if you have the `poll' function. */", + "#define HAVE_POLL 1", + "", + "/* Define to 1 if you have the header file. */", + "#define HAVE_POLL_H 1", + "", + "/* Define to 1 if you have the `posix_fadvise' function. */", + "/* #undef HAVE_POSIX_FADVISE */", + "", + "/* Define to 1 if you have the `posix_fallocate' function. */", + "/* #undef HAVE_POSIX_FALLOCATE */", + "", + "/* Define to 1 if the assembler supports PPC's LWARX mutex hint bit. */", + "/* #undef HAVE_PPC_LWARX_MUTEX_HINT */", + "", + "/* Define to 1 if you have the `ppoll' function. */", + "/* #undef HAVE_PPOLL */", + "", + "/* Define to 1 if you have the `pread' function. */", + "#define HAVE_PREAD 1", + "", + "/* Define to 1 if you have the `pstat' function. */", + "/* #undef HAVE_PSTAT */", + "", + "/* Define to 1 if the PS_STRINGS thing exists. */", + "/* #undef HAVE_PS_STRINGS */", + "", + "/* Define if you have POSIX threads libraries and header files. */", + "#define HAVE_PTHREAD 1", + "", + "/* Define to 1 if you have the `pthread_is_threaded_np' function. */", + "#define HAVE_PTHREAD_IS_THREADED_NP 1", + "", + "/* Have PTHREAD_PRIO_INHERIT. */", + "#define HAVE_PTHREAD_PRIO_INHERIT 1", + "", + "/* Define to 1 if you have the `pwrite' function. */", + "#define HAVE_PWRITE 1", + "", + "/* Define to 1 if you have the `random' function. */", + "#define HAVE_RANDOM 1", + "", + "/* Define to 1 if you have the header file. */", + "/* #undef HAVE_READLINE_H */", + "", + "/* Define to 1 if you have the header file. */", + "#define HAVE_READLINE_HISTORY_H 1", + "", + "/* Define to 1 if you have the header file. */", + "#define HAVE_READLINE_READLINE_H 1", + "", + "/* Define to 1 if you have the `readlink' function. */", + "#define HAVE_READLINK 1", + "", + "/* Define to 1 if you have the `rint' function. */", + "#define HAVE_RINT 1", + "", + "/* Define to 1 if you have the global variable", + " 'rl_completion_append_character'. */", + "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1", + "", + "/* Define to 1 if you have the `rl_completion_matches' function. */", + "#define HAVE_RL_COMPLETION_MATCHES 1", + "", + "/* Define to 1 if you have the `rl_filename_completion_function' function. */", + "#define HAVE_RL_FILENAME_COMPLETION_FUNCTION 1", + "", + "/* Define to 1 if you have the `rl_reset_screen_size' function. */", + "/* #undef HAVE_RL_RESET_SCREEN_SIZE */", + "", + "/* Define to 1 if you have the header file. */", + "/* #undef HAVE_SECURITY_PAM_APPL_H */", + "", + "/* Define to 1 if you have the `setproctitle' function. */", + "/* #undef HAVE_SETPROCTITLE */", + "", + "/* Define to 1 if you have the `setproctitle_fast' function. */", + "/* #undef HAVE_SETPROCTITLE_FAST */", + "", + "/* Define to 1 if you have the `setsid' function. */", + "#define HAVE_SETSID 1", + "", + "/* Define to 1 if you have the `shm_open' function. */", + "#define HAVE_SHM_OPEN 1", + "", + "/* Define to 1 if you have spinlocks. */", + "#define HAVE_SPINLOCKS 1", + "", + "/* Define to 1 if you have the `srandom' function. */", + "#define HAVE_SRANDOM 1", + "", + "/* Define to 1 if you have the `SSL_clear_options' function. */", + "/* #undef HAVE_SSL_CLEAR_OPTIONS */", + "", + "/* Define to 1 if you have the `SSL_get_current_compression' function. */", + "/* #undef HAVE_SSL_GET_CURRENT_COMPRESSION */", + "", + "/* Define to 1 if stdbool.h conforms to C99. */", + "#define HAVE_STDBOOL_H 1", + "", + "/* Define to 1 if you have the header file. */", + "#define HAVE_STDINT_H 1", + "", + "/* Define to 1 if you have the header file. */", + "#define HAVE_STDLIB_H 1", + "", + "/* Define to 1 if you have the `strchrnul' function. */", + "/* #undef HAVE_STRCHRNUL */", + "", + "/* Define to 1 if you have the `strerror_r' function. */", + "#define HAVE_STRERROR_R 1", + "", + "/* Define to 1 if you have the header file. */", + "#define HAVE_STRINGS_H 1", + "", + "/* Define to 1 if you have the header file. */", + "#define HAVE_STRING_H 1", + "", + "/* Define to 1 if you have the `strlcat' function. */", + "#define HAVE_STRLCAT 1", + "", + "/* Define to 1 if you have the `strlcpy' function. */", + "/* #undef HAVE_STRLCPY */", + "", + "/* Define to 1 if you have the `strnlen' function. */", + "#define HAVE_STRNLEN 1", + "", + "/* Define to 1 if you have the `strsignal' function. */", + "#define HAVE_STRSIGNAL 1", + "", + "/* Define to 1 if you have the `strtof' function. */", + "#define HAVE_STRTOF 1", + "", + "/* Define to 1 if you have the `strtoll' function. */", + "#define HAVE_STRTOLL 1", + "", + "/* Define to 1 if you have the `strtoq' function. */", + "/* #undef HAVE_STRTOQ */", + "", + "/* Define to 1 if you have the `strtoull' function. */", + "#define HAVE_STRTOULL 1", + "", + "/* Define to 1 if you have the `strtouq' function. */", + "/* #undef HAVE_STRTOUQ */", + "", + "/* Define to 1 if the system has the type `struct addrinfo'. */", + "#define HAVE_STRUCT_ADDRINFO 1", + "", + "/* Define to 1 if the system has the type `struct cmsgcred'. */", + "/* #undef HAVE_STRUCT_CMSGCRED */", + "", + "/* Define to 1 if the system has the type `struct option'. */", + "#define HAVE_STRUCT_OPTION 1", + "", + "/* Define to 1 if `sa_len' is a member of `struct sockaddr'. */", + "#define HAVE_STRUCT_SOCKADDR_SA_LEN 1", + "", + "/* Define to 1 if the system has the type `struct sockaddr_storage'. */", + "#define HAVE_STRUCT_SOCKADDR_STORAGE 1", + "", + "/* Define to 1 if `ss_family' is a member of `struct sockaddr_storage'. */", + "#define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1", + "", + "/* Define to 1 if `ss_len' is a member of `struct sockaddr_storage'. */", + "/* #undef HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN */", + "", + "/* Define to 1 if `__ss_family' is a member of `struct sockaddr_storage'. */", + "/* #undef HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY */", + "", + "/* Define to 1 if `__ss_len' is a member of `struct sockaddr_storage'. */", + "/* #undef HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN */", + "", + "/* Define to 1 if `tm_zone' is a member of `struct tm'. */", + "#define HAVE_STRUCT_TM_TM_ZONE 1", + "", + "/* Define to 1 if you have the `symlink' function. */", + "#define HAVE_SYMLINK 1", + "", + "/* Define to 1 if you have the `sync_file_range' function. */", + "/* #undef HAVE_SYNC_FILE_RANGE */", + "", + "/* Define to 1 if you have the syslog interface. */", + "#define HAVE_SYSLOG 1", + "", + "/* Define to 1 if you have the header file. */", + "/* #undef HAVE_SYS_EPOLL_H */", + "", + "/* Define to 1 if you have the header file. */", + "#define HAVE_SYS_IPC_H 1", + "", + "/* Define to 1 if you have the header file. */", + "/* #undef HAVE_SYS_PRCTL_H */", + "", + "/* Define to 1 if you have the header file. */", + "/* #undef HAVE_SYS_PROCCTL_H */", + "", + "/* Define to 1 if you have the header file. */", + "/* #undef HAVE_SYS_PSTAT_H */", + "", + "/* Define to 1 if you have the header file. */", + "#define HAVE_SYS_RESOURCE_H 1", + "", + "/* Define to 1 if you have the header file. */", + "#define HAVE_SYS_SELECT_H 1", + "", + "/* Define to 1 if you have the header file. */", + "#define HAVE_SYS_SEM_H 1", + "", + "/* Define to 1 if you have the header file. */", + "#define HAVE_SYS_SHM_H 1", + "", + "/* Define to 1 if you have the header file. */", + "#define HAVE_SYS_SOCKIO_H 1", + "", + "/* Define to 1 if you have the header file. */", + "#define HAVE_SYS_STAT_H 1", + "", + "/* Define to 1 if you have the header file. */", + "/* #undef HAVE_SYS_TAS_H */", + "", + "/* Define to 1 if you have the header file. */", + "#define HAVE_SYS_TYPES_H 1", + "", + "/* Define to 1 if you have the header file. */", + "/* #undef HAVE_SYS_UCRED_H */", + "", + "/* Define to 1 if you have the header file. */", + "#define HAVE_SYS_UN_H 1", + "", + "/* Define to 1 if you have the header file. */", + "#define HAVE_TERMIOS_H 1", + "", + "/* Define to 1 if your `struct tm' has `tm_zone'. Deprecated, use", + " `HAVE_STRUCT_TM_TM_ZONE' instead. */", + "#define HAVE_TM_ZONE 1", + "", + "/* Define to 1 if your compiler understands `typeof' or something similar. */", + "#define HAVE_TYPEOF 1", + "", + "/* Define to 1 if you have the external array `tzname'. */", + "#define HAVE_TZNAME 1", + "", + "/* Define to 1 if you have the header file. */", + "/* #undef HAVE_UCRED_H */", + "", + "/* Define to 1 if the system has the type `uint64'. */", + "/* #undef HAVE_UINT64 */", + "", + "/* Define to 1 if the system has the type `uint8'. */", + "/* #undef HAVE_UINT8 */", + "", + "/* Define to 1 if the system has the type `uintptr_t'. */", + "#define HAVE_UINTPTR_T 1", + "", + "/* Define to 1 if the system has the type `union semun'. */", + "#define HAVE_UNION_SEMUN 1", + "", + "/* Define to 1 if you have the header file. */", + "#define HAVE_UNISTD_H 1", + "", + "/* Define to 1 if you have unix sockets. */", + "#define HAVE_UNIX_SOCKETS 1", + "", + "/* Define to 1 if you have the `unsetenv' function. */", + "#define HAVE_UNSETENV 1", + "", + "/* Define to 1 if the system has the type `unsigned long long int'. */", + "#define HAVE_UNSIGNED_LONG_LONG_INT 1", + "", + "/* Define to 1 if you have the `uselocale' function. */", + "#define HAVE_USELOCALE 1", + "", + "/* Define to 1 if you have the `utime' function. */", + "#define HAVE_UTIME 1", + "", + "/* Define to 1 if you have the `utimes' function. */", + "#define HAVE_UTIMES 1", + "", + "/* Define to 1 if you have the header file. */", + "#define HAVE_UTIME_H 1", + "", + "/* Define to 1 if you have BSD UUID support. */", + "/* #undef HAVE_UUID_BSD */", + "", + "/* Define to 1 if you have E2FS UUID support. */", + "/* #undef HAVE_UUID_E2FS */", + "", + "/* Define to 1 if you have the header file. */", + "/* #undef HAVE_UUID_H */", + "", + "/* Define to 1 if you have OSSP UUID support. */", + "/* #undef HAVE_UUID_OSSP */", + "", + "/* Define to 1 if you have the header file. */", + "/* #undef HAVE_UUID_UUID_H */", + "", + "/* Define to 1 if you have the header file. */", + "#define HAVE_WCHAR_H 1", + "", + "/* Define to 1 if you have the `wcstombs_l' function. */", + "#define HAVE_WCSTOMBS_L 1", + "", + "/* Define to 1 if you have the header file. */", + "#define HAVE_WCTYPE_H 1", + "", + "/* Define to 1 if you have the header file. */", + "/* #undef HAVE_WINLDAP_H */", + "", + "/* Define to 1 if you have the `X509_get_signature_nid' function. */", + "/* #undef HAVE_X509_GET_SIGNATURE_NID */", + "", + "/* Define to 1 if the assembler supports X86_64's POPCNTQ instruction. */", + "#define HAVE_X86_64_POPCNTQ 1", + "", + "/* Define to 1 if the system has the type `_Bool'. */", + "#define HAVE__BOOL 1", + "", + "/* Define to 1 if your compiler understands __builtin_bswap16. */", + "#define HAVE__BUILTIN_BSWAP16 1", + "", + "/* Define to 1 if your compiler understands __builtin_bswap32. */", + "#define HAVE__BUILTIN_BSWAP32 1", + "", + "/* Define to 1 if your compiler understands __builtin_bswap64. */", + "#define HAVE__BUILTIN_BSWAP64 1", + "", + "/* Define to 1 if your compiler understands __builtin_clz. */", + "#define HAVE__BUILTIN_CLZ 1", + "", + "/* Define to 1 if your compiler understands __builtin_constant_p. */", + "#define HAVE__BUILTIN_CONSTANT_P 1", + "", + "/* Define to 1 if your compiler understands __builtin_ctz. */", + "#define HAVE__BUILTIN_CTZ 1", + "", + "/* Define to 1 if your compiler understands __builtin_$$op_overflow. */", + "#define HAVE__BUILTIN_OP_OVERFLOW 1", + "", + "/* Define to 1 if your compiler understands __builtin_popcount. */", + "#define HAVE__BUILTIN_POPCOUNT 1", + "", + "/* Define to 1 if your compiler understands __builtin_types_compatible_p. */", + "#define HAVE__BUILTIN_TYPES_COMPATIBLE_P 1", + "", + "/* Define to 1 if your compiler understands __builtin_unreachable. */", + "#define HAVE__BUILTIN_UNREACHABLE 1", + "", + "/* Define to 1 if you have the `_configthreadlocale' function. */", + "/* #undef HAVE__CONFIGTHREADLOCALE */", + "", + "/* Define to 1 if you have __cpuid. */", + "/* #undef HAVE__CPUID */", + "", + "/* Define to 1 if your compiler understands _Static_assert. */", + "#define HAVE__STATIC_ASSERT 1", + "", + "/* Define to 1 if you have the `__strtoll' function. */", + "/* #undef HAVE___STRTOLL */", + "", + "/* Define to 1 if you have the `__strtoull' function. */", + "/* #undef HAVE___STRTOULL */", + "", + "/* Define to the appropriate printf length modifier for 64-bit ints. */", + "#define INT64_MODIFIER \"l\"", + "", + "/* Define to 1 if `locale_t' requires . */", + "#define LOCALE_T_IN_XLOCALE 1", + "", + "/* Define as the maximum alignment requirement of any C data type. */", + "#define MAXIMUM_ALIGNOF 8", + "", + "/* Define bytes to use libc memset(). */", + "#define MEMSET_LOOP_LIMIT 1024", + "", + "/* Define to the address where bug reports for this package should be sent. */", + "#define PACKAGE_BUGREPORT \"pgsql-bugs@lists.postgresql.org\"", + "", + "/* Define to the full name of this package. */", + "#define PACKAGE_NAME \"PostgreSQL\"", + "", + "/* Define to the full name and version of this package. */", + "#define PACKAGE_STRING \"PostgreSQL 12.1\"", + "", + "/* Define to the one symbol short name of this package. */", + "#define PACKAGE_TARNAME \"postgresql\"", + "", + "/* Define to the home page for this package. */", + "#define PACKAGE_URL \"\"", + "", + "/* Define to the version of this package. */", + "#define PACKAGE_VERSION \"12.1\"", + "", + "/* Define to the name of a signed 128-bit integer type. */", + "#define PG_INT128_TYPE __int128", + "", + "/* Define to the name of a signed 64-bit integer type. */", + "#define PG_INT64_TYPE long int", + "", + "/* Define to the name of the default PostgreSQL service principal in Kerberos", + " (GSSAPI). (--with-krb-srvnam=NAME) */", + "#define PG_KRB_SRVNAM \"postgres\"", + "", + "/* PostgreSQL major version as a string */", + "#define PG_MAJORVERSION \"12\"", + "", + "/* Define to best printf format archetype, usually gnu_printf if available. */", + "#define PG_PRINTF_ATTRIBUTE printf", + "", + "/* PostgreSQL version as a string */", + "#define PG_VERSION \"12.1\"", + "", + "/* PostgreSQL version as a number */", + "#define PG_VERSION_NUM 120001", + "", + "/* A string containing the version number, platform, and C compiler */", + "#define PG_VERSION_STR \"PostgreSQL 12.1 on x86_64-apple-darwin19.2.0, compiled by Apple clang version 11.0.0 (clang-1100.0.33.17), 64-bit\"", + "", + "/* Define to 1 to allow profiling output to be saved separately for each", + " process. */", + "/* #undef PROFILE_PID_DIR */", + "", + "/* Define to necessary symbol if this constant uses a non-standard name on", + " your system. */", + "/* #undef PTHREAD_CREATE_JOINABLE */", + "", + "/* RELSEG_SIZE is the maximum number of blocks allowed in one disk file. Thus,", + " the maximum size of a single file is RELSEG_SIZE * BLCKSZ; relations bigger", + " than that are divided into multiple files. RELSEG_SIZE * BLCKSZ must be", + " less than your OS' limit on file size. This is often 2 GB or 4GB in a", + " 32-bit operating system, unless you have large file support enabled. By", + " default, we make the limit 1 GB to avoid any possible integer-overflow", + " problems within the OS. A limit smaller than necessary only means we divide", + " a large relation into more chunks than necessary, so it seems best to err", + " in the direction of a small limit. A power-of-2 value is recommended to", + " save a few cycles in md.c, but is not absolutely required. Changing", + " RELSEG_SIZE requires an initdb. */", + "#define RELSEG_SIZE 131072", + "", + "/* The size of `bool', as computed by sizeof. */", + "#define SIZEOF_BOOL 1", + "", + "/* The size of `long', as computed by sizeof. */", + "#define SIZEOF_LONG 8", + "", + "/* The size of `off_t', as computed by sizeof. */", + "#define SIZEOF_OFF_T 8", + "", + "/* The size of `size_t', as computed by sizeof. */", + "#define SIZEOF_SIZE_T 8", + "", + "/* The size of `void *', as computed by sizeof. */", + "#define SIZEOF_VOID_P 8", + "", + "/* Define to 1 if you have the ANSI C header files. */", + "#define STDC_HEADERS 1", + "", + "/* Define to 1 if strerror_r() returns int. */", + "#define STRERROR_R_INT 1", + "", + "/* Define to 1 if your declares `struct tm'. */", + "/* #undef TM_IN_SYS_TIME */", + "", + "/* Define to 1 to use ARMv8 CRC Extension. */", + "/* #undef USE_ARMV8_CRC32C */", + "", + "/* Define to 1 to use ARMv8 CRC Extension with a runtime check. */", + "/* #undef USE_ARMV8_CRC32C_WITH_RUNTIME_CHECK */", + "", + "/* Define to 1 to build with assertion checks. (--enable-cassert) */", + "/* #undef USE_ASSERT_CHECKING */", + "", + "/* Define to 1 to build with Bonjour support. (--with-bonjour) */", + "/* #undef USE_BONJOUR */", + "", + "/* Define to 1 to build with BSD Authentication support. (--with-bsd-auth) */", + "/* #undef USE_BSD_AUTH */", + "", + "/* Define to use /dev/urandom for random number generation */", + "#define USE_DEV_URANDOM 1", + "", + "/* Define to 1 if you want float4 values to be passed by value.", + " (--enable-float4-byval) */", + "#define USE_FLOAT4_BYVAL 1", + "", + "/* Define to 1 if you want float8, int8, etc values to be passed by value.", + " (--enable-float8-byval) */", + "#define USE_FLOAT8_BYVAL 1", + "", + "/* Define to build with ICU support. (--with-icu) */", + "/* #undef USE_ICU */", + "", + "/* Define to 1 to build with LDAP support. (--with-ldap) */", + "/* #undef USE_LDAP */", + "", + "/* Define to 1 to build with XML support. (--with-libxml) */", + "/* #undef USE_LIBXML */", + "", + "/* Define to 1 to use XSLT support when building contrib/xml2.", + " (--with-libxslt) */", + "/* #undef USE_LIBXSLT */", + "", + "/* Define to 1 to build with LLVM based JIT support. (--with-llvm) */", + "/* #undef USE_LLVM */", + "", + "/* Define to select named POSIX semaphores. */", + "/* #undef USE_NAMED_POSIX_SEMAPHORES */", + "", + "/* Define to build with OpenSSL support. (--with-openssl) */", + "/* #undef USE_OPENSSL */", + "", + "/* Define to use OpenSSL for random number generation */", + "/* #undef USE_OPENSSL_RANDOM */", + "", + "/* Define to 1 to build with PAM support. (--with-pam) */", + "/* #undef USE_PAM */", + "", + "/* Define to 1 to use software CRC-32C implementation (slicing-by-8). */", + # Force usage of sb8 algorithm of crc32c + "#define USE_SLICING_BY_8_CRC32C 1", + "", + "/* Define to 1 use Intel SSE 4.2 CRC instructions. */", + "/* #undef USE_SSE42_CRC32C */", + "", + "/* Define to 1 to use Intel SSE 4.2 CRC instructions with a runtime check. */", + # Do not check at runtime but force usage of sb8 algorithm of crc32c + "/* #undef USE_SSE42_CRC32C_WITH_RUNTIME_CHECK */", + "", + "/* Define to build with systemd support. (--with-systemd) */", + "/* #undef USE_SYSTEMD */", + "", + "/* Define to select SysV-style semaphores. */", + "#define USE_SYSV_SEMAPHORES 1", + "", + "/* Define to select SysV-style shared memory. */", + "#define USE_SYSV_SHARED_MEMORY 1", + "", + "/* Define to select unnamed POSIX semaphores. */", + "/* #undef USE_UNNAMED_POSIX_SEMAPHORES */", + "", + "/* Define to 1 if `wcstombs_l' requires . */", + "#define WCSTOMBS_L_IN_XLOCALE 1", + "", + "/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most", + " significant byte first (like Motorola and SPARC, unlike Intel). */", + "#if defined AC_APPLE_UNIVERSAL_BUILD", + "# if defined __BIG_ENDIAN__", + "# define WORDS_BIGENDIAN 1", + "# endif", + "#else", + "# ifndef WORDS_BIGENDIAN", + "/* # undef WORDS_BIGENDIAN */", + "# endif", + "#endif", + "", + "/* Size of a WAL file block. This need have no particular relation to BLCKSZ.", + " XLOG_BLCKSZ must be a power of 2, and if your system supports O_DIRECT I/O,", + " XLOG_BLCKSZ must be a multiple of the alignment requirement for direct-I/O", + " buffers, else direct I/O may fail. Changing XLOG_BLCKSZ requires an initdb.", + " */", + "#define XLOG_BLCKSZ 8192", + "", + "", + "", + "/* Number of bits in a file offset, on hosts where this is settable. */", + "/* #undef _FILE_OFFSET_BITS */", + "", + "/* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */", + "/* #undef _LARGEFILE_SOURCE */", + "", + "/* Define for large files, on AIX-style hosts. */", + "/* #undef _LARGE_FILES */", + "", + "/* Define to `__inline__' or `__inline' if that's what the C compiler", + " calls it, or to nothing if 'inline' is not supported under any name. */", + "#ifndef __cplusplus", + "/* #undef inline */", + "#endif", + "", + "/* Define to the type of a signed integer type wide enough to hold a pointer,", + " if such a type exists, and if the system does not define it. */", + "/* #undef intptr_t */", + "", + "/* Define to keyword to use for C99 restrict support, or to nothing if not", + " supported */", + "#define pg_restrict __restrict", + "", + "/* Define to the equivalent of the C99 'restrict' keyword, or to", + " nothing if this is not supported. Do not define if restrict is", + " supported directly. */", + "#define restrict __restrict", + "/* Work around a bug in Sun C++: it does not support _Restrict or", + " __restrict__, even though the corresponding Sun C compiler ends up with", + " \"#define restrict _Restrict\" or \"#define restrict __restrict__\" in the", + " previous line. Perhaps some future version of Sun C++ will work with", + " restrict; if so, hopefully it defines __RESTRICT like Sun C does. */", + "#if defined __SUNPRO_CC && !defined __RESTRICT", + "# define _Restrict", + "# define __restrict__", + "#endif", + "", + "/* Define to empty if the C compiler does not understand signed types. */", + "/* #undef signed */", + "", + "/* Define to how the compiler spells `typeof'. */", + "/* #undef typeof */", + "", + "/* Define to the type of an unsigned integer type wide enough to hold a", + " pointer, if such a type exists, and if the system does not define it. */", + "/* #undef uintptr_t */", + "EOF", + ]), ) diff --git a/ml_metadata/third_party/grpc.patch b/ml_metadata/third_party/grpc.patch deleted file mode 100644 index f7e18c2e4..000000000 --- a/ml_metadata/third_party/grpc.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git bazel/grpc_deps.bzl bazel/grpc_deps.bzl -index ef9b2bea94..0be413d48f 100644 ---- bazel/grpc_deps.bzl -+++ bazel/grpc_deps.bzl -@@ -122,7 +122,7 @@ def grpc_deps(): - - native.bind( - name = "re2", -- actual = "@com_googlesource_code_re2//:re2", -+ actual = "@com_github_google_re2//:re2", - ) - - native.bind( \ No newline at end of file diff --git a/ml_metadata/third_party/libmysqlclient.patch b/ml_metadata/third_party/libmysqlclient.patch deleted file mode 100644 index a710fa1ed..000000000 --- a/ml_metadata/third_party/libmysqlclient.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- cmake/ConnectorName.cmake -+++ cmake/ConnectorName.cmake -@@ -22,7 +22,7 @@ IF(CMAKE_SYSTEM_NAME MATCHES "Windows") - SET(MACHINE_NAME "x64") - ELSE() - SET(MACHINE_NAME "32") -- END() -+ ENDIF() - ENDIF() - - SET(product_name "mysql-connector-c-${CPACK_PACKAGE_VERSION}-${PLATFORM_NAME}${CONCAT_SIGN}${MACHINE_NAME}") \ No newline at end of file diff --git a/ml_metadata/third_party/mariadbconnector.patch b/ml_metadata/third_party/mariadbconnector.patch new file mode 100644 index 000000000..b63d7a654 --- /dev/null +++ b/ml_metadata/third_party/mariadbconnector.patch @@ -0,0 +1,15 @@ +--- libmariadb/secure/openssl.c ++++ libmariadb/secure/openssl.c +@@ -329,11 +329,7 @@ static int ma_tls_set_certs(MYSQL *mysql, SSL_CTX *ctx) + if ((mysql->options.ssl_cipher && + mysql->options.ssl_cipher[0] != 0)) + { +- if( +-#ifdef TLS1_3_VERSION +- SSL_CTX_set_ciphersuites(ctx, mysql->options.ssl_cipher) == 0 && +-#endif +- SSL_CTX_set_cipher_list(ctx, mysql->options.ssl_cipher) == 0) ++ if(SSL_CTX_set_cipher_list(ctx, mysql->options.ssl_cipher) == 0) + goto error; + } + diff --git a/ml_metadata/third_party/sqlite.BUILD b/ml_metadata/third_party/sqlite.BUILD index 194db8a14..2af7747c1 100644 --- a/ml_metadata/third_party/sqlite.BUILD +++ b/ml_metadata/third_party/sqlite.BUILD @@ -6,7 +6,7 @@ licenses(["unencumbered"]) # Public Domain config_setting( name = "macos", constraint_values = [ - "@bazel_tools//platforms:osx", + "@platforms//os:osx", ], ) diff --git a/setup.py b/setup.py index f348e2f72..3345a8821 100644 --- a/setup.py +++ b/setup.py @@ -115,6 +115,8 @@ def run(self): # file, which is the root directory. cwd=os.path.dirname(os.path.realpath(__file__)),) + # explicitly call shutdown to free up resources. + subprocess.check_call([self._bazel_cmd, "shutdown"]) # Get version from version module. with open('ml_metadata/version.py') as fp: