dejagnu runtest and runtest.exp

Ian Lance Taylor ian@cygnus.com
Mon Oct 13 13:41:00 GMT 1997


   Date: Mon, 13 Oct 1997 12:06:48 -0600
   From: Jeffrey A Law <law@cygnus.com>

     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  <ma
     > 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



More information about the Gcc mailing list