summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorJoseph Myers <jsm28@cam.ac.uk>2000-11-13 13:39:36 +0000
committerJoseph Myers <jsm28@gcc.gnu.org>2000-11-13 13:39:36 +0000
commitcc1e60ea6a4e0c9b4b6c6e8283e2e2298830fd5c (patch)
tree4de78c5fbd017387a57f042285b8db8deb8e326f /configure
parent373577962c7c6324ce0aa967088a736568a48e0c (diff)
downloadgcc-cc1e60ea6a4e0c9b4b6c6e8283e2e2298830fd5c.tar.gz
configure: Provide the original toplevel configure arguments (including $0) to...
* configure: Provide the original toplevel configure arguments (including $0) to subprocesses in the environment rather than through gcc/configargs.h. gcc: * configure.in: Take toplevel configure arguments from the environment to create configargs.h and substitute gcc_config_arguments, taking account of any existing configargs.h if reconfiguring. * configure: Regenerate. * gccbug.in: Include toplevel configure arguments in gccbug. From-SVN: r37423
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure18
1 files changed, 5 insertions, 13 deletions
diff --git a/configure b/configure
index 8698c45f730..55c5ca44c2a 100755
--- a/configure
+++ b/configure
@@ -89,7 +89,7 @@ subdirs=
target_alias=NOTARGET
target_makefile_frag=
undefs=NOUNDEFS
-version="$Revision: 1.30 $"
+version="$Revision: 1.31 $"
x11=default
bindir='${exec_prefix}/bin'
sbindir='${exec_prefix}/sbin'
@@ -162,6 +162,10 @@ case "${progname}" in
;;
esac
+# Export original configure arguments for use by sub-configures.
+TOPLEVEL_CONFIGURE_ARGUMENTS="$progname $@"
+export TOPLEVEL_CONFIGURE_ARGUMENTS
+
# Loop over all args
while :
@@ -401,10 +405,6 @@ 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.
@@ -1605,14 +1605,6 @@ if [ -z "${norecursion}" ] && [ -n "${configdirs}" ] ; then
done
fi
-# Remember configure arguments for later.
-if [ -d gcc ]; then
- cat > gcc/configargs.h <<EOF
-/* Generated automatically. */
-static const char configuration_arguments[] = "$original_arguments";
-EOF
-fi
-
# 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