Index: configure.ac
===================================================================
RCS file: /cvsroot/curl/curl/configure.ac,v
retrieving revision 1.434
diff -u -r1.434 configure.ac
--- configure.ac	28 Oct 2009 00:33:28 -0000	1.434
+++ configure.ac	13 Nov 2009 14:28:48 -0000
@@ -45,6 +45,12 @@
 
 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],
Index: curl-config.in
===================================================================
RCS file: /cvsroot/curl/curl/curl-config.in,v
retrieving revision 1.36
diff -u -r1.36 curl-config.in
--- curl-config.in	20 Mar 2009 12:42:29 -0000	1.36
+++ curl-config.in	13 Nov 2009 14:28:48 -0000
@@ -37,6 +37,7 @@
   --cc        compiler
   --cflags    pre-processor and compiler flags
   --checkfor [version] check for (lib)curl of the specified version
+  --configure The flags 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 @@
 	echo @libdir@/libcurl.@libext@ @LDFLAGS@ @LIBCURL_LIBS@ @LIBS@
 	;;
 
+    --configure)
+      echo @CONFIGURE_OPTIONS@
+    ;;
+
     *)
         echo "unknown option: $1"
 	usage 1

