diff options
author | manfred <manfred@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-06-19 05:42:14 +0000 |
---|---|---|
committer | manfred <manfred@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-06-19 05:42:14 +0000 |
commit | 640128ad1e8a7d3e27d1368efb7e1c2e9f1b061d (patch) | |
tree | 135df2c43e974ffbf2f68853e0e1caae9503ddf3 /configure | |
parent | 1ee34a17db50ed965bf96535bc98d05019a3cdb6 (diff) | |
download | gcc-640128ad1e8a7d3e27d1368efb7e1c2e9f1b061d.tar.gz |
�
egcs-19980619/ChangeLog
1998-06-19 Manfred Hollstein <manfred@s-direktnet.de>
* configure (gcc_version): Add new variable describing the
particular gcc version we're building.
* Makefile.in (libsubdir): Add new macro for the directory
in which the compiler finds executables, libraries, etc.
(BASE_FLAGS_TO_PASS): Pass down gcc_version, target_alias
and libsubdir.
egcs-19980619/gcc/ChangeLog
1998-06-19 Manfred Hollstein <manfred@s-direktnet.de>
* Makefile.in (installdirs): Loop over directories in $(libsubdir)
creating probably missing ones, instead of single if statements.
egcs-19980619/libio/ChangeLog
1998-06-19 Manfred Hollstein <manfred@s-direktnet.de>
* config.shared (FLAGS_TO_PASS): Add libsubdir.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@20582 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/configure b/configure index f8e6866065e..88888670426 100755 --- a/configure +++ b/configure @@ -56,6 +56,7 @@ exec_prefixoption= fatal= floating_point=default gas=default +gcc_version=UNKNOWN host_alias=NOHOST host_makefile_frag= moveifchange= @@ -700,6 +701,12 @@ if [ "${program_prefix}" != "" ] ; then program_transform_name="-e s,^,${program_prefix}, ${program_transform_name}" fi +# If gcc's sources are available, extract its version number which is used by +# $libsubdir. +if [ -f $srcdir/gcc/version.c ]; then + gcc_version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${srcdir}/gcc/version.c` +fi + # If CC and CXX are not set in the environment, and the Makefile # exists, try to extract them from it. This is to handle running # ./config.status by hand. @@ -1228,6 +1235,12 @@ EOF echo enable_shared = ${enable_shared} >> ${Makefile} fi + # Emit a macro which is used to build the libsubdir macro where + # compiler specific stuff can be found/installed. + # FIXME: This works only if gcc's sources are available in a gcc + # subdirectory! + echo gcc_version = ${gcc_version} >> ${Makefile} + # reset prefix, exec_prefix, srcdir, SUBDIRS, NONSUBDIRS, # remove any form feeds. if [ -z "${subdirs}" ]; then |