curl-config.1 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. .\" generated by cd2nroff 0.1 from curl-config.md
  2. .TH curl-config 1 "2025-01-17" curl-config
  3. .SH NAME
  4. curl\-config \- Get information about a libcurl installation
  5. .SH SYNOPSIS
  6. \fBcurl\-config [options]\fP
  7. .SH DESCRIPTION
  8. \fBcurl\-config\fP
  9. displays information about the curl and libcurl installation.
  10. .SH OPTIONS
  11. .IP --ca
  12. Displays the built\-in path to the CA cert bundle this libcurl uses.
  13. .IP --cc
  14. Displays the compiler used to build libcurl.
  15. .IP --cflags
  16. Set of compiler options (CFLAGS) to use when compiling files that use
  17. libcurl. Currently that is only the include path to the curl include files.
  18. .IP "--checkfor [version]"
  19. Specify the oldest possible libcurl version string you want, and this script
  20. returns 0 if the current installation is new enough or it returns 1 and
  21. outputs a text saying that the current version is not new enough. (Added in
  22. 7.15.4)
  23. .IP --configure
  24. Displays the arguments given to configure when building curl.
  25. .IP --feature
  26. Lists what particular main features the installed libcurl was built with. At
  27. the time of writing, this list may include SSL, KRB4 or IPv6. Do not assume
  28. any particular order. The keywords are separated by newlines. There may be
  29. none, one, or several keywords in the list.
  30. .IP --help
  31. Displays the available options.
  32. .IP --libs
  33. Shows the complete set of libs and other linker options you need in order to
  34. link your application with libcurl.
  35. .IP --prefix
  36. This is the prefix used when libcurl was installed. Libcurl is then installed
  37. in $prefix/lib and its header files are installed in $prefix/include and so
  38. on. The prefix is set with "configure \--prefix".
  39. .IP --protocols
  40. Lists what particular protocols the installed libcurl was built to support. At
  41. the time of writing, this list may include HTTP, HTTPS, FTP, FTPS, FILE,
  42. TELNET, LDAP, DICT and many more. Do not assume any particular order. The
  43. protocols are listed using uppercase and are separated by newlines. There may
  44. be none, one, or several protocols in the list. (Added in 7.13.0)
  45. .IP --ssl-backends
  46. Lists the SSL backends that were enabled when libcurl was built. It might be
  47. no, one or several names. If more than one name, they appear comma\-separated.
  48. (Added in 7.58.0)
  49. .IP --static-libs
  50. Shows the complete set of libs and other linker options you need in order to
  51. link your application with libcurl statically. (Added in 7.17.1)
  52. .IP --version
  53. Outputs version information about the installed libcurl.
  54. .IP --vernum
  55. Outputs version information about the installed libcurl, in numerical mode.
  56. This shows the version number, in hexadecimal, using 8 bits for each part:
  57. major, minor, and patch numbers. This makes libcurl 7.7.4 appear as 070704 and
  58. libcurl 12.13.14 appear as 0c0d0e... Note that the initial zero might be
  59. omitted. (This option was broken in the 7.15.0 release.)
  60. .SH EXAMPLES
  61. What linker options do I need when I link with libcurl?
  62. .nf
  63. $ curl-config --libs
  64. .fi
  65. What compiler options do I need when I compile using libcurl functions?
  66. .nf
  67. $ curl-config --cflags
  68. .fi
  69. How do I know if libcurl was built with SSL support?
  70. .nf
  71. $ curl-config --feature | grep SSL
  72. .fi
  73. What\(aqs the installed libcurl version?
  74. .nf
  75. $ curl-config --version
  76. .fi
  77. How do I build a single file with a one\-line command?
  78. .nf
  79. $ `curl-config --cc --cflags` -o example source.c `curl-config --libs`
  80. .fi
  81. .SH SEE ALSO
  82. .BR curl (1)