aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac4
-rw-r--r--curl-config.in8
2 files changed, 11 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index b0530c496..633f9e49a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2653,6 +2653,10 @@ LIBS=$ALL_LIBS dnl LIBS is a magic variable that's used for every link
AM_CONDITIONAL(CROSSCOMPILING, test x$cross_compiling = xyes)
+dnl yes or no
+ENABLE_SHARED="$enable_shared"
+AC_SUBST(ENABLE_SHARED)
+
dnl
dnl For keeping supported features and protocols also in pkg-config file
dnl since it is more cross-compile frient than curl-config
diff --git a/curl-config.in b/curl-config.in
index ebda12998..27b9f7ffe 100644
--- a/curl-config.in
+++ b/curl-config.in
@@ -6,7 +6,7 @@
# | (__| |_| | _ <| |___
# \___|\___/|_| \_\_____|
#
-# Copyright (C) 2001 - 2009, Daniel Stenberg, <daniel@haxx.se>, et al.
+# Copyright (C) 2001 - 2010, Daniel Stenberg, <daniel@haxx.se>, et al.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution. The terms
@@ -32,6 +32,7 @@ Usage: curl-config [OPTION]
Available values for OPTION include:
+ --built-shared says 'yes' if libcurl was built shared
--ca ca bundle install path
--cc compiler
--cflags pre-processor and compiler flags
@@ -64,6 +65,10 @@ while test $# -gt 0; do
esac
case "$1" in
+ --built-shared)
+ echo @ENABLE_SHARED@
+ ;;
+
--ca)
echo "@CURL_CA_BUNDLE@"
;;
@@ -87,6 +92,7 @@ while test $# -gt 0; do
echo "$protocol"
done
;;
+
--version)
echo libcurl @VERSION@
exit 0