Joao Victor wrote:
I get this:

checking for antlr 2.7.1 or better... ./configure: line 19746: test:
too many arguments
./configure: line 19747: test: too many arguments
./configure: line 19749: test: too many arguments
configure: error: no suitable antlr.jar found for version 2.7.1

Hi Joao,

this is what happens in line 19746:

antlr_version_major=`echo $antlr_version_str | sed $antlr_version_regex\\1/"`

Could you check out:
- what is in $antlr_version_str
- and whether it works if you quote it like this "$antlr_version_str"

Perhaps quoting will make the error go away, but the error most likely means that $antlr_version_str hasn't been extracted properly. So it would be interesting what's in there on your system.

That string is determined like this a couple of lines above:
antlr_version_str=`$JAVA -classpath "$antlr_lib_home/antlr.jar" antlr.Tool 2>&1 | head -n 1 | sed '/.*Version */!d; s///;q'`


So another thing you could do would be to find out what $JAVA is set to during configure and see what happens when you run antlr.Tool with that.

BTW, what distribution are you using?

Thanks,

Julian


_______________________________________________ Classpath mailing list [email protected] http://lists.gnu.org/mailman/listinfo/classpath

Reply via email to