Jim Hague
ab49db8aa5
Tighten Nettle version checking, and fix build issue with Nettle >= 3.4.
...
Nettle 3.4 introduced accessor functions for obtaining nettle_secp_256r1 and nettle_secp_384r1. Use them if present.
Fixes #458
2020-02-25 13:30:25 +00:00
Willem Toorop
dadddb0d7b
Detect if __func__ can be used with debugging
2020-02-20 21:09:17 +01:00
Willem Toorop
17d5627529
Make TCP_FASTOPEN work again for linux and FreeBSD
2019-12-13 16:18:53 +01:00
Sara Dickinson
38f59b7bea
Remove libidn support
...
More updates to README
2019-11-18 14:05:50 +00:00
Jim Hague
277a4ae9c7
Add test for new libuv callback styles.
...
This fixes a build warning on Mac.
2019-11-13 18:07:31 +00:00
Jim Hague
c66d772c97
Add libidn2 to list of library names searched when looking for libidn2.
...
Other find packages do this, and omitting it stops it from finding vcpkg library.
2019-10-31 12:45:46 +00:00
Jim Hague
a46ded25b6
Implement enabling and checking for TCP Fast Open.
2019-10-30 17:21:25 +00:00
Jim Hague
cbed43ed59
Add ENABLE_EDNS_COOKIES.
2019-10-30 14:09:13 +00:00
Jim Hague
74d9404759
FIrst pass at GnuTLS support.
2019-10-30 14:02:32 +00:00
Jim Hague
f34218d812
Correct comments.
2019-10-30 13:41:15 +00:00
Jim Hague
633724327f
Get CMake build working under MinGW.
...
The MinGW linker does not like -VERSION: one little bit.
I rearranged the order of the ifs hoping that MinGW and friends would be a UNIX, but it was not to be.
2019-10-29 18:10:04 +00:00
Jim Hague
6a043d2fac
Add libuv extension.
2019-10-29 09:15:04 +00:00
Jim Hague
3604add64f
Correct header name.
2019-10-29 09:14:36 +00:00
Jim Hague
c359a0b65e
Add libev extension.
2019-10-29 09:13:57 +00:00
Jim Hague
02561c2d7e
Add building the libevent extension.
...
Insist on libevent2.
2019-10-28 18:11:42 +00:00
Jim Hague
4ab7f8f757
Shared libraries - move versioning and export list into functions.
...
Also for Windows add looking for a template .RC of the target name and adding that to the build too.
2019-10-28 17:11:00 +00:00
Jim Hague
38bf04c86d
Small comment typo.
2019-10-28 09:57:49 +00:00
Jim Hague
1da968a35f
Detect and use libidn and libidn2 if present.
2019-10-28 09:57:29 +00:00
Jim Hague
164b089011
Add option to enable MDNS support.
2019-10-25 17:18:29 +01:00
Jim Hague
d9e5f405e7
Add option to build Stubby from subproject, and remove Stubby-only items from getdns config.
...
This requires the latest version of the Stubby CMake build to work.
2019-10-25 16:16:04 +01:00
Jim Hague
7adc1fc4ab
Remove copyright notices copied from existing files in error.
2019-10-25 15:51:30 +01:00
Jim Hague
9dcd8482f5
Add stub only mode, on by default.
...
If disabled, it needs to drag in libunbound. So do all that.
2019-10-24 17:40:37 +01:00
Jim Hague
072bdd9a6b
Pay attention to hint directories for Check.
...
Allow specifying a base hint directory, and look there and in include/libs underneath it.
2019-10-24 17:30:41 +01:00
Jim Hague
55a0456b67
Add cipher configuration options.
2019-10-24 14:21:25 +01:00
Jim Hague
e4333b13df
Add debug message options.
2019-10-24 13:43:20 +01:00
Jim Hague
74bbfc02fa
Ensure library locations are all marked as advanced options.
2019-10-24 12:04:27 +01:00
Jim Hague
b5f260376e
Expose file paths as options.
2019-10-24 11:57:16 +01:00
Jim Hague
07e617579d
Add fd setsize configuration.
2019-10-24 11:15:41 +01:00
Jim Hague
5f3d5191b0
Make visible existing options that are visible in autoconf.
...
Also punctuate option text consistently.
2019-10-24 11:14:20 +01:00
Jim Hague
d447999c60
Add check for check library, and if found add the main test module.
...
Note that tests_dict/list/stub_async/namespaces are built, but not run. I don't know why.
2019-10-23 18:33:50 +01:00
Jim Hague
cd62f2b716
Don't include OpenSSL headers in config.h.
...
Add an include of stdlib.h to various files that were relying on config.h to drag it in. I don't think config.h should be pulling in standard C headers.
2019-10-15 18:37:10 +01:00
Jim Hague
8362a183e8
Remove use of pkg-config to see if libbsd is present.
...
Instead check for the library directly.In the process, fix the detection of the declarations and functions in libbsd so they work.
2019-10-15 18:35:06 +01:00
Jim Hague
dd70108558
Windows does not have mkstemp(). Add compat version.
...
The compat version is Windows-specific.
2019-10-15 16:54:13 +01:00
Jim Hague
323d76d7ae
Add the rest of the compat functions to the build, if required.
...
Remove any preprocess guards from the sources, and only include them in the build if required. Add some additional required Windows libraries.
2019-10-15 16:53:03 +01:00
Jim Hague
b8df26194e
Add symbols for target endianness.
2019-10-14 09:47:03 +01:00
Jim Hague
7a0a2f712d
Add support for building on Windows.
...
This should support both native Visual Studio builds and MinGW builds.
2019-10-14 09:44:28 +01:00
Jim Hague
dc6cadebbc
Add OpenSSL function checks as per autoconf.
...
Well, those function checks that are actually used in the code, anyway.
2019-10-10 12:30:50 +01:00
Jim Hague
c367b39c13
Update build to get the current source building.
...
Hardwire OpenSSL and do the minimum necessary to get libgetdns building.
2019-10-09 17:19:18 +01:00
Jim Hague
3152a4112e
Protect more #includes.
...
Somewhat illogical, really. A lot are standard headers.
2018-01-12 16:34:23 +00:00
Jim Hague
a906710269
Add missing function sufficient to compile Stubby on Xenial and Mac.
...
This includes the select and poll default event loops, some missing getdns source files and pleasingly now results in a warning-free build.
2018-01-08 18:59:54 +00:00
Jim Hague
1ecc7b3c26
Initial version of CMake build.
...
This is just a basic build of the library. No options are support, and the only builds tested are Xenial and MacOS (the latter using the Brew openssl package, and so requiring -DOPENSSL_ROOT_DIR=/usr/local/Cellar/openssl/1.0.2l option on the cmake command line).
Using the library is untested.
2018-01-08 15:36:35 +00:00