Sorry, I should have been more clear about my question. You are correct the generated site.exp has illegal TCL in it. I believe I am following the instructions in the automake manual properly for setting DEJATOOL to a list of names. But of course something else must be missing from either my settings in makefile.am or automake itself (or my configure.ac?).
For reference, this is my entire makefile.am: AUTOMAKE_OPTIONS = dejagnu bin_PROGRAMS = proga progb proga_SOURCES = proga_main.c common.c progb_SOURCES = progb_main.c common.c DEJATOOL = proga progb RUNTESTDEFAULTFLAGS = --tool $$tool --srcdir $$srcdir/testsuite And my configure.ac: dnl Process this file with autoconf to produce a configure script. AC_INIT(myproject, 1.0) AM_INIT_AUTOMAKE(myproject, 1.0) AC_PROG_CC AC_OUTPUT(Makefile) BTW. The reference in the manual I am referring to is: http://sources.redhat.com/automake/automake.html#Tests Thanks for any help or pointers you can give and sorry if I am barking up the wrong tree, I am still a newbie :-) Jonah Richard Dawe wrote: > Hello. > > Jonah Graham wrote: > > Does anyone have an example of how to get DEJATOOL to be a list of names. > > In particular I am trying to do what is discussed in this message: > > http://sources.redhat.com/ml/bug-automake/2000/msg00116.html > > > > When I try setting DEJATOOL to multiple names, the resulting Makefile looks > > correct (it loops over the list) but a site.exp is still generated from > > this line in Makefile.in: > > @echo 'set tool $(DEJATOOL)' >>site.tmp > > with this in the site.exp file > > set tool proga progb > > > > > > When I try make check I get "WARNING: could not find `runtest'". If I try > > just running runtest --version I get this: > > > > ERROR: tcl error sourcing /cygdrive/q/experiments/build/site.exp. > > wrong # args: should be "set varName ?newValue?" > > while compiling > > "set tool proga progb" > [snip] > > That's not valid TCL, because set only takes two arguments. The following are > valid: > > set tool "proga progb" > set tool [list proga progb] > > Try hacking site.exp to one of those, just to check that it works. I have no > idea about DejaGNU, so it might not. > > Regards, > > -- > Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]