3 # The idea to this kind of setup info script was stolen from numerous
4 # other packages, such as neon, libxml and gnome.
6 # $Id: curl-config,v 1.1 2006/07/09 22:41:13 fred_t_hamster Exp $
10 includedir=${prefix}/include
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 ""/usr/local/share/curl/curl-ca-bundle.crt""
53 echo "i586-mingw32msvc-gcc"
61 if test "1" = "1"; then
63 NTLM=1 # OpenSSL implies NTLM
67 if test "" = "1"; then
70 if test "" = "1"; then
73 if test "1" = "1"; then
76 if test "" = "1"; then
79 if test "" = "1"; then
82 if test "" = "1"; then
86 if test "$NTLM" = "1"; then
92 if test "" != "1"; then
94 if test "1" = "1"; then
98 if test "" != "1"; then
100 if test "1" = "1"; then
104 if test "" != "1"; then
107 if test "" != "1"; then
110 if test "" != "1"; then
113 if test "" != "1"; then
116 if test "" != "1"; then
119 if test "" != "1"; then
138 if test "X${prefix}/include" = "X/usr/include"; then
141 echo "-I${prefix}/include"
146 echo -L${exec_prefix}/lib -lcurl -L/home/dast/src/win32 -lssl -lcrypto -lgdi32 -lwinmm -lws2_32 -lz -lws2_32
150 echo "unknown option: $1"