113498266Sopenharmony_ci--- 213498266Sopenharmony_cic: Copyright (C) Daniel Stenberg, <daniel.se>, et al. 313498266Sopenharmony_ciSPDX-License-Identifier: curl 413498266Sopenharmony_ciTitle: curl-config 513498266Sopenharmony_ciSection: 1 613498266Sopenharmony_ciSource: curl-config 713498266Sopenharmony_ciSee-also: 813498266Sopenharmony_ci - curl (1) 913498266Sopenharmony_ci--- 1013498266Sopenharmony_ci 1113498266Sopenharmony_ci# NAME 1213498266Sopenharmony_ci 1313498266Sopenharmony_cicurl-config - Get information about a libcurl installation 1413498266Sopenharmony_ci 1513498266Sopenharmony_ci# SYNOPSIS 1613498266Sopenharmony_ci 1713498266Sopenharmony_ci**curl-config [options]** 1813498266Sopenharmony_ci 1913498266Sopenharmony_ci# DESCRIPTION 2013498266Sopenharmony_ci 2113498266Sopenharmony_ci**curl-config** 2213498266Sopenharmony_cidisplays information about the curl and libcurl installation. 2313498266Sopenharmony_ci 2413498266Sopenharmony_ci# OPTIONS 2513498266Sopenharmony_ci 2613498266Sopenharmony_ci## --ca 2713498266Sopenharmony_ci 2813498266Sopenharmony_ciDisplays the built-in path to the CA cert bundle this libcurl uses. 2913498266Sopenharmony_ci 3013498266Sopenharmony_ci## --cc 3113498266Sopenharmony_ci 3213498266Sopenharmony_ciDisplays the compiler used to build libcurl. 3313498266Sopenharmony_ci 3413498266Sopenharmony_ci## --cflags 3513498266Sopenharmony_ci 3613498266Sopenharmony_ciSet of compiler options (CFLAGS) to use when compiling files that use 3713498266Sopenharmony_cilibcurl. Currently that is only the include path to the curl include files. 3813498266Sopenharmony_ci 3913498266Sopenharmony_ci## --checkfor [version] 4013498266Sopenharmony_ci 4113498266Sopenharmony_ciSpecify the oldest possible libcurl version string you want, and this 4213498266Sopenharmony_ciscript will return 0 if the current installation is new enough or it 4313498266Sopenharmony_cireturns 1 and outputs a text saying that the current version is not new 4413498266Sopenharmony_cienough. (Added in 7.15.4) 4513498266Sopenharmony_ci 4613498266Sopenharmony_ci## --configure 4713498266Sopenharmony_ci 4813498266Sopenharmony_ciDisplays the arguments given to configure when building curl. 4913498266Sopenharmony_ci 5013498266Sopenharmony_ci## --feature 5113498266Sopenharmony_ci 5213498266Sopenharmony_ciLists what particular main features the installed libcurl was built with. At 5313498266Sopenharmony_cithe time of writing, this list may include SSL, KRB4 or IPv6. Do not assume 5413498266Sopenharmony_ciany particular order. The keywords will be separated by newlines. There may be 5513498266Sopenharmony_cinone, one, or several keywords in the list. 5613498266Sopenharmony_ci 5713498266Sopenharmony_ci## --help 5813498266Sopenharmony_ci 5913498266Sopenharmony_ciDisplays the available options. 6013498266Sopenharmony_ci 6113498266Sopenharmony_ci## --libs 6213498266Sopenharmony_ci 6313498266Sopenharmony_ciShows the complete set of libs and other linker options you will need in order 6413498266Sopenharmony_cito link your application with libcurl. 6513498266Sopenharmony_ci 6613498266Sopenharmony_ci## --prefix 6713498266Sopenharmony_ci 6813498266Sopenharmony_ciThis is the prefix used when libcurl was installed. Libcurl is then installed 6913498266Sopenharmony_ciin $prefix/lib and its header files are installed in $prefix/include and so 7013498266Sopenharmony_cion. The prefix is set with "configure --prefix". 7113498266Sopenharmony_ci 7213498266Sopenharmony_ci## --protocols 7313498266Sopenharmony_ci 7413498266Sopenharmony_ciLists what particular protocols the installed libcurl was built to support. At 7513498266Sopenharmony_cithe time of writing, this list may include HTTP, HTTPS, FTP, FTPS, FILE, 7613498266Sopenharmony_ciTELNET, LDAP, DICT and many more. Do not assume any particular order. The 7713498266Sopenharmony_ciprotocols will be listed using uppercase and are separated by newlines. There 7813498266Sopenharmony_cimay be none, one, or several protocols in the list. (Added in 7.13.0) 7913498266Sopenharmony_ci 8013498266Sopenharmony_ci## --ssl-backends 8113498266Sopenharmony_ci 8213498266Sopenharmony_ciLists the SSL backends that were enabled when libcurl was built. It might be 8313498266Sopenharmony_cino, one or several names. If more than one name, they will appear 8413498266Sopenharmony_cicomma-separated. (Added in 7.58.0) 8513498266Sopenharmony_ci 8613498266Sopenharmony_ci## --static-libs 8713498266Sopenharmony_ci 8813498266Sopenharmony_ciShows the complete set of libs and other linker options you will need in order 8913498266Sopenharmony_cito link your application with libcurl statically. (Added in 7.17.1) 9013498266Sopenharmony_ci 9113498266Sopenharmony_ci## --version 9213498266Sopenharmony_ci 9313498266Sopenharmony_ciOutputs version information about the installed libcurl. 9413498266Sopenharmony_ci 9513498266Sopenharmony_ci## --vernum 9613498266Sopenharmony_ci 9713498266Sopenharmony_ciOutputs version information about the installed libcurl, in numerical mode. 9813498266Sopenharmony_ciThis shows the version number, in hexadecimal, using 8 bits for each part: 9913498266Sopenharmony_cimajor, minor, and patch numbers. This makes libcurl 7.7.4 appear as 070704 and 10013498266Sopenharmony_cilibcurl 12.13.14 appear as 0c0d0e... Note that the initial zero might be 10113498266Sopenharmony_ciomitted. (This option was broken in the 7.15.0 release.) 10213498266Sopenharmony_ci 10313498266Sopenharmony_ci# EXAMPLES 10413498266Sopenharmony_ci 10513498266Sopenharmony_ciWhat linker options do I need when I link with libcurl? 10613498266Sopenharmony_ci~~~ 10713498266Sopenharmony_ci $ curl-config --libs 10813498266Sopenharmony_ci~~~ 10913498266Sopenharmony_ciWhat compiler options do I need when I compile using libcurl functions? 11013498266Sopenharmony_ci~~~ 11113498266Sopenharmony_ci $ curl-config --cflags 11213498266Sopenharmony_ci~~~ 11313498266Sopenharmony_ciHow do I know if libcurl was built with SSL support? 11413498266Sopenharmony_ci~~~ 11513498266Sopenharmony_ci $ curl-config --feature | grep SSL 11613498266Sopenharmony_ci~~~ 11713498266Sopenharmony_ciWhat's the installed libcurl version? 11813498266Sopenharmony_ci~~~ 11913498266Sopenharmony_ci $ curl-config --version 12013498266Sopenharmony_ci~~~ 12113498266Sopenharmony_ciHow do I build a single file with a one-line command? 12213498266Sopenharmony_ci~~~ 12313498266Sopenharmony_ci $ `curl-config --cc --cflags` -o example source.c `curl-config --libs` 12413498266Sopenharmony_ci~~~ 125