summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorPhil Edwards <pme@gcc.gnu.org>2000-10-05 22:55:19 +0000
committerRichard Henderson <rth@gcc.gnu.org>2000-10-05 15:55:19 -0700
commitf5fa9a5bd08d383e14f920c38f69d15f456e1aeb (patch)
tree8dd4b247d2357803a65553c78f9a78399de88075 /configure
parentcfa82f4d034b0905dbdbe321d606a374065c6d43 (diff)
downloadgcc-f5fa9a5bd08d383e14f920c38f69d15f456e1aeb.tar.gz
configure: Save configure arguments to gcc/configargs.h.
* configure: Save configure arguments to gcc/configargs.h. * gcc.c (main): Include generated configargs.h header and use arguments in '-v' output. From-SVN: r36734
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure12
1 files changed, 11 insertions, 1 deletions
diff --git a/configure b/configure
index e0d60261c70..70dcb5bb04e 100755
--- a/configure
+++ b/configure
@@ -88,7 +88,7 @@ subdirs=
target_alias=NOTARGET
target_makefile_frag=
undefs=NOUNDEFS
-version="$Revision: 1.27 $"
+version="$Revision: 1.28 $"
x11=default
bindir='${exec_prefix}/bin'
sbindir='${exec_prefix}/sbin'
@@ -400,6 +400,10 @@ do
esac
done
+# Remember the pristine configure arguments for later. $arguments gets
+# built up with further defaults in preparation for recursion.
+original_arguments=$arguments
+
# process host and target
# Do some error checking and defaulting for the host and target type.
@@ -1600,6 +1604,12 @@ if [ -z "${norecursion}" ] && [ -n "${configdirs}" ] ; then
done
fi
+# Remember configure arguments for later.
+cat > gcc/configargs.h <<EOF
+/* Generated automatically. */
+static const char configuration_arguments[] = "$original_arguments";
+EOF
+
# Perform the same cleanup as the trap handler, minus the "exit 1" of course,
# and reset the trap handler.
rm -f ${tmpfile}.com ${tmpfile}.tgt ${tmpfile}.hst ${tmpfile}.pos