1curl-config(1)                curl-config manual                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       --feature
33              Lists what particular main features the  installed  libcurl  was
34              built  with.  At the time of writing, this list may include SSL,
35              KRB4 or IPv6. Do not assume any particular order.  The  keywords
36              will  be  separated by newlines. There may be none, one, or sev‐
37              eral keywords in the list.
38
39       --help Displays the available options.
40
41       --libs Shows the complete set of libs and other linker options you will
42              need in order to link your application with libcurl.
43
44       --prefix
45              This  is  the prefix used when libcurl was installed. Libcurl is
46              then installed in $prefix/lib and its header files are installed
47              in  $prefix/include and so on. The prefix is set with "configure
48              --prefix".
49
50       --protocols
51              Lists what particular protocols the installed libcurl was  built
52              to  support. At the time of writing, this list may include HTTP,
53              HTTPS, FTP, FTPS, FILE, TELNET, LDAP, DICT. Do  not  assume  any
54              particular  order.  The protocols will be listed using uppercase
55              and are separated by newlines. There may be none, one,  or  sev‐
56              eral protocols in the list. (Added in 7.13.0)
57
58       --static-libs
59              Shows the complete set of libs and other linker options you will
60              need in order to link your application with libcurl  statically.
61              (Added in 7.17.1)
62
63       --version
64              Outputs version information about the installed libcurl.
65
66       --vernum
67              Outputs  version  information  about  the  installed libcurl, in
68              numerical mode.  This outputs the version number,  in  hexadeci‐
69              mal,  with  8  bits  for each part; major, minor, patch. So that
70              libcurl 7.7.4 would appear as 070704 and libcurl 12.13.14  would
71              appear as 0c0d0e... Note that the initial zero might be omitted.
72              (This option was broken in the 7.15.0 release.)
73

EXAMPLES

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

SEE ALSO

97       curl(1)
98
99
100
101Curl 7.17.1                       25 Oct 2007                   curl-config(1)
Impressum