Mail Archives: djgpp-workers/1999/07/19/00:22:53
Hi folks,
Here are the scripts I'm currently using to configure binutils in CVS. I'm
not sure what checks you were referring to. It assumes the presence of
share/config.site from the very latest (July 18th) Bash binary. I'd
eventually like to submit them for inclusion in Binutils.
configure.bat:
@echo off
sh djconfig.sh
@echo on
djconfig.sh
#! /bin/sh
echo "Changing y.tab to y_tab ... "
TMPFILE="./Makefile.tmp"
STARTDIR=`pwd`
for fix_dir in \
./binutils \
./gas \
./ld
do
if test ! -f $fix_dir/Makefile.ori ; then
cd $fix_dir
cp ./Makefile.in ./Makefile.ori
sed -e 's%y\.tab%y_tab%g' ./Makefile.in > $TMPFILE
update ${TMPFILE} ./Makefile.in
rm -f ${TMPFILE}
cd $STARTDIR
fi
done
echo 'Running the configure script...'
# Set some important variables
if test -z $DJDIR ; then
echo "DJDIR is not defined. Check your DJGPP setup and try again."
exit 0
fi
# Check for the /dev/env feature in DJGPP 2.03.
# It survives expansion, so prefer it over the older solution.
if test -d "/dev/env/DJDIR" ; then
djprefix="/dev/env/DJDIR"
else
djprefix="\${DJDIR}"
fi
export PATH_SEPARATOR=:
export PATH_EXPAND=Y
export DOS_TEST_HACK=Y
export SHELL=bash
# Run the configure script
configure --prefix=${djprefix} --verbose --disable-bfd-assembler --
disable-nls $*
---
Mark Elbrecht, snowball3 AT bigfoot DOT com
http://snowball.frogspace.net/
- Raw text -