Mail Archives: djgpp/1998/09/11/11:30:43
Message-Id: | <199809111624.SAA32606@ieva06.lanet.lv>
|
From: | "Andris Pavenis" <pavenis AT lanet DOT lv>
|
To: | "Curtis, Craig M." <curtis_c AT lxe DOT com>
|
Date: | Fri, 11 Sep 1998 18:29:02 +0300
|
MIME-Version: | 1.0
|
Subject: | RE: configure problem
|
CC: | djgpp AT delorie DOT com
|
In-reply-to: | <c=US%a=_%p=Electromagnetic_%l=NT_EXLXE-980910195442Z-48374@nt_exems.elmg.com>
|
--Message-Boundary-10116
Content-type: text/plain; charset=US-ASCII
Content-transfer-encoding: 7BIT
Content-description: Mail message body
From: "Curtis, Craig M." <curtis_c AT lxe DOT com>
Subject: RE: configure problem
Date sent: Thu, 10 Sep 1998 15:54:42 -0400
> I just commented out the lines which test for gcc and set the variable
> which holds whatever CC it found to "gcc" and it worked. It was
> kludgey, but worked.
>
Editting configure script is usually not needed. Only thing that may
be needed is to run DJGPP port of autoconf.
It is necessary to set some environment variables before running
configure and also before running make (with makefile configure
generates)
I'm including as example script I used to configure gcc from
egcs-1.1a. For other packages (e.g latest betas of GNUPLOT) I
simpy copy this file to corresponding location, edit as needed and
usually all is Ok (hoverer Yo'll usually need LFN support and it
perhaps will be necessary to patch autoheader). Original version
of this script comes from port of gcc-2.8.0 by Robert Hoehne.
Andris
--Message-Boundary-10116
Content-type: text/plain; charset=US-ASCII
Content-transfer-encoding: 7BIT
Content-description: Text from file 'djconfig.sh'
#! /bin/sh
# where are the sources? If you use (like I) to have the sources
# in a separate directory and the objects in an other, then set
# here the full path to the source directory and run this script
# in the directory where you want to build gcc!!
# WARNING: Only unix-like absolute paths are known to work, like
#
# /src/egcs-1.1a
#
# do not use any drive in it like
#
# c:/src/egcs-1.1a
#
# since this will confuse all that unix like scrips, which
# assume that a absolute path starts with a slash.
srcdir=..
# just in case
export PATH_SEPARATOR=:
# The following is needed, to get not the // syntax, when
# the configure script or the makefile calls pwd
current_drive=`pwd | sed 's,//\(.\).*,\1,'`
export SYSROOT=$current_drive:/
# give now the configure script some hints
export CC=gcc
export LD=ld
export DEFAULT_LEX=flex
export LEX=flex
export RANLIB=ranlib
export ac_cv_path_install="ginstall -c"
export CONFIG_SHELL=bash
#
$srcdir/configure --srcdir=$srcdir --disable-shared --verbose \
--prefix=\\\$\$DJDIR \
--with-gxx-include-dir=\${prefix}/lang/cxx \
--with-gnu-ld \
--enable-haifa
#
dtou `find . -name Makefile`
--Message-Boundary-10116--
- Raw text -