3 # The idea to this kind of setup info script was stolen from numerous
4 # other packages, such as neon, libxml and gnome.
9 exec_prefix=@exec_prefix@
10 includedir=@includedir@
15 Usage: curl-config [OPTION]
17 Available values for OPTION include:
19 --ca ca bundle install path
21 --cflags pre-processor and compiler flags
22 --features newline separated list of enabled features
23 --protocols newline separated list of enabled protocols
24 --help display this help and exit
25 --libs library linking information
26 --prefix curl install prefix
27 --version output version information
28 --vernum output the version information as a number (hexadecimal)
34 if test $# -eq 0; then
38 while test $# -gt 0; do
40 # this deals with options in the style
41 # --option=value and extracts the value part
42 # [not currently used]
43 -*=*) value=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
49 echo "@CURL_CA_BUNDLE@"
61 if test "@USE_SSLEAY@" = "1"; then
65 if test "@KRB4_ENABLED@" = "1"; then
68 if test "@IPV6_ENABLED@" = "1"; then
71 if test "@HAVE_LIBZ@" = "1"; then
74 if test "@HAVE_ARES@" = "1"; then
77 if test "@IDN_ENABLED@" = "1"; then
80 if test "@USE_WINDOWS_SSPI@" = "1"; then
84 if test "$NTLM" = "1"; then
90 if test "@CURL_DISABLE_HTTP@" != "1"; then
92 if test "@USE_SSLEAY@" = "1"; then
96 if test "@CURL_DISABLE_FTP@" != "1"; then
98 if test "@USE_SSLEAY@" = "1"; then
102 if test "@CURL_DISABLE_GOPHER@" != "1"; then
105 if test "@CURL_DISABLE_FILE@" != "1"; then
108 if test "@CURL_DISABLE_TELNET@" != "1"; then
111 if test "@CURL_DISABLE_LDAP@" != "1"; then
114 if test "@CURL_DISABLE_DICT@" != "1"; then
119 echo libcurl @VERSION@
133 if test "X@includedir@" = "X/usr/include"; then
136 echo "-I@includedir@"
141 echo -L@libdir@ -lcurl @LDFLAGS@ @LIBS@
145 echo "unknown option: $1"