This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
WORKAROUND for the new gcc_version problem
- To: law at cygnus dot com, Franz dot Sirl-kernel at lauterbach dot com
- Subject: WORKAROUND for the new gcc_version problem
- From: Manfred Hollstein <manfred at s-direktnet dot de>
- Date: Thu, 25 Jun 1998 10:32:53 +0200 (MET DST)
- Cc: egcs-patches at cygnus dot com
- References: <13713.59639.635878.750449@slsvhmt> <27114.898758182@hurl.cygnus.com>
- Reply-To: manfred at s-direktnet dot de, Manfred dot Hollstein at ks dot sel dot alcatel dot de
On Thu, 25 June 1998, 01:03:02, law@hurl.cygnus.com wrote:
>
> In message <13713.59639.635878.750449@slsvhmt>you write:
> > > The trailing ".." is wrong. The net result is we do not find
> > > gcc/version.c and cc1, cc1plus, etc end up installed into the
> > > "UNKNOWN" directory because we didn't find gcc/version.c
> >
> > Yes, Franz Sirl already pointed this out; I'm working on it.
> OK. Good.
The whole thing is more difficult than I had thought :-( In the
meantime everybody should use this patch for the toplevel configure:
*** configure.orig Wed Jun 24 08:25:49 1998
--- configure Thu Jun 25 10:28:29 1998
*************** fi
*** 458,463 ****
--- 458,464 ----
configsub=`echo ${progname} | sed 's/configure$/config.sub/'`
moveifchange=`echo ${progname} | sed 's/configure$/move-if-change/'`
+ topsrcdir=`cd \`dirname ${progname}\`; pwd`
# this is a hack. sun4 must always be a valid host alias or this will fail.
if ${config_shell} ${configsub} sun4 >/dev/null 2>&1 ; then
*************** fi
*** 705,726 ****
if [ "${with_gcc_version+set}" = set ]; then
gcc_version="$with_gcc_version"
else
- if [ "${srcdir}" = "." ] ; then
- if [ "${with_target_subdir}" != "." ] ; then
- topsrcdir=${with_multisrctop}../..
- else
- topsrcdir=${with_multisrctop}..
- fi
- else
- case ${srcdir} in
- */*/* ) # Need to do this only in subdirectories.
- topsrcdir=${srcdir}/..
- ;;
- * ) # We are already in the topsrcdir.
- topsrcdir=${srcdir}
- ;;
- esac
- fi
# If gcc's sources are available, extract its version number which is used by
# $libsubdir.
if [ -f ${topsrcdir}/gcc/version.c ] ; then
--- 706,711 ----