1 .\" **************************************************************************
3 .\" * Project ___| | | | _ \| |
4 .\" * / __| | | | |_) | |
5 .\" * | (__| |_| | _ <| |___
6 .\" * \___|\___/|_| \_\_____|
8 .\" * Copyright (C) 1998 - 2007, Daniel Stenberg, <daniel@haxx.se>, et al.
10 .\" * This software is licensed as described in the file COPYING, which
11 .\" * you should have received as part of this distribution. The terms
12 .\" * are also available at http://curl.haxx.se/docs/copyright.html.
14 .\" * You may opt to use, copy, modify, merge, publish, distribute and/or sell
15 .\" * copies of the Software, and permit persons to whom the Software is
16 .\" * furnished to do so, under the terms of the COPYING file.
18 .\" * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19 .\" * KIND, either express or implied.
21 .\" * $Id: curl-config.1,v 1.1.1.1 2008-09-23 16:32:05 hoffman Exp $
22 .\" **************************************************************************
24 .TH curl-config 1 "25 Oct 2007" "Curl 7.17.1" "curl-config manual"
26 curl-config \- Get information about a libcurl installation
28 .B curl-config [options]
31 displays information about a previous curl and libcurl installation.
34 Displays the built-in path to the CA cert bundle this libcurl uses.
36 Displays the compiler used to build libcurl.
38 Set of compiler options (CFLAGS) to use when compiling files that use
39 libcurl. Currently that is only thw include path to the curl include files.
40 .IP "--checkfor [version]"
41 Specify the oldest possible libcurl version string you want, and this
42 script will return 0 if the current installation is new enough or it
43 returns 1 and outputs a text saying that the current version is not new
44 enough. (Added in 7.15.4)
46 Lists what particular main features the installed libcurl was built with. At
47 the time of writing, this list may include SSL, KRB4 or IPv6. Do not assume
48 any particular order. The keywords will be separated by newlines. There may be
49 none, one or several keywords in the list.
51 Displays the available options.
53 Shows the complete set of libs and other linker options you will need in order
54 to link your application with libcurl.
56 This is the prefix used when libcurl was installed. Libcurl is then installed
57 in $prefix/lib and its header files are installed in $prefix/include and so
58 on. The prefix is set with "configure --prefix".
60 Lists what particular protocols the installed libcurl was built to support. At
61 the time of writing, this list may include HTTP, HTTPS, FTP, FTPS, FILE,
62 TELNET, LDAP, DICT. Do not assume any particular order. The protocols will
63 be listed using uppercase and are separated by newlines. There may be none,
64 one or several protocols in the list. (Added in 7.13.0)
66 Shows the complete set of libs and other linker options you will need in order
67 to link your application with libcurl statically. (Added in 7.17.1)
69 Outputs version information about the installed libcurl.
71 Outputs version information about the installed libcurl, in numerical mode.
72 This outputs the version number, in hexadecimal, with 8 bits for each part;
73 major, minor, patch. So that libcurl 7.7.4 would appear as 070704 and libcurl
74 12.13.14 would appear as 0c0d0e... Note that the initial zero might be
75 omitted. (This option was broken in the 7.15.0 release.)
77 What linker options do I need when I link with libcurl?
81 What compiler options do I need when I compile using libcurl functions?
83 $ curl-config --cflags
85 How do I know if libcurl was built with SSL support?
87 $ curl-config --feature | grep SSL
89 What's the installed libcurl version?
91 $ curl-config --version
93 How do I build a single file with a one-line command?
95 $ `curl-config --cc --cflags --libs` -o example example.c