Grant Limberg be7ce4110e Revert "Delete and re-add libpqxx-7.7.3 due to weird corruption." 3 years ago
..
README.md be7ce4110e Revert "Delete and re-add libpqxx-7.7.3 due to weird corruption." 3 years ago
charconv_float.cxx be7ce4110e Revert "Delete and re-add libpqxx-7.7.3 due to weird corruption." 3 years ago
charconv_int.cxx be7ce4110e Revert "Delete and re-add libpqxx-7.7.3 due to weird corruption." 3 years ago
cmp.cxx be7ce4110e Revert "Delete and re-add libpqxx-7.7.3 due to weird corruption." 3 years ago
concepts.cxx be7ce4110e Revert "Delete and re-add libpqxx-7.7.3 due to weird corruption." 3 years ago
cxa_demangle.cxx be7ce4110e Revert "Delete and re-add libpqxx-7.7.3 due to weird corruption." 3 years ago
fs.cxx be7ce4110e Revert "Delete and re-add libpqxx-7.7.3 due to weird corruption." 3 years ago
gcc_pure.cxx be7ce4110e Revert "Delete and re-add libpqxx-7.7.3 due to weird corruption." 3 years ago
gcc_visibility.cxx be7ce4110e Revert "Delete and re-add libpqxx-7.7.3 due to weird corruption." 3 years ago
likely.cxx be7ce4110e Revert "Delete and re-add libpqxx-7.7.3 due to weird corruption." 3 years ago
multidim-subscript.cxx be7ce4110e Revert "Delete and re-add libpqxx-7.7.3 due to weird corruption." 3 years ago
need_fslib.cxx be7ce4110e Revert "Delete and re-add libpqxx-7.7.3 due to weird corruption." 3 years ago
poll.cxx be7ce4110e Revert "Delete and re-add libpqxx-7.7.3 due to weird corruption." 3 years ago
sleep_for.cxx be7ce4110e Revert "Delete and re-add libpqxx-7.7.3 due to weird corruption." 3 years ago
span.cxx be7ce4110e Revert "Delete and re-add libpqxx-7.7.3 due to weird corruption." 3 years ago
strerror_r.cxx be7ce4110e Revert "Delete and re-add libpqxx-7.7.3 due to weird corruption." 3 years ago
strerror_s.cxx be7ce4110e Revert "Delete and re-add libpqxx-7.7.3 due to weird corruption." 3 years ago
thread_local.cxx be7ce4110e Revert "Delete and re-add libpqxx-7.7.3 due to weird corruption." 3 years ago
year_month_day.cxx be7ce4110e Revert "Delete and re-add libpqxx-7.7.3 due to weird corruption." 3 years ago

README.md

Configuration tests

Libpqxx comes with support for different build systems: the GNU autotools, CMake, Visual Studio's "nmake", and raw GNU "make" on Windows.

For several of these build systems, we need to test things like "does this compiler environment support std::to_chars for floating-point types?"

We test these things by trying to compile a particular snippet of code, and seeing whether that succeeds.

To avoid duplicating those snippets for multiple build systems, we put them here. Both the autotools configuration and the CMake configuration can refer to them that way.

It took a bit of nasty magic to read a C++ source file into m4 and treat it as a string literal, without macro expansion. There is every chance that I missed something, so be prepared for tests failing for unexpected reasons! Some C++ syntax may end up having an unforeseen meaning in m4, and screw up the handling of the code snippet. Re-configure, and read your logs carefully after editing these snippets.