# cant be guessed earlier, because we depend on JAVA_HOME which can be set in the local.conf
# cant be guessed earlier, because it depends on JAVA_HOME which can be set in the local.conf
# Old versions of a Java distribution have a `javah` binary, new version do not and the replacement is "javac -h"
# Old versions of a Java distribution have a `javah` binary, new version do not and the replacement is "javac -h"
# TODO: dont check for presence of javah, but check if javac -h is supported, because some java (RHEL) has javah but supports javac -h
# TODO: dont check for presence of javah, but check if javac -h is supported, because some java (RHEL) has javah but supports javac -h (and javac -h is preferred)
ifndefUSE_JAVAH
ifndefUSE_JAVAH
DUMMY:=$(shell which $(JAVA_HOME)/bin/javah)
DUMMY:=$(shell which $(JAVA_HOME)/bin/javah)
ifeq ($(.SHELLSTATUS),0)
ifeq ($(.SHELLSTATUS),0)
@ -84,6 +84,7 @@ export YML_PATH=$(YML2_PATH)
# BEGIN // kryptic hack to to replace a space with a newline
# BEGIN // kryptic hack to to replace a space with a newline
# $(subst ${ },${space}, whatever)
# $(subst ${ },${space}, whatever)
# maybe not well known: define/endef is custom makefile function definition