0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-05-18 10:53:48 +02:00
Commit graph

541 commits

Author SHA1 Message Date
Jason Volk aed6b9d546 configure: Disable LTO on aarch64. 2020-10-01 21:04:29 -07:00
Jason Volk 55da546de0 configure: Fix CXXFLAG for clang on aarch64. (#132) 2020-10-01 19:51:23 -07:00
Jason Volk a9ef8744b3 configure: Reserve fpunit option for specific compilation units only; move no-sse4a option. 2020-10-01 16:27:34 -07:00
Jason Volk 25cd479a7c configure: Fix conditions for compiling libicu dependent units. (fixes #165) 2020-09-23 17:40:53 -07:00
Jason Volk fb2693c0ff configure: Cleanup/reorg output. 2020-09-21 20:50:57 -07:00
Jason Volk 5ac0457d55 configure: Support libzstd related in build. 2020-09-21 16:22:23 -07:00
Jason Volk 46fbfb4866 configure: Add suite of conditionals for compiler major version. 2020-09-15 04:33:28 -07:00
Jason Volk 38a6a1049d configure: Additional type section related; cleanup/reorg. 2020-09-12 22:31:06 -07:00
Jason Volk 7eaf60c308 ircd::fs: Add interface to madvise on mapped file. 2020-09-07 17:01:45 -07:00
Jason Volk feb2d41571 configure: Add configure-time libmagick indication. 2020-09-05 15:55:24 -07:00
Jason Volk 539407fc4f configure: Fix warning unknown to GCC. 2020-08-10 03:41:06 -07:00
Jason Volk a4e21ae111 ircd: Check and include standard execution policies header. 2020-07-31 22:12:14 -07:00
Jason Volk 406020572d configure: Add explicit option to enable llvm module building related. 2020-07-31 21:45:39 -07:00
Jason Volk 2f6f2af06f Reserve EXTRA_* flag sets for user.
configure: Move unit configuration section above application settings.

configure: -fasm-blocks not yet useful without GCC parity.
2020-07-30 06:38:51 -07:00
Jason Volk 2317ff4ec0 configure: -fasm-blocks not yet useful without GCC parity. 2020-07-30 06:22:37 -07:00
Jason Volk ea6cbc9e5c configure: Fix -Wmissing-noreturn under DEBUG condition. 2020-07-25 08:28:42 -07:00
Jason Volk 1a756f637f ircd::spirit: Isolate aggressive inlining; remove unit-level setting. 2020-07-24 23:47:08 -07:00
Jason Volk 3f7d628a68 configure: Increase inlining threshold for spirit grammar units.
configure: Move -fno-var-tracking to GCC only.
2020-07-20 02:42:00 -07:00
Jason Volk 7928ad4f9b configure: Move machine tuning flags application section.
configure: Add AC_CANONICAL_HOST detection.

configure: Tune with mfpmath=sse for x86_64.
2020-07-12 15:21:00 -07:00
Jason Volk dcc1b37d25 configure: Disable use of SSE4a instructions. 2020-07-10 23:58:07 -07:00
Jason Volk 31bd80a6d1 Consolidate application of -flax-vector-conversions. 2020-07-10 20:12:33 -07:00
Jason Volk ea4ae41720 configure: Check for libstdc++. 2020-07-10 19:47:23 -07:00
Jason Volk 64f5028e0d configure: Use macro argument quoting. 2020-07-10 19:26:45 -07:00
Jason Volk dd8a4b812f configure: Add vector operation performance warnings for GCC. 2020-07-09 19:45:42 -07:00
Jason Volk 23c104a68a configure: Remove unnecessary; propagate environment. 2020-07-08 16:53:57 -07:00
Jason Volk fc35c32543 configure: Use prepend to compose all flags. 2020-07-08 16:40:10 -07:00
Jason Volk d31edde88b ircd: Cleanup/reorg of stdinc contents; remove experimental. 2020-06-27 14:24:34 -07:00
Jason Volk 4aae2c4963 ircd: Add <cuchar> to standard include group. 2020-06-25 17:19:01 -07:00
Jason Volk 5e0745c3e9 configure: Add explicit mtune even w/ march. 2020-06-20 22:05:44 -07:00
Jason Volk cf605bc195 configure: Type checks for C++11 multibyte character. 2020-06-19 03:04:55 -07:00
Jason Volk daa49dde51 ircd: Add icu support if available. 2020-06-19 03:04:55 -07:00
Jason Volk 0d55f02e9c configure: Preliminary section for libicu w/ unicode header jacket. 2020-06-19 01:09:45 -07:00
Jason Volk 2ad836ce6d configure: Use asynchronous-unwind-tables; minor reorg. 2020-06-18 02:49:50 -07:00
Jason Volk 728da15ad3 configure: Add function checks for mlock2(2); remove standard cruft. 2020-05-29 23:40:24 -07:00
Jason Volk 312493fa8e configure: Enable asm-blocks for clang. 2020-05-29 23:40:24 -07:00
Jason Volk 8a9954f181 configure: PKG_CHECK_MODULES for pbc.
configure: PKG_CHECK_MODULES for libgmp.

configure: PKG_CHECK_MODULES for lz4.

configure: PKG_CHECK_MODULES for snappy.

configure: PKG_CHECK_MODULES for magic.

configure: PKG_CHECK_MODULES for crypto.

configure: PKG_CHECK_MODULES for ssl.
2020-05-10 03:52:16 -07:00
Jason Volk e928c7582e configure: Fix case consistency for several PKG_CHECK_MODULE. 2020-05-09 19:17:02 -07:00
Jason Volk 7dc740e387 configure: Minor string punctuation consistency.
construct: Minor string punctuation.
2020-05-09 17:43:57 -07:00
Jason Volk d9afb64f40 configure: Use PKG_CHECK_MODULES for without included rocksdb. 2020-05-09 17:28:34 -07:00
Jason Volk 56eaf631d3 configure: Use RB_HELP_STRING to control format widths of --help. 2020-05-09 17:28:34 -07:00
Jason Volk 1e6de11d4e configure: Fix PKG_CHECK_MODULES caps; checks for libsodium. 2020-05-09 17:28:34 -07:00
Jason Volk d56c538db7 configure: Add recommended quoting; remove unnecessary quote of AC_HELP_STRING. 2020-05-08 14:45:08 -07:00
Jason Volk dc713f711a configure: Use PKG_CHECK_MODULES; fix jemalloc related.
construct: Add missing MALLOC_LDFLAGS.
2020-05-08 14:20:19 -07:00
Jason Volk b7e78eeb18 configure: Fix defaulting $withval for --with-included-rocksdb 6c2e78128f. 2020-05-07 13:25:46 -07:00
Jason Volk 6c2e78128f configure: Allow --with-included-rocksdb=version $withval for deps/rocksdb checkout. 2020-05-07 00:28:27 -07:00
Jason Volk 676f9ad532 configure: Eliminate condition for shared or static rocksdb. 2020-05-07 00:28:27 -07:00
Jason Volk 9f2bdd3ca2 Upgrade to RocksDB 6.6.4.
ircd::db::database::cache: Remove deprecated interface override.

ircd::db::database::cache: Add new GetCharge() abstract virtual override.

ircd::db: Use set_stats_level() for privated member.
2020-05-05 19:58:37 -07:00
Jason Volk 8c0a6f0ba8 configure: Use action-if-enabled so -lrocksdb is not prepended everywhere. 2020-04-30 03:22:15 -07:00
Jason Volk a87818fb89 configure: Upgrade to RocksDB 5.17.2. 2020-04-29 03:37:35 -07:00
Jason Volk 34dfa7016c configure: Default to better include path for libllvm. 2020-04-22 10:46:23 -07:00
Jason Volk 7601031267 configure: Use PKG_CHECK_MODULES first for libllvm. 2020-04-22 10:13:26 -07:00
Jason Volk 6ec5b464da configure: Fix typo. 2020-04-21 00:18:38 -07:00
Jason Volk ca6a1d127f configure: Add --with-magic-file=path; use as default. 2020-04-19 21:33:57 -07:00
Jason Volk ba3258a8d6 configure: Improve branding_name/version related. 2020-04-19 20:20:43 -07:00
Jason Volk 646911dc80 configure: Use --broken option on git describe invocations. 2020-04-19 20:20:42 -07:00
Jason Volk e7f2a5c1f6 cofngiure: Reorg installation path section; add more output. 2020-04-18 23:20:25 -07:00
Jason Volk 5ea8ac362c Enable link-time optimization for central libraries with clang. 2020-04-18 01:26:31 -07:00
Jason Volk cc8f36ea7f configure: Suppress unknown pragma warnings in non-debug mode. 2020-04-18 00:17:38 -07:00
Jason Volk df29c95dad configure: Add some better clang-specific options for --enable-profile; output. 2020-04-16 20:39:20 -07:00
Jason Volk 4e15ce48ee configure: Suppress -Wmissing-noreturn in debugmode due to various assert behaviours. 2020-04-14 00:16:34 -07:00
Jason Volk 0196ec46f9 configure: Ensure a $assert_type is always set or defaulted. 2020-04-13 23:58:33 -07:00
Jason Volk 21d9f4792b configure: Disable all __assert_fail() overrides unless explicit --with-assert option. 2020-04-11 15:11:43 -07:00
Jason Volk d7d8741a8e configure: Default to not requiring --enable-jemalloc if detected and not otherwise disabled. 2020-04-05 14:32:21 -07:00
Jason Volk 59ee170817 ircd::info: Add sysinfo; gather ram and swap totals on init. 2020-03-16 16:56:07 -07:00
Jason Volk 52fc42c239 configure: Unconditional gold; fix libtool+clang+ld.gold with -Wc argument. 2020-03-10 22:14:40 -07:00
Jason Volk a8e9b3d202 configure: Initialize flags before LT_INIT. 2020-03-10 22:00:48 -07:00
Jason Volk 8d061be07f configure: Fix reported error generated circa line 18840. 2020-03-10 10:26:10 -07:00
Jason Volk a466917cf9 configure: Set explicit ld.gold for now. 2020-03-09 18:48:25 -07:00
Jason Volk f9a6381b8e configure: Set -Wreturn-type as error in clang; remove condition for gcc. 2020-03-09 14:41:36 -07:00
Jason Volk acf94cce00 configure: Always set $assert_type so RB_ASSERT is not blacked out. 2020-03-09 10:10:30 -07:00
Jason Volk dfc023bb37 configure: Check for the gnu/lib-names.h header. 2020-03-08 18:18:27 -07:00
Jason Volk a29ec982fd configure: Check for getprotobyname(3), libnss at configure; minor cleanup. 2020-03-08 16:02:12 -07:00
Jason Volk 0e25a2e055 ircd::net::dns: Add support for netdb; interface to getservbyname(3). 2020-03-06 15:43:24 -08:00
Jason Volk 972830e188 configure: Improve libLLVM related; add default flags. 2020-02-21 14:42:39 -08:00
Jason Volk 992fc10be5 configure: Ignore unknown attributes in non-debug builds. 2020-02-21 12:22:56 -08:00
Jason Volk 50cf4d350c configure: Remove -Wno-suggest. 2020-02-19 13:25:25 -08:00
Jason Volk 0f704b3e05 configure: Disable sections for clang. 2020-02-11 15:36:34 -08:00
Jason Volk fe9f4aa7eb configure: Mirror the base CFLAGS and CXXFLAGS up to the philology checks. 2020-02-03 21:42:10 -08:00
Jason Volk 2eeee6aa48 configure: Add submodule dependency for libpbc. 2020-02-03 21:41:46 -08:00
Jason Volk 9106e927ba configure: Fix libgmp check. 2020-02-03 19:02:23 -08:00
Jason Volk cbd95adb49 configure: Add libllvm support check to configure. 2020-02-03 11:43:58 -08:00
Jason Volk 81335d5aeb configure: Fix optimization flags not supported by clang. 2020-02-01 22:18:49 -08:00
Jason Volk 7883164bce configure: Update package recommendation from libssl1.0-dev to libssl-dev. [ci skip] 2020-01-02 09:30:36 -08:00
Jason Volk 6d0095f38c configure: Upgrade to esr68. 2019-12-26 11:24:42 -08:00
Jason Volk 6dab2b56e1 configure: Make -Wsuggest warnings in debug builds only. 2019-12-01 15:56:09 -08:00
Jason Volk f0bbac466b configure: Disable endbr instruction generation for now; needs conditional. 2019-12-01 15:56:09 -08:00
Jason Volk eb70e85bc3 tools: Add cxx version detection m4 macro. 2019-12-01 14:10:03 -08:00
Jason Volk e938f56050 configure: Move some macros to a ratbox m4 suite; minor cleanup. 2019-12-01 14:10:03 -08:00
Jason Volk 634599287b configure: Tweak/reorg optimization unconditional flags. 2019-11-30 18:55:24 -08:00
Jason Volk f8090b9ae5 configure: Remove experimental asynchronous non-call-exceptions at project scope. 2019-11-30 18:54:13 -08:00
Jason Volk 4ef66a6c9a configure: Remove errant section-anchors options. 2019-10-12 13:16:24 -07:00
Jason Volk fb13b1158e configure: Tweak gcc optimization options. 2019-10-08 21:22:34 -07:00
Jason Volk d2dd638a8a configure: Add AM_PROG_AS macro. 2019-10-06 00:14:22 -07:00
Jason Volk 925978aaa5 configure: Disable fweb for any debug compilations; disable for now. 2019-10-05 20:28:54 -07:00
Jason Volk 60e818b055 configure: Disable adding the ld.gold code folding flag for all units. 2019-10-05 20:28:54 -07:00
Jason Volk 8aa55aca41 configure: Remove GCC flag now enabled by default. 2019-10-05 20:02:18 -07:00
Jason Volk d3809d43e5 Reorganize Makefiles. 2019-09-27 19:35:26 -07:00
Jason Volk 89e0a7fc82 ircd: Move matrix application related to derived library. 2019-09-27 19:35:26 -07:00
Jason Volk 1f76fe20cb configure: Fix -Wduplicate-cond to be -Wduplicated-cond. 2019-09-25 12:56:29 -07:00
Jason Volk 966e2ce17e configure: Check for execinfo header. 2019-09-19 16:37:45 -07:00
Jason Volk 41cfb47de4 ircd: Add strncpy++ tool. 2019-09-18 09:50:14 -07:00
Jason Volk 9aaef347d5 configure: Check for ICMP support on linux platform. 2019-08-22 08:53:26 -07:00
Jason Volk bfbf8d3852 configure: Generate verbose object source. 2019-08-19 20:38:22 -07:00
Jason Volk dffb03a562 ircd: Cleanup / simplify assert related interface. 2019-08-11 23:30:50 -07:00
Jason Volk 125f53872c ircd::fs: Preliminary io_uring infrastructure plumbing. 2019-08-11 01:39:30 -07:00
Jason Volk ff66f5c8d5 configure: Check for linux/io_uring.h 2019-08-10 23:22:28 -07:00
Jason Volk 6181a4828d configure: Cleanup autoconf function checks. 2019-08-08 15:51:35 -07:00
Jason Volk a66db65a1d ircd: Tweak suggestion output; satisfy several suggestions. 2019-08-05 16:20:48 -07:00
Jason Volk 86c4e2be36 configure: Allow GCC to suggest more attributes. 2019-08-05 15:09:28 -07:00
Jason Volk 5c158f2a83 configure: Enable warnings when throwing into a noexcept. 2019-08-05 14:51:53 -07:00
Jason Volk d004720fdd configure: Fix some AC_SUBST's. 2019-07-19 18:17:53 -07:00
Jason Volk df5f00d145 configure: Fix clang-7 incompatible optimization cxxflags. 2019-07-19 16:25:42 -07:00
Jason Volk 2aafbaff5c configure: Fix includedir and install path related. 2019-07-12 19:29:51 -07:00
Jason Volk 9bff6a5b0d Revert using jemalloc by default
Revert "configure: Improve defaulting by 1abbd7a2dcf7c0118ea4e699b900014a4d15eb66"

This reverts commit 9129be58eb.

Revert "configure: Use jemalloc by default if available."

This reverts commit 1abbd7a2dc.
2019-07-04 00:43:49 -07:00
Jason Volk 9129be58eb configure: Improve defaulting by 1abbd7a2dc 2019-07-03 21:44:45 -07:00
Jason Volk c67daf7bc9 configure: Rename enable alloc-libs -> malloc-libs. 2019-07-03 21:43:07 -07:00
Jason Volk 1abbd7a2dc configure: Use jemalloc by default if available. 2019-07-03 19:03:24 -07:00
Jason Volk ea0a1df3a1 configure: Add options for third-party allocator selection/deselection and inclusion. 2019-07-03 18:02:54 -07:00
Jason Volk e0e36dfabd configure: Add -Wno-unknown-warning-option for clang only for GCC conflict noise. 2019-06-24 01:33:00 -06:00
Jason Volk 30ee090663 configure: No -Werror=return-type for clang due to remaining extern C linkage complaints. 2019-06-24 01:22:10 -06:00
Jason Volk fc89e02ff7 configure: Remove -pthread cxxflag for clang. 2019-06-24 01:19:18 -06:00
Jason Volk f3afd69bca configure: Remove bnd_instrument related; deprecated by gcc-9. 2019-06-22 16:56:43 -06:00
Jason Volk e1841a7159 configure: Condition options for clang compatibility. 2019-06-21 02:26:00 -07:00
Jason Volk 78bc2e5392 configure: Check for experimental pmr. 2019-06-17 13:16:40 -07:00
Jason Volk 992ed22846 configure: Fix sodium variable assignments. 2019-06-13 16:29:10 -07:00
Jason Volk 3d04ed9ad0 configure: Remove the CPPDEFINE for RB_TIME_CONFIGURED. 2019-06-13 15:03:32 -06:00
Jason Volk 6aae730d5a configure: Improve sodium related macros; fix missing SODIUM_LIBS assignment. 2019-06-13 13:51:49 -06:00
Jason Volk 3794c3e7df configure: Document why we use AC_CHECK_LIB inside PKG_CHECK_MODULES here. [ci skip] 2019-06-06 15:11:12 -07:00
Jason Volk 2b43a5a92b configure: Add --enable-compact for the smallest possible building and linking. 2019-06-06 05:29:07 -07:00
Jason Volk 3267c522ee configure: Fallback to AC_CHECK_LIB if PKG_CHECK_MODULES fails. 2019-06-06 04:44:00 -07:00
Jason Volk 160734e3b4 configure: Define HAVE_SODIUM in config.h on pkg found. 2019-06-06 03:54:37 -07:00
Danilo Spinella 731e474b10 configure: Use pkg check for libsodium. 2019-06-06 03:45:30 -07:00
Jason Volk 5ab5ef53cf configure: Disable generating synchronization guards around static initializations. 2019-06-05 13:57:04 -07:00
Jason Volk 29cdca5fbe ircd::mods::ldso: Add a strtab lookup tool. 2019-06-03 21:13:23 -07:00
Jason Volk d598bde717 ircd::info: Get the glibc linked ABI version. 2019-06-01 22:22:44 -07:00
Jason Volk 6b956d12b9 configure: Check for ImageMagick++ support. 2019-05-28 19:54:00 -07:00
Jason Volk 08fafd44b1 ircd::mods: Add platform-dependent ldso interface. 2019-05-28 15:39:57 -07:00
Jason Volk b8744b2a8b configure: Use -Wno-endif-labels rather than -Wno-extra-tokens. 2019-05-28 14:51:17 -07:00
Jason Volk 008325d6e8 configure: Disable -Wextra-tokens. 2019-05-28 03:46:18 -07:00
Jason Volk e99e2dad33 configure: Check for link.h. 2019-05-27 18:36:12 -07:00
Jason Volk 0c01304a94 configure: Move debug switches to separate condition. 2019-05-16 22:36:19 -07:00
Jason Volk 561e9877dd configure: Align functions in non-optimized builds. 2019-05-15 21:12:59 -07:00
Jason Volk adc5e7fb6c configure: Remove gdwarf-4 for default; use glevel=3. 2019-05-15 21:12:59 -07:00
Jason Volk ca0cf98f37 configure: Use -fnothrow-opt. 2019-05-15 21:12:59 -07:00
Jason Volk f121188ded configure: Make this define less useless. 2019-05-14 14:46:47 -07:00
Jason Volk c114191251 configure: Check for fcntl.h. 2019-05-03 06:08:15 -07:00
Jason Volk 55fc2c6f76 ircd::prof: Add callgrind hypercall suite. 2019-04-19 05:53:54 -07:00
Jason Volk e861743203 configure: Start an instrumentation header check section; add valgrind/memcheck.h. 2019-04-17 00:50:03 -07:00
Jason Volk dc0fbe9e54 configure: Add --enable-untuned for more generic binaries. 2019-04-12 12:01:13 -07:00
Jason Volk 3d6dd0733f configure: Sample nproc for -flto thread count. 2019-04-09 16:06:17 -07:00