1curl-config(1)                    curl-config                   curl-config(1)
2
3
4

NAME

6       curl-config - Get information about a libcurl installation
7

SYNOPSIS

9       curl-config [options]
10

DESCRIPTION

12       curl-config  displays  information about the curl and libcurl installa‐
13       tion.
14

OPTIONS

16       --ca   Displays the built-in path to the CA cert  bundle  this  libcurl
17              uses.
18
19       --cc   Displays the compiler used to build libcurl.
20
21       --cflags
22              Set  of  compiler  options  (CFLAGS) to use when compiling files
23              that use libcurl. Currently that is only the include path to the
24              curl include files.
25
26       --checkfor [version]
27              Specify the oldest possible libcurl version string you want, and
28              this script will return 0 if the  current  installation  is  new
29              enough  or  it returns 1 and outputs a text saying that the cur‐
30              rent version is not new enough. (Added in 7.15.4)
31
32       --configure
33              Displays the arguments given to configure when building curl.
34
35       --feature
36              Lists what particular main features the  installed  libcurl  was
37              built  with.  At the time of writing, this list may include SSL,
38              KRB4 or IPv6. Do not assume any particular order.  The  keywords
39              will  be  separated by newlines. There may be none, one, or sev‐
40              eral keywords in the list.
41
42       --help Displays the available options.
43
44       --libs Shows the complete set of libs and other linker options you will
45              need in order to link your application with libcurl.
46
47       --prefix
48              This  is  the prefix used when libcurl was installed. Libcurl is
49              then installed in $prefix/lib and its header files are installed
50              in  $prefix/include and so on. The prefix is set with "configure
51              --prefix".
52
53       --protocols
54              Lists what particular protocols the installed libcurl was  built
55              to  support. At the time of writing, this list may include HTTP,
56              HTTPS, FTP, FTPS, FILE, TELNET, LDAP, DICT and many more. Do not
57              assume  any particular order. The protocols will be listed using
58              uppercase and are separated by newlines. There may be none, one,
59              or several protocols in the list. (Added in 7.13.0)
60
61       --ssl-backends
62              Lists the SSL backends that were enabled when libcurl was built.
63              It might be no, one or several names. If  more  than  one  name,
64              they will appear comma-separated. (Added in 7.58.0)
65
66       --static-libs
67              Shows the complete set of libs and other linker options you will
68              need in order to link your application with libcurl  statically.
69              Note that Fedora/RHEL libcurl packages do not provide any static
70              libraries, thus cannot be linked statically.  (Added in 7.17.1)
71
72       --version
73              Outputs version information about the installed libcurl.
74
75       --vernum
76              Outputs version information about the installed libcurl, in  nu‐
77              merical  mode.  This outputs the version number, in hexadecimal,
78              with 8 bits for each part: major,  minor,  and  patch.  So  that
79              libcurl  7.7.4 would appear as 070704 and libcurl 12.13.14 would
80              appear as 0c0d0e... Note that the initial zero might be omitted.
81              (This option was broken in the 7.15.0 release.)
82

EXAMPLES

84       What linker options do I need when I link with libcurl?
85         $ curl-config --libs
86       What compiler options do I need when I compile using libcurl functions?
87         $ curl-config --cflags
88       How do I know if libcurl was built with SSL support?
89         $ curl-config --feature | grep SSL
90       What's the installed libcurl version?
91         $ curl-config --version
92       How do I build a single file with a one-line command?
93         $ `curl-config --cc --cflags` -o example example.c `curl-config --libs`
94

SEE ALSO

96       curl(1)
97
98
99
100url-config 8.2.1                April 26, 2023                  curl-config(1)
Impressum