diff options
author | meissner <meissner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-10-17 03:00:51 +0000 |
---|---|---|
committer | meissner <meissner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-10-17 03:00:51 +0000 |
commit | 3e9279eebca9a72d2eb676d8d10a6301ba72d542 (patch) | |
tree | 15e535e31907d9171a657fa77885733e2d687894 | |
parent | 44710af9295f17dac0e1a387334bf58c263e3508 (diff) | |
download | gcc-3e9279eebca9a72d2eb676d8d10a6301ba72d542.tar.gz |
Only create gcc/configargs.h if gcc build directory is present
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36894 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | ChangeLog | 5 | ||||
-rwxr-xr-x | configure | 6 |
2 files changed, 9 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog index ca4f48354d5..138152119eb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2000-10-16 Michael Meissner <meissner@redhat.com> + + * configure (gcc/configargs.h): Only create if there is a build GCC + directory created. + 2000-10-16 Matthias Klose <doko@debian.org> * config.if: Search libstdc++-v3/configure.in for INTERFACE, 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. |