]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
build: clarify CA embed is for curl tool, mark default, improve summary
authorViktor Szakats <commit@vsz.me>
Tue, 24 Sep 2024 19:07:30 +0000 (21:07 +0200)
committerViktor Szakats <commit@vsz.me>
Wed, 25 Sep 2024 07:10:45 +0000 (09:10 +0200)
- say that CA embed is for the curl tool.
- show "no" in summary when there is no CA embed.
- cmake: sync wording.

Closes #15035

CMakeLists.txt
acinclude.m4
configure.ac

index d23ed936872ad99585bc4e901093d604c3e15377..e7b7e849ec2fe28f8a9f6320564f208ed7e94613 100644 (file)
@@ -1274,7 +1274,7 @@ if(_curl_ca_bundle_supported)
   set(CURL_CA_PATH "auto" CACHE
     STRING "Location of default CA path. Set 'none' to disable or 'auto' for auto-detection. Defaults to 'auto'.")
   set(CURL_CA_EMBED "" CACHE
-    STRING "Path to the CA bundle to embed into the curl tool.")
+    STRING "Path to the CA bundle to embed in the curl tool.")
 
   if(CURL_CA_BUNDLE STREQUAL "")
     message(FATAL_ERROR "Invalid value of CURL_CA_BUNDLE. Use 'none', 'auto' or file path.")
index 575a8f309ab3e65e55814003256d3146cd75362d..ef08969829fcfada75571082c44e7c21ac146f0b 100644 (file)
@@ -1344,12 +1344,12 @@ dnl Check if a ca-bundle should be embedded
 
 AC_DEFUN([CURL_CHECK_CA_EMBED], [
 
-  AC_MSG_CHECKING([CA cert bundle path to embed])
+  AC_MSG_CHECKING([CA cert bundle path to embed in the curl tool])
 
   AC_ARG_WITH(ca-embed,
 AS_HELP_STRING([--with-ca-embed=FILE],
-  [Absolute path to a file containing CA certificates (example: /etc/ca-bundle.crt)])
-AS_HELP_STRING([--without-ca-embed], [Don't embed a default CA bundle]),
+  [Absolute path to a file containing CA certificates to embed in the curl tool (example: /etc/ca-bundle.crt)])
+AS_HELP_STRING([--without-ca-embed], [Don't embed a default CA bundle in the curl tool]),
   [
     want_ca_embed="$withval"
     if test "x$want_ca_embed" = "xyes"; then
index f96c6f52469eb180f95b931580507c5f0f883570..9565055c7e5198cf3e976a938d11743bb845055c 100644 (file)
@@ -5208,6 +5208,9 @@ if test "x$want_curldebug" = "xyes"; then
 fi
 if test "x$CURL_CA_EMBED" != "x"; then
   SUPPORT_FEATURES="$SUPPORT_FEATURES CAcert"
+  CURL_CA_EMBED_msg="$CURL_CA_EMBED"
+else
+  CURL_CA_EMBED_msg='no'
 fi
 
 dnl replace spaces with newlines
@@ -5410,7 +5413,7 @@ AC_MSG_NOTICE([Configured to build curl/libcurl:
   SSPI:             ${curl_sspi_msg}
   ca cert bundle:   ${ca}${ca_warning}
   ca cert path:     ${capath}${capath_warning}
-  ca cert embed:    ${CURL_CA_EMBED}
+  ca cert embed:    ${CURL_CA_EMBED_msg}
   ca fallback:      ${with_ca_fallback}
   LDAP:             ${curl_ldap_msg}
   LDAPS:            ${curl_ldaps_msg}