2
#***************************************************************************
4
# Project ___| | | | _ \| |
6
# | (__| |_| | _ <| |___
7
# \___|\___/|_| \_\_____|
9
# Copyright (C) 2001 - 2006, Daniel Stenberg, <daniel@haxx.se>, et al.
11
# This software is licensed as described in the file COPYING, which
12
# you should have received as part of this distribution. The terms
13
# are also available at http://curl.haxx.se/docs/copyright.html.
15
# You may opt to use, copy, modify, merge, publish, distribute and/or sell
16
# copies of the Software, and permit persons to whom the Software is
17
# furnished to do so, under the terms of the COPYING file.
19
# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
20
# KIND, either express or implied.
22
# $Id: curl-config.in,v 1.25 2006-05-02 22:48:22 bagder Exp $
23
###########################################################################
3
25
# The idea to this kind of setup info script was stolen from numerous
4
26
# other packages, such as neon, libxml and gnome.
6
# $Id: curl-config.in,v 1.23 2005/09/04 18:15:24 bagder Exp $
9
29
exec_prefix=@exec_prefix@
10
30
includedir=@includedir@
19
39
--ca ca bundle install path
21
41
--cflags pre-processor and compiler flags
42
--checkfor [version] check for (lib)curl of the specified version
22
43
--features newline separated list of enabled features
23
44
--protocols newline separated list of enabled protocols
24
45
--help display this help and exit
148
cmajor=`echo $checkfor | cut -d. -f1`
149
cminor=`echo $checkfor | cut -d. -f2`
150
# when extracting the patch part we strip off everything after a
151
# dash as that's used for things like version 1.2.3-CVS
152
cpatch=`echo $checkfor | cut -d. -f3 | cut -d- -f1`
153
checknum=`echo "$cmajor*256*256 + $cminor*256 + ${cpatch:-0}" | bc`
154
numuppercase=`echo @VERSIONNUM@ | tr 'a-f' 'A-F'`
155
nownum=`echo "obase=10; ibase=16; $numuppercase" | bc`
157
if test "$nownum" -ge "$checknum"; then
161
echo "requested version $checkfor is newer than existing @VERSION@"
129
167
echo @VERSIONNUM@