]> git.ipfire.org Git - thirdparty/curl.git/commit
curl-rustls.m4: add pkg-config support to rustls detection
authorMatt Jolly <kangie@gentoo.org>
Sun, 24 Mar 2024 09:00:09 +0000 (19:00 +1000)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 25 Mar 2024 09:16:50 +0000 (10:16 +0100)
commit647e86a3efe1eea7a2a456c009cfe1eb55fe48eb
treedc07293a3a66a95c9422fbc2abbd6f8241616092
parentb564a5f5d5280387a88025c5f90260017847add4
curl-rustls.m4: add pkg-config support to rustls detection

Based on the existing openssl pkg-config detection, this commit tries to
use pkg-config to find `rustls` then falls back to the current approach
if that fails.

We use the following logic:

- if no path is provided, just use pkg-config, if it's not there we have
  a problem!
- if a path is provided, try pkg-config
  + if pkg-config fails, try and find rustls directly

Closes #13179
m4/curl-rustls.m4