Right now, the tarball has been generated without the java
sources.
PS.: This change won't affect the build. Just "make dist"
target should be affected by it.
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
The patch with added support for Java 11 accidentally broke
java 8 support, when it added $(abs_srcdir) to the *.java
files at zbar_jar_SRCS. Revert this change and rework on
Java 11 logic.
The end result is that now the Java 11 logic is cleaner and
easier to maintain. It will also cleanup the "javac -h ."
mess of creating several individual headers that we don't
want at the builddir.
While here, be sure that the produced zbarjni.h file will
be cleaned at "make clean".
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
There's a mess at configure.ac at the java detection code,
and on its usage at check-java target.
Place the Java detection code in just one place, reorganizing
the code in a way that it will use the canonical name of the
javac directory as default, in the case JAVA_HOME is not
explicitly set. It will also use the detected JAVA_HOME at
make check-java
target.
Also, java versions bigger than 8 don't come anymore with
javah. Instead, javac was incremented to produce headers,
but with a different syntax and more limited features, as
it doesn't allow anymore to generate a single header file
for multiple java sources.
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
The check-java seems very useful: it already helped to
detect a regression currently introduced.
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>