delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1999/07/19/00:22:53

Message-Id: <199907190421.EAA68866@out5.ibm.net>
From: "Mark E." <snowball3 AT bigfoot DOT com>
To: djgpp-workers AT delorie DOT com
Date: Mon, 19 Jul 1999 00:21:46 -0400
MIME-Version: 1.0
Subject: configuring CVS binutils
X-mailer: Pegasus Mail for Win32 (v3.11)
Reply-To: djgpp-workers AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019