]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
m4: reposition USE_RUSTLS="yes" for pkg-config
authorDaniel McCarney <daniel@binaryparadox.net>
Sun, 31 Mar 2024 20:19:10 +0000 (16:19 -0400)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 31 Mar 2024 21:22:17 +0000 (23:22 +0200)
It's necessary to set this var to "yes" _after_ AC_DEFINE and AC_SUBST
in order for a later `test` to pass so that `check_for_ca_bundle=1` ends
up being set. This is in turn required for the default CA certificate
bundle to be set when building w/ rustls & pkg-config.

Reported-by: Matt Jolly
Fixes #13248
Closes #13251

m4/curl-rustls.m4

index 574496ed41eafe1aec7563ad530c7294fab90c53..ef8d7dd4b5505b9ae962b6755b98626d72b99962 100644 (file)
@@ -137,10 +137,10 @@ if test "x$OPT_RUSTLS" != xno; then
       dnl additional libs may be necessary.  Hope that we
       dnl don't need any.
       LIBS="$SSL_LIBS $LIBS"
-      USE_RUSTLS="yes"
       ssl_msg="rustls"
       AC_DEFINE(USE_RUSTLS, 1, [if rustls is enabled])
       AC_SUBST(USE_RUSTLS, [1])
+      USE_RUSTLS="yes"
       RUSTLS_ENABLED=1
       test rustls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
     else