summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure6
1 files changed, 4 insertions, 2 deletions
diff --git a/configure b/configure
index 70dcb5bb04e..95467f5a3cc 100755
--- a/configure
+++ b/configure
@@ -88,7 +88,7 @@ subdirs=
target_alias=NOTARGET
target_makefile_frag=
undefs=NOUNDEFS
-version="$Revision: 1.28 $"
+version="$Revision: 1.29 $"
x11=default
bindir='${exec_prefix}/bin'
sbindir='${exec_prefix}/sbin'
@@ -1605,10 +1605,12 @@ if [ -z "${norecursion}" ] && [ -n "${configdirs}" ] ; then
fi
# Remember configure arguments for later.
-cat > gcc/configargs.h <<EOF
+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.