c260e0
 curl-config.in     |   16 +++-------------
c260e0
 docs/curl-config.1 |    4 +++-
c260e0
 libcurl.pc.in      |    1 +
c260e0
 3 files changed, 7 insertions(+), 14 deletions(-)
c260e0
c260e0
diff --git a/curl-config.in b/curl-config.in
c260e0
index 150004d..95d0759 100644
c260e0
--- a/curl-config.in
c260e0
+++ b/curl-config.in
c260e0
@@ -75,7 +75,7 @@ while test $# -gt 0; do
c260e0
 	;;
c260e0
 
c260e0
     --cc)
c260e0
-	echo "@CC@"
c260e0
+	echo "gcc"
c260e0
 	;;
c260e0
 
c260e0
     --prefix)
c260e0
@@ -142,24 +142,14 @@ while test $# -gt 0; do
c260e0
        	;;
c260e0
 
c260e0
     --libs)
c260e0
-	if test "X@libdir@" != "X/usr/lib" -a "X@libdir@" != "X/usr/lib64"; then
c260e0
-	   CURLLIBDIR="-L@libdir@ "
c260e0
-	else
c260e0
-	   CURLLIBDIR=""
c260e0
-	fi
c260e0
-	if test "X@REQUIRE_LIB_DEPS@" = "Xyes"; then
c260e0
-	  echo ${CURLLIBDIR}-lcurl @LIBCURL_LIBS@
c260e0
-	else
c260e0
-	  echo ${CURLLIBDIR}-lcurl
c260e0
-	fi
c260e0
+	pkg-config libcurl --libs
c260e0
 	;;
c260e0
 
c260e0
     --static-libs)
c260e0
-	echo @libdir@/libcurl.@libext@ @LDFLAGS@ @LIBCURL_LIBS@
c260e0
 	;;
c260e0
 
c260e0
     --configure)
c260e0
-      echo @CONFIGURE_OPTIONS@
c260e0
+      pkg-config libcurl --variable=configure_options | sed 's/^"//;s/"$//'
c260e0
     ;;
c260e0
 
c260e0
     *)
c260e0
diff --git a/docs/curl-config.1 b/docs/curl-config.1
c260e0
index c4f4e2b..3e0ea60 100644
c260e0
--- a/docs/curl-config.1
c260e0
+++ b/docs/curl-config.1
c260e0
@@ -65,7 +65,9 @@ be listed using uppercase and are separa
c260e0
 one, or several protocols in the list. (Added in 7.13.0)
c260e0
 .IP "--static-libs"
c260e0
 Shows the complete set of libs and other linker options you will need in order
c260e0
-to link your application with libcurl statically. (Added in 7.17.1)
c260e0
+to link your application with libcurl statically. Note that Fedora/RHEL libcurl
c260e0
+packages do not provide any static libraries, thus cannot be linked statically.
c260e0
+(Added in 7.17.1)
c260e0
 .IP "--version"
c260e0
 Outputs version information about the installed libcurl.
c260e0
 .IP "--vernum"
c260e0
diff --git a/libcurl.pc.in b/libcurl.pc.in
c260e0
index 2ba9c39..f8f8b00 100644
c260e0
--- a/libcurl.pc.in
c260e0
+++ b/libcurl.pc.in
c260e0
@@ -29,6 +29,7 @@ libdir=@libdir@
c260e0
 includedir=@includedir@
c260e0
 supported_protocols="@SUPPORT_PROTOCOLS@"
c260e0
 supported_features="@SUPPORT_FEATURES@"
c260e0
+configure_options=@CONFIGURE_OPTIONS@
c260e0
 
c260e0
 Name: libcurl
c260e0
 URL: http://curl.haxx.se/