diff options
author | Michael Meissner <meissner@redhat.com> | 2000-10-17 03:00:51 +0000 |
---|---|---|
committer | Michael Meissner <meissner@gcc.gnu.org> | 2000-10-17 03:00:51 +0000 |
commit | a5e1b5484707fd849fb5022902126e008fe4d798 (patch) | |
tree | 15e535e31907d9171a657fa77885733e2d687894 /configure | |
parent | 8e7ab3ff223e7d10baddb1df009ba057a1467cbc (diff) | |
download | gcc-a5e1b5484707fd849fb5022902126e008fe4d798.zip gcc-a5e1b5484707fd849fb5022902126e008fe4d798.tar.gz gcc-a5e1b5484707fd849fb5022902126e008fe4d798.tar.bz2 |
Only create gcc/configargs.h if gcc build directory is present
From-SVN: r36894
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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. |