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
63 NTLM=1 # OpenSSL implies NTLM
64 elif test -n "@USE_GNUTLS@"; then
67 if test "@KRB4_ENABLED@" = "1"; then
70 if test "@IPV6_ENABLED@" = "1"; then
73 if test "@HAVE_LIBZ@" = "1"; then
76 if test "@HAVE_ARES@" = "1"; then
79 if test "@IDN_ENABLED@" = "1"; then
82 if test "@USE_WINDOWS_SSPI@" = "1"; then
86 if test "$NTLM" = "1"; then
92 if test "@CURL_DISABLE_HTTP@" != "1"; then
94 if test "@USE_SSLEAY@" = "1"; then
98 if test "@CURL_DISABLE_FTP@" != "1"; then
100 if test "@USE_SSLEAY@" = "1"; then
104 if test "@CURL_DISABLE_FILE@" != "1"; then
107 if test "@CURL_DISABLE_TELNET@" != "1"; then
110 if test "@CURL_DISABLE_LDAP@" != "1"; then
113 if test "@CURL_DISABLE_DICT@" != "1"; then
116 if test "@CURL_DISABLE_TFTP@" != "1"; then
121 echo libcurl @VERSION@
135 if test "X@includedir@" = "X/usr/include"; then
138 echo "-I@includedir@"
143 echo -L@libdir@ -lcurl @LDFLAGS@ @LIBS@
147 echo "unknown option: $1"