* ant.mk (ant-sanity-check): Allow JAVACMD to include options. --- 1/class/ant.mk.in 2007-05-21 08:30:47.000000000 +0200 +++ 1/class/ant.mk.in 2009-03-17 13:32:55.000000000 +0100 @@ -28,7 +28,7 @@ DEB_PHONY_RULES += ant-sanity-check ant-sanity-check: - @if ! test -x "$(JAVACMD)"; then \ + @if ! test -x "$(firstword $(JAVACMD))"; then \ echo "You must specify a valid JAVA_HOME or JAVACMD!"; \ exit 1; \ fi