subversion: enable ssl
[msysgit.git] / bin / neon-config
blobe3689e450953c3f9414dc013368ac9df71bf749b
1 #! /bin/sh
2 # Originally from libxml, Copyright (C) Daniel Veillard
3 # Modifications for neon Copyright (C) 2000-2006 Joe Orton.
5 prefix=
6 exec_prefix=${prefix}
7 includedir=${prefix}/include
8 libdir=${exec_prefix}/lib
10 usage()
12 cat <<EOF
13 Usage: neon-config [OPTION]
15 Known values for OPTION are:
17 --prefix=DIR change neon prefix [default $prefix]
18 --libs print library linking information
19 --la-file print location of libtool .la file
20 --cflags print pre-processor and compiler flags
21 --help display this help and exit
22 --version output version information
23 --support FEATURE exit with success if feature is supported
25 Known features:
26 dav [yes], ssl [no], zlib [yes], ipv6 [], lfs [no],
27 i18n [no], ts_ssl [no]
29 EOF
31 exit $1
34 support()
36 if test "$1" = "yes"; then
37 exit 0
38 else
39 exit 1
43 if test $# -eq 0; then
44 usage 1
47 while test $# -gt 0; do
48 case "$1" in
49 -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
50 *) optarg= ;;
51 esac
53 case "$1" in
54 --prefix=*)
55 prefix=$optarg
58 --prefix)
59 echo $prefix
62 --version)
63 echo neon 0.28.3
64 exit 0
67 --help)
68 usage 0
71 --cflags)
72 echo -I${includedir}/neon
75 --libs)
76 LIBS="-lneon -lz"
77 # Don't add standard library paths
78 if test "$prefix" != "/usr"; then
79 LIBS="-L${libdir} ${LIBS}"
81 echo ${LIBS}
84 --la-file)
85 echo ${libdir}/libneon.la
88 --support)
89 shift
91 case "$1" in
92 ssl|SSL) support no ;;
93 zlib|ZLIB) support yes ;;
94 ipv6|IPV6) support ;;
95 dav|DAV) support yes ;;
96 lfs|LFS) support no ;;
97 i18n|I18N) support no ;;
98 ts_ssl|TS_SSL) support no ;;
99 *) support no ;;
100 esac
104 usage 1 1>&2
106 esac
107 shift
108 done
110 exit 0