Browse Source

Added '--configure' option to curl-config to display original configure arguments when curl was built

darwin-pinnedpubkey
Claes Jakobsson 13 years ago
parent
commit
f7f76e17c3
  1. 3
      CHANGES
  2. 1
      RELEASE-NOTES
  3. 6
      configure.ac
  4. 5
      curl-config.in
  5. 2
      docs/curl-config.1

3
CHANGES

@ -6,6 +6,9 @@ @@ -6,6 +6,9 @@
Changelog
Claes Jakobsson (14 Nov 2009)
- curl-config now accepts '--configure' to see what arguments was
passed to the configure script when building curl.
Daniel Stenberg (14 Nov 2009)
- Claes Jakobsson restored the configure functionality to detect NSS when

1
RELEASE-NOTES

@ -10,6 +10,7 @@ Curl and libcurl 7.19.8 @@ -10,6 +10,7 @@ Curl and libcurl 7.19.8
This release includes the following changes:
o support SSL_FILETYPE_ENGINE for client certificate
o curl-config can now show the arguments used when building curl
This release includes the following bugfixes:

6
configure.ac

@ -45,6 +45,12 @@ CURL_CHECK_OPTION_CURLDEBUG @@ -45,6 +45,12 @@ CURL_CHECK_OPTION_CURLDEBUG
CURL_CHECK_PATH_SEPARATOR_REQUIRED
#
# save the configure arguments
#
CONFIGURE_OPTIONS="\"$ac_configure_args\""
AC_SUBST(CONFIGURE_OPTIONS)
dnl SED is mandatory for configure process and libtool.
dnl Set it now, allowing it to be changed later.
AC_PATH_PROG([SED], [sed], [not_found],

5
curl-config.in

@ -37,6 +37,7 @@ Available values for OPTION include: @@ -37,6 +37,7 @@ Available values for OPTION include:
--cc compiler
--cflags pre-processor and compiler flags
--checkfor [version] check for (lib)curl of the specified version
--configure the arguments given to configure when building curl
--features newline separated list of enabled features
--help display this help and exit
--libs library linking information
@ -146,6 +147,10 @@ while test $# -gt 0; do @@ -146,6 +147,10 @@ while test $# -gt 0; do
echo @libdir@/libcurl.@libext@ @LDFLAGS@ @LIBCURL_LIBS@ @LIBS@
;;
--configure)
echo @CONFIGURE_OPTIONS@
;;
*)
echo "unknown option: $1"
usage 1

2
docs/curl-config.1

@ -42,6 +42,8 @@ Specify the oldest possible libcurl version string you want, and this @@ -42,6 +42,8 @@ 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 "--configure"
Displays the arguments given to configure when building curl.
.IP "--feature"
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

Loading…
Cancel
Save