From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Lance Taylor To: law@cygnus.com Cc: manfred@s-direktnet.de, phdm@mail.macqel.be, egcs@cygnus.com Subject: Re: dejagnu runtest and runtest.exp Date: Mon, 13 Oct 1997 13:41:00 -0000 Message-id: <199710131816.OAA06348@subrogation.cygnus.com> References: <29942.876766008@hurl.cygnus.com> X-SW-Source: 1997-10/msg00507.html Date: Mon, 13 Oct 1997 12:06:48 -0600 From: Jeffrey A Law In message < 199710111653.SAA00464@saturn.s-direktnet.de >you write: > Wed Oct 8 12:40:14 1997 Manfred Hollstein US/EC4 60/1/110 #40283 nfred@lts.sel.alcatel.de> > > * config.shared (FLAGS_TO_PASS): Add SHELL. Is this still needed after installing Ian's patch? Yes, this is to work around the problem that runtest is invoked with $0 set to simply "runtest" without including a patch. Philippe De Muyter just posted a patch (< 199710131730.TAA11370@mail.macqel.be >) which should fix that, but I think his patch should be changed to search PATH rather than to rely on the builtin ``type'' command. There are examples of how to search PATH in the top level configure script; here is one: IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:" for dir in $PATH; do test -z "$dir" && dir=. if test -f $dir/$prog; then CONFIG_SHELL=$dir/$prog export CONFIG_SHELL break fi done IFS="$save_ifs" Ian