Loading CHANGES +8 −0 Original line number Original line Diff line number Diff line Loading @@ -6,6 +6,14 @@ Changelog Changelog Daniel (2 May 2006) - Added a --checkfor option to curl-config to allow users to easier write for example shell scripts that test for the presence of a new-enough libcurl version. If --checkfor is given a version string newer than what is currently installed, curl-config will return a non-zero exit code and output a string about the unfulfilled requirement. Daniel (26 April 2006) Daniel (26 April 2006) - David McCreedy brought initial line end conversions when doing FTP ASCII - David McCreedy brought initial line end conversions when doing FTP ASCII transfers. They are done on non-windows systems and translate CRLF to LF. transfers. They are done on non-windows systems and translate CRLF to LF. Loading RELEASE-NOTES +2 −1 Original line number Original line Diff line number Diff line Loading @@ -11,6 +11,7 @@ Curl and libcurl 7.15.4 This release includes the following changes: This release includes the following changes: o curl-config got a --checkfor option to compare version numbers o line end conversions for FTP ASCII transfers o line end conversions for FTP ASCII transfers o curl_multi_socket() API added (still mostly untested) o curl_multi_socket() API added (still mostly untested) o conversion callback options for EBCDIC <=> ASCII conversions o conversion callback options for EBCDIC <=> ASCII conversions Loading Loading @@ -45,6 +46,6 @@ advice from friends like these: Dan Fandrich, Ilja van Sprundel, David McCreedy, Tor Arntsen, Xavier Bouchoux, Dan Fandrich, Ilja van Sprundel, David McCreedy, Tor Arntsen, Xavier Bouchoux, David Byron, Michele Bini, Ates Goral, Katie Wang, Robson Braga Araujo, David Byron, Michele Bini, Ates Goral, Katie Wang, Robson Braga Araujo, Ale Vesely, Paul Querna Ale Vesely, Paul Querna, Gisle Vanem Thanks! (and sorry if I forgot to mention someone) Thanks! (and sorry if I forgot to mention someone) curl-config.in +43 −2 Original line number Original line Diff line number Diff line #! /bin/sh #! /bin/sh #*************************************************************************** # _ _ ____ _ # Project ___| | | | _ \| | # / __| | | | |_) | | # | (__| |_| | _ <| |___ # \___|\___/|_| \_\_____| # # # The idea to this kind of setup info script was stolen from numerous # Copyright (C) 2001 - 2006, Daniel Stenberg, <daniel@haxx.se>, et al. # other packages, such as neon, libxml and gnome. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://curl.haxx.se/docs/copyright.html. # # You may opt to use, copy, modify, merge, publish, distribute and/or sell # copies of the Software, and permit persons to whom the Software is # furnished to do so, under the terms of the COPYING file. # # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY # KIND, either express or implied. # # # $Id$ # $Id$ ########################################################################### # # The idea to this kind of setup info script was stolen from numerous # other packages, such as neon, libxml and gnome. # # prefix=@prefix@ prefix=@prefix@ exec_prefix=@exec_prefix@ exec_prefix=@exec_prefix@ Loading @@ -19,6 +39,7 @@ Available values for OPTION include: --ca ca bundle install path --ca ca bundle install path --cc compiler --cc compiler --cflags pre-processor and compiler flags --cflags pre-processor and compiler flags --checkfor [version] check for (lib)curl of the specified version --features newline separated list of enabled features --features newline separated list of enabled features --protocols newline separated list of enabled protocols --protocols newline separated list of enabled protocols --help display this help and exit --help display this help and exit Loading Loading @@ -122,6 +143,26 @@ while test $# -gt 0; do exit 0 exit 0 ;; ;; --checkfor) checkfor=$2 cmajor=`echo $checkfor | cut -d. -f1` cminor=`echo $checkfor | cut -d. -f2` # when extracting the patch part we strip off everything after a # dash as that's used for things like version 1.2.3-CVS cpatch=`echo $checkfor | cut -d. -f3 | cut -d- -f1` checknum=`echo "$cmajor*256*256 + $cminor*256 + ${cpatch:-0}" | bc` numuppercase=`echo @VERSIONNUM@ | tr 'a-f' 'A-F'` nownum=`echo "obase=10; ibase=16; $numuppercase" | bc` if test "$nownum" -ge "$checknum"; then # silent success exit 0 else echo "requested version $checkfor is newer than existing @VERSION@" exit 1 fi ;; --vernum) --vernum) echo @VERSIONNUM@ echo @VERSIONNUM@ exit 0 exit 0 Loading docs/curl-config.1 +7 −2 Original line number Original line Diff line number Diff line Loading @@ -5,7 +5,7 @@ .\" * | (__| |_| | _ <| |___ .\" * | (__| |_| | _ <| |___ .\" * \___|\___/|_| \_\_____| .\" * \___|\___/|_| \_\_____| .\" * .\" * .\" * Copyright (C) 1998 - 2005, Daniel Stenberg, <daniel@haxx.se>, et al. .\" * Copyright (C) 1998 - 2006, Daniel Stenberg, <daniel@haxx.se>, et al. .\" * .\" * .\" * This software is licensed as described in the file COPYING, which .\" * This software is licensed as described in the file COPYING, which .\" * you should have received as part of this distribution. The terms .\" * you should have received as part of this distribution. The terms Loading @@ -21,7 +21,7 @@ .\" * $Id$ .\" * $Id$ .\" ************************************************************************** .\" ************************************************************************** .\" .\" .TH curl-config 1 "25 Jan 2004" "Curl 7.13.0" "curl-config manual" .TH curl-config 1 "25 Jan 2004" "Curl 7.15.4" "curl-config manual" .SH NAME .SH NAME curl-config \- Get information about a libcurl installation curl-config \- Get information about a libcurl installation .SH SYNOPSIS .SH SYNOPSIS Loading @@ -37,6 +37,11 @@ Displays the compiler used to build libcurl. .IP "--cflags" .IP "--cflags" Set of compiler options (CFLAGS) to use when compiling files that use Set of compiler options (CFLAGS) to use when compiling files that use libcurl. Currently that is only thw include path to the curl include files. libcurl. Currently that is only thw include path to the curl include files. .IP "--checkfor [version]" Specify the oldest possible libcurl version string you want, and this script will return 0 if the current installation is new enough or it returns 1 and outputs a text saying that the current version is not new enough. (Added in 7.15.4) .IP "--feature" .IP "--feature" Lists what particular main features the installed libcurl was built with. At Lists what particular main features the installed libcurl was built with. At the time of writing, this list may include SSL, KRB4 or IPv6. Do not assume the time of writing, this list may include SSL, KRB4 or IPv6. Do not assume Loading Loading
CHANGES +8 −0 Original line number Original line Diff line number Diff line Loading @@ -6,6 +6,14 @@ Changelog Changelog Daniel (2 May 2006) - Added a --checkfor option to curl-config to allow users to easier write for example shell scripts that test for the presence of a new-enough libcurl version. If --checkfor is given a version string newer than what is currently installed, curl-config will return a non-zero exit code and output a string about the unfulfilled requirement. Daniel (26 April 2006) Daniel (26 April 2006) - David McCreedy brought initial line end conversions when doing FTP ASCII - David McCreedy brought initial line end conversions when doing FTP ASCII transfers. They are done on non-windows systems and translate CRLF to LF. transfers. They are done on non-windows systems and translate CRLF to LF. Loading
RELEASE-NOTES +2 −1 Original line number Original line Diff line number Diff line Loading @@ -11,6 +11,7 @@ Curl and libcurl 7.15.4 This release includes the following changes: This release includes the following changes: o curl-config got a --checkfor option to compare version numbers o line end conversions for FTP ASCII transfers o line end conversions for FTP ASCII transfers o curl_multi_socket() API added (still mostly untested) o curl_multi_socket() API added (still mostly untested) o conversion callback options for EBCDIC <=> ASCII conversions o conversion callback options for EBCDIC <=> ASCII conversions Loading Loading @@ -45,6 +46,6 @@ advice from friends like these: Dan Fandrich, Ilja van Sprundel, David McCreedy, Tor Arntsen, Xavier Bouchoux, Dan Fandrich, Ilja van Sprundel, David McCreedy, Tor Arntsen, Xavier Bouchoux, David Byron, Michele Bini, Ates Goral, Katie Wang, Robson Braga Araujo, David Byron, Michele Bini, Ates Goral, Katie Wang, Robson Braga Araujo, Ale Vesely, Paul Querna Ale Vesely, Paul Querna, Gisle Vanem Thanks! (and sorry if I forgot to mention someone) Thanks! (and sorry if I forgot to mention someone)
curl-config.in +43 −2 Original line number Original line Diff line number Diff line #! /bin/sh #! /bin/sh #*************************************************************************** # _ _ ____ _ # Project ___| | | | _ \| | # / __| | | | |_) | | # | (__| |_| | _ <| |___ # \___|\___/|_| \_\_____| # # # The idea to this kind of setup info script was stolen from numerous # Copyright (C) 2001 - 2006, Daniel Stenberg, <daniel@haxx.se>, et al. # other packages, such as neon, libxml and gnome. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://curl.haxx.se/docs/copyright.html. # # You may opt to use, copy, modify, merge, publish, distribute and/or sell # copies of the Software, and permit persons to whom the Software is # furnished to do so, under the terms of the COPYING file. # # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY # KIND, either express or implied. # # # $Id$ # $Id$ ########################################################################### # # The idea to this kind of setup info script was stolen from numerous # other packages, such as neon, libxml and gnome. # # prefix=@prefix@ prefix=@prefix@ exec_prefix=@exec_prefix@ exec_prefix=@exec_prefix@ Loading @@ -19,6 +39,7 @@ Available values for OPTION include: --ca ca bundle install path --ca ca bundle install path --cc compiler --cc compiler --cflags pre-processor and compiler flags --cflags pre-processor and compiler flags --checkfor [version] check for (lib)curl of the specified version --features newline separated list of enabled features --features newline separated list of enabled features --protocols newline separated list of enabled protocols --protocols newline separated list of enabled protocols --help display this help and exit --help display this help and exit Loading Loading @@ -122,6 +143,26 @@ while test $# -gt 0; do exit 0 exit 0 ;; ;; --checkfor) checkfor=$2 cmajor=`echo $checkfor | cut -d. -f1` cminor=`echo $checkfor | cut -d. -f2` # when extracting the patch part we strip off everything after a # dash as that's used for things like version 1.2.3-CVS cpatch=`echo $checkfor | cut -d. -f3 | cut -d- -f1` checknum=`echo "$cmajor*256*256 + $cminor*256 + ${cpatch:-0}" | bc` numuppercase=`echo @VERSIONNUM@ | tr 'a-f' 'A-F'` nownum=`echo "obase=10; ibase=16; $numuppercase" | bc` if test "$nownum" -ge "$checknum"; then # silent success exit 0 else echo "requested version $checkfor is newer than existing @VERSION@" exit 1 fi ;; --vernum) --vernum) echo @VERSIONNUM@ echo @VERSIONNUM@ exit 0 exit 0 Loading
docs/curl-config.1 +7 −2 Original line number Original line Diff line number Diff line Loading @@ -5,7 +5,7 @@ .\" * | (__| |_| | _ <| |___ .\" * | (__| |_| | _ <| |___ .\" * \___|\___/|_| \_\_____| .\" * \___|\___/|_| \_\_____| .\" * .\" * .\" * Copyright (C) 1998 - 2005, Daniel Stenberg, <daniel@haxx.se>, et al. .\" * Copyright (C) 1998 - 2006, Daniel Stenberg, <daniel@haxx.se>, et al. .\" * .\" * .\" * This software is licensed as described in the file COPYING, which .\" * This software is licensed as described in the file COPYING, which .\" * you should have received as part of this distribution. The terms .\" * you should have received as part of this distribution. The terms Loading @@ -21,7 +21,7 @@ .\" * $Id$ .\" * $Id$ .\" ************************************************************************** .\" ************************************************************************** .\" .\" .TH curl-config 1 "25 Jan 2004" "Curl 7.13.0" "curl-config manual" .TH curl-config 1 "25 Jan 2004" "Curl 7.15.4" "curl-config manual" .SH NAME .SH NAME curl-config \- Get information about a libcurl installation curl-config \- Get information about a libcurl installation .SH SYNOPSIS .SH SYNOPSIS Loading @@ -37,6 +37,11 @@ Displays the compiler used to build libcurl. .IP "--cflags" .IP "--cflags" Set of compiler options (CFLAGS) to use when compiling files that use Set of compiler options (CFLAGS) to use when compiling files that use libcurl. Currently that is only thw include path to the curl include files. libcurl. Currently that is only thw include path to the curl include files. .IP "--checkfor [version]" Specify the oldest possible libcurl version string you want, and this script will return 0 if the current installation is new enough or it returns 1 and outputs a text saying that the current version is not new enough. (Added in 7.15.4) .IP "--feature" .IP "--feature" Lists what particular main features the installed libcurl was built with. At Lists what particular main features the installed libcurl was built with. At the time of writing, this list may include SSL, KRB4 or IPv6. Do not assume the time of writing, this list may include SSL, KRB4 or IPv6. Do not assume Loading